/* ==========================================================================
   Evelyn & Kevin · kev4ev.com
   Tokens mirror the Figma file (Version B · Reckless + DM Sans).
   Fluid sizes slide between the 393px mobile frame and the 1280px desktop
   frame:  size = clamp(min, min + (max - min) * (100vw - 393px) / 887, max)
   Breakpoints: 768px (tablet), 1024px (desktop layout), 1728px (wide).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Reckless M";
  src: url("../assets/fonts/RecklessStandardM-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Reckless S";
  src: url("../assets/fonts/RecklessStandardS-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/DMSans-Variable-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color: primitives */
  --navy-900: #12263d;
  --navy-800: #1c3c61;
  --blue-600: #4a6b8a;
  --slate-600: #4b5a6b;
  --blue-300: #9dbbd1;
  --blue-100: #e3ecf3;
  --blue-50: #f2f6f9;
  --gold-700: #7a6240;
  --ocean: #bbdefc;
  --white: #fff;

  /* Color: roles */
  --text-primary: var(--navy-900);
  --text-brand: var(--navy-800);
  --text-secondary: var(--slate-600);
  --text-accent: var(--blue-600);
  --text-gold: var(--gold-700);
  --text-inverse: var(--white);
  --bg-page: var(--white);
  --bg-tint: var(--blue-50);
  --bg-inverse: var(--navy-800);
  --border-decor: var(--blue-300);
  --border-subtle: var(--blue-100);
  --progress-track: var(--blue-100);

  /* Space (4px base) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;

  /* Shape */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --stroke-hairline: 1px;
  --shadow-float: 0 6px 16px rgba(18, 33, 64, .22);

  /* Layout */
  --ramp: ((100vw - 393px) / 887);
  --margin: clamp(24px, calc(24px + 40 * var(--ramp)), 64px);
  --gutter: clamp(16px, calc(16px + 8 * var(--ramp)), 24px);
  --section-pad: clamp(64px, calc(64px + 64 * var(--ramp)), 128px);
  --section-gap: clamp(32px, calc(32px + 32 * var(--ramp)), 64px);
  --content-max: 1600px;
  --edge: var(--margin);              /* left/right edge of the content */

  /* Type */
  --font-display: "Reckless M", "Iowan Old Style", Georgia, serif;
  --font-title: "Reckless S", "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --display-size: clamp(52px, calc(52px + 52 * var(--ramp)), 104px);
  --headline-size: clamp(33px, calc(33px + 19 * var(--ramp)), 52px);
  --headline-lh: clamp(36px, calc(36px + 20 * var(--ramp)), 56px);
  --title-size: clamp(19px, calc(19px + 4 * var(--ramp)), 23px);
  --title-lh: clamp(28px, calc(28px + 4 * var(--ramp)), 32px);
  --body-lg-size: clamp(18px, calc(18px + 2 * var(--ramp)), 20px);
  --body-lg-lh: clamp(28px, calc(28px + 4 * var(--ramp)), 32px);
  --body-size: clamp(16px, calc(16px + 1 * var(--ramp)), 17px);
  --meta-size: clamp(13px, calc(13px + 1 * var(--ramp)), 14px);

  /* Components */
  --bar-h: 56px;
  --hero-photo-h: clamp(420px, 72vh, 600px);
}
@supports (height: 1svh) {
  :root { --hero-photo-h: clamp(420px, 72svh, 600px); }
}
@media (min-width: 1024px) {
  :root { --bar-h: 80px; }
}
@media (min-width: 1728px) {
  :root { --edge: max(var(--margin), calc((100vw - var(--content-max)) / 2)); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 28px;
  letter-spacing: -0.0025em;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy-800); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: calc(var(--bar-h) - 1px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy-800); color: #fff; padding: 8px 16px; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.nowrap { white-space: nowrap; }

/* Show/hide by breakpoint (desktop = 1024px and up) */
@media (max-width: 1023.98px) {
  .only-desktop { display: none !important; }
}
@media (min-width: 1024px) {
  .only-mobile { display: none !important; }
}

/* ---------- Type roles ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--display-size);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-brand);
}
.headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--headline-size);
  line-height: var(--headline-lh);
  letter-spacing: -0.02em;
  color: var(--text-brand);
}
.title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: var(--title-size);
  line-height: var(--title-lh);
  letter-spacing: -0.005em;
  color: var(--text-brand);
}
.body-lg {
  font-size: var(--body-lg-size);
  line-height: var(--body-lg-lh);
  letter-spacing: -0.005em;
  color: var(--text-secondary);
}
.meta {
  font-size: var(--meta-size);
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text-accent);
}
.eyebrow {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-accent);
}
.caption { font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; flex: none; }
.icon--24 { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-pill);
  font-size: 16px; line-height: 24px; font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.button--primary { background: var(--bg-inverse); color: var(--text-inverse); }
.button--primary:hover { background: var(--navy-900); }
.button--inverse { background: var(--white); color: var(--text-brand); }
.button--inverse:hover { background: var(--blue-50); }
.button:active { transform: translateY(1px); }

/* Inline text links (FAQ garages, RSVP page) */
.link, .faq a {
  display: inline; color: inherit; font: inherit; letter-spacing: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-skip-ink: none;
}
.link:hover, .faq a:hover { color: var(--text-brand); }

/* Day-of phone numbers: tap to copy, a small tag confirms it */
.tel { position: relative; white-space: nowrap; }
.tel::after {
  content: "Copied";
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translate(-50%, 4px);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-inverse); color: var(--text-inverse);
  font-size: 12px; line-height: 18px; font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
}
.tel.is-copied::after { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero__photos {
  position: relative;
  order: -1;
  height: var(--hero-photo-h);
  overflow: hidden;
  background: var(--blue-100);
}
.hero__slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-active img { opacity: 1; }

.hero__names {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-48) var(--margin) var(--space-64);
  display: flex; flex-direction: column; gap: var(--space-16);
}
.hero__texture {
  position: absolute; inset: -20px; z-index: -1;
  background: url("../assets/img/texture-618.webp") center / cover no-repeat;
  opacity: .3;
}
.hero__title { white-space: nowrap; }

/* RSVP badge. Mobile: 120px, on the photo/names seam at the right margin. */
.badge {
  --size: 120px;
  position: absolute;
  z-index: 3;
  width: var(--size); height: var(--size);
  right: var(--margin);
  top: calc(var(--hero-photo-h) - var(--size) / 2);
  border-radius: 50%;
  color: var(--text-gold);
  text-decoration: none;
  transition: transform .3s ease, filter .3s ease;
}
.badge__svg { width: 100%; height: 100%; overflow: visible; display: block; }
.badge__disc { fill: var(--white); stroke: var(--text-gold); stroke-width: 1; }
.badge__center { fill: transparent; stroke: var(--text-gold); stroke-width: 1; transition: fill .3s ease; }
.badge__ring { transform-origin: 74px 74px; }
.badge__ring-text {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  fill: currentColor;
}
.badge__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-title);
  font-size: calc(var(--size) * 23 / 148);
  letter-spacing: -0.005em;
  transition: color .3s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .badge__ring { animation: badge-spin 10s linear infinite; }
}
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .badge:hover { transform: scale(1.06); filter: drop-shadow(0 8px 12px rgba(18, 33, 64, .18)); }
  .badge:hover .badge__center { fill: var(--navy-800); }
  .badge:hover .badge__label { color: var(--white); }
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    max-height: 1200px;
  }
  .hero__names {
    flex: 0 0 43.28%;               /* 554 / 1280: cols 1–5 */
    justify-content: flex-end;
    gap: var(--space-24);
    padding: 0 var(--space-24) var(--space-96) var(--edge);
  }
  .hero__photos { order: 0; flex: 1; height: auto; }
  /* Badge sits on the photo seam, centred on the names block */
  .badge {
    --size: 148px;
    left: calc(43.28% - var(--size) / 2);
    right: auto;
    top: auto;
    bottom: calc(var(--space-96) + var(--display-size) - var(--size) / 2);
  }
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-h);
  background: var(--bg-page);
}
@media (min-width: 1024px) {
  .bar { margin-top: 32px; }   /* gap under the landing photos; sticks at the top as before */
}
/* Frosted state: translucent white + blur, bottom edge fades out */
.bar::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--bar-h) + 28px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-mask-image: linear-gradient(to bottom, #000 66.67%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 66.67%, transparent 100%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar::before { background: rgba(255, 255, 255, .96); }
}
.bar.is-stuck { background: transparent; }
.bar.is-stuck::before { opacity: 1; }

.bar__inner {
  position: relative;
  height: 100%;
  display: flex; align-items: center; gap: var(--space-12);
  padding: 0 var(--space-16);
}
.bar__rsvp {
  padding: 6px 12px 6px 14px; gap: 4px;
  font-size: 14px; line-height: 20px;
}
.bar__rsvp .icon { width: 16px; height: 16px; }

.progress {
  --p: 0;                  /* 0 → 1, set by js/main.js */
  --ring-w: 54px;
  --ring-min: -12px;       /* how far the ring may hang past each end */
  --ring-max: 8px;
  position: relative;
  flex: 1;
  height: 48px;
  align-self: flex-start;
  margin-top: 4px;
}
.progress__track, .progress__fill {
  position: absolute; left: 0; top: 18px; height: 3px; border-radius: 2px;
}
.progress__track { right: 0; background: var(--progress-track); }
.progress__fill {
  width: calc(var(--p) * 100%);
  min-width: 1px;
  background: var(--navy-800);
}
.progress__markers { position: absolute; inset: 0; }
.progress__markers li { position: absolute; top: 0; left: calc(var(--at, 0) * 100%); }
.progress__marker {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  transform: translateX(-50%);
  text-decoration: none;
  padding-top: 16px;
}
.progress__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--navy-800);
  transition: background-color .2s;
}
.progress__label {
  margin-top: 5px;
  font-size: 11px; line-height: 14px; font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .2s;
}
.progress__marker.is-passed .progress__dot { background: var(--navy-800); }
.progress__marker.is-passed .progress__label { color: var(--text-brand); }
.progress__marker:hover .progress__label { color: var(--text-brand); }

/* The ring rides the end of the fill */
.progress__ring img {
  position: absolute;
  top: calc(19.5px - var(--ring-w) * 131 / 252 / 2);
  left: clamp(var(--ring-min), calc(var(--p) * 100% - var(--ring-w) / 2), calc(100% - var(--ring-w) + var(--ring-max)));
  width: var(--ring-w);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 3px 3px rgba(18, 33, 64, .14));
  pointer-events: none;
}

@media (min-width: 1024px) {
  .bar::before {
    height: calc(var(--bar-h) + 56px);
    background: rgba(255, 255, 255, .72);
    -webkit-mask-image: linear-gradient(to bottom, #000 58.82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 58.82%, transparent 100%);
  }
  .bar__inner { gap: var(--space-32); padding: 0 var(--edge); }
  .bar__rsvp { padding: var(--space-12) var(--space-24); gap: var(--space-8); font-size: 16px; line-height: 24px; }
  .bar__rsvp .icon { width: 20px; height: 20px; }
  .progress {
    --ring-w: 84px;
    --ring-min: calc(var(--ring-w) / -2);
    --ring-max: 24px;
    height: 64px; align-self: center; margin-top: 0;
  }
  .progress__track, .progress__fill { top: 30px; height: 4px; border-radius: 999px; }
  .progress__marker { padding-top: 28px; }
  .progress__dot { width: 8px; height: 8px; }
  .progress__label { margin-top: 4px; font-size: 14px; line-height: 20px; letter-spacing: .005em; }
  .progress__ring img { top: calc(32px - var(--ring-w) * 131 / 252 / 2); }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { padding: var(--section-pad) var(--edge) var(--space-48); }
.intro__text { max-width: 956px; }
@media (min-width: 1024px) {
  .intro { padding-bottom: var(--space-96); }
}

/* ==========================================================================
   THE DAY + LOCATION
   ========================================================================== */
.details { display: flex; flex-direction: column; padding-bottom: var(--section-pad); }

.day {
  padding: 0 var(--margin) var(--section-pad);
  display: flex; flex-direction: column; align-items: flex-start;
}
.day .headline { margin-top: var(--space-8); }
.schedule { width: 100%; margin-top: var(--space-24); }
.schedule li {
  display: flex; align-items: baseline; gap: var(--space-24);
  min-height: 40px; padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.schedule__time { flex: 0 0 96px; }
.schedule__what { line-height: 28px; color: var(--text-primary); }
.day__rsvp {                /* phones: centered, well inside the screen edges */
  display: flex; width: 62%; min-width: 200px;
  margin: var(--space-24) auto 0;
}

.location { display: flex; flex-direction: column; gap: var(--space-16); }

/* The big image. Its layers crossfade; it is a size container so the
   map and 3D image can be positioned relative to its width (cqw). */
.stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 393 / 320;
  overflow: hidden;
  background: var(--ocean);
}
.stage__layer {
  position: absolute; inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.stage__layer.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.stage__layer img { width: 100%; height: 100%; object-fit: cover; }

/* 2D map. Phones use the 393×320 composite; wider screens use the wide
   export at 1:1, anchored right, but never cropping the La Jolla inset. */
.stage__map img { object-position: right center; }

/* 3D aerial: same crop as the Figma frame; the bubble marks the entrance */
.stage__aerial-frame {
  position: absolute;
  left: -17.81cqw;
  top: -13.23cqw;
  width: 138.42cqw;
  aspect-ratio: 1756 / 1214;
}
.stage__aerial-frame img { width: 100%; height: 100%; object-fit: cover; }
.map-bubble {
  position: absolute;
  left: 49.54%;            /* the entrance, as a share of the aerial image */
  top: 58.65%;
  transform: translate(-50%, 13px);
  background: var(--white);
  color: var(--text-brand);
  font-size: 12px; line-height: 16px; font-weight: 600;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}
.map-bubble::before {      /* tail pointing up at the door */
  content: "";
  position: absolute; left: 50%; top: -4px;
  width: 10px; height: 10px;
  background: var(--white);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px 0 0 0;
}

.stage__toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: var(--white);
  color: var(--text-brand);
  font-size: 13px; line-height: 20px; font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
}
.stage__toggle:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18, 33, 64, .26); }
.stage__toggle.is-hidden { opacity: 0; pointer-events: none; }
.stage__toggle::after {     /* the ripple */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .stage__toggle.is-calling[aria-pressed="false"] { animation: toggle-nudge 2.2s ease-in-out infinite; }
  .stage__toggle.is-calling[aria-pressed="false"]::after { animation: toggle-ripple 2.2s cubic-bezier(.2, .6, .35, 1) infinite; }
  .stage__toggle.is-calling[aria-pressed="false"]:hover { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {   /* no movement, just a ring */
  .stage__toggle[aria-pressed="false"] { box-shadow: 0 0 0 2px rgba(28, 60, 97, .45), var(--shadow-float); }
}
@keyframes toggle-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(28, 60, 97, .6); }
  60%  { box-shadow: 0 0 0 16px rgba(28, 60, 97, 0); }
  100% { box-shadow: 0 0 0 16px rgba(28, 60, 97, 0); }
}
@keyframes toggle-nudge {
  0%, 22%, 100% { transform: scale(1); }
  9%  { transform: scale(1.07); }
}

.location__controls {
  display: flex; flex-direction: column; gap: 32px;
  padding: 0 var(--margin);
}
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.thumb {
  position: relative;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ocean);
  transition: transform .25s ease, box-shadow .25s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[data-show="map"] img {          /* map thumb: full height, right-aligned */
  position: absolute; top: 0; right: 0;
  width: auto; max-width: none; height: 100%;
}
.thumb.is-selected {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px var(--white), 0 6px 12px rgba(18, 33, 64, .28);
}
.thumb:not(.is-selected):hover { transform: translateY(-1px); }

.address {
  display: flex; align-items: center; gap: var(--space-12);
  padding: 10px 8px 10px 16px;
  border: var(--stroke-hairline) solid var(--border-decor);
  border-radius: var(--radius-pill);
  background: var(--bg-page);
}
.address__maps {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: var(--space-8);
}
.address__pin { color: var(--text-primary); }
.address__text { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text-primary); }
.address__venue { font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.address__street { font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.address__open-icon {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--text-brand);
}
.address__open {
  font-size: 14px; line-height: 20px;
  color: var(--text-accent);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  white-space: nowrap;
}
.address__maps:hover .address__open { color: var(--text-brand); }
.address__copy {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 86px;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  color: var(--text-brand);
  font-size: 14px; line-height: 20px;
  transition: background-color .2s;
}
.address__copy:hover { background: var(--blue-100); }

/* Tablet and up: the stage is 560px tall and uses the wide map */
@media (min-width: 768px) {
  .day__rsvp { display: inline-flex; width: auto; min-width: 0; margin-left: 0; margin-right: 0; }
  .stage { aspect-ratio: auto; height: 560px; }
  .stage__map img {
    position: absolute; top: 0;
    width: 1600px; max-width: none; height: 560px;
    left: max(-874px, calc(100cqw - 1600px));
    object-fit: fill;
  }
  .stage__aerial-frame {
    --fw: max(120.94cqw, 878px);
    width: var(--fw);
    left: calc(48.48cqw - var(--fw) * .4954);
    top: calc(309px - var(--fw) * .40546);
  }
  .map-bubble { font-size: 15px; line-height: 20px; padding: 4px 18px; transform: translate(-50%, 9px); }
  .map-bubble::before { width: 12px; height: 12px; top: -5px; }
  .stage__toggle { right: 16px; bottom: 16px; font-size: 15px; padding: 10px 18px; }

  .thumbs { gap: var(--space-12); }
  .thumb { height: 96px; }
  .thumb.is-selected { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--white), 0 10px 20px rgba(18, 33, 64, .28); }
}

/* Desktop: map bleeds off the left edge to the end of column 7,
   "The day" sits in columns 9–12. --col is one grid column. */
@media (min-width: 1024px) {
  .details {
    container-type: inline-size;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
  }
  .details > * {
    --E: max(var(--margin), calc((100cqw - var(--content-max)) / 2));
    --col: calc((100cqw - 2 * var(--E) - 11 * var(--gutter)) / 12);
  }
  .day {
    flex: 0 0 calc(4 * var(--col) + 3 * var(--gutter));
    margin-right: var(--E);
    padding: var(--space-48) 0 0;
  }
  .schedule { margin-top: var(--space-32); }
  .day__rsvp { margin-top: var(--space-32); }

  .location { flex: 0 0 calc(var(--E) + 7 * var(--col) + 6 * var(--gutter)); }
  .stage { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

  .location__controls { padding: 0 0 0 var(--E); gap: 48px; }
  .address__maps { gap: var(--space-12); }
  .address__text { gap: 2px; }
  .address__venue { font-size: 15px; line-height: 20px; }
  .address__street { font-size: 14px; line-height: 20px; letter-spacing: .005em; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background: var(--bg-tint);
  padding: var(--section-pad) var(--edge);
}
.faq__head { display: flex; flex-direction: column; gap: var(--space-8); margin-bottom: var(--section-gap); }
.faq__list { border-bottom: 1px solid var(--border-decor); }
.faq__item {
  display: flex; flex-direction: column; gap: var(--space-8);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border-decor);
}
.faq__item > div { display: flex; flex-direction: column; gap: var(--space-8); }
.faq__item p { color: var(--text-secondary); }

@media (min-width: 1024px) {
  .faq {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: start;
  }
  .faq__head {
    grid-column: 1 / span 4;
    position: sticky;
    top: calc(var(--bar-h) + 48px);
    gap: var(--space-16);
    margin-bottom: 0;
  }
  .faq__list { grid-column: 6 / span 7; }
  .faq__item { flex-direction: row; gap: var(--space-24); padding: var(--space-32) 0; }
  .faq__num { flex: 0 0 48px; padding-top: 6px; }
  .faq__item > div { flex: 1; }
}

/* ==========================================================================
   GIFTS
   ========================================================================== */
.gifts { padding: var(--section-pad) var(--edge); display: flex; flex-direction: column; gap: var(--section-gap); }
.gifts__head { display: flex; flex-direction: column; gap: var(--space-12); }
.gifts__cards { display: grid; gap: var(--space-16); }
.card {
  display: flex; flex-direction: column; gap: var(--space-8);
  width: 100%;
  height: 176px;
  padding: var(--space-24);
  border: var(--stroke-hairline) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border-decor); box-shadow: 0 8px 24px rgba(18, 33, 64, .06); }
.card__action {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-size: 16px; line-height: 24px; font-weight: 600;
  color: var(--text-brand);
}
@media (min-width: 768px) {
  .gifts__cards { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
  .card { height: 256px; padding: var(--space-32); }
}
@media (min-width: 1024px) {
  .gifts__head {
    display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter);
    align-items: end;
  }
  .gifts__head .display { grid-column: 1 / span 4; }
  .gifts__intro { grid-column: 5 / span 6; padding-bottom: var(--space-16); }
}

/* ==========================================================================
   GALLERY
   js/main.js deals the photos into 2 / 3 / 4 columns (even columns start
   lower). Without JS it falls back to CSS columns.
   ========================================================================== */
.gallery { padding: 0 var(--edge) var(--section-pad); }
.gallery .display { margin-bottom: var(--space-32); }
.gallery__grid { columns: 2; column-gap: var(--gutter); }
.gallery__grid .gallery__item { break-inside: avoid; margin-bottom: var(--gutter); }
.gallery__grid.is-columns { columns: auto; display: flex; gap: var(--gutter); align-items: flex-start; }
.gallery__col { flex: 1; min-width: 0; }
.gallery__stack { display: flex; flex-direction: column; gap: var(--gutter); }
.gallery__col:nth-child(even) { padding-top: var(--space-48); }
.gallery__grid.is-columns .gallery__item { margin: 0; }
.gallery__item { border-radius: var(--radius-md); overflow: hidden; background: var(--blue-50); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--tall { aspect-ratio: 3 / 4; }
.gallery__item--wide { aspect-ratio: 4 / 3; }
@media (min-width: 768px) {
  .gallery__grid { columns: 3; }
  .gallery__col:nth-child(even) { padding-top: var(--space-96); }
}
@media (min-width: 1024px) {
  .gallery .display { margin-bottom: var(--space-48); }
}
@media (min-width: 1800px) {
  .gallery__grid { columns: 4; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  padding: var(--section-pad) var(--edge) calc(var(--section-pad) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24);
}
.footer__title { color: var(--text-inverse); }
.footer__meta { color: var(--text-inverse); }
@media (min-width: 1024px) {
  .footer { gap: var(--space-32); }
}

/* ==========================================================================
   MAPS CHOOSER (sheet on phones, small menu on desktop)
   ========================================================================== */
.maps-sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.maps-sheet__scrim { position: absolute; inset: 0; background: rgba(18, 38, 61, .42); animation: fade-in .2s ease; }
.maps-sheet__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1);
}
.maps-sheet__group { background: rgba(242, 242, 247, .97); border-radius: 14px; overflow: hidden; }
.maps-sheet__head { padding: 16px 16px 14px; text-align: center; border-bottom: 1px solid rgba(60, 60, 67, .12); }
.maps-sheet__title { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--slate-600); }
.maps-sheet__sub { font-size: 13px; line-height: 18px; color: var(--slate-600); }
.maps-sheet__option, .maps-sheet__cancel {
  display: block; width: 100%;
  padding: 16px;
  text-align: center;
  font-size: 18px; line-height: 24px;
  color: var(--text-brand);
  text-decoration: none;
}
.maps-sheet__option + .maps-sheet__option { border-top: 1px solid rgba(60, 60, 67, .12); }
.maps-sheet__option:active { background: rgba(0, 0, 0, .05); }
.maps-sheet__cancel { background: var(--white); border-radius: 14px; font-weight: 600; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }

.maps-menu {
  position: absolute; z-index: 50;
  min-width: 220px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 33, 64, .14);
  animation: fade-in .15s ease;
}
.maps-menu__option {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px; line-height: 22px; font-weight: 500;
  color: var(--text-brand);
  text-decoration: none;
}
.maps-menu__option:hover, .maps-menu__option:focus-visible { background: var(--bg-tint); outline: none; }

/* ==========================================================================
   Reduced motion: nothing moves on its own
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
