/* ------------------------------------------------------------------
   Wedding site — single shared stylesheet.
   Theme: black-tie, sophisticated & romantic. Monochrome (ink / ivory)
   with hairline gold accents; the venue photo is shown in black & white.
   Re-theme by editing the custom properties in :root.
------------------------------------------------------------------ */

:root {
  --ivory:      #fbfaf7;   /* page background          */
  --ivory-deep: #efebe2;   /* subtle panels            */
  --ink:        #16151a;   /* near-black text          */
  --ink-soft:   #56545c;   /* muted text               */
  --charcoal:   #26252b;   /* buttons / structure      */
  --black:      #100f13;   /* deepest / hero fallback  */
  --gold:       #b0935f;   /* romantic hairline accent */
  --gold-soft:  #c9b58c;
  --line:       #e5e1d8;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 62rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* ---------- Navigation (copied into every page) ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 1rem var(--gutter);
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

/* ---------- Layout ---------- */
main { display: block; }

.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.section--narrow { max-width: 46rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
}

.center { text-align: center; }
.divider {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.5rem auto;
}

/* Subtle emphasis (replaces bold) — a fine gold underline, normal weight. */
.hl {
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Hero (full-bleed venue photo, black & white) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  background: var(--black);   /* fallback if the photo is missing */
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Black & white, gently darkened so the type reads. */
  filter: grayscale(100%) contrast(1.05) brightness(0.62);
  z-index: 0;
}
.hero::after {              /* romantic vignette over the photo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(16,15,19,0.15), rgba(16,15,19,0.55) 90%);
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; color: #fff; }
.hero__content .eyebrow { color: var(--gold-soft); }
.hero__names {
  font-size: clamp(3rem, 12vw, 7.5rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero__amp { color: var(--gold-soft); font-style: italic; }
.hero__meta {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.92);
  margin-top: 0.5rem;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  justify-content: center;
  margin-top: 2.5rem;
}
.countdown__unit { min-width: 3.5rem; }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  display: block;
  color: #fff;
  line-height: 1;
}
.countdown__label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.75);
}

/* Buttons sitting on the dark hero */
.hero .btn {
  border-color: #fff;
  background: transparent;
  color: #fff;
}
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Figure (venue photo used elsewhere) ---------- */
.figure {
  margin: 2rem 0 0;
  text-align: center;
}
.figure img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(100%) contrast(1.03);
}
.figure figcaption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- Timeline (schedule) ---------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
}
.timeline h3 { margin: 0 0 0.2rem; }
.timeline p { margin: 0; color: var(--ink-soft); }

/* ---------- Cards (travel, registry) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
}
.card h3 { color: var(--ink); }

/* ---------- Gallery (story) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery img,
.gallery .gallery__ph {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  filter: grayscale(100%);
}

/* ---------- Forms (rsvp, admin) ---------- */
.form { margin-top: 2rem; }
.field { margin-bottom: 1.4rem; }
.field > label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.65rem 0.8rem;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,147,95,0.18);
}
textarea { min-height: 5rem; resize: vertical; }

.radio-row { display: flex; gap: 1.5rem; }
.radio-row label { font-weight: 400; display: flex; align-items: center; gap: 0.4rem; }

/* Guest rows */
.guest-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.9rem;
}
.guest-row .remove-guest {
  background: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.guest-row .remove-guest:hover { border-color: var(--gold); color: var(--gold); }

fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 0 0 1.4rem;
}
fieldset legend { font-weight: 700; padding: 0 0.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  border-radius: 5px;
  padding: 0.7rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

/* Inline feedback */
.notice { padding: 0.9rem 1.1rem; border-radius: 5px; margin-top: 1.2rem; }
.notice--ok  { background: #f3efe6; border: 1px solid var(--gold); color: var(--ink); }
.notice--err { background: #fbecec; border: 1px solid #d99; color: #a33; }
.hidden { display: none; }

/* ---------- Table (admin) ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
table.responses { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
table.responses th,
table.responses td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.responses th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--ink-soft);
}
table.responses tr:hover td { background: var(--ivory-deep); }
.tag { display: inline-block; font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 999px; }
.tag--yes  { background: #ece7db; color: var(--ink); }
.tag--no   { background: #f0eee9; color: var(--ink-soft); }
.tag--room { background: #f3ead6; color: var(--gold); }

/* ---------- FAQ (accordion) ---------- */
.faq { max-width: 46rem; margin: 2rem auto 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq summary {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0.8rem 0 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ---------- Small screens ---------- */
@media (max-width: 40rem) {
  .timeline li { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .guest-row { grid-template-columns: 1fr; }
  .guest-row .remove-guest { justify-self: start; }
}
