/* Acacia in Bloom — Acacia & Harry, Taipei, 23.10.2027
   Golden Hour leaning into a Lantern Night finale. Palette and type follow the UX brief exactly. */
html[data-lang="en"] [lang="zh-Hant"],
html[data-lang="zh"] [lang="en"] { display: none !important; }

:root {
  --porcelain: #FFFBF5;  /* base background */
  --cream: #F7EFE3;      /* paper, cards */
  --pink: #F2C4D5;       /* blossom accent */
  --peach: #F9C5A0;      /* golden hour warmth */
  --coral: #EE8A7A;      /* CTA accent, sparingly */
  --ink: #234236;        /* foliage, icons */
  --pine: #12261E;       /* night, headings, primary buttons */
  --red: #B23A2E;        /* seals, dates, tiny accents only */
  --gold: #C6A15B;       /* fine lines, monogram, foil */

  --serif: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --sans: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
  --hand: 'Caveat', 'LXGW WenKai TC', cursive;
  --paper-shadow: 0 1px 0 rgba(18, 38, 30, .06), 0 22px 40px -22px rgba(18, 38, 30, .35);
  --glow: 0;             /* set by JS: lantern icons brighten towards the wedding */
  --dock-h: 64px;
  --topbar-h: 58px;
}
html[data-lang="zh"] { --serif: 'Noto Serif TC', 'Cormorant Garamond', serif; --sans: 'Noto Sans TC', 'Inter', system-ui, sans-serif; --hand: 'LXGW WenKai TC', 'Caveat', cursive; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html.smooth { scroll-behavior: smooth; } /* added after load, so links to #sections land instantly */
body {
  margin: 0; background: var(--porcelain); color: var(--pine);
  font: 400 17px/1.75 var(--sans); padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
html[data-lang="zh"] body { line-height: 1.9; }
/* Rice-paper grain over the whole site */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .15 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
[id] { scroll-margin-top: calc(var(--topbar-h) + 16px); }
main:focus { outline: none; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 110; padding: 10px 18px; border-radius: 999px;
  background: var(--pine); color: var(--cream); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Labels: clean small-caps sans */
.label {
  font: 600 13px/1.4 var(--sans); letter-spacing: .14em; font-variant-caps: all-small-caps; font-size: 16px;
  text-transform: lowercase; color: var(--ink);
}
html[data-lang="zh"] .label { text-transform: none; font-variant-caps: normal; font-size: 14px; letter-spacing: .2em; }
.note-serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.2em; line-height: 1.6; }
html[data-lang="zh"] .note-serif { font-style: normal; }

/* "To be confirmed" placeholders */
.tbc {
  font-family: var(--serif); font-style: italic; color: var(--ink);
  border-bottom: 1px dotted var(--gold); padding-bottom: 1px;
}
html[data-lang="zh"] .tbc { font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px;
  border-radius: 999px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font: 600 15px var(--sans); letter-spacing: .12em; font-variant-caps: all-small-caps; font-size: 18px; text-transform: lowercase;
  transition: background-color .4s ease, color .4s ease, transform .4s ease;
}
html[data-lang="zh"] .btn { text-transform: none; font-variant-caps: normal; font-size: 16px; letter-spacing: .15em; }
.btn-primary { background: var(--pine); color: var(--cream); }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { background: transparent; color: var(--pine); border-color: var(--gold); }
.btn-secondary:hover { background: var(--cream); }
.on-dark .btn-primary { background: var(--cream); color: var(--pine); }
.on-dark .btn-primary:hover { background: var(--porcelain); }
.on-dark .btn-secondary { color: var(--cream); }
.on-dark .btn-secondary:hover { background: rgba(247, 239, 227, .08); }

/* ---------- Top bar: acacia branch progress + language ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; pointer-events: none;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) 12px 6px; display: flex; align-items: flex-start; gap: 10px;
  transition: background-color .4s ease, box-shadow .4s ease;
}
.topbar.scrolled {
  pointer-events: auto; background: rgba(255, 251, 245, .88); box-shadow: 0 1px 0 rgba(198, 161, 91, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html[data-season="dusk"] .topbar.scrolled, html[data-season="night"] .topbar.scrolled { background: rgba(18, 38, 30, .88); }
.branch { position: relative; flex: 1; height: 46px; }
.branch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.branch-wood { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; transition: stroke 1.2s ease; }
.branch-deco { position: absolute; transform: translate(-50%, -50%) scale(0); transition: transform 1s cubic-bezier(.3, .7, .3, 1), background-color 1.2s ease, opacity 1.2s ease; }
.branch-deco.on { transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); }
.leaf { width: 14px; height: 7px; border-radius: 0 100% 0 100%; background: var(--ink); opacity: .85; }
.leaf.down { margin-top: 6px; } .leaf.up { margin-top: -6px; }
.bloom { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.branch-lantern { width: 10px; height: 14px; border-radius: 45%; background: var(--peach); margin-top: 12px; opacity: 0; }
/* Seasons on the branch */
html[data-season="summer"] .leaf { background: var(--ink); opacity: 1; }
html[data-season="summer"] .bloom { width: 9px; height: 9px; }
html[data-season="autumn"] .leaf { background: var(--gold); }
html[data-season="autumn"] .bloom { background: var(--gold); }
html[data-season="dusk"] .leaf, html[data-season="night"] .leaf { background: var(--gold); }
html[data-season="dusk"] .branch-wood, html[data-season="night"] .branch-wood { stroke: var(--gold); }
html[data-season="night"] .bloom { width: 12px; height: 12px; background: var(--gold); box-shadow: 0 0 10px 2px rgba(198, 161, 91, .7); }
html[data-season="night"] .branch-lantern.on { opacity: 1; box-shadow: 0 0 14px 5px rgba(249, 197, 160, .8); }

/* Stag party button (top left), styled to match the language toggle */
.stag { position: relative; flex: none; pointer-events: auto; }
.stag-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 251, 245, .85); border: 1px solid var(--gold); color: var(--pine);
  font: 600 14px var(--sans); letter-spacing: .06em; backdrop-filter: blur(6px);
}
.stag-btn svg { width: 24px; height: 24px; color: var(--ink); }
.stag-btn:hover, .lang-toggle:hover { background: var(--porcelain); }
.stag-note {
  position: absolute; left: 0; top: calc(100% + 8px); width: min(260px, calc(100vw - 24px)); margin: 0; padding: 12px 14px;
  background: var(--porcelain); color: var(--pine); border: 1px solid var(--gold); border-radius: 14px;
  box-shadow: var(--paper-shadow); font-size: 14px; line-height: 1.5;
}
.lang-toggle {
  pointer-events: auto; flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 251, 245, .85); border: 1px solid var(--gold); color: var(--pine);
  font: 600 14px var(--sans); letter-spacing: .06em; backdrop-filter: blur(6px);
}
html[data-lang] .lang-toggle [lang] { display: inline !important; }
html[data-lang="en"] .lang-toggle .opt-zh, html[data-lang="zh"] .lang-toggle .opt-en { opacity: .45; }
.lang-toggle .sep { margin: 0 6px; color: var(--gold); }

/* Section menu: a drop-down on phones and tablets, inline links on wide screens */
.site-nav { position: relative; flex: none; pointer-events: auto; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 11px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 251, 245, .85); border: 1px solid var(--gold); color: var(--pine);
  font: 600 14px var(--sans); letter-spacing: .06em; backdrop-filter: blur(6px);
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--porcelain); }
.menu-btn svg { width: 18px; height: 18px; }
.site-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; right: 0; top: calc(100% + 8px); width: max-content; min-width: 210px;
  background: var(--porcelain); border: 1px solid var(--gold); border-radius: 18px; box-shadow: var(--paper-shadow);
}
.js .site-nav:not(.open) .site-menu { display: none; }
.site-menu a {
  display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 12px;
  color: var(--pine); text-decoration: none; font: 500 21px/1.2 var(--serif);
}
.site-menu a:hover { background: var(--cream); }
.site-menu a[aria-current="true"] { background: var(--cream); box-shadow: inset 3px 0 0 var(--red); }
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .site-menu, .js .site-nav:not(.open) .site-menu {
    display: flex; gap: 2px; position: static; width: auto; min-width: 0; padding: 3px; border-radius: 999px;
    background: rgba(255, 251, 245, .85); box-shadow: none; backdrop-filter: blur(6px);
  }
  .site-menu a { min-height: 32px; padding: 0 12px; border-radius: 999px; font: 600 14px var(--sans); letter-spacing: .04em; }
  .site-menu a[aria-current="true"] { background: var(--pine); color: var(--cream); box-shadow: none; }
}
@media (max-width: 420px) {
  /* room for the branch: the stag button keeps its icon, its name stays for screen readers */
  .stag-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stag-btn { padding: 0 9px; }
}

/* ---------- Language splash (first visit; class set by js/lang.js) ---------- */
.splash { display: none; }
html.splash-open, html.splash-open body { overflow: hidden; }
html.splash-open .splash, html.splash-closing .splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; padding: 16px;
  background: rgba(18, 38, 30, .28); animation: splash-in .45s ease both;
}
html.splash-closing .splash { animation: splash-out .45s ease both; pointer-events: none; }
html.splash-open body > :not(.splash) { filter: blur(10px); transition: filter .45s ease; }
html.splash-closing body > :not(.splash) { transition: filter .45s ease; }
.splash-card {
  width: min(520px, 100%); padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 40px); text-align: center;
  background: var(--porcelain); border: 1px solid var(--gold); border-radius: 24px; box-shadow: var(--paper-shadow);
}
.splash-names { margin: 0; font: 500 clamp(38px, 8vw, 52px)/1.05 'Cormorant Garamond', 'Noto Serif TC', serif; color: var(--pine); }
.splash-date { margin: 10px 0 0; font: 600 15px 'Inter', sans-serif; letter-spacing: .32em; color: var(--red); }
.splash-title {
  margin: 24px 0 20px; padding-top: 20px; border-top: 1px solid rgba(198, 161, 91, .5);
  font: 500 20px/1.4 'Cormorant Garamond', 'Noto Serif TC', serif; color: var(--ink);
}
.splash-title [lang="zh-TW"] { font-family: 'Noto Serif TC', serif; font-size: 18px; }
.splash-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.splash-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 140px; padding: 18px 12px;
  background: var(--cream); border: 1px solid var(--gold); border-radius: 18px; color: var(--pine); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.splash-btn:hover, .splash-btn:focus-visible { background: #fff; transform: translateY(-2px); box-shadow: var(--paper-shadow); }
.splash-btn:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }
.splash-btn .flag { height: 48px; width: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(18, 38, 30, .15); }
.splash-lang { font: 600 22px 'Cormorant Garamond', serif; letter-spacing: .02em; }
.splash-btn[lang="zh-TW"] .splash-lang { font: 600 21px 'Noto Serif TC', serif; letter-spacing: .12em; }
@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes splash-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 400px) {
  .splash-btn { min-height: 120px; } .splash-btn .flag { height: 40px; }
  .splash-sep { display: none; } .splash-title [lang="zh-TW"] { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html.splash-open .splash, html.splash-closing .splash { animation: none; }
  html.splash-closing .splash { display: none; }
  html.splash-open body > :not(.splash), html.splash-closing body > :not(.splash) { transition: none; }
}

/* ---------- Sticky dock (countdown · venue · RSVP) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--pine); color: var(--cream); border-top: 1px solid var(--gold);
}
.dock-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 14px; min-height: 48px; }
.dock-item { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dock-item .label { color: var(--gold); font-size: 13px; }
html[data-lang="zh"] .dock-item .label { font-size: 11px; }
.dock-item b { font: 500 18px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-sep { width: 1px; align-self: stretch; background: rgba(198, 161, 91, .5); }
.dock .btn { margin-left: auto; min-height: 44px; padding: 0 22px; }

/* ---------- Decorative motifs ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px auto; max-width: 340px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gold); }
.divider svg { width: 22px; height: 22px; flex: none; }
.thread { display: block; width: 40px; height: 64px; margin: 0 auto 14px; overflow: visible; }
.thread path { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-linecap: round; }
.torn { position: absolute; left: 0; right: 0; top: -27px; width: 100%; height: 28px; display: block; fill: var(--section-bg); }

/* ---------- Hero: Golden Hour paper-cut garden ---------- */
/* --hero-sky is the colour at the top of the skyline photo, so the sky carries on seamlessly above it */
.hero {
  --hero-sky: #FAB680; --hero-ground: #0C2132;
  position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: start center; text-align: center;
  background: var(--hero-sky);
}
.layer { position: absolute; display: block; will-change: transform; }
.hero picture { position: absolute; inset: 0; }
/* Wide screens: the skyline fills the screen and the text sits in its sky.
   Extra height above lets it drift down on scroll without showing a gap. */
.hero-photo { left: 0; top: -10%; width: 100%; height: 110%; object-fit: cover; object-position: 50% 100%; }
#petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
/* No card: the text sits straight on the sky; a soft glow lifts it off the gradient */
.hero-content {
  position: relative; z-index: 4; width: min(100% - 32px, 900px);
  margin: calc(env(safe-area-inset-top, 0px) + clamp(76px, 10vh, 110px)) 0 48px;
  text-shadow: 0 0 24px rgba(255, 236, 214, .7);
}
.hero-content .btn { margin-top: clamp(20px, 3vh, 30px); text-shadow: none; box-shadow: 0 10px 24px -12px rgba(18, 38, 30, .6); }
/* Phones, tall screens and short landscape phones: show the whole skyline, full width, under the text.
   It sits just above the fixed dock, with the photo's dark ground colour carrying on behind the dock. */
@media (max-aspect-ratio: 5/4), (max-height: 520px) {
  .hero {
    display: flex; flex-direction: column; align-items: center;
    padding: calc(env(safe-area-inset-top, 0px) + 64px) 0 calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--hero-ground) calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 2px), var(--hero-sky) 0);
  }
  .hero picture { position: relative; inset: auto; order: 2; display: block; width: 100%; }
  .hero-photo { position: relative; top: 0; width: 100%; height: auto; }
  /* centred in the sky between the top bar and the skyline */
  .hero-content { margin: auto 0; padding: 16px 0 28px; }
}
.hero-tagline { margin: 10px 0 0; font: 400 clamp(26px, 3.2vw, 36px)/1.2 var(--hand); color: var(--ink); }
.names { font-size: clamp(48px, min(8vw, 12vh), 104px); font-weight: 500; line-height: .95; letter-spacing: -.02em; }
.names .amp { font-style: italic; font-weight: 300; font-size: .8em; color: var(--ink); padding: 0 .08em; }
@media (max-width: 700px) {
  .names .amp { display: block; font-size: .55em; line-height: 1.1; }
}
html[data-lang="zh"] .names { font-weight: 600; letter-spacing: .02em; line-height: 1.15; }
/* The date, between two short gold rules */
.hero-date {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2.4vw, 22px);
  margin: clamp(14px, 2.4vh, 24px) 0 6px; font: 600 clamp(32px, 4.6vw, 54px)/1.1 var(--serif); color: var(--red);
  font-variant-numeric: lining-nums;
}
.hero-date::before, .hero-date::after { content: ''; flex: 0 1 clamp(24px, 6vw, 72px); height: 1px; background: currentColor; opacity: .55; }
.hero-date sup { font-size: .5em; line-height: 0; vertical-align: .85em; margin-left: .04em; }
html[data-lang="zh"] .hero-date { font-size: clamp(28px, 4vw, 46px); letter-spacing: .06em; }
.hero-place { margin: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; color: var(--cream); }
.scroll-hint svg { width: 22px; height: 34px; display: block; }

/* ---------- Chapters ---------- */
.chapter { position: relative; padding-block: 84px 96px; background: var(--section-bg); }
.chapter[data-season="spring"] { --section-bg: var(--porcelain); }
.chapter[data-season="summer"] { --section-bg: var(--cream); }
.chapter[data-season="autumn"] { --section-bg: var(--peach); }
.chapter[data-season="dusk"]   { --section-bg: var(--ink); color: var(--cream); }
.chapter[data-season="night"]  { --section-bg: var(--pine); color: var(--cream); }
.chapter-full { min-height: 100svh; }
.chapter-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.chapter-head .label { display: block; margin-bottom: 14px; }
.chapter-head h2 { font-size: clamp(44px, 7vw, 84px); }
.chapter-head .lede { margin: 18px auto 0; max-width: 560px; }
.on-dark .label, .on-dark .chapter-head .label { color: var(--gold); }
.on-dark .tbc { color: var(--cream); }

/* Our story: a short intro, then a timeline down the page with a Polaroid beside each step.
   Steps alternate sides of a gold thread on wide screens; on phones the thread runs down the left. */
.chapter-short { padding-block: 76px 72px; }
.story-intro { max-width: 680px; margin: 0 auto; text-align: center; }
.story-intro h2 { font-size: clamp(40px, 5.5vw, 64px); margin: 0 0 22px; }
.story-intro p:last-child { margin-bottom: 0; }
.timeline { --dot: 14px; position: relative; max-width: 940px; margin: 64px auto 0; padding: 0; list-style: none; }
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: linear-gradient(transparent, var(--gold) 40px, var(--gold) calc(100% - 40px), transparent);
}
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 104px; align-items: center; }
/* steps tuck up between each other: the next Polaroid sits beside the shorter words above it */
.tl-step + .tl-step { margin-top: -40px; }
.tl-step::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: var(--dot); height: var(--dot);
  margin: calc(var(--dot) / -2) 0 0 calc(var(--dot) / -2); border-radius: 50%;
  background: var(--porcelain); border: 2px solid var(--red); box-shadow: 0 0 0 5px var(--section-bg, var(--porcelain));
}
.tl-text { text-align: right; }
.tl-step:nth-child(even) .tl-text { order: 2; text-align: left; }
.tl-when { margin: 0 0 6px; font: 600 13px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
html[data-lang="zh"] .tl-when { letter-spacing: .1em; font-size: 14px; }
.tl-step h3 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.tl-summary { margin: 0; }
/* Polaroid: white card, deeper bottom border, a slight tilt that straightens on hover */
.polaroid {
  justify-self: start; width: min(100%, 210px); margin: 0; padding: 10px 10px 40px; background: #fff;
  box-shadow: 0 1px 2px rgba(18, 38, 30, .14), 0 16px 30px -14px rgba(18, 38, 30, .45);
  transform: rotate(2deg); transition: transform .3s ease;
}
.tl-step:nth-child(even) .polaroid { justify-self: end; transform: rotate(-2.5deg); }
.tl-step:nth-child(4n+3) .polaroid { transform: rotate(-1deg); }
.tl-step:nth-child(4n) .polaroid { transform: rotate(1.5deg); }
.tl-step .polaroid:hover { transform: rotate(0) scale(1.04); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #EFE3CF; }
/* The timeline stays folded away until a guest opens it */
.story-more { margin-top: 40px; }
.story-toggle { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 22px; cursor: pointer; }
.story-toggle::-webkit-details-marker { display: none; }
.story-toggle:focus-visible { outline: none; }
.story-toggle:focus-visible .btn { outline: 2px solid var(--gold); outline-offset: 3px; }
.story-toggle:hover .btn { background: var(--cream); }
.story-fan { display: flex; justify-content: center; height: 118px; }
.story-fan img { width: 96px; height: auto; aspect-ratio: 1; object-fit: cover; padding: 5px 5px 18px; background: #fff; box-shadow: 0 1px 2px rgba(18, 38, 30, .14), 0 12px 22px -12px rgba(18, 38, 30, .45); transition: transform .3s ease; }
.story-fan img:nth-child(1) { transform: rotate(-9deg) translate(18px, 8px); }
.story-fan img:nth-child(2) { position: relative; z-index: 1; transform: rotate(2deg); }
.story-fan img:nth-child(3) { transform: rotate(10deg) translate(-18px, 10px); }
.story-toggle:hover .story-fan img:nth-child(1) { transform: rotate(-13deg) translate(8px, 4px); }
.story-toggle:hover .story-fan img:nth-child(3) { transform: rotate(14deg) translate(-8px, 6px); }
.story-more[open] .story-fan { display: none; }
.story-toggle .when-open, .story-more[open] .story-toggle .when-closed { display: none; }
.story-more[open] .story-toggle .when-open { display: inline; }
.chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.story-more[open] .story-toggle .chev { transform: rotate(180deg); }
.story-more[open] .timeline { animation: story-open .5s ease both; }
@keyframes story-open { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.story-close-wrap { margin: 48px 0 0; text-align: center; }

/* Celebration details */
/* The celebration: the venue in words and views of the city, then the location card */
.venue-feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1040px; margin: 0 auto 56px; }
.venue-story .label { display: block; margin-bottom: 10px; }
.venue-story h3 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 18px; }
.venue-story .note-serif { margin-bottom: .8em; }
.venue-story p:last-child { margin: 0; }
.venue-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.venue-photo { position: relative; margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--gold); box-shadow: var(--paper-shadow); background: var(--cream); }
.venue-photo.main { grid-column: 1 / -1; border-radius: 22px; }
.venue-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.venue-photo.main img { aspect-ratio: 16 / 9; object-position: 50% 60%; }
.venue-photo figcaption { position: absolute; right: 8px; bottom: 8px; }
.venue-photo figcaption a { display: block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(18, 38, 30, .6); color: var(--cream); font-size: 11px; text-decoration: none; }
.venue-photos-note { grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font-size: 14px; color: var(--ink); }

.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail {
  background: var(--cream); padding: 40px 24px 28px; text-align: center; box-shadow: var(--paper-shadow);
  border-radius: 50% 50% 20px 20px / 48px 48px 20px 20px;
}
.detail .label { display: block; margin-bottom: 10px; }
.detail .value { font: 500 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); margin: 0 0 6px; }
.detail .value.date { color: var(--red); }
.detail p:last-child { margin: 0; }
.detail-icon { width: 30px; height: 30px; color: var(--ink); margin-bottom: 8px; }

/* Getting there: shuttle, MRT, taxi */
.getting-there { max-width: 1040px; margin: 72px auto 0; }
.getting-there h3 { text-align: center; font-size: 34px; margin-bottom: 12px; }
.getting-there-lede { max-width: 620px; margin: 0 auto 28px; text-align: center; }
.getting-there-grid p { margin: 0 0 .6em; }

.schedule { max-width: 620px; margin: 72px auto 0; }
.schedule h3, .party h3 { text-align: center; font-size: 34px; margin-bottom: 24px; }
.schedule ol { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(198, 161, 91, .7); }
.schedule li:last-child { border-bottom: 1px solid rgba(198, 161, 91, .7); }
.schedule time, .schedule .when { font: 600 16px var(--sans); letter-spacing: .08em; color: var(--red); }
.schedule li { align-items: start; }
.schedule time { padding-top: 4px; }
.schedule .what { font: 500 22px/1.3 var(--serif); }
.schedule .what small { display: block; margin-top: 4px; font: 400 16px/1.5 var(--sans); color: var(--ink); }
.schedule-icon { width: 30px; height: 30px; color: var(--red); }
.schedule-note { margin: 18px 0 0; text-align: center; font-size: 16px; color: var(--ink); }
.schedule-actions { display: flex; justify-content: center; margin-top: 22px; }
.schedule-actions .btn svg { width: 20px; height: 20px; }

.party { max-width: 860px; margin: 72px auto 0; }
.party ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.party li { background: var(--cream); border-radius: 16px; padding: 18px; text-align: center; box-shadow: var(--paper-shadow); }
.party li .label { display: block; }
.party-note { margin: 20px 0 0; text-align: center; font-size: 18px; }
.party li .party-name { display: block; margin-top: 4px; font: 500 22px/1.2 var(--serif); color: var(--pine); }

/* Cream cards on the dusk background (hotels, trip planner) */
.sign {
  position: relative; background: var(--cream); color: var(--pine); border-radius: 18px; padding: 26px 26px 22px;
  box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .55); border: 1px solid var(--gold);
}
.sign .label { display: block; margin-top: 4px; }
/* Venue card in the Celebration details: full width, address in both languages, embedded map */
.detail.venue-detail { grid-column: 1 / -1; text-align: left; padding: 34px clamp(20px, 3vw, 34px) 28px; border-radius: 24px; }
.venue-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.venue-head .detail-icon { margin: 0; flex: none; }
.venue-head .label { margin-bottom: 4px; }
.venue-head p { margin: 0; }
.venue-detail .venue-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
.venue-detail .map-frame { aspect-ratio: auto; min-height: 300px; }
.venue-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(22px, 3vw, 36px); align-items: start; }
.venue-address .label { display: block; margin-top: 0; }
.addr-en { margin: 4px 0 18px; }
.addr-zh { margin: 4px 0 22px; font: 500 clamp(22px, 2.4vw, 28px)/1.45 'Noto Serif TC', var(--serif); color: var(--pine); }
.venue-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.venue-actions .btn { padding: 0 22px; }
/* Cards in dark sections are cream, so their buttons use the light-section colours */
.on-dark .sign .btn-primary, .on-dark .rsvp-form .btn-primary, .on-dark .quiz-card .btn-primary { background: var(--pine); color: var(--cream); }
.on-dark .sign .btn-primary:hover, .on-dark .rsvp-form .btn-primary:hover:not(:disabled), .on-dark .quiz-card .btn-primary:hover { background: var(--ink); }
.on-dark .sign .btn-secondary { color: var(--pine); }
.on-dark .sign .btn-secondary:hover { background: var(--porcelain); }
.copy-status { min-height: 1.6em; margin: 10px 0 0; font-size: 15px; color: var(--ink); }
.map-frame { aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--gold); background: var(--porcelain); }
.map-frame > span { display: block; width: 100%; height: 100%; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.text-link { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; font-weight: 600; }
.travel-note { text-align: center; max-width: 620px; margin: 40px auto 0; color: var(--cream); }
.small-note { font-size: 15px; opacity: .9; }
.nw { white-space: nowrap; }

/* Where to stay: hotel cards */
.stays { max-width: 1100px; margin: 84px auto 0; }
.stays h3 { text-align: center; font-size: 40px; margin-bottom: 14px; color: var(--cream); }
.stays-lede { text-align: center; max-width: 620px; margin: 0 auto 10px; color: var(--cream); }
.price-key { text-align: center; margin: 0 0 34px; color: var(--cream); font-size: 16px; letter-spacing: .04em; }
.stay-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sign.stay-card { transform: none; display: flex; flex-direction: column; padding: 24px 24px 22px; min-width: 0; }
.stay-photo { position: relative; margin: -24px -24px 18px; border-radius: 17px 17px 0 0; overflow: hidden; border-bottom: 1px solid var(--gold); }
.stay-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.stay-photo figcaption { position: absolute; right: 8px; bottom: 8px; }
.stay-photo-soon {
  aspect-ratio: 3 / 2; display: grid; place-items: center; font: italic 500 20px var(--serif); color: var(--ink);
  background: radial-gradient(circle at 50% 40%, var(--porcelain), #EFE3CF);
}
.stay-photo-soon .tbc { color: var(--ink); }
.stay-photo figcaption a { display: block; padding: 2px 8px; border-radius: 999px; background: rgba(18, 38, 30, .6); color: var(--cream); font-size: 11px; text-decoration: none; }
.stay-card .label { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.stay-card h4 { margin: 0; font: 500 26px/1.15 var(--serif); }
.stay-zh { display: block; margin-top: 4px; font: 500 17px/1.4 'Noto Serif TC', var(--serif); color: var(--ink); }
.price { margin: 10px 0 8px; font: 600 20px/1 var(--serif); letter-spacing: .08em; }
.price .on { color: var(--red); }
.price .off { color: rgba(18, 38, 30, .2); }
.stay-desc { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.taxi { display: flex; align-items: center; gap: 10px; margin: auto 0 16px; padding-top: 12px; border-top: 1px dotted var(--gold); font-weight: 600; font-size: 15px; }
.taxi svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.stay-links { display: flex; align-items: center; gap: 18px; }
.stay-links .btn { padding: 0 22px; }

/* Where to stay: the hotel map (js/hotel-map.js). Until it has loaded, the cards above show as a grid. */
.stays.map-ready .stay-explorer { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
.stays.map-ready .stay-grid { display: block; }
.stays.map-ready .stay-card:not(.is-active) { display: none; }
.hotel-map-wrap { min-width: 0; }
.hotel-map {
  height: 560px; border-radius: 18px; overflow: hidden; border: 1px solid var(--gold); background: var(--cream);
  box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .55);
}
.hotel-map-hint { margin: 14px 0 10px; color: var(--cream); font-size: 15px; opacity: .9; }
.hotel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hotel-chip {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(198, 161, 91, .65); background: transparent;
  color: var(--cream); font: 500 14px/1.2 var(--sans); cursor: pointer; transition: background .2s, color .2s;
}
.hotel-chip:hover { background: rgba(247, 239, 227, .1); }
.hotel-chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--pine); }
.hotel-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Pins. MapLibre positions each pin with a transform, so the hover/active scale goes on the inner svg. */
.map-pin { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.map-pin svg { display: block; overflow: visible; transform-origin: 50% 100%; transition: transform .2s ease; filter: drop-shadow(0 3px 4px rgba(18, 38, 30, .35)); }
.map-hotel svg { width: 34px; height: 44px; }
.map-hotel .pin-body { fill: var(--pine); stroke: var(--gold); stroke-width: 2; transition: fill .2s; }
.map-hotel .pin-icon { fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-hotel .pin-dot { fill: var(--cream); }
.map-hotel:hover svg, .map-hotel:focus-visible svg { transform: scale(1.12); }
.map-hotel.is-active svg { transform: scale(1.25); }
.map-hotel.is-active .pin-body { fill: var(--red); }
.map-pin:focus-visible { outline: none; }
.map-pin:focus-visible svg { filter: drop-shadow(0 0 0 var(--gold)) drop-shadow(0 0 3px var(--gold)); }
.map-venue svg { width: 46px; height: 54px; }
.map-venue .venue-seal { fill: var(--gold); stroke: var(--pine); stroke-width: 2; }
.map-venue .venue-ring { fill: none; stroke: rgba(18, 38, 30, .45); stroke-width: 1; }
.map-venue .venue-point { fill: var(--pine); }
.map-venue text { font: 600 13px var(--serif); fill: var(--pine); }
.map-pin-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  padding: 6px 11px; border-radius: 10px; border: 1px solid var(--gold); background: var(--pine); color: var(--cream);
  font: 600 13px/1.3 var(--sans); opacity: 0; transition: opacity .15s;
}
.map-hotel.is-active .map-pin-tip { bottom: calc(100% + 14px); }
.map-pin:hover .map-pin-tip, .map-pin:focus-visible .map-pin-tip, .map-pin.is-active .map-pin-tip { opacity: 1; }
.map-venue .map-pin-tip { background: var(--gold); color: var(--pine); border-color: var(--pine); }
.hotel-map .maplibregl-ctrl-group { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(18, 38, 30, .2); }
.hotel-map .maplibregl-ctrl-group button { width: 36px; height: 36px; }
.hotel-map .maplibregl-ctrl-attrib { font-size: 11px; }

/* Flying from the UK */
.flights { max-width: 1100px; margin: 20px auto 0; }
.flights h3 { text-align: center; font-size: 40px; margin-bottom: 14px; color: var(--cream); }
.flight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.flight-card { display: flex; flex-direction: column; min-width: 0; }
.flight-card .label { margin: 0 0 6px; color: var(--ink); font-size: 14px; }
.flight-card h4 { margin: 0 0 8px; font: 500 26px/1.15 var(--serif); }
.flight-time { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 600; color: var(--red); }
.flight-time svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.flight-card ul { margin: 0 0 18px; padding-left: 18px; font-size: 16px; line-height: 1.6; }
.flight-card li { margin-bottom: 6px; }
.flight-card li::marker { color: var(--gold); }
.flight-card .via { margin: 6px 0 2px; padding-left: 16px; }
.flight-card .via li { margin-bottom: 2px; }
.flight-links { margin-top: auto; flex-wrap: wrap; gap: 10px 18px; }
.flight-links .btn { padding: 0 20px; }
.airlines { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.sign .airlines .label { display: inline; margin: 0 4px 0 0; font-size: 14px; }
.airlines a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--pine); font-size: 15px; font-weight: 600; text-decoration: none;
}
.airlines a:hover { background: var(--porcelain); }

/* Trip planner: start card, filter chips, place cards, sticky tray of picks, day-by-day plan */
.trip { max-width: 1100px; margin: 84px auto 0; }
.trip h3 { text-align: center; font-size: 40px; margin-bottom: 14px; color: var(--cream); }
.trip-intro { max-width: 760px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 48px) 36px; text-align: center; border-radius: 28px; }
.trip-intro-icon { width: 44px; height: 44px; color: var(--red); }
.trip .trip-intro .label { margin: 4px 0 0; color: var(--red); }
.trip .trip-intro h3 { margin: 8px 0 12px; font-size: clamp(30px, 4vw, 40px); color: var(--pine); }
.trip-intro-lede { max-width: 540px; margin: 0 auto 24px; font-size: 18px; }
.trip-steps { list-style: none; max-width: 640px; margin: 0 auto 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trip-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; line-height: 1.4; }
.trip-steps b { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--pink); font: 600 17px var(--serif); }
.trip-start { min-width: 220px; }
.trip-start .when-open, .trip-start[aria-expanded="true"] .when-closed { display: none; }
.trip-start[aria-expanded="true"] .when-open { display: inline; }
.trip-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 32px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--gold); background: transparent;
  color: var(--cream); font: 600 15px var(--sans); cursor: pointer;
}
.chip:hover { background: rgba(247, 239, 227, .08); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--pine); }
.trip-card { transition: box-shadow .2s, transform .2s; }
.trip-card.is-chosen { box-shadow: 0 0 0 3px var(--gold), 0 22px 40px -24px rgba(0, 0, 0, .55); }
.trip-tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--pink); color: var(--pine); }
.trip-note {
  margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--coral); border-radius: 0 8px 8px 0;
  background: rgba(238, 138, 122, .14); font-size: 14px; line-height: 1.5;
}
.trip-add { align-self: flex-start; padding: 0 22px; }
.trip-add .when-on, .trip-add[aria-pressed="true"] .when-off { display: none; }
.trip-add[aria-pressed="true"] .when-on { display: inline; }
.on-dark .sign .trip-add[aria-pressed="true"] { background: var(--pine); color: var(--cream); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.trip-tray {
  position: sticky; bottom: calc(var(--dock-h) + 12px); z-index: 5; max-width: 900px; margin: 34px auto 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px;
  background: var(--pine); border: 1px solid var(--gold); border-radius: 20px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1 1 420px; }
.slot {
  min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px dashed rgba(198, 161, 91, .7);
  border-radius: 12px; color: rgba(247, 239, 227, .7); font-size: 14px; line-height: 1.25; min-width: 0;
}
.slot.filled { border-style: solid; background: rgba(247, 239, 227, .08); color: var(--cream); }
.slot img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.slot span { flex: 1; min-width: 0; }
.slot-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--cream); font-size: 20px; line-height: 1; cursor: pointer; }
.slot-x:hover { background: rgba(247, 239, 227, .12); }
.tray-actions { display: flex; gap: 10px; }
.trip-status { flex-basis: 100%; margin: 0; color: var(--gold); font-size: 14px; }
.trip-status:empty { display: none; }

.trip-plan {
  max-width: 900px; margin: 40px auto 0; padding: clamp(22px, 4vw, 40px);
  background: var(--cream); color: var(--pine); border: 1px solid var(--gold); border-radius: 24px;
}
.on-dark .trip-plan .btn-secondary { color: var(--pine); }
.on-dark .trip-plan .btn-secondary:hover { background: var(--porcelain); }
.plan-head h4 { margin: 0 0 6px; font: 500 34px/1.15 var(--serif); }
.plan-head h4:focus { outline: none; }
.plan-sum { margin: 0 0 14px; font-weight: 600; color: var(--ink); }
.plan-head .copy-status { margin-top: 6px; }
.plan-days { list-style: none; margin: 18px 0 0; padding: 0; }
.plan-day { position: relative; padding-left: 30px; margin-bottom: 26px; }
.plan-day::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: -22px; border-left: 2px dotted var(--gold); }
.plan-day:last-child::before { bottom: 0; }
.plan-day::after { content: ''; position: absolute; left: 1px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.plan-day h5 { margin: 0 0 10px; font: 600 15px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.plan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; background: var(--porcelain); border-radius: 14px; }
.step > div { min-width: 0; }
.step > svg { width: 28px; height: 28px; flex: none; margin-top: 2px; color: var(--ink); }
.step.visit img { width: 84px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.step p { margin: 0; }
.step-title { font: 500 21px/1.25 var(--serif); }
.step-meta { font-size: 15px; font-weight: 600; color: var(--ink); }
.step .step-how { margin-top: 2px; font-size: 15px; line-height: 1.5; }
.step .step-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 15px; }
.step .trip-note { margin: 6px 0 0; }
.step.stay { align-items: center; background: transparent; border: 1px dashed var(--gold); }
.plan-sea { margin: 8px 0 0; }

.faq { max-width: 760px; margin: 84px auto 0; }
.faq h3 { text-align: center; font-size: 40px; margin-bottom: 26px; color: var(--cream); }
.faq-group { margin: 34px 0 12px; font: 600 14px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.faq h3 + .faq-group { margin-top: 0; }
.faq details { background: var(--cream); color: var(--pine); border-radius: 16px; margin-bottom: 12px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font: 600 17px var(--sans); min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .4s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 18px; }
.faq details ul { margin: 0 0 18px; padding-left: 20px; }
.faq details li { margin-bottom: 4px; }
.faq details li::marker { color: var(--gold); }

/* Night: fireflies */
.fireflies { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fireflies span {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 10px 3px rgba(198, 161, 91, .7); opacity: 0; animation: firefly var(--d, 10s) ease-in-out infinite; animation-delay: var(--delay, 0s);
}
@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  30% { opacity: .9; }
  50% { transform: translate(var(--dx, 30px), var(--dy, -40px)); opacity: .5; }
  70% { opacity: .9; }
}
/* RSVP */
.rsvp { max-width: 620px; margin: 0 auto; }
.rsvp-form, .rsvp-thanks {
  background: var(--cream); color: var(--pine); border-radius: 24px; padding: clamp(24px, 4vw, 38px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; margin-bottom: 8px; padding: 0; }
.field input[type="text"], .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--gold);
  background: var(--porcelain); color: var(--pine); font: 400 17px var(--sans);
}
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label {
  flex: 1 1 140px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--gold); border-radius: 14px; background: var(--porcelain);
}
.choice input { width: 20px; height: 20px; accent-color: var(--pine); margin: 0; }
.choice label:has(input:checked) { background: var(--pink); border-color: var(--pine); }
.hint { font-size: 14px; color: var(--ink); margin: 6px 0 0; }
.form-error { color: var(--red); font-weight: 600; min-height: 1.6em; margin: 0 0 12px; }
.rsvp-form .btn { width: 100%; }
.rsvp-soon { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: var(--pink); font-weight: 600; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-rsvp-submit] .when-busy, [data-rsvp-submit][aria-busy="true"] .when-idle { display: none; }
[data-rsvp-submit][aria-busy="true"] .when-busy { display: inline; }
.rsvp-thanks h3 { font-size: 36px; margin-bottom: 12px; }
.rsvp-thanks .link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: 44px; }

/* Quiz: how well do you know the bride and groom? */
.quiz-card {
  max-width: 620px; margin: 0 auto; background: var(--cream); color: var(--pine); border-radius: 24px;
  padding: clamp(24px, 4vw, 38px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.quiz-soon, .quiz-best { margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; background: var(--pink); font-weight: 600; line-height: 1.5; }
.quiz-soon { margin: 0; text-align: center; }
.quiz-start .btn { width: 100%; }
.quiz-progress { margin-bottom: 18px; }
.quiz-progress .label { display: block; margin-bottom: 8px; }
.quiz-bar { height: 6px; border-radius: 3px; background: rgba(198, 161, 91, .3); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }
.quiz-q { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 20px; outline: none; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--gold); border-radius: 14px; background: var(--porcelain); color: var(--pine); font: 500 17px/1.35 var(--sans);
}
.quiz-option:hover:not([aria-disabled]) { background: var(--pink); }
.quiz-option:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.quiz-option[aria-disabled] { cursor: default; }
.quiz-option.is-right { background: #DCEBDD; border-color: var(--ink); font-weight: 600; }
.quiz-option.is-wrong { background: #F6DCD8; border-color: var(--red); }
.quiz-option.is-right::after, .quiz-option.is-wrong::after { margin-left: auto; font-weight: 700; }
.quiz-option.is-right::after { content: '✓'; color: var(--ink); }
.quiz-option.is-wrong::after { content: '✕'; color: var(--red); }
.quiz-feedback { min-height: 1.6em; margin: 16px 0; line-height: 1.5; }
.quiz-feedback:empty { margin: 0; }
.quiz-play .btn, .quiz-result .btn { width: 100%; }
.quiz-result { text-align: center; }
.quiz-score { font: 600 clamp(56px, 10vw, 84px)/1 var(--serif); color: var(--red); margin: 0 0 6px; outline: none; }
.quiz-result h3 { font-size: 34px; margin: 0 0 12px; }
.quiz-result .note-serif { margin: 0 0 22px; }
.quiz-board {
  max-width: 620px; margin: 28px auto 0; padding: clamp(22px, 4vw, 32px); border-radius: 24px;
  border: 1px solid rgba(198, 161, 91, .5); background: rgba(247, 239, 227, .05);
}
.quiz-board h3 { text-align: center; font-size: 32px; margin: 0 0 14px; color: var(--cream); }
.quiz-board-status { text-align: center; margin: 0; color: var(--cream); }
.quiz-board-status:empty { display: none; }
.quiz-board-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.quiz-board-list li { counter-increment: rank; display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid rgba(198, 161, 91, .3); }
.quiz-board-list li:first-child { border-top: 0; }
.quiz-board-list li::before {
  content: counter(rank); flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); font: 600 16px var(--sans);
}
.quiz-board-list li:first-child::before { background: var(--gold); color: var(--pine); }
.board-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 500 21px/1.25 var(--serif); color: var(--cream); }
.board-you { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pink); color: var(--pine); font: 600 12px var(--sans); vertical-align: middle; }
.board-score { font-weight: 600; color: var(--gold); white-space: nowrap; }
.quiz-board-list li.is-me { background: rgba(247, 239, 227, .07); border-radius: 12px; }
.quiz-card .btn-secondary { color: var(--pine); }
.quiz-card .btn-secondary:hover { background: var(--porcelain); }

/* ---------- Footer + wax seal easter egg ---------- */
.site-footer { background: var(--pine); color: var(--cream); text-align: center; padding: 30px 20px 60px; border-top: 1px solid rgba(198, 161, 91, .4); }
.seal {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; margin: 0 auto 18px; display: block;
  background: radial-gradient(circle at 35% 30%, #F7EFE3 0, var(--gold) 34%, var(--gold) 64%, #234236 140%);
  box-shadow: inset 0 0 0 5px rgba(18, 38, 30, .18), 0 10px 22px -8px rgba(0, 0, 0, .6);
  font: 600 22px var(--serif); color: var(--pine); transition: transform .6s ease;
}
.seal:hover { transform: rotate(-8deg) scale(1.04); }
.seal-note {
  max-width: 440px; margin: 0 auto 26px; background: var(--cream); color: var(--pine); border-radius: 18px; padding: 26px 28px;
  font: 400 26px/1.4 var(--hand); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.seal-note .sig { display: block; margin-top: 10px; text-align: right; }
.site-footer p { margin: 0; color: var(--cream); }
.site-footer .small { font-size: 14px; color: var(--gold); margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  /* Timeline: thread down the left, words then a small Polaroid on each step */
  .timeline { margin-top: 44px; padding-left: 30px; }
  .timeline::before { left: 7px; margin-left: 0; }
  .tl-step { grid-template-columns: 1fr auto; column-gap: 16px; align-items: start; }
  .tl-step + .tl-step { margin-top: 32px; }
  .tl-step::before { top: 4px; left: -29px; margin: 0; }
  .tl-text, .tl-step:nth-child(even) .tl-text { order: 0; text-align: left; }
  .polaroid, .tl-step:nth-child(even) .polaroid { width: 124px; padding: 6px 6px 24px; justify-self: end; }
  .tl-step h3 { font-size: 24px; }
  .tl-summary { font-size: 15px; line-height: 1.6; }
  .details { grid-template-columns: 1fr; }
  .venue-feature { grid-template-columns: 1fr; margin-bottom: 44px; }
  .venue-story { text-align: center; }
  .getting-there { margin-top: 56px; }
  .venue-detail .venue-grid { grid-template-columns: 1fr; }
  .venue-detail .map-frame { aspect-ratio: 16 / 10; min-height: 0; }
  .venue-grid { grid-template-columns: 1fr; }
  .venue-actions .btn { flex: 1 1 100%; }
  .stay-grid { grid-template-columns: repeat(2, 1fr); }
  .stays.map-ready .stay-explorer { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .hotel-map { height: 440px; }
  .flight-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .chapter { padding-block: 64px 76px; }
}
@media (max-width: 640px) {
  .stay-grid { grid-template-columns: 1fr; }
  .hotel-map { height: 400px; }
  /* one swipeable row of hotel names, so the card stays close to the map */
  .hotel-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .hotel-chips::-webkit-scrollbar { display: none; }
  .hotel-chip { flex: none; }
  .party ul { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  /* keep the sticky tray short on phones: thumbnails only */
  .trip-tray { padding: 10px; gap: 10px; }
  .slots { flex-basis: 100%; }
  .slot { justify-content: center; min-height: 48px; }
  .slot span { display: none; }
  .tray-actions { flex: 1; }
  .tray-actions .btn-primary { flex: 1; }
  .step.visit img { width: 64px; height: 44px; }
  .trip-steps { grid-template-columns: 1fr; text-align: left; }
  .trip-steps li { flex-direction: row; }
  .trip-start { width: 100%; }
}
@media (max-width: 480px) {
  .polaroid, .tl-step:nth-child(even) .polaroid { width: 106px; }
  .dock-inner { gap: 10px; }
  .dock-item b { font-size: 16px; }
  .dock .btn { padding: 0 16px; }
  .dock-venue .label { display: none; }
  .schedule li { grid-template-columns: 76px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fireflies span { opacity: .6; }
  .branch-deco.on { transform: translate(-50%, -50%) scale(1); }
}
