/* --- Wedding Website styles ---
 * Brand: cream/parchment + deep navy ink, editorial Vogue aesthetic.
 * Typefaces: Sloop Script Three (bold display / script headings),
 *            New York (serif body & running text).
 */

@font-face {
  font-family: 'Sloop Script Three';
  src: url('assets/Sloop-ScriptThree.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'New York';
  src: url('assets/NewYork.otf') format('opentype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Warm taupe + chocolate-brown editorial palette — the design's original
     navy ink (#1a2842) is replaced with #281e0b so the whole site reads as a
     single warm temperature. Cream/sand/gold/burgundy accents are kept. */
  --paper: #dbd1c7;
  --paper-2: #ebe5d6;
  --paper-3: #d8cdb5;
  --ink: #281e0b;
  --ink-2: #3b2e15;
  --ink-soft: #8a7d65;
  /* Accent — keyed off the wax-seal mid-tone so the chestnut brown carries
     through every emphasis (italic section-title words, kickers, dividers,
     Roman-numeral card icons, etc.) and matches the seal in the hero. */
  --gold: #6b3508;
  --accent: #7a1f2b;
  --sand: #c9bc9e;

  /* Type families — centralised so the whole document flips together. */
  --font-display: 'Sloop Script Three', 'Bodoni Moda', 'Didot', serif;  /* bold/italic headings */
  --font-body:    'New York', 'Cormorant Garamond', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Display-weight headings use Sloop Script Three. Note: <strong> and <b>
   are intentionally NOT in this list — they inherit the surrounding font
   (typically New York) and just get bolded, so emphasized words inside body
   copy don't switch to a cursive script. */
h1, h2, h3, h4, h5, h6,
.rsvp-h,
.hero-names, .section-title, .attire-title, .attire-divider span,
.site-footer .monogram, .env-card-title, .env-seal-monogram {
  font-family: var(--font-display);
  font-weight: 700;
}

a { color: inherit; }

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.script { font-family: var(--font-display); font-style: italic; }
.mono   { font-family: var(--font-body); letter-spacing: 0.28em; text-transform: uppercase; font-size: 12px; }

/* ============================================================ */
/*  Top nav                                                     */
/* ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  /* Above the Attire / Details / Hotels overlays (z-index 150) so the menu
     stays visible no matter which screen the guest is on. */
  z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 48px;
  color: var(--ink);
  pointer-events: none;
  /* No header chrome — the menu floats over the page and overlays. */
  background: transparent;
}
.nav > * { pointer-events: auto; }
.nav-brand {
  display: flex; align-items: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.42em; text-transform: uppercase;
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.7; }
.nav-brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .nav-brand-logo { height: 36px; }
}
.nav-links {
  display: flex; gap: 34px;
  font-family: var(--font-body);
  font-size: 20px; letter-spacing: 0.32em; text-transform: uppercase;
}
.nav-links button {
  background: none; border: 0; color: inherit; cursor: pointer;
  padding: 6px 0; letter-spacing: inherit; font: inherit;
  border-bottom: 1px solid transparent;
}
.nav-links button:hover { border-bottom-color: currentColor; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid currentColor;
  background: transparent; color: inherit; cursor: pointer;
}

/* ============================================================ */
/*  Hero / scroll scene                                         */
/* ============================================================ */
.hero-scroll {
  position: relative;
  /* photos pan in, date parallaxes, envelope opens, RSVP — tightened from
     the old rotation-driven length so the beat hits faster. */
  height: 600vh;
}
.hero-pin {
  position: fixed; top: 0; left: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 30%, #e8ded3 0%, #dbd1c7 55%, #c7bdb1 100%);
  z-index: 1;
}
.hero-pin > * { pointer-events: auto; }
.hero-pin.is-done { position: absolute; top: auto; bottom: 0; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.22) 100%);
}

.hero-building {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}

/* Library PNG illustrations — stacked, crossfaded by Library3D. */
.lib-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 92%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(40, 30, 12, 0.18));
  transition: opacity 120ms linear;
  pointer-events: none;
}
.lib-long  { width: 92%; }
.lib-short { width: 64%; }

/* Photo strip — four scanned polaroid-style photos that pan from right to
   left across the hero. The strip itself sits absolutely so the JS can drive
   its translate3d via inline style; the figures are flex-arranged at a
   consistent gap and lightly tilted for a hand-laid feel. */
.photo-strip {
  position: absolute;
  top: 50%;
  left: 0;
  transform-origin: 50% 50%;
  display: flex;
  align-items: center;
  gap: 4vw;
  padding: 0 1vw;
  margin-top: -22vw; /* lift so the strip sits in the upper-middle band */
  will-change: transform, opacity;
  pointer-events: none;
}
.photo-strip-card {
  flex: 0 0 auto;
  width: 28vw;
  margin: 0;
  padding: 12px 12px 56px;
  background: #f7f1e3;
  box-shadow:
    0 24px 48px -22px rgba(40, 30, 20, 0.45),
    0 4px 14px -6px rgba(40, 30, 20, 0.30);
  border-radius: 2px;
  transition: transform 200ms ease;
}
.photo-strip-card img {
  width: 100%;
  height: 36vw;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) brightness(0.99);
  background: #1a1a1a;
}

.hero-masthead {
  position: absolute; top: calc(8vh + 40px); left: 0; right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 5;
}
.hero-kicker {
  font-family: var(--font-body);
  letter-spacing: 0.5em; text-transform: uppercase;
  font-size: 12px; color: var(--ink-2);
  margin-bottom: 18px;
}
.hero-names {
  font-family: var(--font-display);
  /* Bumped +50px across the clamp — script names sit larger at every viewport. */
  font-size: clamp(98px, 11vw, 170px);
  letter-spacing: -0.01em;
  line-height: 0.9;
  margin: 0;
  color: var(--ink);
}
.hero-names .amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  color: var(--ink);
  display: inline-block;
  transform: translateY(0.06em);
  margin: 0 30px;
}
.hero-date {
  font-family: var(--font-body);
  /* Responsive — small phones get ~28px so "29 AUGUST 2026" fits on one
     line; desktop scales up to the original 70px. */
  font-size: clamp(28px, 7vw, 70px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* Welcome message — "Hello Friends & Family" + invitation copy.
   The ANCHOR pins to the gap between the names (top:8vh) and the date
   (bottom:22vh on desktop, 8vh on mobile) and flex-centres its child so the
   body of copy lives at the exact midpoint between the two. The inner
   .hero-welcome handles parallax + fade as the user scrolls. */
.hero-welcome-anchor {
  position: absolute;
  top: 16vh;
  bottom: 30vh;          /* date sits at bottom:22vh + ~8vh breathing room */
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;            /* above .photo-strip / .hero-building */
}
.hero-welcome {
  width: 100%;
  text-align: center;
  padding: 0 6vw;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-welcome-heading {
  font-family: var(--font-body);   /* NewYork — same family as the date */
  font-weight: 500;
  font-size: 40px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: #7c6b58;
  margin: 0 0 32px;
  /* Nudges the heading 50px lower while leaving the paragraph below it
     dead-centred between the names and the date. */
  transform: translateY(50px);
}
.hero-welcome-body {
  font-family: var(--font-body);   /* NewYork */
  font-weight: 400;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  /* Shift the body 30px down — opens up the gap from the heading and
     pulls the paragraph 30px closer to the date below. */
  transform: translateY(30px);
}
@media (max-width: 720px) {
  /* Phone layout — names smaller so the welcome paragraph has room, and
     the welcome anchor sits below the names so the body never overlaps
     the script title above or the date below. */
  .hero-names {
    /* Was clamp(98px, 11vw, 170px) — too tall, dominates the viewport
       and forces overlap with the welcome paragraph. */
    font-size: clamp(56px, 14vw, 96px);
    /* Generous line-height + padding-bottom so the script "y" descender on
       "Audrey" (and the cursive end stroke on "Nicholas") sits fully inside
       the line-box. Earlier 1.05 / 0.12em values still clipped the y. */
    line-height: 1.35;
    padding-bottom: 0.4em;
    overflow: visible;
  }
  .hero-welcome-anchor {
    /* Push anchor down past the names + nav (names end ~ 16vh on phone),
       leave 12vh at the bottom so the date clears comfortably.
       Top nudged up 120px total on user request — keeps the welcome paragraph
       well clear of the date below. */
    top: calc(22vh - 180px);
    bottom: 12vh;
  }
  .hero-welcome {
    padding: 0 5vw;
  }
  .hero-welcome-heading {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 18px;
  }
  .hero-welcome-body {
    /* 30px wraps to 12+ lines on a phone and overflows the anchor.
       18px keeps the paragraph readable while letting it fit on screen. */
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: 0.03em;
  }
  .hero-date-parallax {
    bottom: 8vh;
  }
}

/* Date parallax wrapper — sits RIGHT BELOW the building (just under the steps),
   aligned with the bottom edge of the building, and parallaxes upward as the
   user scrolls. */
.hero-date-parallax {
  position: absolute;
  left: 0; right: 0;
  bottom: 22vh;
  display: flex; justify-content: center;
  pointer-events: none;
  z-index: 4;
  will-change: transform, opacity;
}

/* Countdown — pinned to the bottom-left of the viewport like a footer
   signature. Matches hero-date weight so it doesn't compete visually. */
.countdown {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
}
.countdown .cd-label { opacity: 0.7; }
.countdown .cd-rule {
  display: inline-block; width: 28px; height: 1px; background: var(--gold);
  transform: translateY(-4px);
}
.countdown .cd-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: normal;
  font-size: 25px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink);
}
.countdown .cd-unit { margin-left: 4px; font-weight: 700; }

.hero-caption {
  position: absolute;
  bottom: 9vh;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ink-2);
}
.hero-caption .scroll-arrow {
  display: block;
  margin: 12px auto 0;
  width: 1px; height: 48px;
  background: var(--ink-2);
  position: relative;
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Scroll-tied information cards drifting past the building */
.scroll-info {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scroll-info-card {
  position: absolute;
  max-width: 360px;
  padding: 30px;
  color: var(--ink);
  backdrop-filter: blur(2px);
  background: linear-gradient(180deg, rgba(235,229,214,0.6), rgba(235,229,214,0.2));
  border-top: 1px solid rgba(26,40,66,0.18);
}
.scroll-info-card .kicker { font-family: var(--font-body); letter-spacing: 0.5em; text-transform: uppercase; font-size: 11px; color: var(--ink-2); }
.scroll-info-card h3   { margin: 6px 0 10px; font-size: 32px; line-height: 1.1; color: var(--ink); }
.scroll-info-card p    { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* rotation indicator dial */
.rot-dial {
  position: absolute;
  bottom: 6vh;
  right: 48px;
  width: 120px; height: 120px;
  pointer-events: none;
  color: var(--ink-2);
}

/* ============================================================ */
/*  Envelope scene                                              */
/* ============================================================ */
.env-scene {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.env-stage {
  position: relative;
  /* match invitation aspect ratio (~1000 × 715) */
  width: 560px; height: 400px;
  transform-style: preserve-3d;
  transform-origin: center center;
}

/* Kraft envelope body — full rectangle behind everything. The body color shows
   through the V-cut at the top of the front pocket once the flap lifts.
   Pushed back in 3D so the invitation card (Z=-30) sits IN FRONT of it. */
.env-back {
  position: absolute; inset: 0;
  transform: translateZ(-100px);
  /* Cream envelope — base #fff4e6 with subtle highlight + shadow stops so the
     paper still reads dimensional rather than flat. */
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(120,90,50,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #fffaf0 0%, #fff4e6 60%, #ead8be 100%);
  border-radius: 4px;
  box-shadow:
    inset 0 0 60px rgba(160,120,70,0.12),
    0 40px 80px -40px rgba(40,30,20,0.30);
  overflow: hidden;
}
/* subtle paper fiber texture */
.env-back-paper {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(43deg, rgba(80,50,20,0.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(127deg, rgba(255,240,210,0.04) 0 1px, transparent 1px 11px);
  mix-blend-mode: multiply;
  opacity: 0.7;
}

/* Envelope front pocket — kraft rectangle with V-cut at the top so the card peeks
   above when lifting. The V edges start at the TOP CORNERS of the envelope and meet
   at the center, forming the classic envelope silhouette. */
.env-front {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background:
    linear-gradient(180deg, #fff8ec 0%, #fff4e6 70%, #ead8be 100%);
  border-radius: 4px;
  /* V starts at TOP-LEFT and TOP-RIGHT corners, meets at center ~70% down */
  clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 100%, 0 100%);
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.45))
    drop-shadow(0 -2px 4px rgba(160,120,70,0.18));
  z-index: 2;
}
.env-front-paper {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(43deg, rgba(80,50,20,0.05) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* Flap — downward-pointing triangle, pivots from top edge. Apex meets pocket V apex.
   Flap covers the FULL width and goes from top corners to center, matching the
   front pocket's V-cut so the closed envelope reads as a single shape.
   When rotated, both faces are visible (backface-visibility visible) so the flap
   reads as a piece of paper with subtle shading on both sides. */
.env-flap {
  position: absolute; top: 0; left: 0; right: 0;
  height: 70%; /* matches V apex on front so flap edge sits flush with pocket V */
  transform-style: preserve-3d;
  transform-origin: top center;
  z-index: 4;
  pointer-events: none;
  backface-visibility: visible;
}
.env-flap-inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.30) 0%, transparent 60%),
    linear-gradient(180deg, #fff8ec 0%, #fff4e6 70%, #ead8be 100%);
  /* downward-pointing triangle; pivots up from top edge */
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter:
    drop-shadow(0 2px 3px rgba(160,120,70,0.25))
    drop-shadow(0 1px 0 rgba(255,255,255,0.35));
  backface-visibility: visible;
}

/* Invitation card — track holds the card, translates UP as the envelope opens
   and rotateY-flips on the Y axis to reveal the ceremony/reception back. */
.env-card-track {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transform-style: preserve-3d;
}
.env-card-face {
  position: absolute;
  width: 92%;
  aspect-ratio: 1000 / 715;
  display: grid; place-items: center;
  border-radius: 2px;
  pointer-events: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.env-card-front {
  background: transparent;
  border: 0;
}
.env-card-back {
  background: transparent;
  border: 0;
  transform: rotateY(180deg);
}
/* drop-shadow lives on the IMG so it doesn't break the 3D backface pipeline. */
.env-card-face img {
  width: 100%; height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(26,40,66,0.35));
}

/* RSVP button — sits BELOW the envelope on the page. */
.env-rsvp-btn {
  position: absolute;
  left: 50%; bottom: -118px;   /* was -88px — extra 30px of clearance from the envelope */
  transform: translate(-50%, 0);
  background: #f0d9a6;
  color: #5c1620;
  border: 1.5px solid #5c1620;
  padding: 14px 44px 14px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  z-index: 30;
}
.env-rsvp-btn:hover {
  background: #5c1620;
  color: #f0d9a6;
  transform: translate(-50%, -2px) scale(1.02) !important;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.5);
}

/* Mobile — scale the envelope stage so the invitation card never overflows
   the viewport, and bring the RSVP button closer / make it smaller so it
   sits centred under the (smaller) invite. */
@media (max-width: 720px) {
  .env-stage {
    /* Stage was 560×400 — wider than a phone screen. Cap to 90vw, preserving
       the 1.4:1 aspect ratio so the card art still reads cleanly. */
    width: min(90vw, 420px);
    height: calc(min(90vw, 420px) * 0.714);
  }
  .env-rsvp-btn {
    /* Tighter clearance under the smaller card + smaller padding/typography
       so the whole button still feels balanced against the invite above. */
    bottom: -88px;
    padding: 12px 32px;
  }
  .env-rsvp-mark {
    font-size: 20px;
  }
  .env-rsvp-line {
    font-size: 8px;
    letter-spacing: 0.30em;
  }
}
.env-rsvp-mark {
  font-family: ui-serif, 'New York', 'Times New Roman', Times, serif;
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: none;
}
.env-rsvp-line {
  font-size: 9px;
  letter-spacing: 0.35em;
  opacity: 0.75;
}

/* Wax seal — sits on the V apex when closed, fades as the flap opens. */
.env-seal-wrap {
  position: absolute;
  left: 50%; top: 70%;
  width: 86px; height: 86px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* Saddle / chestnut wax — keyed off #6b3508 to match the new swatch.
     Highlight stop adds a warm sheen and the shadow stop deepens the edge
     so the seal still reads as 3D wax. */
  background: radial-gradient(circle at 35% 30%, #8a4a16 0%, #6b3508 65%, #3d1d05 100%);
  color: #f3e9d0;
  border: 2px solid #3d1d05;
  box-shadow: 0 10px 22px -6px rgba(0,0,0,0.45), inset 0 3px 6px rgba(255,225,180,0.18), inset 0 -6px 14px rgba(0,0,0,0.40);
  display: grid; place-items: center;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
/* Logo pressed into the wax — using the cream logo so the A&N stands out
   against the dark chocolate base. */
.env-seal-logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.45));
}
/* Legacy text monogram fallback (kept for compatibility, hidden when the
   logo image is present). */
.env-seal-monogram {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.06em;
  font-style: italic;
  display: flex; align-items: center; gap: 2px;
}
.env-seal-monogram span {
  font-family: var(--font-display); font-style: normal; font-size: 14px; color: #f3e9d0;
  margin: 0 1px;
}

/* ============================================================ */
/*  RSVP SHEET                                                  */
/* ============================================================ */
.rsvp-overlay {
  position: fixed; inset: 0;
  background: rgba(26,40,66,0.35);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: grid; place-items: center;
  /* origin point for the unfurl — set inline from JS to the envelope seal */
  --ox: 50vw;
  --oy: 50vh;
  /* circular reveal starting from origin, expanding to cover the viewport */
  clip-path: circle(0px at var(--ox) var(--oy));
  animation: envUnfurl .9s cubic-bezier(.2,.7,.15,1) forwards;
}
@keyframes envUnfurl {
  from { clip-path: circle(0px at var(--ox) var(--oy)); }
  to   { clip-path: circle(160% at var(--ox) var(--oy)); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.rsvp-sheet {
  width: min(460px, 92vw);
  height: min(820px, 92vh);
  background: #ffffff;
  border: 1px solid rgba(26,40,66,0.18);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  /* a gentler content rise that blooms after the circle clears */
  transform-origin: var(--ox) var(--oy);
  animation: sheetBloom .8s cubic-bezier(.2,.7,.2,1);
}
@keyframes sheetBloom {
  0%   { transform: scale(.55); opacity: 0; }
  45%  { opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.rsvp-bar {
  position: relative;
  padding: 22px 24px 18px;
  border-bottom: 0;
}
.rsvp-bar-label {
  text-align: center;
  font-size: 14px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--ink);
}
.rsvp-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--ink);
}
.rsvp-back {
  position: absolute; top: 20px; left: 20px;
  background: none; border: 0; font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--ink);
  padding: 0 4px;
  transition: opacity 0.15s;
}
.rsvp-back:hover { opacity: 0.65; }
.rsvp-progress-wrap {
  margin-top: 18px;
  height: 4px; border-radius: 2px;
  background: #e8ebf1;
  overflow: hidden;
}
.rsvp-progress {
  height: 100%; background: var(--ink);
  transition: width 0.5s cubic-bezier(.2,.7,.2,1);
}

.rsvp-body {
  flex: 1;
  padding: 40px 32px 16px;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 14px;
}

/* A&N watermark anchored to the bottom of the modal — fills the empty
   blank area below the form content so every step has a brand presence. */
.rsvp-mark {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 8px 0 18px;
  flex-shrink: 0;
}
.rsvp-mark img {
  height: 64px;
  width: auto;
  display: block;
  opacity: 0.92;
}

.rsvp-step-fade {
  display: flex; flex-direction: column; gap: 18px;
  animation: fade .5s ease;
}

.rsvp-h {
  /* Heading uses NewYork serif (--font-body) so questions like "Do you have
     any dietary restrictions?" stay easy to read. The Sloop script is
     reserved for display moments like the names in the hero. */
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 4px 0 0;
  color: var(--ink);
}
.rsvp-p {
  font-size: 18px; line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.rsvp-field { display: block; }
.rsvp-input {
  width: 100%;
  padding: 16px 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  font: 16px var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.rsvp-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,40,66,0.08); }
.rsvp-input.error { border-color: var(--accent); }
.rsvp-err { color: var(--accent); font-size: 13px; margin: -6px 0 6px; }

.rsvp-textarea {
  width: 100%; min-height: 160px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  font: 15px var(--font-body);
  color: var(--ink);
  resize: vertical;
  outline: none;
}

.rsvp-btn {
  display: block; width: 100%;
  padding: 16px 12px;
  border: 0;
  border-radius: 0;
  font: 14px var(--font-body);
  letter-spacing: 0.42em; text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.rsvp-btn.primary { background: var(--ink); }
.rsvp-btn.muted   { background: var(--ink-soft); cursor: not-allowed; }
.rsvp-btn.outlined {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.rsvp-btn.primary:hover { background: var(--ink-2); }

.rsvp-date {
  display: flex; align-items: center; gap: 8px;
  font: 16px var(--font-body);
  color: var(--ink);
  margin: 0 0 6px;
}
.rsvp-cal {
  display: inline-block; width: 18px; height: 18px; border: 1px solid var(--ink); position: relative; top: 2px; border-radius: 2px;
}
.rsvp-cal::before {
  content: ''; position: absolute; top: 4px; left: 2px; right: 2px; height: 1px; background: var(--ink);
}

.rsvp-guest-list { display: flex; flex-direction: column; gap: 14px; }
.rsvp-guest-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 0;
}
.rsvp-guest-name { font-size: 15px; color: var(--ink); }
.rsvp-choice { display: flex; gap: 8px; }
.rsvp-pill {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 13px var(--font-body);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: 0.2s;
}
.rsvp-pill.active { background: var(--ink); color: #fff; }
.rsvp-pill.active.decline { background: var(--accent); border-color: var(--accent); }

.rsvp-diet-label { font-size: 18px; color: var(--ink-2); }

/* Household disambiguation picker — when the typed name matches multiple
   invitations, the guest picks theirs from this list. */
.rsvp-candidate-list {
  display: flex; flex-direction: column; gap: 10px;
  margin: 4px 0 8px;
}
.rsvp-candidate {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 15px var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rsvp-candidate:hover {
  background: var(--ink);
  color: #fff;
}
.rsvp-candidate-count {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--gold);
  color: #fff;
  font: 13px var(--font-body);
  font-weight: 600;
}
.rsvp-candidate-label {
  flex: 1;
  line-height: 1.35;
}

/* Confirmation list — shown on the email-anchor step right after a
   household is picked, before attendance. */
.rsvp-confirm-list {
  list-style: none;
  margin: 4px 0 8px;
  padding: 14px 18px;
  background: var(--paper-2);
  border: 1px solid rgba(40,30,11,0.18);
}
.rsvp-confirm-list li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
}
.rsvp-confirm-list li::before {
  content: '·';
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 700;
}

/* Household checklist — replaces the old confirm-list bullet view.
   Each row is a label-wrapped checkbox so the whole row is a click target. */
.rsvp-checklist {
  list-style: none;
  margin: 4px 0 14px;
  padding: 8px 18px;
  background: var(--paper-2);
  border: 1px solid rgba(40,30,11,0.18);
}
.rsvp-checklist li {
  margin: 0;
}
.rsvp-checklist li + li {
  border-top: 1px solid rgba(40,30,11,0.10);
}
.rsvp-check-row {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  user-select: none;
}
.rsvp-check-row input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-check-mark {
  width: 18px; height: 18px;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  position: relative;
}
.rsvp-check-mark::after {
  content: '✓';
  color: #fff;
  font-size: 13px;
  line-height: 1;
}
.rsvp-check-row input:not(:checked) ~ .rsvp-check-mark { background: #fff; border: 1px solid var(--ink); }
.rsvp-check-row input:not(:checked) ~ .rsvp-check-mark::after { content: ''; }
.rsvp-check-row input:not(:checked) ~ .rsvp-check-name {
  color: var(--ink-2);
  text-decoration: line-through;
  text-decoration-color: rgba(40,30,11,0.35);
}
.rsvp-check-name { line-height: 1.4; }

/* Tertiary link (e.g. "Already RSVP'd? Update your response").
   Sits below the primary CTA on the first screen. */
.rsvp-link {
  background: none;
  border: 0;
  padding: 8px 4px;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: center;
}
.rsvp-link:hover { color: var(--ink); }

.rsvp-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: 15px; color: var(--ink);
}
.rsvp-check input { display: none; }
.rsvp-check-box {
  width: 18px; height: 18px; background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.rsvp-check-box::after {
  content: '✓'; color: #fff; font-size: 13px;
}
.rsvp-check input:not(:checked) ~ .rsvp-check-box { background: #fff; border: 1px solid var(--ink); }
.rsvp-check input:not(:checked) ~ .rsvp-check-box::after { content: ''; }

.rsvp-privacy {
  font-size: 13px; color: var(--ink-2);
  border-bottom: 1px solid var(--ink-soft);
  display: inline-block; padding-bottom: 2px;
  width: fit-content;
}

.rsvp-summary { margin: 12px 0; }
.rsvp-summary-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--ink-soft); padding-bottom: 6px; margin-bottom: 14px; font-size: 15px; }
.rsvp-summary-link {
  background: none; border: 0;
  font: 15px var(--font-body);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 0;
}
.rsvp-summary-link:hover { color: var(--gold); }
.rsvp-summary-title { font-weight: 600; display: flex; justify-content: space-between; align-items: center; padding-bottom: 4px; font-size: 18px; }
.rsvp-summary-cal { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink-soft); }
.rsvp-summary-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.rsvp-summary-list li { display: flex; align-items: center; gap: 10px; }
.rsvp-summary-list li.declined { color: var(--ink-soft); text-decoration: line-through; }
.rsvp-summary-dot {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11px;
}
.rsvp-summary-dot.decline { background: var(--ink-soft); }

/* ============================================================ */
/*  ATTIRE BOARD                                                */
/* ============================================================ */
.attire-wrap {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  overflow-y: auto;
  display: none;
  color: var(--ink);
}
.attire-wrap.attire-active { display: block; animation: attireIn .6s ease; }
@keyframes attireIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.attire-topbar {
  position: sticky; top: 0; z-index: 10;
  padding: 18px 40px;
  background: linear-gradient(180deg, var(--paper) 60%, transparent);
  display: flex; justify-content: space-between;
}
.attire-back {
  background: none; border: 0; cursor: pointer;
  font: 13px var(--font-body);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink);
}

.attire-head {
  text-align: center;
  padding: 80px 40px 40px;
  /* No max-width — the head spans the full viewport so the script
     "Attire" title centres against the page rather than an 820px box.
     Body copy below has its own max-width so readability is preserved. */
  margin: 0 auto;
}
.attire-kicker { font: 12px var(--font-body); letter-spacing: 0.55em; text-transform: uppercase; color: var(--ink-2); }
.attire-title {
  font-family: var(--font-display);
  font-size: clamp(92px, 14vw, 220px);
  margin: 6px 0 4px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.attire-sub { font: 50px var(--font-body); letter-spacing: 0.45em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.attire-copy { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 720px; margin: 0 auto; }

.attire-divider {
  display: flex; align-items: center; gap: 24px;
  padding: 60px 40px;
  max-width: 1100px; margin: 0 auto;
}
.attire-divider::before, .attire-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gold);
}
.attire-divider span {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  color: var(--ink);
}

.attire-tabs {
  display: flex; justify-content: center; gap: 60px;
  margin-bottom: 24px;
}
.attire-tab {
  background: none; border: 0; cursor: pointer; padding: 8px 16px;
  color: var(--ink-2);
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 30px;
  font-style: normal;
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}
.attire-tab.on { color: var(--ink); border-color: var(--gold); }

.attire-intro {
  max-width: 760px; margin: 0 auto;
  text-align: center;
  font-size: 20px; line-height: 1.5; color: var(--ink-2);
  padding: 0 40px 36px;
}

.attire-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-rows: 8px;
  gap: 24px;
  padding: 20px 48px 80px;
  max-width: 1600px; margin: 0 auto;
}
.attire-pin {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.3);
}
.attire-pin:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(0,0,0,0.5);
}
.attire-pin-img {
  width: 100%; height: 100%;
  position: relative;
  background: var(--paper-2);
}
.attire-pin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.attire-pin-grain {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.attire-pin-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  color: #f5efde;
  opacity: 0;
  transition: opacity 0.2s;
}
.attire-pin:hover .attire-pin-cap { opacity: 1; }
.attire-pin-save {
  background: var(--accent); color: #fff;
  padding: 6px 12px;
  font: 11px var(--font-body);
  letter-spacing: 0.3em; text-transform: uppercase;
}
.attire-pin-title { font: italic 14px var(--font-body); }

.attire-footer {
  border-top: 1px solid var(--gold);
  padding: 40px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1600px; margin: 0 auto;
}
.attire-footer-mark { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.3em; }
.attire-footer-line { font: 12px var(--font-body); letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-2); }

/* ============================================================ */
/*  SECTION: STORY / DETAILS                                   */
/* ============================================================ */
.section {
  padding: 140px 48px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.section-label {
  font: 12px var(--font-body);
  letter-spacing: 0.6em; text-transform: uppercase; color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 104px);
  text-align: center;
  line-height: 1;
  margin: 0 0 60px;
  letter-spacing: -0.01em;
}
.section-title em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story-copy p {
  font-size: 20px; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 20px;
}
.story-copy p:first-letter {
  font-family: var(--font-display);
  font-size: 3em; float: left;
  line-height: 0.9; padding-right: 8px; padding-top: 4px;
  color: var(--gold);
}
.story-image {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--paper-3), var(--sand));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-2);
}
.story-image .placeholder-label {
  position: absolute; left: 18px; bottom: 18px;
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ink-2);
}
.story-image::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(26,40,66,0.08) 0 1px, transparent 1px 12px);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--ink);
  border: 1px solid var(--ink);
  max-width: 1200px;
  margin: 0 auto;
}
.detail-card {
  background: var(--paper);
  padding: 48px 30px;
  text-align: center;
}
.detail-card .icon {
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: normal; font-size: 48px; color: var(--gold); margin-bottom: 12px;
}
.detail-card h4 {
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 25px;
  margin: 0 0 8px;
}
.detail-card p {
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  margin: 0;
}

/* ============================================================ */
/*  DETAILS BOARD — full-screen overlay (mirrors AttireBoard)   */
/* ============================================================ */
.details-wrap {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  overflow-y: auto;
  display: none;
  color: var(--ink);
}
.details-wrap.details-active { display: block; animation: detailsIn .6s ease; }
@keyframes detailsIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.details-topbar {
  position: sticky; top: 0; z-index: 10;
  padding: 18px 40px;
  background: linear-gradient(180deg, var(--paper) 60%, transparent);
  display: flex; justify-content: space-between;
}
.details-back {
  background: none; border: 0; cursor: pointer;
  font: 13px var(--font-body);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink);
}

.details-head {
  text-align: center;
  padding: 80px 40px 40px;
  max-width: 820px; margin: 0 auto;
}
.details-kicker { font: 12px var(--font-body); letter-spacing: 0.55em; text-transform: uppercase; color: var(--ink-2); }
.details-title {
  font-family: var(--font-display);
  /* Tightened clamp + nowrap so "The Details" always sits on a single line.
     Min lowered to 56px so the heading still fits on small phones. */
  font-size: clamp(56px, 11vw, 180px);
  margin: 6px 0 4px;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.details-title em { font-family: var(--font-display); font-style: italic; color: var(--gold); }
.details-sub { font: 30px var(--font-body); letter-spacing: 0.45em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.details-copy { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 720px; margin: 0 auto; }

.details-divider {
  display: flex; align-items: center; gap: 24px;
  padding: 80px 40px 40px;
  max-width: 1100px; margin: 0 auto;
}
.details-divider::before, .details-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gold);
}
.details-divider span {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  color: var(--ink);
  font-style: italic;
}

.details-extra {
  max-width: 1000px; margin: 0 auto;
  padding: 0 48px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.extra-card {
  background: var(--paper-2);
  border: 1px solid rgba(40,30,11,0.15);
  padding: 32px 28px;
}
.extra-card h4 {
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.extra-card p {
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.extra-card p:last-child { margin-bottom: 0; }
.extra-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  background: var(--ink);
  border: 0;
  min-width: 130px;
  height: 50px;
  padding: 0 12px;
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background 0.2s;
}
.extra-link:hover {
  background: var(--ink-2);
  color: var(--paper);
}

.details-footer {
  border-top: 1px solid var(--gold);
  padding: 40px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1600px; margin: 0 auto;
}
.details-footer-mark { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.3em; }
.details-footer-mark img,
.attire-footer-mark img,
.hotels-footer-mark img { height: 44px; width: auto; display: block; }
.details-footer-line { font: 12px var(--font-body); letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 720px) {
  .details-extra { grid-template-columns: 1fr; padding: 0 20px 40px; gap: 20px; }
  .details-grid { grid-template-columns: 1fr; }
  .details-divider { padding: 40px 20px 20px; }
  .details-head { padding: 20px; }
}

/* ============================================================ */
/*  HOTELS BOARD — full-screen overlay (mirrors DetailsBoard)   */
/* ============================================================ */
.hotels-wrap {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper);
  overflow-y: auto;
  display: none;
  color: var(--ink);
}
.hotels-wrap.hotels-active { display: block; animation: hotelsIn .6s ease; }
@keyframes hotelsIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hotels-topbar {
  position: sticky; top: 0; z-index: 10;
  padding: 18px 40px;
  background: linear-gradient(180deg, var(--paper) 60%, transparent);
  display: flex; justify-content: space-between;
}
.hotels-back {
  background: none; border: 0; cursor: pointer;
  font: 13px var(--font-body);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink);
}

.hotels-head {
  text-align: center;
  padding: 80px 40px 40px;
  max-width: 820px; margin: 0 auto;
}
.hotels-kicker { font: 12px var(--font-body); letter-spacing: 0.55em; text-transform: uppercase; color: var(--ink-2); }
.hotels-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 160px);
  margin: 6px 0 4px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hotels-title em { font-family: var(--font-display); font-style: italic; color: var(--gold); }
.hotels-sub { font: 30px var(--font-body); letter-spacing: 0.45em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hotels-copy { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 720px; margin: 0 auto; }

.hotels-divider {
  display: flex; align-items: center; gap: 24px;
  padding: 80px 40px 40px;
  max-width: 1100px; margin: 0 auto;
}
.hotels-divider::before, .hotels-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gold);
}
.hotels-divider span {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  color: var(--ink);
  font-style: italic;
}

.hotels-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 0 48px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.hotel-card {
  background: var(--paper-2);
  border: 1px solid rgba(40,30,11,0.15);
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.hotel-card h4 {
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}
.hotel-card p {
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 25px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.hotel-card p:last-child { margin-bottom: 0; }
.hotel-meta {
  font-size: 20px !important;
  color: var(--ink-2);
}
.hotel-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.hotel-meta a:hover { color: var(--gold); }
.hotel-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.hotel-link:hover { color: var(--gold); }
.hotel-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--paper-2);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.hotel-cta {
  align-self: flex-start;
  margin-top: 4px;
  font-family: 'New York', 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 20px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.hotel-cta:hover { color: var(--gold); }
.hotel-note {
  font-size: 12px !important;
  font-style: italic;
  color: var(--ink-2);
  opacity: 0.7;
  margin-top: 8px !important;
}
.hotel-qr-placeholder {
  margin-top: 8px;
  padding: 28px 16px;
  border: 1px dashed rgba(40,30,11,0.3);
  text-align: center;
  font: 13px var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hotels-footer {
  border-top: 1px solid var(--gold);
  padding: 40px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1600px; margin: 0 auto;
}
.hotels-footer-mark { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.3em; }
.hotels-footer-line { font: 12px var(--font-body); letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 720px) {
  .hotels-grid { grid-template-columns: 1fr; padding: 0 20px 40px; gap: 20px; }
  .hotels-divider { padding: 40px 20px 20px; }
  .hotels-head { padding: 20px; }
}

/* footer */
.site-footer {
  padding: 120px 48px 64px;
  text-align: center;
  background: var(--ink);
  color: var(--paper-2);
}
.site-footer .monogram {
  font-family: var(--font-display);
  font-size: 72px; margin-bottom: 8px;
}
.site-footer .monogram em { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 0.8em; }
.site-footer-logo {
  display: block;
  height: 120px;
  width: auto;
  margin: 0 auto 8px;
}
@media (max-width: 720px) {
  .site-footer-logo { height: 92px; }
}
.site-footer .line { font: 12px var(--font-body); letter-spacing: 0.5em; text-transform: uppercase; color: var(--paper-3); }
.site-footer .rule { width: 60px; height: 1px; background: var(--gold); margin: 24px auto; }

/* Tweaks panel */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 400;
  background: #fff; color: var(--ink);
  padding: 18px 20px;
  width: 280px;
  border: 1px solid var(--ink);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  font: 13px var(--font-body);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 { margin: 0 0 12px; font-family: var(--font-display); font-size: 18px; letter-spacing: 0.2em; text-transform: uppercase; }
.tweak-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.tweak-row label { font-size: 13px; }
.tweak-row input[type="text"] { width: 140px; padding: 4px 8px; border: 1px solid var(--ink-soft); font: 13px var(--font-body); }
.tweak-row button {
  background: none; border: 1px solid var(--ink); padding: 4px 10px; cursor: pointer; font: 11px var(--font-body); letter-spacing: 0.2em; text-transform: uppercase;
}

@media (max-width: 820px) {
  .nav { padding: 14px 16px; }
  /* Don't hide nav-links — guests need them to navigate. Just shrink the
     spacing + font so logo + Details/Attire/Hotels/RSVP all fit. */
  .nav-links { gap: 14px; font-size: 11px; letter-spacing: 0.2em; }
  .nav-cta { padding: 8px 12px; font-size: 10px; letter-spacing: 0.25em; }
  .section { padding: 80px 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .details-grid { grid-template-columns: 1fr; }
  .scroll-info-card { max-width: 80vw; padding: 20px; }
  .attire-masonry { padding: 20px; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .attire-head { padding: 20px; }
}

/* ============================================================ */
/*  MOBILE RESPONSIVE PASS — overlay typography + layout         */
/*  Caps oversized display headings and body sizes on phones so   */
/*  text doesn't overflow horizontally or crowd vertically.       */
/* ============================================================ */
@media (max-width: 720px) {
  /* — Attire — */
  .attire-head { padding: 80px 20px 24px; }
  .attire-title { font-size: clamp(56px, 18vw, 96px); }
  .attire-sub    { font-size: 18px; letter-spacing: 0.32em; margin-bottom: 14px; }
  .attire-copy   { font-size: 20px; line-height: 1.5; padding: 0 4px; }
  .attire-divider { padding: 36px 20px; gap: 14px; }
  .attire-divider span { font-size: clamp(34px, 10vw, 56px); }
  .attire-tabs   { gap: 28px; margin-bottom: 16px; }
  .attire-tab    { font-size: 18px; padding: 6px 8px; }
  .attire-intro  { font-size: 20px; line-height: 1.5; padding: 0 20px 24px; }
  .attire-pin-cap { padding: 8px 10px; }
  .attire-pin-title { font-size: 12px; }
  .attire-footer { padding: 24px 20px; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .attire-footer-line { font-size: 10px; letter-spacing: 0.3em; text-align: center; }

  /* — Details — */
  .details-head  { padding: 80px 20px 24px; }
  .details-title { font-size: clamp(48px, 16vw, 84px); }
  .details-sub   { font-size: 11px; letter-spacing: 0.32em; margin-bottom: 14px; }
  .details-copy  { font-size: 20px; line-height: 1.5; padding: 0 4px; }
  .details-divider { padding: 36px 20px; gap: 14px; }
  .details-divider span { font-size: clamp(28px, 8vw, 48px); }
  .details-grid  { grid-template-columns: 1fr; max-width: 100%; }
  .detail-card   { padding: 32px 20px; }
  .detail-card .icon { font-size: 36px; margin-bottom: 8px; }
  .detail-card h4 { font-size: 22px; }
  .detail-card p  { font-size: 13px; letter-spacing: 0.12em; }
  .extra-card    { padding: 22px 20px; }
  .extra-card h4 { font-size: 22px; }
  .extra-card p  { font-size: 14px; }
  .extra-link    { font-size: 11px; letter-spacing: 0.24em; }
  .details-footer { padding: 24px 20px; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .details-footer-line { font-size: 10px; letter-spacing: 0.3em; text-align: center; }

  /* — Hotels — */
  .hotels-head   { padding: 80px 20px 24px; }
  .hotels-title  { font-size: clamp(40px, 13vw, 72px); }
  .hotels-sub    { font-size: 11px; letter-spacing: 0.32em; margin-bottom: 14px; }
  .hotels-copy   { font-size: 20px; line-height: 1.5; padding: 0 4px; }
  .hotels-divider { padding: 36px 20px; gap: 14px; }
  .hotels-divider span { font-size: clamp(28px, 8vw, 48px); }
  .hotels-footer { padding: 24px 20px; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .hotels-footer-line { font-size: 10px; letter-spacing: 0.3em; text-align: center; }

  /* — RSVP modal — */
  .rsvp-h        { font-size: 22px; line-height: 1.25; }
  .rsvp-p        { font-size: 15px; line-height: 1.5; }
  .rsvp-input    { font-size: 16px; padding: 14px; }
  .rsvp-btn      { padding: 14px 12px; font-size: 12px; letter-spacing: 0.32em; }

  /* — Site footer — */
  .site-footer   { padding: 80px 24px 48px; }
}

/* Extra-small phones (≤ 380px wide) — push display sizes one notch smaller. */
@media (max-width: 380px) {
  .attire-title  { font-size: 48px; }
  .details-title { font-size: 42px; }
  .hotels-title  { font-size: 36px; }
  .nav-links     { gap: 10px; font-size: 10px; letter-spacing: 0.16em; }
  .nav-cta       { padding: 7px 10px; font-size: 9px; letter-spacing: 0.2em; }
}
