/* =================================================================
   Haowei & Hanzhi · September 27, 2026
   A one-page woodland wedding site, in the visual language of our
   paper invitation: cream paper, olive-green ink, black line-art.
   =================================================================

   Layout map:
     :root tokens          — colors, type, spacing
     base + paper texture  — body, fixed grain layer
     typography helpers    — display, kicker, body, lang spans
     nav                   — sticky top bar + language toggle
     hero                  — arched title, illustration, names, date
     dividers & motifs     — SVG ornaments between sections
     sections              — details card, schedule timeline, prose, FAQ
     rsvp                  — pressed-button CTA
     footer                — sign-off
     responsive            — mobile-first; widen at >=720px
     reveal animation      — fade-in-on-scroll
================================================================= */


/* -------- design tokens -------- */
:root {
  /* paper & ink */
  --paper:        #f3ead4;   /* warm cream — the page itself */
  --paper-soft:   #ece1c4;   /* deeper cream — cards, hairlines */
  --paper-edge:   #d9cba4;   /* warm tan — borders */
  --ink:          #1d1d1a;   /* near-black for line art */
  --ink-soft:     #3a3a32;   /* body copy */
  --olive:        #4a5a3a;   /* primary brand green */
  --olive-deep:   #354228;   /* hover / pressed */
  --olive-soft:   #7e8a64;   /* secondary green */
  --rose:         #b86a55;   /* tiny burnt-rose accent */

  /* Typography rule of thumb:
     · Fraunces only at display sizes ≥ 1.4rem  (hero names, section titles,
       time/venue numerals)  AND at small tracked eyebrows (≤ .92rem upper).
     · Cormorant for everything in the mid-zone (1 – 1.3rem) — body, leads,
       FAQ summaries, footer names, inline links. Avoid Fraunces here.
     · Three tracking presets, three sizes.  No in-between values. */
  --f-display: "Fraunces", "Cormorant Garamond", "Noto Serif SC", serif;
  --f-body:    "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --f-script:  "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  --f-zh-disp: "Ma Shan Zheng", "Noto Serif SC", serif;
  --f-zh-body: "Noto Serif SC", "Cormorant Garamond", serif;

  /* type ladder — every size on the page maps to one of these */
  --t-eyebrow:  .78rem;                          /* tracked uppercase eyebrows */
  --t-meta:     .92rem;                          /* hints, captions, secondary meta */
  --t-body:     1.05rem;                         /* body baseline */
  --t-lede:     1.18rem;                         /* lead paragraphs, FAQ Q */
  --t-display:  clamp(1.6rem, 5vw, 2.1rem);      /* venue, secondary display */
  --t-time:     clamp(2rem, 6.5vw, 2.6rem);      /* big time numerals */
  --t-h2:       clamp(1.9rem, 5.4vw, 2.4rem);    /* section titles */
  --t-hero:     clamp(2.4rem, 9vw, 5rem);        /* hero names — script needs more size */

  /* tracking presets — pick one, never improvise */
  --tr-tight:   .005em;
  --tr-mid:     .12em;
  --tr-wide:    .26em;

  /* rhythm */
  --r-1: .25rem;
  --r-2: .5rem;
  --r-3: 1rem;
  --r-4: 1.5rem;
  --r-5: 2.5rem;
  --r-6: 4rem;
  --r-7: 6rem;

  --maxw: 760px;
  --nav-h: 56px;
}

/* -------- reset-ish -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper texture: layered radial speckles + a faint vignette + SVG noise.
   Done with pseudo-elements so we never download a texture asset. */
body::before, body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
body::before {
  /* multi-stop dotted speckles to mimic paper fiber */
  background:
    radial-gradient(circle at 12% 18%, rgba(74,90,58,.06) 0 1px, transparent 2px) 0 0/22px 22px,
    radial-gradient(circle at 68% 42%, rgba(29,29,26,.05) 0 1px, transparent 2px) 0 0/31px 31px,
    radial-gradient(circle at 82% 78%, rgba(74,90,58,.05) 0 1px, transparent 2px) 0 0/19px 19px,
    radial-gradient(ellipse at center, transparent 55%, rgba(120,95,40,.10) 100%);
  mix-blend-mode: multiply;
  opacity: .9;
}
body::after {
  /* fine grain via inline SVG fractal noise */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .12  0 0 0 0 .09  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .22;
  mix-blend-mode: multiply;
}

/* keep content above the texture layers */
header, main, footer { position: relative; z-index: 1; }

/* selection: ink on cream */
::selection { background: var(--olive); color: var(--paper); }

/* a11y helper */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------- bilingual visibility -------- */
body.lang-en .zh,
body.lang-zh .en { display: none !important; }
body.lang-en .zh-only,
body.lang-zh .en-only { display: none !important; }
/* in Chinese mode, switch body text family for better Chinese rendering */
body.lang-zh { font-family: var(--f-zh-body); }
body.lang-zh .section-title,
body.lang-zh .hero__arc-text { font-family: var(--f-zh-disp); letter-spacing: .08em; }


/* =========================================================
   NAV  ·  sticky, paper-translucent, light bottom hairline
========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex;
  align-items: center;
  gap: .5rem;
  height: var(--nav-h);
  padding: 0 .9rem;
  background: rgba(243, 234, 212, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(74,90,58,.18);
}
/* push brand to the left edge; everything after it sits on the right */
.nav__brand { margin-right: auto; }
.nav__brand {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none;
  color: var(--olive);
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: var(--tr-mid);
  font-size: var(--t-eyebrow);
}
.nav__brand-mark { width: 14px; height: 14px; color: var(--olive); flex: none; }
.nav__brand-text { white-space: nowrap; }
/* on phones the brand mark is enough; hide the wordmark to leave room for links */
@media (max-width: 520px) {
  .nav__brand-text { display: none; }
}

/* mobile hamburger button — three olive bars that morph into an ×.
   The button itself is shown/hidden by the media-query rules below.
   These rules just describe its internals so they apply when visible. */
.nav__menu-btn {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--olive);
}
.nav__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
body.menu-open .nav__menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .nav__menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .nav__menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
/* hide hamburger at >=720px (handled below by the desktop nav rule) */

.nav__links {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.nav__links a {
  position: relative;
  padding: 8px 7px;
  font-family: var(--f-display);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-mid);
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

/* MOBILE NAV (default; overridden at >=720px below) ===========
   On phones the nav__links becomes a fullscreen olive-on-cream
   overlay that slides down when the hamburger is tapped. */
@media (max-width: 719.98px) {
  /* hamburger is visible at mobile (hidden again at >=720px below) */
  .nav__menu-btn { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--paper);
    background-image:
      radial-gradient(circle at 18% 22%, rgba(74,90,58,.05) 0 1px, transparent 2px) 0 0/22px 22px,
      radial-gradient(circle at 72% 38%, rgba(29,29,26,.04) 0 1px, transparent 2px) 0 0/31px 31px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--r-3);
    padding: var(--r-5) var(--r-3);
    z-index: 40;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform .45s cubic-bezier(.4,.0,.2,1),
      opacity .35s ease,
      visibility 0s linear .35s;
  }
  .nav__links a {
    font-size: 1.1rem;
    letter-spacing: .22em;
    padding: .6rem 1rem;
    color: var(--ink);
    /* stagger reveal once menu opens */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease, color .2s ease;
  }
  .nav__links a:nth-child(1) { transition-delay: .05s; }
  .nav__links a:nth-child(2) { transition-delay: .10s; }
  .nav__links a:nth-child(3) { transition-delay: .15s; }
  .nav__links a:nth-child(4) { transition-delay: .20s; }
  .nav__links a:nth-child(5) { transition-delay: .25s; }
  .nav__links a:nth-child(6) { transition-delay: .30s; }
  .nav__rsvp { color: var(--olive); font-weight: 600; }

  body.menu-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition:
      transform .45s cubic-bezier(.4,.0,.2,1),
      opacity .35s ease,
      visibility 0s;
  }
  body.menu-open .nav__links a {
    opacity: 1;
    transform: none;
  }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 720px) {
  .nav__menu-btn { display: none; }
}
.nav__links a::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 4px; height: 1px;
  background: var(--olive); transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
.nav__links a:hover { color: var(--olive); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__rsvp {
  color: var(--olive) !important;
  font-weight: 600;
}

/* language toggle — segmented pill */
.lang-toggle {
  border: 0; background: transparent; cursor: pointer; padding: 0;
  font: inherit; color: inherit;
}
.lang-toggle__pill {
  display: inline-flex; align-items: stretch;
  border: 1px solid rgba(74,90,58,.45);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.35);
  font-family: var(--f-display);
  font-size: var(--t-eyebrow); letter-spacing: var(--tr-mid);
}
.lang-toggle__opt {
  padding: 6px 12px;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
body.lang-en .lang-toggle__opt[data-lang="en"],
body.lang-zh .lang-toggle__opt[data-lang="zh"] {
  background: var(--olive);
  color: var(--paper);
}


/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  padding: var(--r-6) var(--r-3) var(--r-5);
  text-align: center;
}
.hero__cupid {
  display: block;
  width: 64px; height: auto;
  margin: 0 auto .25rem;
  color: var(--olive);
  opacity: .85;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-6px) rotate(2deg); }
}
.hero__arc {
  display: block;
  width: min(560px, 96%);
  height: auto;
  margin: 0 auto var(--r-2);
  color: var(--olive);
  overflow: visible;
}
.hero__arc-text {
  /* Small uppercase engraving along an arc */
  font-family: var(--f-display);
  font-weight: 500;
  fill: var(--olive);
}
.hero__arc-text.zh {
  font-family: var(--f-zh-disp);
}

.hero__rsvp {
  display: inline-block;
  margin: var(--r-2) auto 0;
  text-decoration: none;
  background: transparent;
  color: var(--olive-deep, var(--olive));
  padding: .55rem 1.4rem;
  border: 1px solid var(--olive);
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: calc(var(--t-body) * .92);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hero__rsvp:hover {
  background: var(--olive);
  color: var(--paper);
  transform: translateY(-1px);
}
.hero__rsvp--solid {
  background: var(--olive);
  color: var(--paper);
  border-color: var(--olive);
}
.hero__rsvp--solid:hover {
  background: var(--olive-deep, var(--olive));
}
body.lang-zh .hero__rsvp {
  font-family: var(--f-zh-disp);
  letter-spacing: var(--tr-mid);
  text-transform: none;
}

/* Hero RSVP wreath — pill flanked by hand-drawn leafy sprigs */
.hero__rsvp-wreath {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: var(--r-2) auto 0;
  color: var(--olive);
}
.hero__rsvp-sprig { width: 60px; height: 24px; display: block; }

.hero__art {
  display: block;
  margin: var(--r-3) auto var(--r-4);
  max-width: 360px;
  width: 88%;
}
.hero__art img {
  width: 100%; height: auto; display: block;
  /* tiny tilt frame, like a card pinned to corkboard */
  filter: drop-shadow(0 18px 24px rgba(53,66,40,.18))
          drop-shadow(0 2px 1px rgba(53,66,40,.08));
}

.hero__names {
  display: flex;
  justify-content: center;
  margin-top: var(--r-3);
  color: var(--ink);
}
.hero__name-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: .3rem .7rem;
}
.hero__name {
  /* Hand-written hero — Caveat at script display weight.
     Sized up vs. a serif because script glyphs sit lower in their box. */
  font-family: var(--f-script);
  font-weight: 600;
  font-size: var(--t-hero);
  line-height: .95;
  color: var(--ink);
  letter-spacing: var(--tr-tight);
}
.hero__name-zh {
  font-family: var(--f-zh-disp);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: .04em;
}
.hero__amp {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1;
  color: var(--olive);
  transform: translateY(.08em);
}

.hero__date {
  margin: var(--r-3) auto 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--olive);
}
body.lang-zh .hero__date { font-family: var(--f-zh-body); letter-spacing: var(--tr-mid); }

.hero__spark {
  position: absolute;
  width: 28px; height: 28px;
  color: var(--olive);
  opacity: .8;
}
.hero__spark--a { top: 6%; left: 8%; width: 22px; height: 22px; transform: rotate(8deg); }
.hero__spark--b { top: 22%; right: 6%; width: 16px; height: 16px; transform: rotate(-12deg); }
.hero__spark--c { bottom: 12%; left: 12%; width: 18px; height: 18px; transform: rotate(20deg); }


/* =========================================================
   DIVIDER  ·  line-art motifs between sections
========================================================= */
.divider {
  display: flex; align-items: center; justify-content: center;
  margin: var(--r-5) auto;
  color: var(--ink);
}
.divider svg {
  width: clamp(160px, 60%, 280px);
  height: auto;
  opacity: .78;
}
/* a thin tan rule on each side of the ornament */
.divider {
  position: relative;
  max-width: var(--maxw);
  padding: 0 var(--r-3);
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(74,90,58,.35), transparent);
}
.divider svg { margin: 0 var(--r-3); }
.divider__sparkle { width: 26px !important; height: 26px !important; color: var(--olive); }
.divider--tight { margin-top: var(--r-4); margin-bottom: var(--r-4); }


/* =========================================================
   SECTION SCAFFOLD
========================================================= */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--r-4) var(--r-3) var(--r-5);
}
.kicker {
  /* small uppercase eyebrow — quiet typographic signpost.
     Sits directly above .section-title; the pair reads as one unit. */
  margin: 0 0 .55rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  line-height: 1;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--olive-soft);
  text-align: center;
}
body.lang-zh .kicker {
  font-family: var(--f-zh-disp);
  font-size: var(--t-meta);
  text-transform: none;
  letter-spacing: var(--tr-mid);
}
.section-title {
  margin: 0 0 var(--r-4);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: var(--tr-tight);
  text-align: center;
  color: var(--olive);
}


/* =========================================================
   DETAILS  ·  three centered typographic blocks, no card
========================================================= */
.details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--r-3);
}
.details__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.details__label {
  margin: 0;
  font-family: var(--f-display);
  color: var(--olive);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}
body.lang-zh .details__label {
  font-family: var(--f-zh-disp);
  font-size: var(--t-meta);
  letter-spacing: var(--tr-mid);
}
.details__value {
  margin: 0;
  color: var(--ink);
}
.details__value--display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-display);
  line-height: 1.18;
  letter-spacing: var(--tr-tight);
}
body.lang-zh .details__value--display {
  font-family: var(--f-zh-body);
  letter-spacing: var(--tr-tight);
}
.details__venue-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-display);
  letter-spacing: var(--tr-tight);
}
.details__addr {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  color: var(--ink-soft);
  max-width: 38ch;
}
.details__map {
  font-family: var(--f-body);
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .2s ease;
}
.details__map:hover { color: var(--olive-deep); }

.details__hint {
  margin: .35rem 0 0;
  font-family: var(--f-body);
  font-size: var(--t-meta);
  color: var(--olive-soft);
}
body.lang-zh .details__hint { font-family: var(--f-zh-body); }

.details__cal {
  margin-top: .4rem;
  font-family: var(--f-body);
  font-size: var(--t-meta);
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
  transition: color .2s ease, transform .2s ease;
}
.details__cal:hover { color: var(--olive-deep); }
body.lang-zh .details__cal { font-family: var(--f-zh-body); }

/* small sparkle separator between blocks */
.details__sep {
  width: 14px; height: 14px;
  color: var(--olive);
  opacity: .55;
  margin: var(--r-2) auto;
}

@media (min-width: 720px) {
  .details { gap: var(--r-4); }
  .details__sep { width: 18px; height: 18px; }
}


/* =========================================================
   SCHEDULE TIMELINE
========================================================= */
.timeline {
  list-style: none;
  padding: 0; margin: 0 auto;
  position: relative;
  max-width: 520px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 5.4rem; top: 1.2rem; bottom: 1.2rem;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(74,90,58,.5) 0 5px,
    transparent 5px 10px
  );
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem 2rem 1fr;
  align-items: center;
  gap: var(--r-2);
  padding: .65rem 0;
}
.timeline__time {
  font-family: var(--f-body);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--t-body);
  font-weight: 500;
  letter-spacing: var(--tr-tight);
  text-align: right;
  color: var(--ink);
  padding-right: .4rem;
}
.timeline__time small {
  font-size: .68em;
  letter-spacing: var(--tr-mid);
  margin-left: .15rem;
  color: var(--olive-soft);
}
.timeline__icon {
  width: 28px; height: 28px;
  color: var(--olive);
  background: var(--paper);
  /* mask the dashed line behind the icon so each glyph sits cleanly on the rail */
  box-shadow: 0 0 0 6px var(--paper);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  display: block;
  margin-left: 0;
}
.timeline__body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  color: var(--ink);
  padding-left: .5rem;
}
body.lang-zh .timeline__body { font-family: var(--f-zh-body); }
.timeline__body em {
  color: var(--olive-soft); font-style: normal; font-size: .92rem; margin-left: .25rem;
}


/* =========================================================
   PROSE  (travel + dress)
========================================================= */
.prose {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto;
}
body.lang-zh .prose { font-family: var(--f-zh-body); }
.prose p + p { margin-top: var(--r-3); }
.prose__todo {
  position: relative;
  padding: var(--r-3) var(--r-3) var(--r-3) calc(var(--r-3) + 14px);
  border-left: 2px solid var(--olive);
  background: rgba(74,90,58,.05);
  border-radius: 0 4px 4px 0;
  font-size: var(--t-meta);
  color: var(--ink-soft);
}

/* ---- Dress code ---- */
.dress__lede {
  text-align: center;
  font-family: var(--f-body);
  font-size: var(--t-lede);
  color: var(--ink);
  margin: 0 auto;
  max-width: 44ch;
}
body.lang-zh .dress__lede { font-family: var(--f-zh-body); }
.dress__lede strong { font-weight: 600; color: var(--olive); }

.swatches {
  list-style: none; padding: 0; margin: var(--r-4) auto var(--r-4);
  display: flex; justify-content: center; gap: .65rem;
  flex-wrap: wrap;
}
.swatches li {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.08) inset,
    0 4px 10px -4px rgba(0,0,0,.18);
  transition: transform .25s ease;
  cursor: help;
}
.swatches li:hover { transform: translateY(-3px) rotate(-3deg); }

.dress__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--r-4);
  max-width: 56ch;
  margin: var(--r-4) auto 0;
}
.dress__col-label {
  margin: 0 0 .35rem;
  font-family: var(--f-display);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--olive);
}
body.lang-zh .dress__col-label { font-family: var(--f-zh-disp); letter-spacing: var(--tr-mid); }
.dress__col-body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-soft);
}
body.lang-zh .dress__col-body { font-family: var(--f-zh-body); }

.dress__avoid {
  margin: var(--r-4) auto 0;
  max-width: 52ch;
  text-align: center;
  font-family: var(--f-body);
  font-size: var(--t-body);
  color: var(--ink-soft);
  padding: var(--r-3) var(--r-3);
  border-top: 1px dashed rgba(74,90,58,.35);
  border-bottom: 1px dashed rgba(74,90,58,.35);
}
body.lang-zh .dress__avoid { font-family: var(--f-zh-body); }
.dress__avoid em {
  font-style: normal;
  color: var(--olive);
  letter-spacing: var(--tr-tight);
}

/* --- Practical tips (lawn footwear + cool evening) --- */
.dress__tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--r-3);
  max-width: 56ch;
  margin: var(--r-4) auto 0;
}
.dress__tip {
  padding: var(--r-3) var(--r-3);
  background: rgba(74,90,58,.05);
  border-left: 2px solid var(--olive);
  border-radius: 0 4px 4px 0;
}
.dress__tip-label {
  margin: 0 0 .3rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--olive);
}
body.lang-zh .dress__tip-label {
  font-family: var(--f-zh-disp);
  font-size: var(--t-meta);
  letter-spacing: var(--tr-mid);
  text-transform: none;
}
.dress__tip-body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink-soft);
}
body.lang-zh .dress__tip-body { font-family: var(--f-zh-body); }

@media (min-width: 600px) {
  .dress__tips { grid-template-columns: 1fr 1fr; }
}

/* Click-to-expand examples panel — friendly, low-pressure */
.dress__examples {
  max-width: 600px;
  margin: var(--r-4) auto 0;
  text-align: center;
}
.dress__examples summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-body);
  color: var(--olive);
  font-size: var(--t-body);
  padding: .4rem .8rem;
  border-bottom: 1px dotted currentColor;
  transition: color .2s ease, transform .2s ease;
}
.dress__examples summary::-webkit-details-marker { display: none; }
.dress__examples summary::after { content: "  ↓"; opacity: .6; }
.dress__examples[open] summary::after { content: "  ↑"; }
.dress__examples summary:hover { color: var(--olive-deep); }
body.lang-zh .dress__examples summary { font-family: var(--f-zh-body); }

.dress__examples img {
  display: block;
  margin: var(--r-3) auto 0;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 12px 28px -16px rgba(53,66,40,.35);
  mix-blend-mode: multiply;
}
.dress__examples-caption {
  margin: .8rem 0 0;
  font-family: var(--f-body);
  font-size: var(--t-meta);
  color: var(--olive-soft);
  text-align: center;
}
body.lang-zh .dress__examples-caption { font-family: var(--f-zh-body); }

/* two columns on wider screens */
@media (min-width: 600px) {
  .dress__cols {
    grid-template-columns: 1fr 1fr;
    gap: var(--r-5);
  }
}


/* =========================================================
   FAQ
========================================================= */
.faq { max-width: 620px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid rgba(74,90,58,.25);
  padding: var(--r-3) 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: baseline; gap: var(--r-3);
  font-family: var(--f-body);
  font-size: var(--t-lede);
  font-weight: 500;
  color: var(--ink);
  padding-right: 2rem;
  position: relative;
  transition: color .2s ease;
}
body.lang-zh .faq__item summary { font-family: var(--f-zh-disp); letter-spacing: var(--tr-tight); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+";
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: var(--olive);
  width: 1rem; flex: none;
  transition: transform .25s ease;
  line-height: 1;
}
.faq__item[open] summary::before { content: "–"; }
.faq__item summary:hover { color: var(--olive); }
.faq__item p {
  margin: var(--r-2) 0 0 calc(var(--r-3) + 1rem);
  font-family: var(--f-body);
  font-size: var(--t-body);
  color: var(--ink-soft);
}
body.lang-zh .faq__item p { font-family: var(--f-zh-body); }


/* =========================================================
   RSVP
========================================================= */
.section--rsvp {
  position: relative;
  text-align: center;
  padding-bottom: var(--r-7);
}
.rsvp__lede {
  font-family: var(--f-body);
  font-size: var(--t-lede);
  max-width: 46ch;
  margin: 0 auto var(--r-3);
  color: var(--ink-soft);
}
body.lang-zh .rsvp__lede { font-family: var(--f-zh-body); }

.rsvp__deadline {
  margin: 0 auto var(--r-4);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--olive);
}
body.lang-zh .rsvp__deadline {
  font-family: var(--f-zh-body);
  letter-spacing: var(--tr-tight);
}
.rsvp__deadline strong {
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
}

/* ---- RSVP pill button ---- */
.rsvp__button {
  display: inline-block;
  text-decoration: none;
  background: var(--olive);
  color: var(--paper);
  padding: 1rem 2.4rem;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--t-body);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -2px 0 rgba(0,0,0,.12) inset,
    0 14px 26px -14px rgba(53,66,40,.5);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rsvp__button:hover {
  background: var(--olive-deep);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -2px 0 rgba(0,0,0,.12) inset,
    0 22px 30px -16px rgba(53,66,40,.55);
}
.rsvp__button:active { transform: translateY(0); }
body.lang-zh .rsvp__button {
  font-family: var(--f-zh-disp);
  letter-spacing: var(--tr-mid);
}

.rsvp__spark {
  position: absolute;
  width: 26px; height: 26px;
  color: var(--olive);
  opacity: .55;
}
.rsvp__spark--a { top: 12%; left: 8%; transform: rotate(-10deg); }
.rsvp__spark--b { bottom: 18%; right: 9%; width: 20px; height: 20px; transform: rotate(15deg); }


/* =========================================================
   FOOTER
========================================================= */
.footer {
  text-align: center;
  padding: var(--r-5) var(--r-3) calc(var(--r-5) + env(safe-area-inset-bottom));
  color: var(--olive-soft);
  font-family: var(--f-body);
  border-top: 1px solid rgba(74,90,58,.18);
  background: rgba(74,90,58,.04);
}
.footer__mark { display: block; width: 22px; height: 22px; margin: 0 auto var(--r-3); color: var(--olive); }
.footer__names {
  margin: 0; color: var(--olive);
  font-family: var(--f-body); font-size: var(--t-lede); letter-spacing: var(--tr-tight);
}
body.lang-zh .footer__names { font-family: var(--f-zh-disp); letter-spacing: var(--tr-mid); }
.footer__date {
  margin: .3rem 0 0;
  font-family: var(--f-display);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  color: var(--olive-soft);
}
.footer__line { margin: var(--r-2) 0 0; font-size: var(--t-meta); }
body.lang-zh .footer__line { font-family: var(--f-zh-body); }



/* =========================================================
   REVEAL ANIMATION  (fade + slight rise on scroll)
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cupid { animation: none; }
  html { scroll-behavior: auto; }
}


/* =========================================================
   RESPONSIVE  ·  bigger screens get a wider hero & nicer rhythm
========================================================= */
@media (min-width: 720px) {
  :root { --nav-h: 64px; }
  body { font-size: 19px; }

  .nav { padding: 0 var(--r-4); }
  .nav__links a { padding: 10px 14px; }

  .hero { padding-top: var(--r-7); padding-bottom: var(--r-6); }
  .hero__art { max-width: 440px; }
  .hero__cupid { width: 84px; }

  .section { padding: var(--r-5) var(--r-3) var(--r-6); }
  .divider { margin: var(--r-6) auto; }

  .timeline { max-width: 560px; }
  .timeline::before { left: 5.5rem; }
}
@media (min-width: 1024px) {
  /* Desktop hero stays centered — arch, cupid, illustration, names, date
     stack down the middle like a printed invitation. */
  .hero {
    padding-top: var(--r-7);
    padding-bottom: var(--r-7);
    max-width: 720px;
    margin: 0 auto;
  }
  .hero__cupid { width: 88px; }
  .hero__art   { max-width: 480px; }
  .hero__spark--a { top: 6%;  left: 6%;  width: 30px; height: 30px; }
  .hero__spark--b { top: 22%; right: 6%; width: 22px; height: 22px; }
  .hero__spark--c { bottom: 12%; left: 8%; width: 24px; height: 24px; }
}

/* very small phones — keep names from wrapping awkwardly */
@media (max-width: 360px) {
  .hero__name { font-size: 2.4rem; }
  .nav__brand-text { display: none; }
}
