/* Design tokens: the couple's two palettes and the scales built on them.
   Light is the default; dark applies under [data-theme="dark"]. The build
   repeats the block between the dark-tokens markers for visitors without
   JavaScript whose system is set to dark, so state dark values only there. */

:root {
  /* The palette as given by the couple */
  --ivory: #F5EBDD;
  --pale-rose: #E9DDE1;
  --dusty-rose: #DCCBD1;
  --wine: #4B1D2D;
  --burgundy: #2B1019;
  --plum: #583045;
  --antique-gold: #B4976B;
  --champagne-gold: #C6AD81;
  --mauve-rose: #BB8C9C;

  /* Roles, light mode */
  color-scheme: light;
  --bg: var(--ivory);
  --band-bg: var(--pale-rose);
  --panel-bg: var(--dusty-rose);
  --heading: var(--wine);
  --text: var(--burgundy);
  --text-soft: #4f2c38;            /* burgundy eased toward the page, 9:1 on ivory */
  --gold: var(--antique-gold);     /* ornament only on light surfaces: 2.4:1 on ivory */
  --rose: var(--mauve-rose);
  --rose-deep: #8f5f70;
  --numeral: #8f5f70;              /* large decorative numerals: 4.3:1 on ivory */
  --line: var(--antique-gold);
  --link-underline: var(--antique-gold);
  --header-bg: rgb(245 235 221 / 0.9);
  --shadow: rgb(43 16 25 / 0.14);
  --button-bg: var(--wine);
  --button-text: var(--ivory);

  /* Metallic sheen on large headings: garnet on light surfaces */
  --sheen-base: var(--wine);
  --sheen-high: #a34d68;
  --sheen-deep: var(--burgundy);

  /* The wine "feature" band keeps the same colors in both themes */
  --feature-bg: var(--wine);
  --feature-text: var(--ivory);
  --feature-gold: var(--champagne-gold);
  --feature-gold-high: #fbeecb;
  --feature-gold-deep: #a08453;

  /* Illuminated initials sit on plum in both themes */
  --initial-bg: var(--plum);
  --initial-letter: var(--ivory);
  --initial-border: var(--antique-gold);

  /* Castle scene */
  --scene-sky-top: var(--ivory);
  --scene-sky-mid: #ecd9d6;
  --scene-sky-low: #d9b1b6;
  --scene-orb: #e6cf9f;
  --scene-halo: rgb(230 207 159 / 0.7);
  --scene-far: #c7a2ad;
  --scene-sea-top: #b98a9a;
  --scene-sea-low: #7d4a5e;
  --scene-wave: rgb(245 235 221 / 0.55);
  --scene-shimmer: rgb(245 235 221 / 0.8);
  --scene-castle: var(--wine);
  --scene-castle-line: var(--burgundy);
  --scene-window: #f1d9a4;
  --scene-cliff: var(--plum);
  --scene-path: #8a6274;
  --scene-tree-back: #6d4257;
  --scene-tree-front: #43192a;
  --scene-star-opacity: 0;
  --scene-gull-opacity: 0.8;
  --scene-cloud: rgb(245 235 221 / 0.55);

  /* Type */
  --font-display: "Fraunces Variable", "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-label: "Cinzel", "Fraunces Variable", Georgia, serif;
  --font-body: "Jost Variable", "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-display-zh: "Fraunces Variable", "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body-zh: "Jost Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.19rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.7rem, 1.8rem + 4.4vw, 5rem);
  --step-5: clamp(3.3rem, 1.6rem + 8.2vw, 7.6rem);

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3rem, 2rem + 5vw, 6rem);
  --gutter: clamp(1rem, 0.5rem + 3vw, 2.5rem);
  --measure: 38rem;
  --page-width: 72rem;

  --ease-out: cubic-bezier(0.22, 0.8, 0.26, 1);
}

:root[data-theme="dark"] {
  /* dark-tokens:start */
  color-scheme: dark;
  --bg: var(--burgundy);
  --band-bg: var(--wine);
  --panel-bg: var(--plum);
  --heading: var(--ivory);
  --text: var(--ivory);
  --text-soft: #e3d2cb;
  --gold: var(--champagne-gold);
  --rose: var(--mauve-rose);
  --rose-deep: #8f5f70;
  --numeral: var(--mauve-rose);
  --line: var(--champagne-gold);
  --link-underline: var(--champagne-gold);
  --header-bg: rgb(43 16 25 / 0.88);
  --shadow: rgb(0 0 0 / 0.4);
  --button-bg: var(--ivory);
  --button-text: var(--wine);

  --sheen-base: var(--champagne-gold);
  --sheen-high: #fbeecb;
  --sheen-deep: #a08453;

  --initial-border: var(--champagne-gold);

  --scene-sky-top: #1d0a11;
  --scene-sky-mid: var(--burgundy);
  --scene-sky-low: #6a3a52;
  --scene-orb: #f7ecd4;
  --scene-halo: rgb(198 173 129 / 0.45);
  --scene-far: #3a1826;
  --scene-sea-top: #41192a;
  --scene-sea-low: #1d0a11;
  --scene-wave: rgb(198 173 129 / 0.5);
  --scene-shimmer: rgb(247 236 212 / 0.75);
  --scene-castle: #1a0810;
  --scene-castle-line: color-mix(in srgb, var(--champagne-gold) 45%, #1a0810); /* a soft bronze: full gold was too sharp against the night */
  --scene-window: #f3cf7e;
  --scene-cliff: #14060c;
  --scene-path: #3a1b29;
  --scene-tree-back: #23101a;
  --scene-tree-front: #0f0408;
  --scene-star-opacity: 1;
  --scene-gull-opacity: 0;
  --scene-cloud: rgb(88 48 69 / 0.4);
  /* dark-tokens:end */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  color-scheme: dark;
  --bg: var(--burgundy);
  --band-bg: var(--wine);
  --panel-bg: var(--plum);
  --heading: var(--ivory);
  --text: var(--ivory);
  --text-soft: #e3d2cb;
  --gold: var(--champagne-gold);
  --rose: var(--mauve-rose);
  --rose-deep: #8f5f70;
  --numeral: var(--mauve-rose);
  --line: var(--champagne-gold);
  --link-underline: var(--champagne-gold);
  --header-bg: rgb(43 16 25 / 0.88);
  --shadow: rgb(0 0 0 / 0.4);
  --button-bg: var(--ivory);
  --button-text: var(--wine);

  --sheen-base: var(--champagne-gold);
  --sheen-high: #fbeecb;
  --sheen-deep: #a08453;

  --initial-border: var(--champagne-gold);

  --scene-sky-top: #1d0a11;
  --scene-sky-mid: var(--burgundy);
  --scene-sky-low: #6a3a52;
  --scene-orb: #f7ecd4;
  --scene-halo: rgb(198 173 129 / 0.45);
  --scene-far: #3a1826;
  --scene-sea-top: #41192a;
  --scene-sea-low: #1d0a11;
  --scene-wave: rgb(198 173 129 / 0.5);
  --scene-shimmer: rgb(247 236 212 / 0.75);
  --scene-castle: #1a0810;
  --scene-castle-line: color-mix(in srgb, var(--champagne-gold) 45%, #1a0810); /* a soft bronze: full gold was too sharp against the night */
  --scene-window: #f3cf7e;
  --scene-cliff: #14060c;
  --scene-path: #3a1b29;
  --scene-tree-back: #23101a;
  --scene-tree-front: #0f0408;
  --scene-star-opacity: 1;
  --scene-gull-opacity: 0;
  --scene-cloud: rgb(88 48 69 / 0.4);
  }
}

/* Fonts, element defaults, layout primitives and the motion shared site-wide. */

@font-face {
  font-family: "Fraunces Variable";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost Variable";
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

/* An element marked hidden stays hidden, whatever display its component sets. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  transition: background-color 0.4s ease, color 0.4s ease;
}
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: var(--font-body-zh); line-height: 1.8; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
:lang(zh-Hans) :is(h1, h2, h3, h4) { font-family: var(--font-display-zh); letter-spacing: 0.04em; line-height: 1.3; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }

p, ul, ol, dl, figure { margin: 0; }
p + p { margin-top: var(--space-2); }
ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; text-decoration-color: var(--link-underline); text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
  outline: 3px solid var(--heading);
  outline-offset: 3px;
  border-radius: 2px;
}
.feature :focus-visible { outline-color: var(--feature-gold); }

img, svg { max-width: 100%; }
svg { display: block; }
button { font: inherit; color: inherit; }
time { white-space: nowrap; }

/* ---- Layout primitives ---- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page-width));
  margin-inline: auto;
}
/* For the few things that gain from more room on a wide screen, such as the map. */
.wrap--wide { width: min(100% - 2 * var(--gutter), var(--page-width) * 1.35); }
.section { padding-block: var(--space-5); }
/* A band is a solid block of colour with a fine gold line at each edge. */
.band {
  background: var(--band-bg);
  border-block: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
/* A band that runs into the closing RSVP band meets its curved edge directly. */
.band:has(+ .rsvp-band) { border-bottom: 0; }
.band + .rsvp-band { --rsvp-start: var(--band-bg); }
/* The same handover on the way out, into a band that follows it. */
.rsvp-band:has(+ .band) { --rsvp-end: var(--band-bg); }
.rsvp-band + .band { border-top: 0; }
.feature {
  background: var(--feature-bg);
  color: var(--feature-text);
  --heading: var(--feature-text);
  --text: var(--feature-text);
  --text-soft: #e9dad2;
  --gold: var(--feature-gold);
  --line: var(--feature-gold);
  --link-underline: var(--feature-gold);
  --sheen-base: var(--feature-gold);
  --sheen-high: var(--feature-gold-high);
  --sheen-deep: var(--feature-gold-deep);
}
.lede { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); }
:lang(zh-Hans) .lede { line-height: 1.75; }

.label {
  font-family: var(--font-label);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}
:lang(zh-Hans) .label { font-family: var(--font-display-zh); letter-spacing: 0.3em; font-size: var(--step-0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--wine);
  color: var(--ivory);
  border: 2px solid var(--champagne-gold);
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--space-1); }

/* ---- Metallic sheen ----
   Two layers clipped to the letters: a band of light that sweeps across, over
   a still top-to-bottom gradient that gives the metal its depth. Without
   background-clip support the heading keeps its solid color. */

.sheen { color: var(--sheen-base); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sheen {
    background-image:
      linear-gradient(105deg, transparent 0%, transparent 45%, var(--sheen-high) 50%, transparent 55%, transparent 100%),
      linear-gradient(180deg, var(--sheen-high) -30%, var(--sheen-base) 38%, var(--sheen-deep) 115%);
    background-size: 260% 100%, 100% 100%;
    background-position: 130% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sheen-sweep 10s var(--ease-out) infinite;
    /* Keep descenders inside the painted box */
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
  }
}
@keyframes sheen-sweep {
  0%, 45% { background-position: 130% 0, 0 0; }
  85%, 100% { background-position: -30% 0, 0 0; }
}

/* ---- Reveal on scroll ----
   Content is visible by default. Only when the script is running (html.js)
   does it start hidden and rise into place as it enters the viewport. */

.js .reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 110ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Motion stops for visitors who ask their system for less of it, and for
   anyone who presses the pause control in the header. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
/* Without the script there is no pause control, so nothing animates. */
:root:not(.js) *, :root:not(.js) *::before, :root:not(.js) *::after { animation: none !important; }
:root[data-motion="off"] { scroll-behavior: auto; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}
:root[data-motion="off"] .reveal { opacity: 1; transform: none; }

@media (forced-colors: active) {
  .sheen {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
    animation: none;
  }
}

@media print {
  .site-header, .skip-link, .countdown, .theme-toggle { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Components used on more than one page. */

/* ---- Icons ---- */
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--small { width: 0.95em; height: 0.95em; display: inline-block; vertical-align: -0.08em; margin-left: 0.25em; }
.icon--quatrefoil { stroke-width: 1; }

/* ---- Header and navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* A gold thread under the header grows as the page is read. It needs
   scroll-driven animation; browsers without it show no thread. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--feature-gold-deep), var(--feature-gold-high), var(--champagne-gold));
  transform: scaleX(0);
  transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .site-header::after { animation: reading-thread linear both; animation-timeline: scroll(root); }
}
@keyframes reading-thread { to { transform: scaleX(1); } }
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem var(--space-3);
  min-height: 4rem;
}
.monogram {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--heading);
  text-decoration: none;
  padding-block: 0.4rem;
}
/* The ampersand is text, so it takes a text color: gold is ornament-only on ivory. */
.monogram__amp { color: var(--sheen-base); font-style: italic; font-size: 0.9em; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem var(--space-3); }
.site-nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(0.7rem, 1.4vw, 1.5rem); margin: 0; }
.site-nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.7rem 0.1rem;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
/* A gold rule grows under the link on hover and stays under the current page. */
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  height: 2px;
  background: var(--heading);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__links a[aria-current="page"] { font-weight: 600; }
.site-nav__links a.site-nav__cta {
  padding: 0.35rem 1rem;
  border: 1.5px solid var(--heading);
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}
:lang(zh-Hans) .site-nav__links a.site-nav__cta { font-family: var(--font-body-zh); letter-spacing: 0.1em; font-size: 0.95rem; }
.site-nav__links a.site-nav__cta::after { content: none; }
.site-nav__links a.site-nav__cta:hover,
.site-nav__links a.site-nav__cta[aria-current="page"] { background: var(--heading); color: var(--bg); }

.site-nav__tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-link, .theme-toggle, .motion-toggle, .menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.lang-link:hover, .theme-toggle:hover, .motion-toggle:hover, .menu-button:hover { border-color: var(--heading); }
.lang-link { font-weight: 500; }
.theme-toggle .icon { transition: transform 0.6s var(--ease-out); }
.theme-toggle:hover .icon { transform: rotate(40deg); }
/* Show what the button will do: pause while motion runs, play once paused. */
.motion-toggle__play { display: none; }
:root[data-motion="off"] .motion-toggle__play { display: inline-flex; }
:root[data-motion="off"] .motion-toggle__pause { display: none; }
/* Show the icon of the theme the button switches to. */
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }

.menu-button { display: none; }
.menu-button__close { display: none; }

@media (max-width: 68rem) {
  /* Without the script the links simply wrap under the bar, which makes the
     header tall: it scrolls away instead of covering what a link jumps to. */
  :root:not(.js) .site-header { position: static; }
  /* With the script the links fold into a panel behind the menu button. */
  .js .menu-button { display: inline-flex; }
  .js .menu-button[aria-expanded="true"] .menu-button__open { display: none; }
  .js .menu-button[aria-expanded="true"] .menu-button__close { display: inline-flex; }
  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: var(--space-3);
  }
  /* The open panel never grows taller than the screen: it scrolls instead,
     so the last controls stay reachable on a short or sideways phone. */
  .js .site-nav.is-open {
    display: flex;
    flex-wrap: nowrap;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: menu-open 0.4s var(--ease-out);
  }
  .js .site-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__links li { border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
  .js .site-nav__links a { display: block; padding: 0.85rem 0.25rem; font-family: var(--font-display); font-size: 1.35rem; }
  .js :lang(zh-Hans) .site-nav__links a { font-family: var(--font-display-zh); }
  .js .site-nav__links a::after { content: none; }
  .js .site-nav__links a[aria-current="page"] { color: var(--heading); font-style: italic; }
  .js .site-nav__links a.site-nav__cta { margin-top: var(--space-2); text-align: center; padding: 0.8rem 1rem; font-size: 1rem; }
  .js .site-nav__links li:last-child { border-bottom: 0; }
  .js .site-nav__tools { padding-top: var(--space-2); }
  .js .site-nav__tools .lang-link { margin-right: auto; }
  .js .lang-link, .js .theme-toggle, .js .motion-toggle { border-color: color-mix(in srgb, var(--line) 70%, transparent); padding-inline: 1rem; }
}
@keyframes menu-open {
  from { opacity: 0; transform: translateY(-0.6rem); }
  to { opacity: 1; transform: none; }
}

/* ---- Buttons and links ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.7rem;
  overflow: hidden;
  border: 1.5px solid var(--button-bg);
  background: var(--button-bg);
  color: var(--button-text);
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
:lang(zh-Hans) .btn { font-family: var(--font-body-zh); font-size: 1.05rem; letter-spacing: 0.18em; font-weight: 500; }
/* A band of light crosses the button on hover. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgb(251 238 203 / 0.5) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(110%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0.6rem 1.4rem -0.6rem var(--shadow); }
.btn .icon--arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn--light { background: var(--ivory); color: var(--wine); border-color: var(--ivory); min-width: 14rem; }
.btn--disabled, .btn[aria-disabled="true"] {
  background: transparent;
  color: var(--text);
  border-style: dashed;
  border-color: var(--heading);
  cursor: default;
}
.btn--disabled:hover { transform: none; box-shadow: none; }
.btn--disabled::before { content: none; }

.button-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem var(--space-3); margin-top: var(--space-3); }
.text-link { font-weight: 500; color: var(--heading); }

/* ---- "Details to come" marker ----
   Unfinished facts are marked with words and a dashed outline, never by
   color alone. */
.tbd {
  display: inline-block;
  padding: 0.05em 0.7em;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.86em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.5;
  white-space: nowrap;
}
:lang(zh-Hans) .tbd { font-family: var(--font-body-zh); font-style: normal; }

/* The draft-menu marker may run to two lines on a phone. */
.menu-draft { margin-top: var(--space-2); }
.menu-draft .tbd { white-space: normal; border-radius: 1rem; }

/* ---- Rose divider ---- */
.rose-divider {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block: var(--space-4) 0;
}
.rose-divider__rule { flex: 1; height: 1px; background: var(--line); }
.rose-divider__rose { flex: none; width: 11rem; height: auto; overflow: visible; }
.rose-divider--small { justify-content: center; margin-block: var(--space-2) var(--space-3); }
.rose-divider--small .rose-divider__rule { flex: 0 1 4rem; }
.rose-divider--small .rose-divider__rose { width: 9rem; }
.orn-leaf { fill: var(--gold); }
.orn-stem { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; }
.orn-rose { fill: var(--rose); }
.orn-rose-line { fill: none; stroke: var(--rose-deep); stroke-width: 1.2; stroke-linecap: round; }
.js .reveal .rose-divider__rule, .js .rose-divider.reveal .rose-divider__rule { transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.2s; }
.js .reveal .rose-divider__rule:first-child, .js .rose-divider.reveal .rose-divider__rule:first-child { transform-origin: right; }
.js .reveal .rose-divider__rule:last-child, .js .rose-divider.reveal .rose-divider__rule:last-child { transform-origin: left; }
.js .is-visible .rose-divider__rule, .js .rose-divider.is-visible .rose-divider__rule { transform: none; }

/* ---- Section heading with rules ---- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-align: center;
}
.section-heading__rule { flex: 1 1 0; min-width: 1.5rem; max-width: 10rem; height: 1px; background: var(--line); }
.section-heading > :is(h2, h3) { flex: 0 1 auto; }

/* ---- Photo frames ---- */
.photo { position: relative; margin: 0; }
.photo__surface {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: var(--space-2);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--panel-bg) 78%, var(--ivory)) 0%, var(--panel-bg) 70%);
  color: var(--heading);
  text-align: center;
}
:root[data-theme="dark"] .photo__surface {
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--panel-bg) 82%, var(--ivory)) 0%, var(--panel-bg) 70%);
}
.photo__surface img { width: 100%; height: 100%; object-fit: cover; }
.photo__label { margin: 0; font-family: var(--font-display); font-size: var(--step-0); font-weight: 500; line-height: 1.25; max-width: 12ch; }
:lang(zh-Hans) .photo__label { margin: 0; font-family: var(--font-display-zh); }
.photo .icon--quatrefoil { width: 2.2rem; height: 2.2rem; color: var(--gold); }
.feature .photo .icon--quatrefoil { color: var(--feature-gold); }

.photo--frame .photo__surface {
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -0.5rem;
}
.photo--wide .photo__surface { aspect-ratio: 3 / 2; }
.photo--square .photo__surface { aspect-ratio: 1; }
.photo--tall .photo__surface { aspect-ratio: 3 / 5; }

/* Shaped frames. The shape is cut with a mask; the gold edge is the gold
   surface showing around a slightly smaller copy of the panel. */
.photo.photo--oval .photo__surface, .photo.photo--round .photo__surface, .photo.photo--quatrefoil .photo__surface, .photo.photo--shield .photo__surface {
  position: relative;
  isolation: isolate;
  background: var(--gold);
  -webkit-mask: var(--shape) center / 100% 100% no-repeat;
  mask: var(--shape) center / 100% 100% no-repeat;
}
.photo.photo--oval .photo__surface::before, .photo.photo--round .photo__surface::before, .photo.photo--quatrefoil .photo__surface::before, .photo.photo--shield .photo__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--panel-bg) 80%, var(--ivory)) 0%, var(--panel-bg) 70%);
  -webkit-mask: var(--shape) center / 100% 100% no-repeat;
  mask: var(--shape) center / 100% 100% no-repeat;
  transform: scale(0.98);
}
/* An oval. */
.photo.photo--oval .photo__surface { aspect-ratio: 4 / 5; --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cellipse cx='50' cy='50' rx='50' ry='50'/%3E%3C/svg%3E"); }
/* A roundel. */
.photo.photo--round .photo__surface { aspect-ratio: 1; --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cellipse cx='50' cy='50' rx='50' ry='50'/%3E%3C/svg%3E"); }
/* Four overlapping circles: a quatrefoil window. */
.photo.photo--quatrefoil .photo__surface { aspect-ratio: 1; --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Ccircle cx='50' cy='29' r='29'/%3E%3Ccircle cx='71' cy='50' r='29'/%3E%3Ccircle cx='50' cy='71' r='29'/%3E%3Ccircle cx='29' cy='50' r='29'/%3E%3C/svg%3E"); }
/* A heraldic shield: square shoulders, curving to a point. */
.photo.photo--shield .photo__surface { aspect-ratio: 5 / 6; --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V55C100 80 75 92 50 100C25 92 0 80 0 55Z'/%3E%3C/svg%3E"); }

.photo--arch .photo__surface {
  aspect-ratio: 5 / 7;
  padding-top: 30%;
  -webkit-mask: url("arch-mask.svg") center / 100% 100% no-repeat;
  mask: url("arch-mask.svg") center / 100% 100% no-repeat;
}
.arch-photo__outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arch-photo__outline path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.arch-photo__outline .arch-photo__inner { stroke-width: 1; opacity: 0.7; }

/* ---- Inner page header ---- */
.page-header {
  position: relative;
  overflow: hidden;
  --edge: clamp(1.75rem, 1rem + 4vw, 4.5rem);
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) calc(clamp(2.5rem, 2rem + 4vw, 5rem) + var(--edge));
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 110%, color-mix(in srgb, var(--plum) 85%, transparent) 0%, transparent 70%),
    var(--feature-bg);
}
/* The header ends in a solid curve, the same shape as the RSVP band's edge. */
.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--edge);
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100H100V0Q50 200 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100H100V0Q50 200 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.page-header__inner { position: relative; }
.page-header__title { font-size: var(--step-4); display: inline-block; }
.page-header__intro { margin: var(--space-2) auto 0; max-width: 34rem; font-size: var(--step-1); line-height: 1.45; color: var(--text-soft); }
.page-header__tracery {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: min(120%, 52rem);
  transform: translateX(-50%);
  opacity: 0.2;
}
.tracery__lines { fill: none; stroke: var(--feature-gold); stroke-width: 1.4; }
/* The window draws itself, line by line, when the page opens. */
.page-header .tracery__lines > * { stroke-dasharray: 1; animation: tracery-draw 2.8s var(--ease-out) both; }
@keyframes tracery-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---- Closing RSVP band ---- */
.rsvp-band {
  position: relative;
  /* Ivory against wine is too strong a contrast to fade (the fade reads as a
     glare), so the band has a solid edge: one broad, shallow curve at the top
     and at the bottom, cut out in the colour of the section it meets. */
  --edge: clamp(1.75rem, 1rem + 4vw, 4.5rem);
  padding-block: calc(var(--space-5) + var(--edge));
  text-align: center;
  background: var(--feature-bg);
}
.rsvp-band::before, .rsvp-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--edge);
}
.rsvp-band::before {
  top: -1px;
  background: var(--rsvp-start, var(--bg));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V100Q50 -100 0 100Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V100Q50 -100 0 100Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.rsvp-band::after {
  bottom: -1px;
  background: var(--rsvp-end, var(--bg));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100H100V0Q50 200 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100H100V0Q50 200 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.rsvp-band__inner { display: grid; justify-items: center; }
.rsvp-band h2 { font-size: var(--step-4); }
.rsvp-band p { margin-top: var(--space-1); font-size: var(--step-1); }

/* A manuscript drop cap, where the line is long enough to wrap around it.
   Latin text only: a Chinese character is a whole word. */
/* On desktop the RSVP controls are the largest on the page. */
@media (min-width: 68.01rem) {
  .site-nav__links a.site-nav__cta { padding: 0.6rem 1.6rem; font-size: 1rem; }
  :lang(zh-Hans) .site-nav__links a.site-nav__cta { font-size: 1.1rem; }
  .rsvp-band .btn { min-height: 4rem; min-width: 20rem; padding: 1rem 3rem; font-size: 1.15rem; }
  :lang(zh-Hans) .rsvp-band .btn { font-size: 1.3rem; }
}
@media (min-width: 40rem) {
  :lang(en) .dropcap::first-letter {
    float: left;
    margin: 0.06em 0.06em 0 0;
    font-family: var(--font-display);
    font-size: 3.5em;
    font-weight: 600;
    line-height: 0.82;
    color: var(--sheen-base);
  }
}

/* ---- Cards ---- */
.card {
  position: relative;
  padding: var(--space-3);
  background: var(--bg);
  border: 1px solid var(--line);
}
.band .card { background: color-mix(in srgb, var(--bg) 70%, var(--band-bg)); }
.card::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  pointer-events: none;
}
.card > * { position: relative; }
.card :is(h2, h3) + * { margin-top: 0.6rem; }
.card__kicker { color: var(--text-soft); margin-bottom: 0.5rem; }
.source { margin-top: 0.6rem; font-size: var(--step--1); font-style: italic; color: var(--text-soft); }
:lang(zh-Hans) .source { font-style: normal; }

/* ---- Footer ---- */
.site-footer { padding-block: 0 var(--space-4); text-align: center; }
.site-footer .rose-divider { margin-top: 0; padding-top: var(--space-4); }
.site-footer__names { margin-top: var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.1; display: inline-block; }
.site-footer__date { margin-top: 0.4rem; color: var(--heading); }
.site-footer__note { margin-top: var(--space-2); color: var(--text-soft); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem var(--space-3); margin-top: var(--space-3); font-size: 0.98rem; }
.site-footer__links a { display: inline-block; padding: 0.45rem 0; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__contact { margin-top: var(--space-2); font-size: 0.98rem; }

/* The home page. */

/* ==== Home ==== */

.hero { padding-top: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.hero__top {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: clamp(1.5rem, 1rem + 3vw, 3rem);
}
.hero__eyebrow { color: var(--heading); margin-bottom: var(--space-2); }
.hero__names { font-size: var(--step-5); line-height: 1; letter-spacing: -0.02em; font-weight: 600; }
:lang(zh-Hans) .hero__names { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1; }
.hero__names-art { display: grid; gap: 0.1em; }
.hero__name { display: flex; align-items: center; white-space: nowrap; }
.hero__name + .hero__name { padding-left: 0.35em; }
.hero__amp { color: var(--sheen-base); font-weight: 400; font-style: italic; margin-right: 0.18em; }

/* Illuminated initial: a plum tile with gold vines, as in a manuscript. */
.initial {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.04em;
  height: 1.04em;
  margin-right: 0.05em;
  overflow: hidden;
  background: url("vines.svg") center / 100% 100% no-repeat, var(--initial-bg);
  border: 0.035em solid var(--initial-border);
  box-shadow:
    inset 0 0 0 0.03em var(--initial-bg),
    inset 0 0 0 0.05em var(--initial-border),
    0 0.08em 0.3em -0.1em var(--shadow);
}
.initial__letter {
  color: var(--initial-letter);
  font-size: 0.8em;
  line-height: 1;
  text-shadow: 0 0.03em 0.08em rgb(0 0 0 / 0.45);
}
/* A glint crosses the tile now and then, like light on gold leaf. */
.initial::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgb(251 238 203 / 0.55) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: initial-glint 8s var(--ease-out) infinite;
}
.hero__name + .hero__name .initial::after { animation-delay: 0.5s; }
@keyframes initial-glint {
  0%, 40% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

.hero__facts {
  display: grid;
  gap: 0.35rem;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid var(--line);
  padding-block: var(--space-2);
}
.hero__date-numeric {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: var(--heading);
}
.hero__date { font-size: var(--step-0); padding-bottom: 0.8rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.hero__venue { font-size: var(--step-1); letter-spacing: 0.2em; color: var(--heading); }
.hero__place { margin-top: 0; font-size: var(--step-1); }

@media (max-width: 52rem) {
  .hero__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__names-art { justify-items: center; }
  .hero__name + .hero__name { padding-left: 0; }
  .hero__facts { padding-left: 0; border-left: 0; padding-top: var(--space-3); border-top: 1px solid var(--line); width: min(100%, 24rem); }
  .hero__date { border-bottom: 0; padding-bottom: 0; }
}

/* The scene keeps its own proportions at every width, so the drawing scales
   as one piece. Its sky fades into the page above; a gold line closes it below. */
.hero__scene { position: relative; }
.castle-scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 520;
  min-height: 13rem;
  border-bottom: 2px solid var(--line);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.5) 8%, #000 18%);
  mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.5) 8%, #000 18%);
}
.scene-sky-top { stop-color: var(--scene-sky-top); }
.scene-sky-mid { stop-color: var(--scene-sky-mid); }
.scene-sky-low { stop-color: var(--scene-sky-low); }
.scene-sea-top { stop-color: var(--scene-sea-top); }
.scene-sea-low { stop-color: var(--scene-sea-low); }
.scene-halo-in { stop-color: var(--scene-halo); }
.scene-halo-out { stop-color: var(--scene-halo); stop-opacity: 0; }
.scene-orb { fill: var(--scene-orb); }
.scene-halo { animation: halo-breathe 9s ease-in-out infinite; transform-origin: 850px 300px; }
.scene-far, .scene-lighthouse path { fill: var(--scene-far); }
/* A lighthouse on the far headland, its lamp slowly coming round. */
.scene-beacon { fill: var(--scene-window); }
.scene-beacon-glow { fill: var(--scene-window); opacity: 0; animation: beacon 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene-cloud ellipse { fill: var(--scene-cloud); }
.scene-cloud--a { animation: cloud-drift-a 90s linear infinite alternate; }
.scene-cloud--b { animation: cloud-drift-b 120s linear infinite alternate; }
.scene-gull { fill: none; stroke: var(--scene-castle); stroke-width: 2; stroke-linecap: round; opacity: var(--scene-gull-opacity); animation: gull-glide 16s ease-in-out infinite; animation-delay: calc(var(--i) * -4s); }
.scene-castle path { fill: var(--scene-castle); stroke: var(--scene-castle-line); stroke-width: 1.2; stroke-linejoin: round; }
.scene-castle .scene-masonry { fill: none; stroke-width: 1; opacity: 0.22; }
/* Candlelight: each window dims a little and recovers, slowly and out of step. */
.scene-window { fill: var(--scene-window); animation: window-glow 9s ease-in-out infinite; animation-delay: calc(var(--i) * -2.3s); }
.scene-cliff { fill: var(--scene-cliff); }
/* The walled terrace the castle stands on, the gate and its drawbridge. */
.scene-terrace { fill: var(--scene-castle); }
.scene-terrace-line { fill: none; stroke: var(--scene-castle-line); stroke-width: 1.2; opacity: 0.7; }
.scene-path { fill: var(--scene-path); }
.scene-gate__arch { fill: var(--scene-tree-front); stroke: var(--scene-castle-line); stroke-width: 1.2; }
.scene-gate__grille { fill: none; stroke: var(--scene-window); stroke-width: 1; opacity: 0.55; }
.scene-gate__bridge { fill: var(--scene-path); stroke: var(--scene-castle-line); stroke-width: 1.2; stroke-linejoin: round; }
.scene-gate__planks { fill: none; stroke: var(--scene-castle-line); stroke-width: 1; opacity: 0.6; }
.scene-gate__chain { fill: none; stroke: var(--scene-castle-line); stroke-width: 1.2; stroke-dasharray: 2 2.5; }
.scene-cliff-line { fill: none; stroke: var(--scene-castle-line); stroke-width: 1.2; opacity: 0.6; stroke-linejoin: round; }
.scene-strata { fill: none; stroke: var(--scene-castle-line); stroke-width: 1; opacity: 0.2; stroke-linejoin: round; }
.scene-trees--back { fill: var(--scene-tree-back); }
.scene-rocks { fill: var(--scene-tree-front); }
.scene-star { fill: var(--ivory); opacity: var(--scene-star-opacity); animation: star-twinkle 4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.scene-wave { fill: none; stroke: var(--scene-wave); stroke-width: 1.6; stroke-linecap: round; }
.scene-wave--a { animation: wave-drift-a 14s linear infinite; }
.scene-wave--b { animation: wave-drift-b 20s linear infinite; }
.scene-shimmer { fill: var(--scene-shimmer); animation: shimmer 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.7s); }
@keyframes beacon { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 0.55; transform: scale(1); } }
@keyframes cloud-drift-a { to { translate: 70px 0; } }
@keyframes cloud-drift-b { to { translate: -90px 0; } }
@keyframes gull-glide { 0%, 100% { translate: 0 0; } 50% { translate: 46px -14px; } }
@keyframes halo-breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes window-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.82; } }
@keyframes star-twinkle { 0%, 100% { opacity: var(--scene-star-opacity); } 50% { opacity: calc(var(--scene-star-opacity) * 0.25); } }
/* Each wave slides by a whole number of its wavelength, so the loop is seamless. */
@keyframes wave-drift-a { to { transform: translateX(-360px); } }
@keyframes wave-drift-b { to { transform: translateX(440px); } }
@keyframes shimmer { 0%, 100% { opacity: 0.25; transform: scaleX(0.7); } 50% { opacity: 0.9; transform: scaleX(1); } }
.scene-shimmer { transform-box: fill-box; transform-origin: center; }

.countdown {
  position: absolute;
  right: var(--gutter);
  top: 16%;
  padding: 0.9rem 1.2rem 1rem;
  background: color-mix(in srgb, var(--wine) 88%, transparent);
  color: var(--ivory);
  border: 1px solid var(--champagne-gold);
  outline: 1px solid color-mix(in srgb, var(--champagne-gold) 55%, transparent);
  outline-offset: -0.35rem;
  text-align: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.countdown[hidden] { display: none; }
.countdown__title { color: var(--champagne-gold); font-size: 0.72rem; }
:lang(zh-Hans) .countdown__title { font-size: 0.9rem; }
.countdown__units { display: grid; grid-template-columns: repeat(3, minmax(4rem, auto)); justify-content: center; gap: 0.25rem 0.75rem; margin-top: 0.3rem; }
.countdown__unit { display: grid; }
.countdown__number { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__label { font-size: 0.62rem; letter-spacing: 0.16em; font-weight: 400; }
:lang(zh-Hans) .countdown__label { font-size: 0.8rem; }
@media (max-width: 40rem) {
  /* On a phone the countdown sits under the scene as plain text. */
  .countdown { position: static; padding-top: var(--space-3); border: 0; outline: 0; background: none; color: var(--heading); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .countdown__title { color: var(--heading); }
}

.welcome { padding-bottom: var(--space-4); }
.welcome__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.welcome__text h2 { margin-bottom: var(--space-2); }
.welcome__photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.5rem); align-items: start; }
.photo--offset { margin-top: 18%; }
@media (max-width: 52rem) {
  .welcome__grid { grid-template-columns: 1fr; }
}

.day { text-align: center; }
.day__date { font-size: var(--step-1); color: var(--heading); font-family: var(--font-display); }
:lang(zh-Hans) .day__date { font-family: var(--font-display-zh); }
.day__arches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  margin-top: var(--space-4);
}
.time-arch {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: min(47%, 19rem);
  min-width: 9.25rem;
  padding: clamp(1.4rem, 3vw, 2rem) 0.75rem;
}
.time-arch__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arch-line { fill: none; stroke: var(--heading); stroke-width: 1.3; }
.arch-line--inner { stroke: var(--gold); stroke-width: 1; }
.arch-dot { fill: var(--gold); }
/* The arch draws itself when it scrolls into view. */
.js .reveal .arch-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) 0.15s; }
.js .reveal.is-visible .arch-line { stroke-dashoffset: 0; }
.time-arch__label { position: relative; color: var(--heading); }
.time-arch__time { position: relative; margin-top: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); line-height: 1.15; color: var(--heading); }
.time-arch__time .tbd { font-size: 0.4em; }
.day__note { margin: var(--space-3) auto 0; max-width: var(--measure); }
.day .button-row { justify-content: center; }

.travel-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.travel-teaser__text h2 { margin-bottom: var(--space-2); }
.travel-teaser__text .btn { margin-top: var(--space-3); }
/* A gothic window with the sea beyond it. */
.travel-teaser__window { max-width: 30rem; width: 100%; margin-inline: auto; }
.sea-window { width: 100%; height: auto; }
.sea-window__stone { fill: none; stroke: var(--heading); stroke-width: 3; stroke-linecap: round; }
.sea-window__stone .sea-window__frame { stroke-width: 5; }
.sea-window__stone circle { stroke-width: 2; }
@media (max-width: 52rem) {
  .travel-teaser__grid { grid-template-columns: 1fr; }
  .travel-teaser__window { max-width: 20rem; }
}

.registry-strip { padding-block: var(--space-5); }
.registry-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  text-align: center;
}
.registry-strip h2 { font-size: var(--step-3); }
.registry-strip p { font-size: var(--step-1); padding-left: var(--space-4); border-left: 1px solid var(--line); }
@media (max-width: 52rem) {
  .registry-strip p { padding-left: 0; border-left: 0; flex-basis: 100%; }
}

/* Layouts for the pages behind the home page. */

/* ==== Shared by inner pages ==== */

.subheading { font-size: var(--step-2); margin-bottom: var(--space-1); }
.story__note { text-align: center; margin: calc(-1 * var(--space-3)) auto var(--space-4); max-width: var(--measure); color: var(--text-soft); }

.facts { display: grid; gap: 0.75rem; margin-top: var(--space-2); }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.facts dt { font-family: var(--font-label); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--heading); padding-top: 0.2em; }
:lang(zh-Hans) .facts dt { font-family: var(--font-display-zh); letter-spacing: 0.2em; font-size: var(--step-0); padding-top: 0; }
.facts dd { margin: 0; }
.source--inline { display: block; margin-top: 0.2rem; }
@media (max-width: 26rem) {
  .facts > div { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* A list whose bullets are small rose lozenges. */
.check-list { display: grid; gap: 0.6rem; margin-top: var(--space-2); }
.check-list li { position: relative; padding-left: 1.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--rose);
  border: 1px solid var(--heading);
  transform: rotate(45deg);
}
:lang(zh-Hans) .check-list li::before { top: 0.7em; }
.check-list + p { margin-top: var(--space-2); }

.round-button {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid var(--heading);
  border-radius: 50%;
  background: var(--bg);
  color: var(--heading);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-out);
}
.round-button:hover:not(:disabled) { background: var(--heading); color: var(--bg); transform: scale(1.06); }
.round-button:disabled { opacity: 0.45; cursor: default; border-style: dashed; }
.round-button[hidden] { display: none; }

/* ==== Schedule ==== */

.schedule-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.schedule-grid__title { margin-bottom: var(--space-4); }
.schedule-aside { display: grid; gap: var(--space-3); position: sticky; top: 6rem; }
@media (max-width: 56rem) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-aside { position: static; }
}

.timeline { position: relative; display: grid; gap: 0; margin: 0; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8rem, 11.5rem) 2.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0 var(--space-2);
  padding-bottom: var(--space-4);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker { position: relative; display: grid; place-items: center; align-self: stretch; align-content: start; }
/* The gold thread that runs through the day, from one marker to the next. */
.timeline__marker::after {
  content: "";
  position: absolute;
  top: calc(var(--row) * 0.5 + 1rem);
  bottom: calc(-1 * var(--space-4) + 0.3rem);
  left: 50%;
  width: 1px;
  background: var(--line);
}
.timeline__item:last-child .timeline__marker::after { content: none; }
/* The marker is a button: it picks this entry out on the map. */
.timeline__pick {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.timeline__diamond {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--gold);
  /* The gold alone is too faint on ivory to mark a control; the dark edge carries it. */
  outline: 1.5px solid var(--heading);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease-out), background-color 0.4s ease, box-shadow 0.4s ease;
}
.timeline__pick:hover .timeline__diamond { transform: rotate(45deg) scale(1.3); }
.timeline__pick[aria-pressed="true"] .timeline__diamond {
  background: var(--rose);
  transform: rotate(45deg) scale(1.45);
  box-shadow: 0 0 0 0.2rem var(--bg), 0 0 0 0.3rem var(--gold);
}
.timeline__pick .icon { fill: var(--rose); stroke: var(--heading); stroke-width: 1.3; width: 2.3rem; height: 2.3rem; transition: transform 0.4s var(--ease-out); }
.timeline__pick[aria-pressed="true"] .icon { transform: scale(1.18); }
.timeline__item.is-selected .timeline__body h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.timeline__pick:disabled { cursor: default; }
/* With the script the whole row picks its entry out on the map. */
.js .timeline__item { cursor: pointer; }
.timeline__hint { margin: 0.4rem 0 var(--space-3); color: var(--text-soft); }
:root:not(.js) .timeline__hint { display: none; }
.timeline__time { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.2; color: var(--heading); text-align: right; }
.timeline__time .tbd { font-size: 0.875rem; vertical-align: middle; }
.timeline__body h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); font-weight: 500; line-height: 1.2; }
/* Time, marker and title share one row height, so they sit level. */
.timeline__item { --row: 2.3rem; }
.timeline__time, .timeline__body h3 { min-height: var(--row); display: flex; align-items: center; }
.timeline__pick { height: var(--row); }
.timeline__time { justify-content: flex-end; }
.timeline__note { margin-top: 0.3rem; color: var(--text-soft); max-width: 30rem; }
/* The ceremony: larger time and title, in a taller row centred on the quatrefoil. */
.timeline__item--highlight { --row: calc(var(--step-3) * 1.15); }
.timeline__item--highlight .timeline__body h3 { font-size: var(--step-3); font-weight: 600; }
.timeline__item--highlight .timeline__time { font-size: var(--step-2); }
.timeline__item--highlight :is(.timeline__time, .timeline__body h3) { line-height: 1; }
@media (max-width: 34rem) {
  .timeline__item { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .timeline__time { grid-column: 2; grid-row: 1; justify-content: flex-start; font-size: var(--step-1); }
  .timeline__body h3 { min-height: 0; }
  .timeline__item--highlight { --row: 2.3rem; }
  .timeline__marker { grid-column: 1; grid-row: 1 / span 2; }
  .timeline__body { grid-column: 2; grid-row: 2; }
}

.sunset-card { overflow: hidden; }
.sunset-card__sun {
  position: absolute;
  right: -1.5rem;
  bottom: -2.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--champagne-gold) 0 38%, color-mix(in srgb, var(--champagne-gold) 35%, transparent) 39% 62%, transparent 63%);
  opacity: 0.55;
  animation: halo-breathe 9s ease-in-out infinite;
}

/* The placeholder map: full width under the timeline. */
.day-map { margin-top: var(--space-5); }
.day-map__title { font-size: var(--step-3); text-align: center; }
.day-map__canvas {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 17rem;
  margin-top: var(--space-2);
  background: var(--photo-bg, var(--band-bg));
  border: 1px dashed var(--line);
}
.day-map__canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.day-map__coast { fill: color-mix(in srgb, var(--rose) 28%, transparent); }
.day-map__route { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.day-map__placeholder { position: absolute; left: 0.8rem; bottom: 0.5rem; margin: 0; font-size: 0.72rem; color: var(--text-soft); }
/* A pin: a teardrop drawn behind the number, with a label that opens on
   hover, on keyboard focus and while the pin is selected. */
.day-map__pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -2.75rem 0 0 -1.375rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--heading);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), color 0.35s ease;
}
.day-map__pin::before {
  content: "";
  position: absolute;
  inset: 0.2rem;
  border: 1.5px solid var(--heading);
  border-radius: 50% 50% 50% 0;
  background: var(--bg);
  transform: rotate(-45deg);
  transition: background-color 0.35s ease;
}
.day-map__number { position: relative; }
.day-map__pin:not(:disabled):hover, .day-map__pin:focus-visible { transform: translateY(-0.2rem) scale(1.1); z-index: 2; }
.day-map__pin[aria-pressed="true"] { color: var(--bg); z-index: 1; }
.day-map__pin[aria-pressed="true"]::before { background: var(--heading); }
.day-map__tip {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  width: max-content;
  max-width: min(17rem, 62vw);
  padding: 0.55rem 0.8rem;
  background: var(--heading);
  color: var(--bg);
  font: 400 0.92rem/1.35 var(--font-body);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  translate: -50% 0.3rem;
  transition: opacity 0.3s ease, translate 0.3s var(--ease-out), visibility 0.3s;
  pointer-events: none;
}
.day-map__tip strong { display: block; font-weight: 600; }
.day-map__pin--start .day-map__tip { left: 0; translate: 0 0.3rem; }
.day-map__pin--end .day-map__tip { left: auto; right: 0; translate: 0 0.3rem; }
.day-map__pin:not(:disabled):hover .day-map__tip,
.day-map__pin:focus-visible .day-map__tip,
.day-map__pin[aria-pressed="true"] .day-map__tip { opacity: 1; visibility: visible; translate: -50% 0; }
.day-map__pin--start:is(:not(:disabled):hover, :focus-visible, [aria-pressed="true"]) .day-map__tip,
.day-map__pin--end:is(:not(:disabled):hover, :focus-visible, [aria-pressed="true"]) .day-map__tip { translate: 0 0; }
/* One label at a time: while a pin is hovered or focused, the selected
   pin's label steps aside, and hover takes precedence over focus. */
.day-map__canvas:has(.day-map__pin:is(:hover, :focus-visible)) .day-map__pin[aria-pressed="true"]:not(:hover, :focus-visible) .day-map__tip,
.day-map__canvas:has(.day-map__pin:hover) .day-map__pin:focus-visible:not(:hover) .day-map__tip { opacity: 0; visibility: hidden; }
/* Outranks the hover, focus and selected rules above. */
.day-map__canvas .day-map__pin.day-map__pin.is-dismissed .day-map__tip { opacity: 0; visibility: hidden; }
.day-map__pin:disabled { cursor: default; }
.day-map__detail { margin-top: 0.75rem; text-align: center; color: var(--text-soft); }
ol.day-map__legend { margin: 0.75rem 0 0; padding-left: 1.4rem; list-style: decimal; color: var(--text-soft); columns: 2 16rem; }
.js .day-map__legend { display: none; }
:root:not(.js) .day-map__detail { display: none; }
@media (max-width: 40rem) {
  .day-map__canvas { aspect-ratio: 4 / 5; }
}

/* One, two or four across: never three with one left over. */
.detail-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 36rem) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .detail-grid { grid-template-columns: repeat(4, 1fr); } }
.detail-card h3 { font-size: var(--step-2); }

.menu {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  background: var(--band-bg);
  border: 1.5px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -0.6rem;
}
.menu__title { font-size: var(--step-4); display: inline-block; }
/* A quatrefoil in each corner of the menu card. */
.menu__corner { position: absolute; width: 1.6rem; height: 1.6rem; color: var(--gold); }
.menu__corner .icon { width: 100%; height: 100%; stroke-width: 1.2; }
.menu__corner--tl { top: 1.1rem; left: 1.1rem; }
.menu__corner--tr { top: 1.1rem; right: 1.1rem; }
.menu__corner--bl { bottom: 1.1rem; left: 1.1rem; }
.menu__corner--br { bottom: 1.1rem; right: 1.1rem; }
/* A gold diamond between one dish and the next. */
.menu__items > li + li::before {
  content: "";
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 auto var(--space-2);
  background: var(--gold);
  transform: rotate(45deg);
}
.menu__course + .menu__course, .menu__allergy { margin-top: var(--space-4); }
.menu__course > h3, .menu__allergy > h3 { font-family: var(--font-label); font-size: var(--step-0); color: var(--heading); letter-spacing: 0.26em; }
.menu__course > h3 { display: flex; align-items: center; justify-content: center; gap: 0.9rem; }
.menu__course > h3::before, .menu__course > h3::after {
  content: "";
  width: clamp(1.5rem, 8vw, 4rem);
  height: 1px;
  background: linear-gradient(to var(--rule-to, right), transparent, var(--gold));
}
.menu__course > h3::after { --rule-to: left; }
.menu__course-note { margin-top: 0.6rem; font-style: italic; color: var(--text-soft); }
:lang(zh-Hans) .menu__course-note { font-style: normal; }
.menu__items { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.menu__dish { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.2; color: var(--heading); }
:lang(zh-Hans) .menu__dish { font-family: var(--font-display-zh); }
.menu__detail { margin-top: 0.25rem; color: var(--text-soft); }
.menu__allergy { padding-top: var(--space-3); border-top: 1px solid var(--line); text-align: left; }
.menu__allergy p { margin-top: 0.5rem; }

/* ==== Travel ==== */

.travel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.travel-grid__title { margin-bottom: var(--space-3); }
.venue-card { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--band-bg); }
.venue-card__name { font-size: var(--step-3); }
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-3); }
@media (max-width: 56rem) {
  .travel-grid { grid-template-columns: 1fr; }
}

.shuttle__intro { margin-inline: auto; text-align: center; }
.shuttle__stops { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--space-2) clamp(0.5rem, 2vw, 2rem); margin-top: var(--space-4); }
.shuttle-stop { display: grid; justify-items: center; gap: var(--space-2); text-align: center; flex: 0 1 19rem; }
.shuttle-stop .time-arch { width: 100%; min-width: 0; }
.shuttle-stop__place { font-family: var(--font-display); font-size: var(--step-1); color: var(--heading); max-width: 16rem; line-height: 1.3; }
:lang(zh-Hans) .shuttle-stop__place { font-family: var(--font-display-zh); }
/* A dashed road from one stop to the other, ending in an arrowhead. */
.shuttle__road { position: relative; flex: 1 1 6rem; max-width: 14rem; height: 1.5rem; align-self: center; margin-bottom: 4rem; }
.shuttle__road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line); }
.shuttle__road span {
  position: absolute;
  top: 50%;
  right: -2px;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border-top: 2px solid var(--heading);
  border-right: 2px solid var(--heading);
  transform: rotate(45deg);
}
/* Below this width the two stops no longer fit on one row with the road between them. */
@media (max-width: 56rem) {
  .shuttle__road { display: none; }
}
.shuttle__times-note { margin-top: var(--space-2); text-align: center; color: var(--text-soft); }
.shuttle__rules { max-width: var(--measure); margin: var(--space-4) auto 0; }

.hotel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-3); margin-top: var(--space-3); align-items: start; }
.hotel-card { padding: clamp(1.5rem, 3vw, 2.25rem); }
.hotel-card h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.hotel-card__address { color: var(--text-soft); }
.hotel-card__badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.8rem;
  background: var(--feature-bg);
  color: var(--feature-gold);
  border: 1px solid var(--feature-gold);
  font-size: 0.75rem;
}
:lang(zh-Hans) .hotel-card__badge { font-size: 0.9rem; }
.nearby { margin-top: var(--space-5); }
.nearby__intro { max-width: var(--measure); }
.nearby__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0 var(--space-3); margin-top: var(--space-3); }
.nearby__list li { border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.nearby__list a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.8rem 0.25rem; text-decoration: none; font-family: var(--font-display); font-size: var(--step-0); color: var(--heading); transition: padding-left 0.3s var(--ease-out); }
.nearby__list a:hover { padding-left: 0.75rem; text-decoration: underline; }

/* ==== RSVP ==== */

.rsvp-deadline { text-align: center; margin-bottom: var(--space-4); font-size: var(--step-1); }
.rsvp-deadline .label { display: block; color: var(--heading); margin-bottom: 0.3rem; }
.rsvp-deadline strong { font-family: var(--font-display); font-weight: 600; }
.rsvp-closed {
  position: relative;
  overflow: hidden;
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) var(--space-3) clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background: linear-gradient(180deg, var(--burgundy), var(--plum) 70%, var(--wine));
  color: var(--ivory);
  border: 1.5px solid var(--champagne-gold);
  outline: 1px solid var(--champagne-gold);
  outline-offset: -0.6rem;
  --heading: var(--ivory);
  --line: var(--champagne-gold);
  --gold: var(--champagne-gold);
  --sheen-base: var(--feature-gold);
  --sheen-high: var(--feature-gold-high);
  --sheen-deep: var(--feature-gold-deep);
}
.rsvp-closed__tracery { position: absolute; left: 50%; top: 22%; width: min(120%, 44rem); transform: translateX(-50%); opacity: 0.16; }
.rsvp-closed .tracery__lines { stroke: var(--champagne-gold); }
.rsvp-closed__inner { position: relative; max-width: 30rem; margin-inline: auto; }
.rsvp-embed { max-width: 52rem; margin-inline: auto; }
.rsvp-embed__frame { display: block; width: 100%; height: min(85vh, 60rem); min-height: 36rem; border: 1.5px solid var(--line); background: var(--ivory); }
.rsvp-embed__fallback { margin-bottom: var(--space-2); text-align: center; }
.rsvp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--space-3); align-items: start; }
.rsvp-info .card { padding: clamp(1.5rem, 3vw, 2.25rem); }
.rsvp-info__title { font-size: var(--step-2); }
.rsvp-help { margin-top: var(--space-4); text-align: center; }
.rsvp-help p { margin-top: 0.5rem; }

/* ==== Registry ==== */

.registry-card {
  display: grid;
  justify-items: center;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  background: var(--band-bg);
  border: 1.5px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -0.6rem;
}
.registry-card__arch {
  display: grid;
  place-items: center;
  width: 9rem;
  aspect-ratio: 5 / 6;
  margin-bottom: var(--space-3);
  padding-top: 1.5rem;
  background: var(--initial-bg);
  -webkit-mask: url("arch-mask.svg") center / 100% 100% no-repeat;
  mask: url("arch-mask.svg") center / 100% 100% no-repeat;
}
.registry-card__arch svg { width: 62%; overflow: visible; }
.gift-line { fill: none; stroke: var(--champagne-gold); stroke-width: 3; stroke-linejoin: round; }
.gift-bow { fill: var(--mauve-rose); stroke: var(--champagne-gold); stroke-width: 2; stroke-linejoin: round; transform-origin: 60px 40px; animation: bow-sway 5s ease-in-out infinite; }
@keyframes bow-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.registry-card h2 { font-size: var(--step-3); }
.registry-card .lede { margin-top: var(--space-2); }
.registry-card__note { margin-top: var(--space-2); color: var(--text-soft); max-width: 28rem; }
.registry-preview { text-align: center; }
.registry-preview__title { font-size: var(--step-3); }
.registry-preview__note { margin: var(--space-1) auto 0; color: var(--text-soft); max-width: 34rem; }
/* Zola's frame draws on white in both themes, so it sits on a white mat. */
.registry-preview__frame {
  margin-top: var(--space-3);
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: #fff;
  border: 1.5px solid var(--line);
}
.registry-preview__frame a { display: inline-block; padding: var(--space-3) 0; color: #4d1b2b; }
.registry-preview__frame iframe { display: block; }

/* ==== Our story ==== */

.chapter { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); max-width: 58rem; margin-inline: auto; }
.chapter + .chapter { margin-top: var(--space-5); }
.chapter--flipped { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.chapter--flipped .chapter__photo { order: 2; }
.chapter__photo .photo { max-width: 22rem; margin-inline: auto; }
.chapter__number { font-family: var(--font-display); font-size: var(--step-4); font-weight: 300; line-height: 1; color: var(--numeral); }
.chapter__text h3 { font-size: var(--step-3); margin-top: 0.3rem; }
.chapter__text p:last-child { margin-top: var(--space-2); }
@media (max-width: 44rem) {
  .chapter, .chapter--flipped { grid-template-columns: 1fr; text-align: center; }
  .chapter--flipped .chapter__photo { order: 0; }
  .chapter__photo .photo { max-width: 15rem; }
}

/* Two sides of the wedding party, side by side with a gold rule between them.
   Each side: its heading, the maid of honor or best man, then the others. */
.party { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); max-width: 62rem; margin-inline: auto; }
.party__rule { width: 1px; background: linear-gradient(to bottom, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.party-side { display: grid; justify-items: center; align-content: start; gap: var(--space-3); text-align: center; }
.party-side__heading { font-size: var(--step-2); }
.party-side__lead, .party-side__members { display: grid; justify-content: center; gap: var(--space-3) clamp(1rem, 3vw, 2rem); margin: 0; padding: 0; list-style: none; width: 100%; }
.party-side__lead { grid-template-columns: minmax(0, 13rem); }
.party-side__members { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 10rem)); }
.party-card--lead .party-card__name { font-size: var(--step-2); }
@media (max-width: 40rem) {
  .party { grid-template-columns: 1fr; }
  .party__rule { width: auto; height: 1px; background: linear-gradient(to right, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
}
.party-card { text-align: center; }
.party-card .photo { transition: transform 0.5s var(--ease-out); }
.party-card:hover .photo { transform: translateY(-6px); }
.party-card__name { margin-top: var(--space-2); font-size: var(--step-1); }
.party-card__role { margin-top: 0.5rem; color: var(--text-soft); }
.party-card .tbd { white-space: normal; }

/* ==== Gallery ==== */

.slideshow { position: relative; }
.slideshow .slideshow__track {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0.5rem max(var(--gutter), (100% - var(--page-width)) / 2) 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100% - var(--page-width)) / 2);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.slideshow__slide { flex: 0 0 min(82%, 40rem); scroll-snap-align: center; }
.slideshow__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); min-height: 3rem; }
.slideshow__status { min-width: 4rem; text-align: center; color: var(--heading); }

.gallery-grid { columns: 3 14rem; column-gap: clamp(0.75rem, 2vw, 1.5rem); }
.gallery-grid__tile { break-inside: avoid; margin-bottom: clamp(0.75rem, 2vw, 1.5rem); }
.gallery-grid__tile a { display: block; }
.gallery-grid__tile .photo { transition: transform 0.5s var(--ease-out); }
.gallery-grid__tile:hover .photo { transform: scale(1.02); }

.viewer {
  width: min(96vw, 70rem);
  max-height: 94vh;
  padding: var(--space-3);
  background: var(--burgundy);
  color: var(--ivory);
  border: 1.5px solid var(--champagne-gold);
}
.viewer::backdrop { background: rgb(29 10 17 / 0.85); }
.viewer[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2); }
.viewer__close { position: absolute; top: 0.75rem; right: 0.75rem; }
.viewer__figure { margin: 0; text-align: center; }
.viewer__figure img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.viewer__figure figcaption { margin-top: 0.5rem; }
.viewer .round-button { background: var(--burgundy); color: var(--ivory); border-color: var(--champagne-gold); }
/* The viewer is burgundy in both themes, so its focus ring is always gold. */
.viewer :focus-visible { outline-color: var(--champagne-gold); }

/* ==== FAQ ==== */

.faq { max-width: 50rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1.15rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__question { font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.faq__item summary:hover .faq__question { text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 0.2em; }
/* A plus that turns into a minus when the answer is open. */
.faq__toggle { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border: 1.5px solid var(--heading); border-radius: 50%; transition: transform 0.4s var(--ease-out), background-color 0.25s ease; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 1.5px; margin: -0.75px 0 0 -0.45rem; background: var(--heading); transition: transform 0.4s var(--ease-out), background-color 0.25s ease; }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle { background: var(--heading); transform: rotate(180deg); }
.faq__item[open] .faq__toggle::before, .faq__item[open] .faq__toggle::after { background: var(--bg); }
.faq__item[open] .faq__toggle::after { transform: rotate(0deg); }
.faq__answer { padding: 0 3.25rem 1.4rem 0.25rem; max-width: 44rem; }
.faq__item[open] .faq__answer { animation: faq-open 0.5s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-0.4rem); } to { opacity: 1; transform: none; } }
.faq__answer p + p { margin-top: 0.6rem; }
.faq__contact { margin-top: var(--space-3); text-align: center; font-size: var(--step-1); }
.party-card__name .tbd { font-size: 0.875rem; }
/* On a phone the menu card is too narrow for corner ornaments beside its title. */
@media (max-width: 34rem) {
  .menu__corner { display: none; }
}
