/* Hallmark · genre: atmospheric · macrostructure: Centred Column · theme: custom
 * (vibe: "vast nocturnal awe" · paper oklch(13% 0.03 285) · accent aurora-green
 * oklch(86% 0.19 163) · Spectral) · enrichment: canvas sky (Tier A)
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
 * contrast: pass (40–41) · honest: pass (46) · chrome: pass (47)
 * tokens: pass (48) · responsive: pass (49) · mobile: pass (34, 49, 50–57)
 *
 * Aurora — a polar-night theme built as one descent. A single sticky canvas
 * sits behind the whole page and one number drives it: how far down the guest
 * has come. They start in deep space with a moon and the lit edge of the
 * earth, fall through thickening air as the curtains come down, and land on a
 * ridgeline under first light by the time they answer.
 *
 * The bands above it are panels, not walls: each dissolves at its top and
 * bottom edge, so the seams between them are windows onto that sky. On a phone
 * the content is the full width of the window, and those seams are the only
 * way the descent is seen at all — the vertical rhythm is doing double duty as
 * artwork. The fold, the countdown, and the answer keep nothing behind them.
 *
 * Every band still hangs off one centred axis inside one measure, so the page
 * reads as an invitation rather than an editorial page. One accent (aurora
 * green) on small surfaces only. Solid ink, roman display, fade-only motion in
 * the DOM — all the movement lives in the canvas, and reduced motion replaces
 * it with one composed still. */

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("spectral-300-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("spectral-500-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --color-paper: oklch(0.13 0.03 285);
  --color-paper-2: oklch(0.165 0.032 283);
  --color-paper-3: oklch(0.2 0.036 281);
  --color-ink: oklch(0.94 0.012 285);
  --color-ink-2: oklch(0.76 0.028 282);
  --color-ink-3: oklch(0.66 0.03 280);
  --color-accent: oklch(0.86 0.19 163);
  --color-accent-ink: oklch(0.16 0.04 285);
  --color-focus: oklch(0.86 0.19 163);
  --color-lantern: oklch(0.87 0.12 90);
  --color-link-underline: oklch(0.86 0.19 163 / 0.4);
  --color-scrim: oklch(0.13 0.03 285);
  --color-veil: oklch(0.09 0.025 285);
  --color-shade: oklch(0.1 0.028 285);

  --font-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --font-body: "Spectral", "Iowan Old Style", Georgia, serif;

  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;

  /* The big rhythm steps are fluid: at their fixed values a phone spent a
   * third of its scroll on empty bands. */
  --space-xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --space-2xl: clamp(2.5rem, 2rem + 2.4vw, 4rem);
  --space-3xl: clamp(3.25rem, 2.5rem + 3.6vw, 6rem);
  --space-4xl: clamp(4rem, 3rem + 4.8vw, 9rem);

  --text-xs: 0.64rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;

  /* Likewise the display steps — a fixed 1.25rem lede reads as 34 characters
   * a line on a 390px phone. */
  --text-md: clamp(1.0625rem, 0.98rem + 0.42vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.72vw, 1.5625rem);
  --text-xl: clamp(1.5rem, 1.28rem + 1.05vw, 1.9531rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.7vw, 2.4414rem);

  /* One centred column carries the whole invitation; the wide one is only for
   * the picture grids that would suffocate inside it. */
  --measure: 34rem;
  --measure-wide: 52rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 200;
  --z-modal: 400;

  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-input: 10px;
}

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

html {
  overflow-x: clip;
  background: var(--color-paper);
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 340;
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.aurora__defs {
  position: absolute;
}

.aurora {
  position: relative;
  /* Block-axis clipping would make this the sticky sky's containing scroller
   * and pin it to the page instead of the window; only the inline axis needs
   * clipping anyway. */
  overflow-x: clip;
}

.aurora img {
  max-width: 100%;
  height: auto;
  display: block;
}

.aurora a {
  color: var(--color-accent);
  text-decoration-color: var(--color-link-underline);
  text-underline-offset: 0.18em;
}

.aurora a:hover {
  text-decoration-color: currentColor;
}

.aurora a:focus-visible,
.aurora button:focus-visible,
.aurora input:focus-visible,
.aurora textarea:focus-visible,
.aurora [tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================ the descent — one sky behind the whole page === */

/* Sticky, not fixed. The demo device preview makes .invite-frame a query
 * container, and a container is a containing block for fixed children — a
 * fixed sky would be trapped at page height instead of window height, in the
 * very preview the theme is reviewed in. The negative margin hands back the
 * space the canvas occupies, so it lies behind the page without pushing a
 * single band down. */
.aurora__descent {
  position: sticky;
  top: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100svh;
  margin-bottom: -100svh;
  pointer-events: none;
}

/* Every band rides above the sky rather than beside it. */
.aurora-js .aurora__sky,
.aurora-js .aurora__station,
.aurora-js .aurora__watch,
.aurora-js .aurora__dawn {
  position: relative;
  z-index: 1;
}

/* Below the fold the sky has to keep showing, or the descent is something only
 * a desktop ever sees: on a phone the content is the full width of the window,
 * with no margins to look past. So the bands stop being opaque and become
 * panels that dissolve at both edges — the seams between them are the windows,
 * and the vertical rhythm doubles as the artwork. */
.aurora-js .aurora__station {
  --panel: oklch(from var(--color-paper) l c h / 0.58);
  --panel-fade: clamp(2.5rem, 12vw, 6rem);
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    transparent 0,
    var(--panel) var(--panel-fade),
    var(--panel) calc(100% - var(--panel-fade)),
    transparent 100%
  );
}

.aurora-js .aurora__pair,
.aurora-js .aurora__crew {
  --panel: oklch(from var(--color-paper-2) l c h / 0.66);
}

/* Three bands keep nothing behind them at all: the fold, the countdown, and
 * the answer. They are the widest openings in the page, and each one is a
 * moment the sky is meant to carry on its own. */
.aurora-js .aurora__sky,
.aurora-js .aurora__watch,
.aurora-js .aurora__dawn {
  background: transparent;
}

/* The couple's photograph still owns the fold, but it stops being a wall: its
 * edge dissolves into the sky, so the moon and the stars are already there
 * around it and the descent has somewhere to begin. Below it the names sit on
 * open sky, which is what lets them be drawn as a constellation. */
.aurora-js .aurora__sky .hero__cover-photo {
  inset: 0 0 30% 0;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 58%, transparent 100%);
}

/* With the photograph faded out behind the type, the words are already over
 * night sky and no longer need most of the scrim that was holding them off it. */
.aurora-js .aurora__sky::after {
  background: linear-gradient(
    180deg,
    transparent 45%,
    oklch(from var(--color-scrim) l c h / 0.18) 70%,
    oklch(from var(--color-scrim) l c h / 0.42)
  );
}

/* No canvas: the sky falls back to a still wash rather than a flat colour, so
 * a browser that cannot give us a 2D context still gets a night, not a void. */
.aurora-nosky .aurora__sky,
.aurora-nosky .aurora__dawn {
  background:
    radial-gradient(120% 60% at 50% -10%, var(--color-paper-3), transparent 60%),
    var(--color-paper);
}

/* ========================= the fold — centred statement over a living sky === */

.aurora__sky {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--color-paper-3), transparent 60%),
    var(--color-paper);
}

/* The fold is one isolated stack, layered bottom to top: photograph, scrim,
 * second scrim, words. Every layer names its own place — the scrim used to sit
 * at the photograph's own z-index, and lost to it on DOM order, so no amount of
 * tuning it could reach the type. The sky is no longer in this stack at all: it
 * runs behind the whole page now, and reaches the fold through the photograph's
 * own soft edge. */
.aurora__sky .hero__cover-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.hero:has(.hero__cover-photo)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    oklch(from var(--color-scrim) l c h / 0.5),
    oklch(from var(--color-scrim) l c h / 0.2) 35%,
    oklch(from var(--color-scrim) l c h / 0.55) 65%,
    oklch(from var(--color-scrim) l c h / 0.85)
  );
}

/* A second scrim rides over the sky, so the statement never lands on a bright
 * ribbon the canvas happens to draw under it. */
.aurora__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 40%,
    oklch(from var(--color-scrim) l c h / 0.35) 62%,
    oklch(from var(--color-scrim) l c h / 0.7) 82%,
    oklch(from var(--color-scrim) l c h / 0.85)
  );
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) clamp(var(--space-md), 4vw, var(--space-2xl)) var(--space-4xl);
}

/* The couple choose the photograph, so no scrim can be tuned to it. A shadow
 * travels with the words instead and holds them off whatever is behind. */
.hero__eyebrow,
.hero__names,
.hero__date,
.hero__welcome {
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 24px oklch(from var(--color-scrim) l c h / 0.9);
}

.hero__eyebrow {
  position: absolute;
  top: var(--space-xl);
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 2 * var(--space-lg));
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.hero__names {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2rem, 7.6vw, 5.5rem);
  line-height: 1.12;
  color: var(--color-ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero__partner {
  display: block;
}

.hero__separator {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.22em auto;
  background: var(--color-accent);
  color: transparent;
}

.hero__date {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.hero__welcome {
  margin: var(--space-md) auto 0;
  max-width: 30rem;
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--color-ink);
}

.aurora__cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  translate: -50% 0;
  bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  color: var(--color-ink-2);
}

.aurora__cue-word {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.aurora__cue-star {
  width: 0.7rem;
  height: 0.7rem;
  color: var(--color-accent);
}

/* ================================ below the fold — varied editorial rhythm */

.aurora__station {
  position: relative;
  padding-inline: clamp(var(--space-md), 4vw, var(--space-2xl));
}

/* One centred axis runs the whole length of the invitation. Everything hangs
 * off it; nothing spans the viewport for its own sake. */
.aurora__head,
.story__introduction,
.story__milestones,
.event-schedule,
.guest-information,
.rsvp-widget,
.aurora__watch-label,
.aurora__close {
  max-width: var(--measure);
  margin-inline: auto;
}

.couple,
.wedding-party,
.gallery,
.aurora-countdown {
  max-width: var(--measure-wide);
  margin-inline: auto;
}

.aurora__head {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.aurora__heading {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(var(--text-xl), 4.2vw, var(--text-2xl));
  line-height: 1.15;
  color: var(--color-ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Sections collapse entirely when their block has nothing to say. */
.aurora__pair:not(:has(.couple__partner)),
.aurora__log:not(:has(.story__introduction, .story__milestone)),
.aurora__night:not(:has(.event-schedule__event)),
.aurora__crew:not(:has(.wedding-party__person)),
.aurora__postcards:not(:has(.gallery__item)),
.aurora__notes:not(:has(.guest-information *)) {
  display: none;
}

.aurora__watch:not(:has(.countdown *)) {
  display: none;
}

/* The couple — hard band change out of the fold, asymmetric portraits. */
.aurora__pair {
  background: var(--color-paper-2);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.couple {
  display: grid;
  gap: var(--space-2xl);
}

.couple__partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.aurora .couple__portrait {
  width: 100%;
  max-width: 17rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.couple__name {
  margin: var(--space-md) 0 0;
  font-family: var(--font-display);
  font-weight: 380;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.couple__label {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.couple__bio {
  max-width: 26rem;
  margin-inline: auto;
  color: var(--color-ink-2);
}

.couple__bio p {
  margin: 0;
}

/* The story — entries stacked on the centre axis, each opened by a star. */
.aurora__log {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.story__introduction {
  margin-bottom: var(--space-2xl);
  font-size: var(--text-md);
  line-height: 1.55;
  text-align: center;
  color: var(--color-ink);
}

.story__introduction p {
  margin: 0;
}

.story__milestones {
  position: relative;
  display: grid;
  gap: var(--space-2xl);
}

.story__milestone {
  position: relative;
  display: grid;
  gap: var(--space-sm);
  justify-items: center;
  text-align: center;
  padding-top: var(--space-xl);
}

.story__milestone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--color-paper);
  border: 2px solid var(--color-accent);
  rotate: 45deg;
}

.aurora .story__milestone-photo {
  width: 100%;
  max-width: 20rem;
  border-radius: var(--radius-card);
}

.story__milestone-date {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-md);
  letter-spacing: 0.06em;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.story__milestone-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 550;
  font-size: var(--text-md);
  line-height: 1.3;
}

.story__milestone-description {
  max-width: 30rem;
  margin-inline: auto;
  color: var(--color-ink-2);
}

.story__milestone-description p {
  margin: 0;
}

/* The countdown — one stat band, numerals as the landmark. */
.aurora__watch {
  padding: var(--space-3xl) clamp(var(--space-md), 4vw, var(--space-2xl));
  background: var(--color-paper-3);
}

.aurora__watch-label {
  margin: 0 auto var(--space-lg);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.countdown__remaining {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.countdown__remaining--source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.aurora-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: clamp(var(--space-md), 4vw, var(--space-2xl));
}

.aurora-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 3.2rem;
}

.aurora-countdown__value {
  font-family: var(--font-display);
  font-weight: 260;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

.aurora-countdown__value.is-changing {
  animation: aurora-flicker var(--dur-long) var(--ease-out);
}

@keyframes aurora-flicker {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.aurora-countdown__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}

.aurora-countdown__status {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 340;
  font-size: var(--text-xl);
  color: var(--color-ink);
}

/* The events — one card each, read down the centre axis. */
.aurora__night {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.event-schedule {
  display: grid;
  gap: var(--space-md);
}

.event-schedule__event {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  column-gap: var(--space-xs);
  row-gap: var(--space-xs);
  padding: var(--space-xl) clamp(var(--space-md), 3vw, var(--space-lg));
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
}

.event-schedule__title {
  flex-basis: 100%;
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(var(--text-md), 2.6vw, var(--text-xl));
  line-height: 1.2;
  overflow-wrap: anywhere;
  min-width: 0;
}

.event-schedule__time {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 550;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

/* The separator is its own flex item, so a wrap could strand the dash a whole
 * gap away from the time it belongs to. Carry it on the end time instead,
 * where nothing can separate the two. */
.event-schedule__time-separator {
  display: none;
}

.event-schedule__time-separator + .event-schedule__time::before {
  content: "– ";
  color: var(--color-ink-3);
}

.event-schedule__location {
  flex-basis: 100%;
  margin-top: var(--space-sm);
}

.event-schedule__venue {
  margin: 0;
  font-weight: 550;
  font-size: var(--text-md);
}

.event-schedule__address {
  margin: var(--space-3xs) 0 0;
  color: var(--color-ink-2);
}

.event-schedule__directions {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.event-schedule__dress-code {
  flex-basis: 100%;
  margin: var(--space-xs) 0 0;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

.event-schedule__dress-code span {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-lantern);
  margin-right: var(--space-xs);
}

.event-schedule__description {
  flex-basis: 100%;
  margin-top: var(--space-xs);
  max-width: 30rem;
  margin-inline: auto;
  color: var(--color-ink-2);
}

.event-schedule__description p {
  margin: 0;
}

/* The crew — a lineup on the centre axis. */
.aurora__crew {
  background: var(--color-paper-2);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.wedding-party {
  display: grid;
  gap: var(--space-xl);
}

.wedding-party__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3xs);
}

.wedding-party__photo {
  width: clamp(6.5rem, 22vw, 10rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.wedding-party__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 380;
  font-size: var(--text-md);
}

.wedding-party__role {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-ink-3);
}

.wedding-party__group {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

.wedding-party__bio {
  margin: var(--space-xs) auto 0;
  max-width: 22rem;
  font-size: var(--text-base);
  color: var(--color-ink-2);
}

/* Postcards — a broken grid, sizes varied on purpose. */
.aurora__postcards {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--space-xs), 1.6vw, var(--space-md));
}

.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: zoom-in;
  background: var(--color-paper-3);
  min-width: 0;
}

.gallery__item:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.gallery__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--dur-long) var(--ease-out);
}

.gallery__item:hover .gallery__image,
.gallery__item:focus-visible .gallery__image {
  transform: scale(1.03);
}

.gallery__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-xl) var(--space-sm) var(--space-sm);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-ink);
  background: linear-gradient(180deg, transparent, oklch(from var(--color-shade) l c h / 0.9));
}

.aurora button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* The postcard viewer the runtime opens. */
.aurora__viewer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: clamp(var(--space-md), 4vw, var(--space-2xl));
  background: oklch(from var(--color-veil) l c h / 0.96);
}

.aurora__viewer[hidden] {
  display: none;
}

.aurora__viewer-image {
  max-width: 100%;
  max-height: 74svh;
  object-fit: contain;
  border-radius: var(--radius-input);
}

.aurora__viewer-caption {
  margin: 0;
  max-width: 34rem;
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-ink-2);
}

.aurora__viewer-close,
.aurora__viewer-prev,
.aurora__viewer-next {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-ink);
  background: var(--color-paper-3);
  border: 0;
  border-radius: var(--radius-pill);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.aurora__viewer-close:hover,
.aurora__viewer-prev:hover,
.aurora__viewer-next:hover {
  background: var(--color-paper-2);
  color: var(--color-accent);
}

.aurora__viewer-close:active,
.aurora__viewer-prev:active,
.aurora__viewer-next:active {
  transform: translateY(1px);
}

.aurora__viewer-nav {
  display: flex;
  gap: var(--space-sm);
}

.aurora__viewer-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

/* Field notes — typographic rows; a small square marks each entry. */
.aurora__notes {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.guest-information {
  display: grid;
  gap: var(--space-2xl);
}

.guest-information__faqs {
  display: grid;
  gap: var(--space-xs);
}

.guest-information__faq {
  border-radius: var(--radius-input);
  background: var(--color-paper-2);
  overflow: hidden;
}

.guest-information__question {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 550;
  font-size: var(--text-md);
  line-height: 1.3;
}

/* The runtime upgrades the question into a disclosure button. */
.guest-information__question-button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-weight: 550;
  font-size: var(--text-md);
  line-height: 1.3;
  color: var(--color-ink);
  transition: background-color var(--dur-micro) var(--ease-out);
}

.guest-information__question-button:hover {
  background: var(--color-paper-3);
}

.guest-information__question-button::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  rotate: 45deg;
  translate: 0 -0.12rem;
  transition: rotate var(--dur-short) var(--ease-in-out), translate var(--dur-short) var(--ease-in-out);
}

.guest-information__question-button[aria-expanded="true"]::after {
  rotate: 225deg;
  translate: 0 0.08rem;
}

.guest-information__answer {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--color-ink-2);
}

.guest-information__answer p {
  margin: 0;
}

/* Without the runtime every answer simply stays visible. */
.aurora:not(.aurora-js) .guest-information__question {
  padding: var(--space-md) var(--space-lg) 0;
}

.guest-information__travel,
.guest-information__gifts {
  display: grid;
  gap: var(--space-lg);
  text-align: center;
}

.guest-information__travel-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--text-md);
}

.guest-information__travel-title::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  translate: 0 -0.05rem;
}

.guest-information__travel-description,
.guest-information__gift-description {
  margin: 0 auto;
  max-width: 30rem;
  text-align: center;
  color: var(--color-ink-2);
}

.guest-information__travel-link,
.guest-information__gift-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* Gifts read as a small lit lantern in the dark — the one warm glow in an
   otherwise cool aurora-green descent — rather than another travel row
   sharing the same bullet-and-line treatment. */
.guest-information__gift {
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-radius: var(--radius-card);
  /* Two background layers on one box, so the glow paints under the content
     with no stacking-context bookkeeping: a warm bloom from the top edge,
     over the same raised panel tone the FAQ card uses. */
  background:
    radial-gradient(9rem 6rem at 50% 0%, color-mix(in oklab, var(--color-lantern) 45%, transparent), transparent 70%),
    var(--color-paper-2);
}

.guest-information__gift-title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--text-md);
}

/* The dawn band — the form over the last sky. */
.aurora__dawn {
  position: relative;
  padding: var(--space-3xl) clamp(var(--space-md), 4vw, var(--space-2xl)) var(--space-3xl);
  background: var(--color-paper);
}

.aurora__head--dawn {
  margin-bottom: var(--space-2xl);
}

.rsvp-widget {
  max-width: 28rem;
  padding: clamp(var(--space-lg), 3vw, var(--space-2xl));
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
}

.rsvp-widget__title {
  margin: 0 0 var(--space-lg);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 360;
  font-size: var(--text-md);
  color: var(--color-ink);
}

.rsvp-widget__form {
  display: grid;
  gap: var(--space-md);
}

.rsvp-widget__field {
  display: grid;
  gap: var(--space-xs);
  border: 0;
  margin: 0;
  padding: 0;
}

.rsvp-widget__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.rsvp-widget__input {
  width: 100%;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-ink);
  background: var(--color-paper);
  border: 1px solid var(--color-paper-3);
  border-radius: var(--radius-input);
  padding: var(--space-sm) var(--space-md);
}

.rsvp-widget__input::placeholder {
  color: var(--color-ink-3);
}

.rsvp-widget__input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
  border-color: transparent;
}

.rsvp-widget__choices {
  display: flex;
  gap: var(--space-sm);
}

.rsvp-widget__choice {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-paper-3);
  border-radius: var(--radius-input);
  background: var(--color-paper);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--dur-micro) var(--ease-out);
}

.rsvp-widget__choice:has(:checked) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.rsvp-widget__choice input {
  accent-color: var(--color-accent);
}

.rsvp-widget__submit {
  margin-top: var(--space-xs);
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  border: 0;
  border-radius: var(--radius-pill);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out);
}

.rsvp-widget__submit:hover {
  transform: translateY(-1px);
}

.rsvp-widget__submit:active {
  transform: translateY(0);
}

/* RSVP confirmation returned inside the turbo frame. */
.rsvp-widget p:not(.rsvp-widget__title) {
  color: var(--color-ink-2);
}

/* The close — a statement, not a sign-off line. */
.aurora__close {
  margin-top: var(--space-3xl);
  display: grid;
  gap: var(--space-md);
  justify-items: center;
  text-align: center;
}

.aurora__close-line {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-xl), 5vw, var(--text-2xl));
  line-height: 1.2;
  color: var(--color-ink);
  text-wrap: balance;
}

.aurora__close-sign {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-ink-2);
}

/* Reveal — the atmosphere moves; content only fades in. */
.aurora-js [data-glimmer] {
  opacity: 0;
  transition: opacity var(--dur-long) var(--ease-out) calc(var(--glimmer-index, 0) * 60ms);
}

.aurora-js [data-glimmer].is-lit {
  opacity: 1;
}

/* ================================================================== tablet */

@media (min-width: 640px) {
  .couple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .wedding-party {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ================================================================= desktop */

@media (min-width: 1024px) {
  .hero__welcome {
    font-size: var(--text-lg);
  }
}

/* =========================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  .gallery__image {
    transition: none;
  }

  .guest-information__question-button::after {
    transition: none;
  }

  .rsvp-widget__submit {
    transition: none;
  }

  .aurora-countdown__value.is-changing {
    animation: none;
  }

  .aurora-js [data-glimmer] {
    opacity: 1;
    transition: none;
  }
}
