/* =========================================================================
   Michelle & Ryan — 10 April 2027 · Ravella, Newcastle
   Design system + components
   Signature motif: the arch (Ravella's Romanesque doorways & windows)
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --ink:        #1a1613;   /* warm near-black */
  --ink-2:      #221b16;   /* raised dark surface */
  --ink-3:      #2c241d;   /* card on dark */
  --espresso:   #3b2f27;
  --mocha:      #5c4a3a;
  --sand:       #b9a895;   /* secondary text on dark */
  --cream:      #f5efe5;
  --paper:      #faf7f1;
  --paper-2:    #f1e9da;   /* raised light surface */
  --claret:     #6e1423;   /* red splash */
  --claret-lt:  #8c1d2c;
  --forest:     #2f3a2e;   /* green splash */
  --olive:      #566246;
  --brass:      #9c7a4d;   /* sparing metallic accent */

  /* semantic (default = light/paper context) */
  --bg:         var(--paper);
  --fg:         #2a2018;
  --heading:    var(--ink);
  --muted:      #6b5d4f;
  --line:       rgba(26, 22, 19, .14);
  --accent:     var(--claret);

  /* type */
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script-font: "Mr Dafoe", cursive;

  --step--1: clamp(.82rem, .8rem + .12vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .18vw, 1.1rem);
  --step-1:  clamp(1.18rem, 1.08rem + .4vw, 1.4rem);
  --h3: clamp(1.4rem, 1.2rem + .9vw, 1.9rem);
  --h2: clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  --h1: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --hero: clamp(3rem, 1.6rem + 6vw, 6.6rem);

  /* space */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section-y: clamp(4.5rem, 9vw, 9.5rem);
  --maxw: 1280px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--claret-lt); outline-offset: 3px; border-radius: 2px; }

/* ---------- Typography helpers ---------- */
.display { font-family: var(--display); font-weight: 340; line-height: 1.04; letter-spacing: -.01em; }
.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .9em;
}
.eyebrow::before {
  content: ""; width: clamp(1.4rem, 4vw, 3rem); height: 1px;
  background: currentColor; opacity: .65;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: clamp(1.4rem, 4vw, 3rem); height: 1px;
  background: currentColor; opacity: .65;
}
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--muted); }
.script { font-family: var(--display); font-style: italic; font-weight: 320; }

h1, h2, h3 { font-family: var(--display); font-weight: 360; color: var(--heading); line-height: 1.08; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--dark {
  --bg: var(--ink); --fg: var(--sand); --heading: var(--cream);
  --muted: #9b8a78; --line: rgba(245,239,229,.16);
  background: var(--ink); color: var(--fg);
}
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section__head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: var(--h2); margin-top: 1.1rem; }
.section__index {
  font-family: var(--display); font-style: italic; font-weight: 300;
  color: var(--accent); opacity: .5; font-size: var(--step-0);
}

/* ---------- Signature: arch frame ---------- */
.arch {
  border-radius: 50% 50% 6px 6px / 32% 32% 4px 4px;
  overflow: hidden;
  position: relative;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--soft { border-radius: 46% 46% 6px 6px / 26% 26% 4px 4px; }
.framed { box-shadow: 0 30px 60px -30px rgba(26,22,19,.6); }
.framed-line { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -34px rgba(26,22,19,.5); }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--claret); --fg-btn: var(--cream);
  display: inline-flex; align-items: center; gap: .7em;
  background: var(--bg-btn); color: var(--fg-btn);
  font-weight: 600; font-size: var(--step--1);
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05em 2em; border-radius: 999px;
  transition: transform .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 14px 30px -16px rgba(110,20,35,.7);
}
.btn:hover { transform: translateY(-2px); background: var(--claret-lt); }
.btn--ghost {
  background: transparent; color: inherit;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* inline text link with growing underline */
.link {
  position: relative; font-weight: 600; letter-spacing: .02em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .4s var(--ease); color: var(--accent);
}
.link:hover { background-size: 100% 1px; }

/* =========================================================================
   NAV
   ========================================================================= */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; flex-wrap: wrap; row-gap: .5rem; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.6rem) var(--gutter);
  color: var(--cream);
  transition: background .5s var(--ease), padding .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
/* on pages that force .nav-links visible without a hamburger menu (e.g.
   save-the-date, coming-soon), this lets it drop to its own row rather
   than clip off-screen when brand + link text can't both fit one line */
.site-nav.is-scrolled {
  background: rgba(20,17,14,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding-block: .8rem;
  box-shadow: 0 1px 0 rgba(245,239,229,.08);
}
.brand {
  font-family: var(--display); font-style: italic; font-weight: 360;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem); letter-spacing: .02em;
}
.brand b { font-style: normal; font-weight: 500; }
.nav-links { display: none; gap: clamp(1.2rem, 2.4vw, 2.4rem); align-items: center; margin-left: auto; }
.nav-links a {
  font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  position: relative; opacity: .85; transition: opacity .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--brass); transition: width .35s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-rsvp {
  border: 1px solid rgba(245,239,229,.4); border-radius: 999px;
  padding: .55em 1.3em; opacity: 1;
}
.nav-links .nav-rsvp::after { display: none; }
.nav-links .nav-rsvp:hover { background: var(--claret); border-color: var(--claret); }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: .4rem; z-index: 70; }
.nav-toggle span { width: 26px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.4rem; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.nav-open .nav-drawer { opacity: 1; visibility: visible; transform: none; }
.nav-drawer a {
  font-family: var(--display); font-size: clamp(1.7rem, 7vw, 2.6rem); color: var(--cream);
  font-weight: 340; letter-spacing: .01em;
}
.nav-drawer a .num { font-style: italic; font-size: .8rem; color: var(--brass); margin-right: .6em; vertical-align: super; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  color: var(--cream); overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(115% 78% at 50% 44%, rgba(20,17,14,.5), rgba(20,17,14,.82) 100%),
    linear-gradient(180deg, rgba(20,17,14,.66) 0%, rgba(20,17,14,.32) 30%, rgba(20,17,14,.9) 100%);
}
.hero__inner {
  grid-row: 1; align-self: center; z-index: 2;
  text-align: center; padding: 6rem var(--gutter) 0; width: 100%;
}

/* shared ampersand treatment for small inline uses (nav wordmark, footer
   monogram) — a classic italic form instead of Fraunces' swash "&",
   which reads ambiguously at display sizes */
.amp { font-family: "EB Garamond", "Times New Roman", serif; font-style: italic; font-weight: 500; }
.brand .amp { color: var(--brass); }
.footer__mono .amp { color: var(--brass); font-size: .78em; opacity: .95; }

/* hero — typography-forward composition: a small tracked-caps invitation
   line, the couple's names in a big bold script that bleeds toward the
   frame edges, then date/venue in matching tracked caps */
.hero__invite {
  font-family: var(--body); text-transform: uppercase;
  letter-spacing: .26em; font-size: .82rem; line-height: 1.9; font-weight: 500;
  color: var(--cream); opacity: .85; margin: 0 auto clamp(1.3rem, 3.2vw, 2.4rem);
  text-shadow: 0 1px 16px rgba(12,9,7,.6);
}
.hero__names { margin: 0; }
.hero__line {
  display: block; white-space: nowrap;
  font-family: var(--script-font); font-weight: 400; line-height: .95;
  font-size: clamp(3.2rem, 18vw, 11rem); color: var(--cream);
  text-shadow: 0 2px 40px rgba(12,9,7,.7), 0 1px 3px rgba(12,9,7,.5);
}
@media (max-width: 600px) {
  .hero__line { font-size: clamp(3.2rem, 28vw, 11rem); }
}
/* the second line shrinks to fit its own text so the ampersand can be
   pinned tightly in the gap between the two lines, above the "R" */
.hero__line--second { display: inline-block; position: relative; }
.hero__script-amp {
  position: absolute; left: 2.3em; top: -.16em;
  font-size: .4em; color: var(--brass); line-height: 1;
}
.hero__date {
  font-family: var(--body); letter-spacing: .22em;
  font-size: 1.1rem; font-weight: 500; color: var(--cream); opacity: .92;
  margin: clamp(2.8rem, 7vw, 4.6rem) 0 0;
  text-shadow: 0 1px 20px rgba(12,9,7,.6);
}
.hero__venue {
  font-family: var(--body); text-transform: uppercase;
  letter-spacing: .22em; font-size: .8rem; line-height: 1.9; color: var(--cream); opacity: .78;
  margin: clamp(.6rem, 2vw, 1.1rem) 0 0;
  text-shadow: 0 1px 16px rgba(12,9,7,.6);
}

/* countdown */
.countdown {
  grid-row: 2; z-index: 2; align-self: end;
  display: flex; justify-content: center; gap: clamp(1.1rem, 4vw, 3.2rem);
  padding: 0 var(--gutter) clamp(3.5rem, 6vw, 5rem);
}
.cd-unit { text-align: center; min-width: 3.2ch; }
.cd-num { font-family: var(--display); font-weight: 340; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1; display: block; }
.cd-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .24em; opacity: .72; margin-top: .7em; }

/* =========================================================================
   STORY
   ========================================================================= */
.story-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: 1fr; align-items: center;
}
.story-copy p + p { margin-top: 1.1rem; }
.story-copy .lead { margin-bottom: 1.6rem; color: var(--fg); }
.story-portrait { max-width: 460px; margin-inline: auto; aspect-ratio: 3 / 4; }

.timeline { margin-top: 2.6rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.timeline .tl-year { font-family: var(--display); font-style: italic; color: var(--accent); font-size: var(--step-1); }
.timeline .tl-text strong { display: block; font-weight: 600; letter-spacing: .01em; color: var(--heading); }
.timeline .tl-text span { color: var(--muted); font-size: var(--step--1); }

/* =========================================================================
   THE DAY (details + schedule)
   ========================================================================= */
.day-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 5.5rem); grid-template-columns: 1fr;
}
.detail-cards { display: grid; gap: 1.4rem; }
.detail-card {
  border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, rgba(245,239,229,.02), transparent);
}
.detail-card h3 { font-size: var(--h3); margin-bottom: .2rem; }
.detail-card .dc-time { font-family: var(--display); font-style: italic; color: var(--brass); font-size: var(--step-1); }
.detail-card address { font-style: normal; color: var(--muted); margin-top: .9rem; line-height: 1.5; }
.detail-card .dc-actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; }

.schedule { position: relative; }
.schedule h3 { font-size: var(--h3); margin-bottom: 1.8rem; }
.sched-list { position: relative; padding-left: 1.8rem; }
.sched-list::before { content: ""; position: absolute; left: 4px; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.sched-item { position: relative; padding-bottom: 1.7rem; }
.sched-item:last-child { padding-bottom: 0; }
.sched-item::before {
  content: ""; position: absolute; left: -1.8rem; top: .45rem; width: 9px; height: 9px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--brass); transform: translateX(0);
}
.sched-time { font-family: var(--display); font-style: italic; color: var(--brass); font-size: var(--step-1); }
.sched-name { font-weight: 600; color: var(--heading); letter-spacing: .01em; }
.sched-desc { color: var(--muted); font-size: var(--step--1); }

/* =========================================================================
   FULL-BLEED DIVIDER (floral parallax + quote)
   ========================================================================= */
.divider {
  position: relative; min-height: 60vh; display: grid; place-items: center;
  text-align: center; color: var(--cream); overflow: hidden; isolation: isolate;
}
.divider__media { position: absolute; inset: 0; z-index: -2; }
.divider__media img { position: absolute; top: -15%; left: 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.divider::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(20,17,14,.5), rgba(20,17,14,.62)); }
.divider blockquote { width: min(86vw, 22em); margin-inline: auto; padding-inline: var(--gutter); }
.divider blockquote p { font-family: var(--display); font-weight: 320; font-style: italic; font-size: var(--h2); line-height: 1.18; }
.divider cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: var(--step--1); letter-spacing: .26em; text-transform: uppercase; opacity: .8; }

/* =========================================================================
   VENUE
   ========================================================================= */
.venue-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.venue-media { position: relative; }
.venue-media .arch { aspect-ratio: 4 / 5; }
.venue-media .venue-inset {
  position: absolute; width: 42%; aspect-ratio: 3/4; right: -6%; bottom: -8%;
  border: 6px solid var(--paper); border-radius: 3px;
}
.venue-copy h2 { font-size: var(--h2); margin-bottom: 1.2rem; }
.venue-meta { margin-top: 1.8rem; display: grid; gap: 1rem; }
.venue-meta div { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.venue-meta dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-weight: 600; }
.venue-meta dd { color: var(--muted); }

/* =========================================================================
   DRESS CODE
   ========================================================================= */
.dress-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.dress-imgs { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.1rem; align-items: end; }
.dress-imgs .arch { aspect-ratio: 3/4; }
.dress-imgs .arch:nth-child(2) { aspect-ratio: 3/4.4; }
.dress-copy h2 { font-size: var(--h2); margin-bottom: 1.1rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.swatch { text-align: center; }
.swatch i {
  display: block; width: clamp(2.6rem, 7vw, 3.4rem); aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(245,239,229,.18), 0 8px 18px -10px rgba(0,0,0,.6);
  margin-bottom: .6rem;
}
.swatch span { font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; opacity: .72; }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery {
  columns: 2; column-gap: clamp(.8rem, 2vw, 1.4rem);
}
.gallery button {
  display: block; width: 100%; margin-bottom: clamp(.8rem, 2vw, 1.4rem);
  break-inside: avoid; overflow: hidden; border-radius: 3px; position: relative;
}
.gallery img { width: 100%; transition: transform .9s var(--ease), filter .6s var(--ease); filter: saturate(.96); }
.gallery button::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20,17,14,0), rgba(20,17,14,.28));
  opacity: 0; transition: opacity .5s var(--ease);
}
.gallery button:hover img { transform: scale(1.05); filter: saturate(1.05); }
.gallery button:hover::after { opacity: 1; }
.gallery button:first-child { border-radius: 46% 46% 3px 3px / 22% 22% 2px 2px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(14,11,9,.94); padding: clamp(1rem, 5vw, 4rem);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 3px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.lightbox__btn {
  position: absolute; color: var(--cream); width: 3.2rem; height: 3.2rem; display: grid; place-items: center;
  border-radius: 50%; transition: background .3s; font-size: 1.4rem;
}
.lightbox__btn:hover { background: rgba(245,239,229,.12); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* =========================================================================
   GIFTS
   ========================================================================= */
.gifts-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.gifts-media .arch { aspect-ratio: 4/5; max-width: 420px; }
.gifts-copy h2 { font-size: var(--h2); margin-bottom: 1.1rem; }
.gifts-copy .lead { margin-bottom: 1.6rem; }
.gifts-note {
  margin-top: 1.8rem; padding: 1.4rem 1.6rem; border-left: 2px solid var(--claret);
  background: rgba(245,239,229,.03); font-size: var(--step--1); color: var(--muted);
}

/* =========================================================================
   FAQ + ACCOMMODATION
   ========================================================================= */
.faq-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.3rem 0; font-family: var(--display); font-size: var(--step-1); color: var(--heading); font-weight: 360;
}
.acc-icon { position: relative; width: 16px; height: 16px; flex: none; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--accent); transition: transform .4s var(--ease); }
.acc-icon::before { left: 0; top: 7.5px; width: 16px; height: 1.5px; }
.acc-icon::after { left: 7.5px; top: 0; width: 1.5px; height: 16px; }
.acc-item.is-open .acc-icon::after { transform: scaleY(0); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
.acc-a > div { padding-bottom: 1.4rem; color: var(--muted); }

.stay h3 { font-size: var(--h3); margin-bottom: .9rem; }
.stay-intro { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.6rem; max-width: 46ch; }
.stay-img { aspect-ratio: 16/10; border-radius: 3px; overflow: hidden; margin-bottom: 1.6rem; }
.stay-img img { width: 100%; height: 100%; object-fit: cover; }
.stay-list { display: grid; gap: 1.1rem; }
.stay-list li { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.stay-list strong { display: block; color: var(--heading); font-weight: 600; }
.stay-list span { color: var(--muted); font-size: var(--step--1); }

/* =========================================================================
   RSVP
   ========================================================================= */
.rsvp-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
.rsvp-intro h2 { font-size: var(--h1); margin-bottom: 1.1rem; }
.rsvp-intro .rsvp-deadline { margin-top: 1.6rem; font-family: var(--display); font-style: italic; color: var(--brass); font-size: var(--step-1); }

.form { display: grid; gap: 2rem; }
/* the fields live inside .form-fields — it must own the inter-field spacing */
.form-fields { display: grid; gap: 1.9rem; }
.field { display: grid; gap: .8rem; }
.field label { font-size: var(--step--1); line-height: 1.1; text-transform: uppercase; letter-spacing: .14em; color: var(--sand); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; line-height: 1.3; color: var(--cream); background: rgba(245,239,229,.04);
  border: 1px solid rgba(245,239,229,.18); border-radius: 4px; padding: .95em 1.05em;
  transition: border-color .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #7d6e5f; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass); background: rgba(245,239,229,.07); outline: none;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sand) 50%), linear-gradient(135deg, var(--sand) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field--row { grid-template-columns: 1fr 1fr; gap: 1.1rem; display: grid; }
.field textarea { resize: vertical; min-height: 6rem; padding-block: .85em; }
.form-msg { font-size: var(--step--1); min-height: 1.2em; }
.form-msg.ok { color: #9bc08a; }
.form-msg.err { color: #d98a8a; }
.form .btn { justify-content: center; }
.form.is-success .form-fields { display: none; }
.success-card { display: none; text-align: center; padding: 2rem 0; }
.form.is-success .success-card { display: block; }
.success-card .tick { font-family: var(--display); font-size: var(--h2); color: var(--brass); font-style: italic; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: #14110e; color: var(--sand); text-align: center; padding: clamp(4rem,8vw,6rem) var(--gutter) 2.5rem; }
.footer__mono { font-family: var(--display); font-style: italic; font-size: clamp(2.4rem, 7vw, 4rem); color: var(--cream); font-weight: 320; }
.footer__date { letter-spacing: .3em; text-transform: uppercase; font-size: var(--step--1); margin-top: 1rem; opacity: .8; }
.footer__hash { margin-top: 2rem; color: var(--brass); font-style: italic; font-family: var(--display); }
.footer__rule { width: 60px; height: 1px; background: rgba(245,239,229,.2); margin: 2.4rem auto; }
.footer__small { font-size: .72rem; opacity: .55; letter-spacing: .04em; line-height: 1.8; }
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 50;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--claret); color: var(--cream);
  display: grid; place-items: center; box-shadow: 0 14px 30px -14px rgba(110,20,35,.8);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--claret-lt); transform: translateY(-2px); }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (min-width: 720px) {
  .gallery { columns: 3; }
  .field--row { grid-template-columns: 1fr 1fr; }
  .detail-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 920px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .story-grid { grid-template-columns: 1.05fr .95fr; }
  .story-grid.reverse > :first-child { order: 2; }
  .day-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
  .detail-cards { grid-template-columns: 1fr; }
  .venue-grid { grid-template-columns: .9fr 1.1fr; }
  .dress-grid { grid-template-columns: .9fr 1.1fr; }
  .gifts-grid { grid-template-columns: .85fr 1.15fr; }
  .faq-grid { grid-template-columns: 1.1fr .9fr; }
  .rsvp-grid { grid-template-columns: .9fr 1.1fr; }
  .gallery { columns: 3; }
}
@media (min-width: 1100px) {
  .gallery { columns: 3; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img, .divider__media img { height: 100%; top: 0; transform: none; }
}
