/* ============================================================
   LOMAR & SHERIKA — Wedding Website Design System
   All pages reuse these classes. Edit here, not in pages.
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --ivory: #FBF7EF;
  --ivory-2: #F5EEDF;
  --champagne: #F4ECD9;
  --champagne-2: #EADCBD;
  --espresso: #221b12;
  --espresso-2: #241d14;
  --ivory-on-dark: #f4ead4;
  --muted-on-dark: rgba(229, 214, 182, .8);
  --gold: #bd9544;
  --gold-deep: #a6792a;
  --gold-line: #c9a85c;
  --gold-soft: #c2a052;
  --gold-foil-hi: #f3dd92;
  --ink: #2f2918;
  --ink-2: #3a3322;
  --muted: #8a7a55;
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 36px);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  /* Semantic status colors — use these site-wide; never hardcode the hex */
  --danger: #a32d2d;
  --danger-bg: #fcebeb;
  --success: #2a6b3a;
  --success-bg: rgba(40, 120, 60, .1);
  --selected-row: #fdf4e1;
  /* System border-radius for form controls */
  --radius-control: 2px;
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Gold-foil shimmer ──────────────────────────────────────── */
.foil {
  background: linear-gradient(
    100deg,
    #8a6c25 0%, #b89139 18%, #e9cd7e 38%,
    var(--gold-foil-hi) 50%, #e9cd7e 62%,
    #b89139 82%, #8a6c25 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: foil 7s linear infinite;
}
@keyframes foil { to { background-position: -220% center; } }
@media (prefers-reduced-motion: reduce) { .foil { animation: none; } }

/* ── Double-rule invitation frame ───────────────────────────── */
.frame {
  position: relative;
  border: 1px solid var(--gold-soft);
  padding: clamp(28px, 5vw, 46px);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: .5px solid rgba(194, 160, 82, .55);
  pointer-events: none;
}

/* ── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: .46em;
  text-transform: uppercase;
  /* --gold-deep (#a6792a) is 3.65:1 on ivory — AA large-text only, NOT normal-text AA; --gold-line is 7.49:1 on dark */
  color: var(--gold-deep);
  font-weight: 400;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  padding: 14px 38px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: var(--sans);
  font-weight: 400;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn--ghost {
  background: transparent;
  color: var(--gold-deep);
  border-color: var(--gold-soft);
}
.btn--ghost:hover { background: var(--champagne); }
.btn--on-dark {
  background: transparent;
  color: var(--ivory-on-dark);
  border-color: var(--gold-line);
}
.btn--on-dark:hover { background: rgba(201, 168, 92, .12); }
.btn:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
}
/* Shared small / icon button sizes (moved here from admin.html) */
.btn--sm {
  padding: 8px 20px;
  font-size: 10px;
}
.btn--icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  border-radius: var(--radius-control);
  transition: color .15s;
}
.btn--icon:hover { color: var(--gold-deep); }
.btn--icon:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 2px;
}

/* ── Add-to-Calendar — one primary .ics + quiet online links ──── */
.cal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cal-secondary {
  margin: 0;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-on-dark);          /* readable on the espresso band */
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cal-secondary-lead { letter-spacing: .16em; opacity: .85; margin-right: 2px; }
.cal-secondary a {
  color: var(--gold-line);              /* on-dark gold */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.cal-secondary a:hover { color: var(--ivory-on-dark); border-color: var(--gold-line); }
.cal-secondary a:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
  border-radius: 2px;
}
.cal-dot { color: rgba(201, 168, 92, .5); }

@media (max-width: 520px) {
  .cal-secondary { gap: 6px 12px; }
  .cal-secondary-lead { flex-basis: 100%; text-align: center; }
}

/* ── Dark section + watermark ───────────────────────────────── */
.section--dark {
  position: relative;
  background: var(--espresso);
  color: var(--ivory-on-dark);
  overflow: hidden;
}
/* On dark sections, restore the lighter gold so eyebrow stays visible */
.section--dark .eyebrow { color: var(--gold-line); }
.section--dark h2,
.section--dark h3 { color: var(--ivory-on-dark); }
.watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: min(40vw, 300px);
  line-height: 1;
  color: rgba(201, 168, 92, .07);
  pointer-events: none;
  user-select: none;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }        /* line ~40 sets smooth unconditionally */
  .faq-chevron, .nav-burger span, .nav-links { transition: none; }
}

/* Desktop-only reveal — no rules below 1200px, so phones/tablets render instantly */
@media (min-width: 1200px) {
  .reveal-lg {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal-lg.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-lg { opacity: 1; transform: none; transition: none; }
}

/* ── Sprig divider ──────────────────────────────────────────── */
.sprig { display: block; margin: 0 auto; }
.sprig-wrap { text-align: center; margin: clamp(24px, 4vw, 40px) 0; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section {
  padding: clamp(48px, 7vw, 88px) 0;
}
.section--champagne { background: var(--champagne); }
.section--ivory-2 { background: var(--ivory-2); }

/* ── Sticky navigation ──────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Slight translucency so the backdrop-filter frosted effect is visible */
  background: rgba(251, 247, 239, .92);
  border-bottom: 1px solid rgba(189, 149, 68, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--gold-deep);
  text-decoration: none;
  letter-spacing: .04em;
}
.nav-brand:hover { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color .2s;
  /* Tap target ≥ 44px tall */
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Active page indicator */
.nav-links a[aria-current="page"] {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold-line);
  text-decoration-thickness: 1.5px;
}
.nav-links a.nav-cta {
  background: var(--gold);
  color: #fff;
  padding: 8px 22px;
  border-radius: 999px;
  letter-spacing: .18em;
}
.nav-links a.nav-cta:hover { background: var(--gold-deep); color: #fff; }
/* CTA pill: no underline even when it carries aria-current */
.nav-links a.nav-cta[aria-current="page"] {
  text-decoration: none;
  color: #fff;
}
/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--gold-deep);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-burger:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 2px; }
/* Burger open state */
.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0; right: 0;
    z-index: 101; /* sits above .site-nav's z-index:100 */
    background: var(--ivory);
    border-bottom: 1px solid rgba(189, 149, 68, .2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 20px;
    transform: translateY(-110%);
    opacity: 0;
    /* visibility:hidden removes the menu from tab order while it's closed;
       the 0s delay on visibility matches the close-animation duration so it
       flips hidden only after the slide-up finishes (no visual jump). */
    visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility 0s .28s;
    pointer-events: none;
  }
  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    /* visibility flips to visible immediately (0s delay) so links are
       focusable as soon as the open animation begins. */
    visibility: visible;
    transition: transform .28s ease, opacity .28s ease, visibility 0s 0s;
    pointer-events: auto;
  }
  .nav-links li { text-align: center; }
  .nav-links a {
    display: block;
    padding: 13px var(--pad);
    letter-spacing: .22em;
  }
  /* On the vertical mobile menu a floating text-underline reads oddly; mark the
     current page with bold gold instead (the underline stays on desktop). */
  .nav-links a[aria-current="page"] {
    text-decoration: none;
    color: var(--gold-deep);
    font-weight: 500;
  }
  .nav-links a.nav-cta {
    margin: 10px auto 0;
    display: inline-block;
    padding: 10px 32px;
  }
}

/* ── Tablet nav tier — keeps all 7 links (incl. injected Guestbook) on one
   line down to 701px. Base tracking/gap needs ~779px at a 768px viewport,
   so iPad portrait wraps without this. */
@media (min-width: 701px) and (max-width: 899px) {
  .nav-links { gap: 12px; }
  .nav-links a { letter-spacing: .2em; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: clamp(40px, 6vw, 76px) var(--pad);
  background: var(--ivory);
  text-align: center;
}
.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.crest { display: block; margin: 0 auto clamp(24px, 4vw, 36px); }
.hero-eyebrow { margin-bottom: 20px; }
.hero-names {
  font-family: var(--serif);
  font-size: clamp(22px, 8.5vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 24px;
  white-space: nowrap;
}
.hero-date-formal {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 8px;
}
.hero-location {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 40px);
}
/* On phones a two-venue line wraps; scale it down + tighten tracking so it
   stays on one line (degrades gracefully if a venue name is very long). */
@media (max-width: 600px) {
  .hero-location {
    font-size: clamp(8px, 2.55vw, 11px);
    letter-spacing: .05em;
  }
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(12px, 3vw, 28px);
}
.countdown-unit:not(:last-child) {
  border-right: 1px solid rgba(189, 149, 68, .25);
}
.countdown-num {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}
.countdown-label {
  font-size: 9px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
}
.countdown-anniversary-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--gold-deep);
  text-align: center;
  margin: -14px 0 clamp(28px, 4vw, 40px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Save-the-date band (dark) ──────────────────────────────── */
.std-band {
  padding: clamp(44px, 7vw, 84px) var(--pad);
  text-align: center;
}
.std-band .container { position: relative; z-index: 1; }
.std-date {
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  margin: 16px 0 18px;
}
.std-sub {
  font-style: italic;
  color: var(--muted-on-dark);
  margin-bottom: 32px;
  font-size: clamp(14px, 2vw, 17px);
}

/* ── Our story (homepage teaser — calm two-column) ──────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.story-text-col h2 { margin-bottom: 20px; }
#story-paragraphs p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.9;
}
/* Framed feature photo — matted double-keyline frame (echoes the gold rings
   on the monogram + wedding-party photos). No text wrapping. */
.story-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  outline: 1px solid rgba(189, 149, 68, .32);
  outline-offset: 6px;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }

/* Full story page — centered reading column with a feature photo on top */
.story-full .story-body { max-width: 660px; margin: 0 auto; }
.story-full .story-photo { width: min(100%, 360px); margin: 0 auto clamp(28px, 4vw, 44px); }
#fullstory-paragraphs p {
  margin: 0 0 18px;
  color: var(--ink-2);
  line-height: 1.9;
}
.story-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
}
.story-link:hover { color: var(--gold); border-color: var(--gold); }
.photo-placeholder {
  background: var(--champagne-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  letter-spacing: .04em;
}
.photo-placeholder svg { opacity: .35; }
/* Signature sign-off at the end of the full story */
.story-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--gold-deep);
  text-align: right;
  margin: clamp(30px, 5vw, 48px) 0 0;
}

@media (max-width: 760px) {
  /* Stack into one centered column */
  .story-grid { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 40px); }
  .story-photo { width: min(100%, 340px); margin: 0 auto; order: -1; }  /* photo first when stacked */
}

/* ── The Day + Schedule ─────────────────────────────────────── */
.day-intro { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.day-intro h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 12px; }
.day-date-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2.5vw, 21px);
  color: var(--muted);
}
.venue-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(32px, 5vw, 48px);
}
.venue-card {
  border: 1px solid var(--champagne-2);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  background: var(--ivory);
  border-radius: 2px;
}
.venue-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--gold);
}
.venue-card h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 10px;
}
.venue-card-time {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 8px;
}
.venue-card-where {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 580px) {
  .venue-cards { grid-template-columns: 1fr; }
}

/* Schedule strip */
.schedule-strip {
  border-top: 1px solid var(--champagne-2);
}
.schedule-item {
  display: grid;
  grid-template-columns: 80px 44px 1fr;
  align-items: center;
  gap: 16px;
  padding: clamp(14px, 2vw, 20px) 0;
  border-bottom: 1px solid var(--champagne-2);
}
.schedule-time {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gold-deep);
  white-space: nowrap;
}
.schedule-icon {
  width: 36px;
  height: 36px;
  background: var(--champagne);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.schedule-icon svg { width: 18px; height: 18px; }
.schedule-label {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
}
.schedule-sub {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 460px) {
  .schedule-item {
    grid-template-columns: 70px 36px 1fr;
    gap: 10px;
  }
}

/* ── RSVP teaser (dark) ─────────────────────────────────────── */
.rsvp-teaser {
  padding: clamp(48px, 7vw, 88px) var(--pad);
  text-align: center;
}
.rsvp-teaser .container { position: relative; z-index: 1; }
.rsvp-teaser h2 {
  font-size: clamp(28px, 5vw, 52px);
  margin-bottom: 16px;
}
.rsvp-deadline {
  font-style: italic;
  color: var(--muted-on-dark);
  margin-bottom: 36px;
  font-size: clamp(14px, 2vw, 17px);
}

/* ── Gifts teaser ───────────────────────────────────────────── */
.gifts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 32px);
  max-width: 440px;
  margin: clamp(28px, 4vw, 40px) auto 0;
}
.gift-card {
  border: 1px solid var(--champagne-2);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  background: var(--ivory);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .2s, box-shadow .2s;
}
.gift-card:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 4px 24px rgba(189, 149, 68, .1);
}
.gift-card:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
}
.gift-card-icon {
  color: var(--gold);
  line-height: 0;
  margin-bottom: 14px;
}
.gift-card h3 { font-size: clamp(18px, 2.5vw, 22px); margin-bottom: 10px; }
.gift-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 20px; }
@media (max-width: 560px) {
  .gifts-grid { grid-template-columns: 1fr; }
}

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: clamp(32px, 5vw, 52px) auto 0; }
.faq-item {
  border-bottom: 1px solid var(--champagne-2);
}
.faq-item:first-child { border-top: 1px solid var(--champagne-2); }
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 22px) 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 400;
  color: var(--ink);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { display: none; }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .25s;
}
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-body {
  padding: 0 0 clamp(16px, 2.5vw, 22px);
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}
.faq-summary:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 2px;
}

/* ── FAQ pager ──────────────────────────────────────────────── */
.faq-pager {
  max-width: 720px;
  margin: clamp(22px, 4vw, 34px) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 40px);
}
.faq-pager-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* match the site-wide >=44px tap target */
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: none;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}
.faq-pager-btn:hover:not(:disabled) { color: var(--ink); }
.faq-pager-btn:disabled { opacity: .3; cursor: default; }
.faq-pager-btn:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
}
.faq-pager-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 96px;
  text-align: center;
}

/* ── Reveal-pending placeholder (un-revealed sections) ──────────── */
/* Belt-and-suspenders: [hidden] loses to .venue-cards{display:grid}. */
.venue-cards[hidden], .schedule-strip[hidden] { display: none !important; }
.reveal-pending {
  max-width: 600px;
  margin: 4px auto 0;
  padding: clamp(30px, 5vw, 48px) clamp(24px, 4vw, 44px);
  text-align: center;
  background: var(--ivory);
  border: 1px solid rgba(189, 149, 68, .28);
  border-radius: 3px;
}
.reveal-pending-mark { color: var(--gold); display: flex; justify-content: center; margin-bottom: 12px; }
.reveal-pending-msg {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.7;
  color: var(--ink-2);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--espresso-2);
  color: var(--muted-on-dark);
  padding: clamp(40px, 6vw, 64px) var(--pad) clamp(28px, 4vw, 40px);
  text-align: center;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-monogram {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--gold-line);
  margin-bottom: 6px;
}
.footer-date {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(201, 168, 92, .6);
  margin-bottom: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.footer-nav a {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color .2s;
  /* Tap target ≥ 44px */
  padding-top: 10px;
  padding-bottom: 10px;
  display: inline-block;
}
.footer-nav a:hover { color: var(--gold-line); }
.footer-nav a:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer-rule {
  width: 60px;
  height: 1px;
  background: rgba(201, 168, 92, .25);
  margin: 0 auto 20px;
}
.footer-made {
  font-style: italic;
  font-size: 13px;
  color: rgba(201, 168, 92, .4);
}

/* ── RSVP Page ──────────────────────────────────────────────── */
.page-hero-lite {
  padding: clamp(36px, 6vw, 60px) var(--pad) clamp(24px, 4vw, 36px);
  text-align: center;
  background: var(--ivory);
  border-bottom: 1px solid var(--champagne-2);
}
.page-hero-lite .crest { width: 80px; height: 80px; margin-bottom: 20px; }
.page-hero-lite h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin-bottom: 10px;
}
.page-hero-lite .eyebrow { margin-bottom: 16px; }

/* RSVP form */
.rsvp-section {
  padding: clamp(36px, 6vw, 60px) var(--pad);
}
.rsvp-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.form-field {
  margin-bottom: clamp(20px, 3vw, 28px);
}
.form-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 400;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--ivory);
  border: 1px solid var(--champagne-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  outline: none;
  transition: border-color .2s;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: .5;          /* soft — clearly a placeholder (also overrides Firefox's default fade) */
  font-weight: 300;
}
.form-input:focus-visible,
.form-textarea:focus-visible {
  border-color: var(--gold-soft);
  outline: 2px solid var(--gold-line);
  outline-offset: 0;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-actions { margin-top: clamp(24px, 4vw, 36px); text-align: center; }
.rsvp-success {
  display: none;
  text-align: center;
  padding: clamp(32px, 5vw, 52px) 0;
}
.rsvp-success h2 { color: var(--gold-deep); margin-bottom: 12px; }
.rsvp-success p { color: var(--muted); }
.rsvp-success.is-visible { display: block; }
.form-toast {
  padding: 14px 20px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.form-toast.is-visible { display: block; }
.form-toast--bad { background: var(--danger-bg); color: var(--danger); border: 1px solid #f5c6c2; }

/* ── Gallery Page ───────────────────────────────────────────── */
/* Unified vertical padding — matches .section scale; no horizontal pad here
   because .container inside carries var(--pad) */
.gallery-section { padding: clamp(64px, 10vw, 120px) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(10px, 2vw, 18px);
  margin-top: clamp(28px, 4vw, 40px);
}
/* Allow 2 columns on narrow phones (minmax(240px) forced 1-col below ~480px) */
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
.gallery-tile {
  background: var(--champagne-2);
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: opacity .2s;
}
.gallery-tile:hover { opacity: .9; }
.gallery-tile:focus-visible {
  outline: 2px solid var(--gold-line);
  outline-offset: 2px;
}
.gallery-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  font-size: 12px;
  font-style: italic;
  /* Solid champagne bar so text reads over any photo */
  color: var(--ink-2);
  background: rgba(244, 236, 217, .96);
  width: 100%;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(34, 27, 18, .95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.is-open { display: flex; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 2px;
  object-fit: contain;
}
.lightbox-placeholder {
  background: var(--champagne-2);
  width: clamp(280px, 60vw, 700px);
  height: clamp(300px, 55vh, 580px);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
}
.lightbox-caption {
  color: var(--muted-on-dark);
  font-style: italic;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--ivory-on-dark);
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  /* Minimum 44px hit area */
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:focus-visible { outline: 2px solid var(--gold-line); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(201, 168, 92, .15);
  border: 1px solid rgba(201, 168, 92, .3);
  color: var(--ivory-on-dark);
  cursor: pointer;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background .2s;
}
.lightbox-prev { left: clamp(8px, 3vw, 32px); }
.lightbox-next { right: clamp(8px, 3vw, 32px); }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(201, 168, 92, .28); }
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible { outline: 2px solid var(--gold-line); }
/* Disabled state — gallery.js sets disabled attr at first/last image */
.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}
/* Counter pill — replaces inline style set by gallery.js */
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted-on-dark);
  background: rgba(34, 27, 18, .55);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Registry Page ──────────────────────────────────────────── */
/* Unified vertical padding — .container inside carries horizontal pad */
.registry-section { padding: clamp(64px, 10vw, 120px) 0; }
/* .registry-grid, .registry-card, .cash-gift-platforms, .cash-platform,
   .cash-platform-name, .cash-platform-handle, .qr-placeholder — removed;
   confirmed unused across all HTML and JS files (registry.html uses its own
   page-specific styles in a <style> block). */

/* ── Section headings shared pattern ────────────────────────── */
.section-heading { text-align: center; }
.section-heading h2 {
  font-size: clamp(28px, 5vw, 52px);
  margin-bottom: 16px;
}
.section-heading .eyebrow { margin-bottom: 16px; }
.section-heading p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 16px);
}

/* ── Shared utility classes ─────────────────────────────────── */

/* Demo / placeholder-content banner — champagne on-brand style.
   Page fixers: delete local .demo-banner blocks and use this. */
.demo-banner {
  background: var(--champagne);
  border-bottom: 1px solid var(--gold-line);
  color: var(--gold-deep);
  text-align: center;
  font-size: 13px;
  padding: 10px var(--pad);
  letter-spacing: .02em;
}
.demo-banner strong { font-weight: 500; }

/* Visually hidden — accessible off-screen text (moved from rsvp.html) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero subtitle paragraph — shared across rsvp / registry / bridalparty */
.page-hero-sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ── Skip link (a11y) ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--gold);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 999;
  transition: top .2s;
}
.skip-link:focus-visible { top: 8px; }
#main-content:focus { outline: none; }

/* ── Large-screen tier — desktop presence (mobile/tablet untouched) ───────
   Every value below only RAISES the top of an existing clamp() or widens a
   container, gated behind min-width, so anything under 1200px is unchanged. */
@media (min-width: 1200px) {
  :root {
    --maxw: 1400px;                 /* 1140 → much wider shell, use the space */
    --pad: clamp(20px, 5vw, 60px);
  }

  /* Baseline bump — lifts every text element that inherits its size. */
  body { font-size: 18px; }         /* 16 → 18 */

  .section { padding: clamp(48px, 7vw, 116px) 0; }

  /* Hero / save-the-date (card + name verified to fit at 900px/80px) */
  .hero-inner       { max-width: 900px; }
  .hero-names       { font-size: clamp(22px, 8.5vw, 80px); }
  .hero-date-formal { font-size: clamp(16px, 2.4vw, 24px); }   /* 19 → 24 */
  .hero-location    { font-size: 13px; }                        /* 11 → 13 */
  .countdown-num    { font-size: clamp(36px, 6vw, 82px); }      /* 68 → 82 */
  .countdown-label  { font-size: 11px; }                        /* 9 → 11 */
  .std-date         { font-size: clamp(38px, 8vw, 96px); }      /* 80 → 96 */
  .std-sub          { font-size: clamp(15px, 2vw, 20px); }      /* 17 → 20 */

  /* Nav + eyebrows */
  .nav-links a { font-size: 12px; }                             /* 10.5 → 12 */
  .eyebrow     { font-size: 13px; }                             /* 11 → 13 */

  /* Section headings */
  .section-heading h2 { font-size: clamp(28px, 5vw, 66px); }    /* 52 → 66 */
  .section-heading p  { font-size: clamp(16px, 1.9vw, 21px); max-width: 660px; }  /* 16 → 21 */
  .day-intro h2       { font-size: clamp(30px, 5vw, 66px); }    /* 52 → 66 */
  .day-date-line      { font-size: clamp(17px, 2.5vw, 24px); }  /* 21 → 24 */
  .rsvp-teaser h2     { font-size: clamp(28px, 5vw, 66px); }    /* 52 → 66 */
  .rsvp-deadline      { font-size: 15px; }
  .page-hero-lite h1  { font-size: clamp(36px, 6vw, 78px); }

  /* Story */
  #story-paragraphs p,
  #fullstory-paragraphs p { font-size: clamp(16px, 1.7vw, 21px); }  /* 17 → 21 */
  .story-signoff { font-size: clamp(20px, 3vw, 30px); }
  .story-link    { font-size: 16px; }
  .story-grid {
    max-width: 1240px;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(44px, 6vw, 120px);
  }

  /* The Day */
  .venue-cards      { max-width: 1080px; margin-left: auto; margin-right: auto; }
  .venue-card h3    { font-size: clamp(18px, 2.5vw, 28px); }    /* 24 → 28 */
  .venue-card-time  { font-size: clamp(28px, 4vw, 48px); }      /* 38 → 48 */
  .venue-card-where { font-size: 16px; }                        /* 13 → 16 */
  .schedule-time    { font-size: clamp(16px, 2vw, 24px); }      /* 20 → 24 */
  .schedule-label   { font-size: 20px; }                        /* 16 → 20 */
  .schedule-sub     { font-size: 16px; }                        /* 14 → 16 */

  /* FAQ — wider column + bigger Q/A */
  .faq-list, .faq-pager { max-width: 920px; }                  /* 720 → 920 */
  .faq-summary { font-size: clamp(17px, 2vw, 22px); }          /* 17 → 22 */
  .faq-body    { font-size: 18px; }                             /* 15 → 18 */

  /* Gifts teaser */
  .gifts-grid   { max-width: 600px; }
  .gift-card    { padding: clamp(32px, 4vw, 56px); }
  .gift-card h3 { font-size: 28px; }                            /* 22 → 28 */
  .gift-card p  { font-size: 17px; }                            /* 14 → 17 */

  /* Buttons + footer */
  .btn          { font-size: 13px; padding: 15px 42px; }        /* 11 → 13 */
  .footer-nav a { font-size: 12px; }                            /* 10 → 12 */
  .footer-date  { font-size: 12px; }                            /* 11 → 12 */
  .cal-secondary { font-size: 12px; }

  /* Subpage shared components */
  .page-hero-sub { font-size: 19px; max-width: 560px; }               /* 15 → 19, 480 → 560 */
  .form-label { font-size: 12.5px; }                                  /* 10.5 → 12.5 */
  .form-input, .form-textarea { font-size: 17px; padding: 16px 18px; }/* 15 → 17 */
  .form-toast { font-size: 16px; }                                    /* 14 → 16 */
  .rsvp-success h2 { font-size: clamp(32px, 4vw, 48px); }             /* RSVP thank-you moment */
  .rsvp-success p  { font-size: 20px; }
  .gallery-caption { font-size: 14px; padding: 12px 14px; }           /* 12 → 14 */
  .lightbox-caption { font-size: 17px; }                              /* 14 → 17 */
  .lightbox-counter { font-size: 13px; }                              /* 12 → 13 */
  .lightbox-placeholder { font-size: 16px; }                          /* 14 → 16 */
  .lightbox-prev, .lightbox-next { width: 56px; height: 56px; font-size: 24px; } /* 46/20 → 56/24 */
  .story-full .story-body { max-width: 720px; }                       /* 660 → 720 */
  .story-full .story-photo { width: min(100%, 440px); }               /* 360 → 440 */
  .demo-banner { font-size: 14px; }                                   /* 13 → 14 */

  /* a11y: muted body text ≥4.5:1 on desktop (mobile keeps #8a7a55).
     #6b5d3a is the existing guestbook-hint color: 6.04 on ivory,
     5.59 on ivory-2, 5.49 on champagne, 4.76 on champagne-2. */
  .page-hero-sub, .section-heading p, .faq-body, .faq-pager-label,
  .nav-links a, .hero-location, .countdown-label, .form-label,
  .venue-card-where, .schedule-sub, .gift-card p, .rsvp-success p,
  .photo-placeholder, .lightbox-placeholder { color: #6b5d3a; }

  /* a11y: focus ring ≥3:1 on light backgrounds (gold-line was 2.13:1) */
  .btn:focus-visible, .btn--icon:focus-visible, .nav-links a:focus-visible,
  .nav-burger:focus-visible, .faq-summary:focus-visible, .faq-pager-btn:focus-visible,
  .gallery-tile:focus-visible, .form-input:focus-visible, .form-textarea:focus-visible
  { outline-color: var(--gold-deep); }
  .btn--on-dark:focus-visible { outline-color: var(--gold-line); }  /* dark bands keep the brighter ring */

  /* a11y: small gold accents ≥4.5:1 on desktop; dark bands keep gold-line */
  .eyebrow, .story-link, .faq-pager-btn, .demo-banner { color: #8a6420; }
}

/* Ultra-wide — push type + width further on big monitors */
@media (min-width: 1600px) {
  :root { --maxw: 1480px; }
  body { font-size: 19px; }
  .section { padding: clamp(48px, 7vw, 132px) 0; }
  .hero-inner { max-width: 960px; }
  .story-grid { max-width: 1320px; }
  .section-heading h2, .day-intro h2, .rsvp-teaser h2 { font-size: clamp(28px, 5vw, 74px); }
  .section-heading p { font-size: 22px; }
  #story-paragraphs p, #fullstory-paragraphs p { font-size: 22px; }
  .faq-summary { font-size: 23px; }
  .faq-body { font-size: 19px; }
  .faq-list, .faq-pager { max-width: 960px; }
  .page-hero-sub { font-size: 20px; }
  .form-input, .form-textarea { font-size: 18px; }
}

/* ── Pointer-hover polish (mouse desktops only — phones/tablets untouched) ── */
@media (min-width: 1200px) and (hover: hover) {
  .nav-brand { transition: color .2s; }                      /* :hover color snaps today */
  .nav-links a.nav-cta { transition: color .2s, background .2s; }
  .story-link { transition: color .2s, border-color .2s; }
  .faq-summary { transition: color .2s; }
  .faq-summary:hover { color: var(--gold-deep); }            /* only clickable with no hover cue */
  .lightbox-close { transition: color .2s; }
  .lightbox-close:hover { color: var(--gold-line); }
  .btn:active { transform: translateY(1px); }                /* deliberate snap press */
}

@media print {
  .site-nav, .site-footer, .skip-link, .countdown, .hero-actions, .cal-actions,
  .btn, .nav-burger, .watermark, .demo-banner, .ls-intro__overlay,
  .lsm-btn, .lsm-tip { display: none !important; }
  .section--dark, .std-band, .rsvp-teaser { background: #fff !important; color: #000 !important; }
  body { background: #fff; color: #000; }
  .reveal, .reveal-lg { opacity: 1 !important; transform: none !important; }
}
