/* Odette & Morné — 27 February 2027
   Paper, champagne, night-ink and one gold sun. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBF8F2;
  --paper-2: #F3ECDF;
  --champagne: #E6D3B3;
  --champagne-deep: #B0905C;
  --ink: #1C2140;
  --ink-soft: #5B6079;
  --sun: #F0B24A;
  --rose: #A8324E;
  --night: #0B1030;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ui: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(20px, 3.2vw, 52px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tabbar: 0px;
}

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

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

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

@view-transition { navigation: auto; }

/* ---------- Shared type ---------- */

.eyebrow {
  font: 500 .72rem/1.5 var(--ui);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.names {
  font: 200 clamp(2.8rem, 5.3vw, 5.6rem)/.95 var(--display);
  letter-spacing: -.02em;
}
.names i { font-weight: 200; padding: 0 .04em; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 50px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font: 600 .74rem/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}
.button::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun);
  transition: transform .3s var(--ease);
}
.button:hover::after { transform: scale(1.6); }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .6; cursor: progress; }
.button--quiet { background: transparent; color: var(--ink); }
.button--quiet:hover { background: var(--ink); color: var(--paper); }

.link {
  background: none; border: 0; padding: 4px 0;
  font: 500 .86rem/1.3 var(--ui); color: inherit;
  text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Masthead ---------- */

.masthead {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2.6vh, 28px) var(--pad);
  pointer-events: none;
  color: var(--mast, var(--ink));
  transition: color .4s ease;
}
.masthead > * { pointer-events: auto; }

.monogram {
  font: italic 300 1.55rem/1 var(--display);
  letter-spacing: .01em; text-decoration: none; white-space: nowrap;
}
.monogram span { font-style: normal; font-weight: 300; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  position: relative; padding: 12px 0;
  font: 500 .72rem/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
}
.nav a::before {
  content: ""; position: absolute; left: 50%; top: -2px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--sun);
  transform: scale(0); transition: transform .35s var(--ease);
}
.nav a:hover::before, .nav a[aria-current="page"]::before { transform: scale(1); }

@media (max-width: 820px) {
  :root { --tabbar: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom, 0px);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--paper); color: var(--ink);
    border-top: 1px solid var(--champagne);
  }
  .nav a { display: grid; place-items: center; padding: 6px 0 0; }
  .nav a::before { top: 10px; }
}

/* ---------- Index: hero + reply card ---------- */

.invite {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(430px, 1fr);
  height: 100vh; height: 100dvh;
}

.hero { position: relative; overflow: hidden; background: #2a2b2f; color: var(--paper); }
.hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 56% 50%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(14, 16, 34, .78) 0%, rgba(14, 16, 34, .34) 26%, rgba(14, 16, 34, 0) 46%),
    linear-gradient(to bottom, rgba(14, 16, 34, .42) 0%, rgba(14, 16, 34, 0) 20%);
}
.hero__title {
  position: absolute; z-index: 1;
  left: var(--pad); right: var(--pad); bottom: clamp(22px, 5vh, 52px);
}
.hero__title .eyebrow { margin-bottom: clamp(8px, 1.6vh, 16px); }
.hero__title .eyebrow span { white-space: nowrap; }
.hero__count {
  position: absolute; z-index: 1; right: var(--pad); top: clamp(18px, 3vh, 32px);
  display: flex; align-items: center; gap: 10px;
}
.hero__count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }

.page-index .masthead { --mast: var(--paper); }
.page-index .nav { color: var(--ink); }

.reply {
  position: relative; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(68px, 10vh, 96px) clamp(26px, 3.4vw, 60px) clamp(20px, 4vh, 40px);
  background: var(--paper);
}
.reply__inner { width: 100%; max-width: 30rem; margin: 0 auto; }

.story { font: italic 300 clamp(1.05rem, 1.5vw, 1.3rem)/1.3 var(--display); color: var(--ink-soft); }
.reply__title {
  font: 200 clamp(2.6rem, 4.4vw, 4.2rem)/1 var(--display); letter-spacing: -.02em;
  margin: 2px 0 clamp(14px, 2.6vh, 26px);
}
.reply__open { display: none; }
.deadline { margin-top: clamp(10px, 1.8vh, 18px); font-size: .8rem; color: var(--ink-soft); }
.deadline button { margin-left: 10px; }

/* The card itself */
.card { display: grid; gap: clamp(12px, 2.2vh, 20px); }
.card__head { display: none; }

.field { display: grid; gap: 2px; min-width: 0; }
.field label, .stepper__label {
  font: 500 .68rem/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.field label span { letter-spacing: .04em; text-transform: none; opacity: .8; }
.field input {
  width: 100%; padding: 6px 0 7px;
  border: 0; border-bottom: 1px solid rgba(28, 33, 64, .35); border-radius: 0;
  background: transparent;
  font: italic 300 1.3rem/1.3 var(--display); color: var(--ink);
  transition: border-color .2s ease;
}
.field input::placeholder { color: rgba(91, 96, 121, .55); }
.field input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input:focus-visible { box-shadow: 0 2px 0 var(--sun); border-bottom-color: var(--sun); }
.field input[aria-invalid="true"] { border-bottom-color: var(--rose); }
.field__error { font-size: .8rem; color: var(--rose); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 14px;
  border: 1px solid var(--champagne); border-radius: 2px;
  font: italic 300 1.12rem/1.15 var(--display);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label::before {
  content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--ink); background: transparent;
  transition: background .2s ease, box-shadow .2s ease;
}
.choice label:hover { border-color: var(--champagne-deep); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.choice label:has(input:checked)::before { background: var(--sun); box-shadow: 0 0 0 3px rgba(240, 178, 74, .28); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--sun); outline-offset: 3px; }
.choice__error { grid-column: 1 / -1; font-size: .8rem; color: var(--rose); }

.extras { display: grid; gap: clamp(12px, 2.2vh, 20px); transition: opacity .3s ease; }
.extras[data-off] { opacity: .32; pointer-events: none; }

.tally {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-items: center;
  padding: 10px 14px; background: var(--paper-2); border-radius: 2px;
}
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stepper__ctrl { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(28, 33, 64, .5); background: var(--paper);
  font: 400 1rem/1 var(--ui);
  transition: background .2s ease, color .2s ease;
}
.stepper button:hover { background: var(--ink); color: var(--paper); }
.stepper output {
  display: inline-block; min-width: 1.4ch; text-align: center;
  font: 300 1.5rem/1 var(--display);
}
.stepper output.is-trying { color: var(--champagne-deep); }
.stepper.is-denied { animation: nope .42s ease; }
@keyframes nope {
  20% { transform: translateX(-5px); } 45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); } 100% { transform: none; }
}
.tally__note {
  grid-column: 1 / -1; min-height: 2.7em;
  font: italic 400 .96rem/1.35 var(--display); color: var(--ink);
}

.card .button { width: 100%; }
.form__status { font-size: .86rem; color: var(--rose); }
.form__status:empty { display: none; }

/* After sending */
.thanks { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; }
.thanks[hidden] { display: none; }
.thanks img { width: 112px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.thanks h3 { font: 200 2.1rem/1.05 var(--display); letter-spacing: -.01em; }
.thanks p { margin-top: 8px; color: var(--ink-soft); font-size: .95rem; }
.thanks__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.preview-flag {
  grid-column: 1 / -1; padding: 8px 12px; border: 1px dashed var(--rose); border-radius: 2px;
  font-size: .8rem; color: var(--rose);
}

@media (max-width: 820px) {
  .invite { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding-bottom: var(--tabbar); }
  .hero img { object-position: 38% 50%; }
  .hero__title { bottom: 18px; }
  .hero__title .eyebrow span { display: block; }
  .hero__title .eyebrow .dot { display: none; }
  .hero__count { top: 22px; }
  .names { font-size: clamp(2.7rem, 13.2vw, 4.4rem); }

  .reply { overflow: visible; padding: 20px var(--pad) 22px; }
  .reply__title { margin-bottom: 14px; font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .reply__open { display: inline-flex; width: 100%; }
  .deadline { text-align: center; }

  .card {
    position: fixed; inset: 0; z-index: 60; overflow-y: auto;
    align-content: start;
    padding: 18px var(--pad) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    transform: translateY(103%); visibility: hidden;
    transition: transform .55s var(--ease), visibility 0s linear .55s;
  }
  .rsvp-open .card { transform: none; visibility: visible; transition: transform .55s var(--ease); }
  .tally { grid-template-columns: 1fr; }
  .card__head { display: flex; align-items: center; justify-content: space-between; }
  .card__head h3 { font: 200 2.2rem/1 var(--display); letter-spacing: -.02em; }
  .card__close {
    width: 44px; height: 44px; margin-right: -10px; border: 0; background: none;
    font: 300 1.9rem/1 var(--display);
  }
  .thanks { grid-template-columns: 88px 1fr; }
  .thanks img { width: 88px; }
}
@media (max-width: 380px) {
  .row { grid-template-columns: 1fr; }
  .choice label { font-size: 1rem; padding: 8px 10px; }
}

/* Entrance, once the intro hands over */
.js .page-index .hero img { transform: scale(1.09); transition: transform 2.6s var(--ease); }
.js .page-index .hero__title > *,
.js .page-index .hero__count,
.js .page-index [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s var(--ease); }
.js.is-ready .page-index .hero img { transform: none; }
.js.is-ready .page-index .hero__title > *,
.js.is-ready .page-index .hero__count,
.js.is-ready .page-index [data-rise] { opacity: 1; transform: none; }
.js.is-ready .page-index .hero__title > :nth-child(2) { transition-delay: .12s; }
.js.is-ready .page-index .story { transition-delay: .25s; }
.js.is-ready .page-index .reply__title { transition-delay: .35s; }
.js.is-ready .page-index .reply__open,
.js.is-ready .page-index .deadline { transition-delay: .5s; }
@media (min-width: 821px) {
  /* on phones the card is a sheet with its own transform, so it only rises here */
  .js .page-index .card { opacity: 0; transform: translateY(16px); transition: opacity .9s ease .5s, transform .9s var(--ease) .5s; }
  .js.is-ready .page-index .card { opacity: 1; transform: none; }
}

.has-replied .story, .has-replied .reply__title, .has-replied .card,
.has-replied .reply__open, .has-replied .deadline { display: none; }

/* ---------- Intro: the proposal ---------- */

.intro { display: none; }
.has-intro .intro {
  display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: linear-gradient(to bottom, #1F2560 0%, #4B3F86 24%, #A9587F 46%, #EE8660 63%, #FFC27A 74%, #FFD79A 80%);
}
.has-intro body { overflow: hidden; }
.intro__stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__grain {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../img/grain.png"); opacity: .55; mix-blend-mode: overlay;
}
.intro__caption {
  position: absolute; left: 0; right: 0; top: 17%;
  padding: 0 var(--pad); text-align: center;
  font: italic 300 clamp(2rem, 5vw, 4rem)/1.1 var(--display); color: var(--paper);
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .7s var(--ease);
}
.intro__caption.is-on { opacity: 1; transform: none; }
.intro__skip {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  padding: 12px 4px; border: 0; background: none;
  font: 500 .7rem/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--paper);
  opacity: .85;
}
.intro__skip:hover { opacity: 1; }
.intro__flash {
  position: absolute; left: var(--fx, 50%); top: var(--fy, 50%);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 46%, rgba(255, 249, 238, .92) 58%, rgba(255, 249, 238, 0) 70%);
  transform: scale(0); pointer-events: none;
}
.intro.is-flashing .intro__flash { transform: scale(640); transition: transform .75s cubic-bezier(.55, 0, .9, .45); }
.intro.is-leaving { opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.intro.is-leaving.is-quick { transition-duration: .35s; }

/* ---------- Wedding: the day under one sky ---------- */

.page-wedding { background: var(--night); overflow: hidden; }
.page-wedding .masthead { --mast: var(--on-top, var(--ink)); }

.scene { position: fixed; inset: 0; overflow: hidden; }
.scene__sky {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--sky-top, #86B4DC) 0%, var(--sky-mid, #BFD9EC) 50%, var(--sky-low, #F2ECDD) 79%);
}
.scene__stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars, 0); }
.scene__sun {
  position: absolute; left: var(--sun-x, 12%); top: var(--sun-y, 18%);
  width: var(--sun-size, 84px); height: var(--sun-size, 84px); border-radius: 50%;
  margin: calc(var(--sun-size, 84px) / -2) 0 0 calc(var(--sun-size, 84px) / -2);
  background: var(--sun-color, #FFFBEA);
  box-shadow: 0 0 calc(var(--sun-size, 84px) * .7) calc(var(--sun-size, 84px) * .22) var(--sun-halo, rgba(255, 243, 207, .7)),
              0 0 calc(var(--sun-size, 84px) * 3) calc(var(--sun-size, 84px) * 1.3) var(--sun-haze, rgba(255, 243, 207, .25));
  transform: scale(var(--sun-scale, 1));
}
.scene__lights { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--lights, 0); }
.scene__lights path { fill: none; stroke: rgba(255, 236, 200, .28); stroke-width: 1; }
.scene__lights circle { fill: #FFE7B0; filter: drop-shadow(0 0 5px #FFC866) drop-shadow(0 0 12px rgba(255, 190, 90, .8)); }
.scene__lights circle:nth-child(3n) { animation: twinkle 3.4s ease-in-out infinite; }
.scene__lights circle:nth-child(4n+1) { animation: twinkle 4.6s ease-in-out -1.5s infinite; }
@keyframes twinkle { 50% { opacity: .45; } }
.scene__dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30vh; min-height: 180px; }
.scene__grain {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../img/grain.png"); opacity: .5; mix-blend-mode: overlay;
}

.wedding {
  position: relative; z-index: 2;
  height: 100vh; height: 100dvh;
  color: var(--on-low, var(--ink));
  transition: color .4s ease;
}

.switch { display: none; }

.sunpath {
  position: absolute; pointer-events: none;
  left: var(--pad); right: calc(clamp(320px, 27vw, 400px) + var(--pad) * 2.2);
  top: 15vh; bottom: 22vh;
}
.sun-handle {
  position: absolute; z-index: 3; left: 0; top: 0;
  width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
  border: 0; border-radius: 50%; background: none;
  cursor: grab; touch-action: none; pointer-events: auto;
}
.sun-handle:active { cursor: grabbing; }
.sun-handle::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px dashed currentColor; opacity: .55;
  animation: orbit 14s linear infinite;
}
.sun-handle.is-night::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #FFE7B0; box-shadow: 0 0 14px 4px rgba(255, 215, 140, .7);
}
@keyframes orbit { to { transform: rotate(360deg); } }
.sun-hint {
  position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none;
  margin: -9px 0 0 50px; white-space: nowrap;
  font: 500 .68rem/1 var(--ui); letter-spacing: .2em; text-transform: uppercase;
  transition: opacity .5s ease;
}
.sun-hint.is-gone { opacity: 0; }

.moment {
  position: absolute; left: var(--pad); bottom: calc(22vh + 74px);
  width: min(31rem, 40vw);
}
.moment__clock {
  font: 200 clamp(3.6rem, min(9vw, 15vh), 8.4rem)/.9 var(--display);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums;
}
.moment__title { margin-top: .5vh; font: italic 300 clamp(1.6rem, 2.6vw, 2.4rem)/1.1 var(--display); }
.moment__body { margin-top: 10px; max-width: 30rem; font-size: 1.02rem; line-height: 1.5; min-height: 4.5em; }
.moment__nav { display: flex; gap: 10px; margin-top: 14px; }
.step {
  min-height: 42px; padding: 0 18px;
  border: 1px solid currentColor; border-radius: 2px; background: transparent;
  font: 600 .68rem/1 var(--ui); letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.step:hover:not([disabled]) { background: var(--on-low, var(--ink)); color: var(--on-low-inverse, var(--paper)); }
.step[disabled] { opacity: .35; cursor: default; }

.track {
  position: absolute; height: 44px; bottom: 22vh;
  left: var(--pad); right: calc(clamp(320px, 27vw, 400px) + var(--pad) * 2.2);
}
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: currentColor; opacity: .45; }
.track input {
  position: absolute; left: -12px; right: -12px; top: 0; width: calc(100% + 24px); height: 26px; margin: 0;
  opacity: 0; cursor: pointer;
}
.track__thumb {
  position: absolute; top: 12px; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 4px rgba(240, 178, 74, .3); pointer-events: none;
}
.track:has(input:focus-visible) .track__thumb { outline: 2px solid currentColor; outline-offset: 5px; }
.tick {
  position: absolute; top: 0; width: 44px; margin-left: -22px; padding: 9px 0 0; height: 44px;
  border: 0; background: none; text-align: center;
  font: 500 .64rem/1 var(--ui); letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.tick::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.tick[aria-current="true"]::before { opacity: 1; transform: scale(1.25); }
.tick span { opacity: .75; }
.tick[aria-current="true"] span { opacity: 1; font-weight: 700; }

.cards {
  position: absolute; right: var(--pad); top: 0; bottom: 0;
  width: clamp(320px, 27vw, 400px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 2vh, 20px);
  padding: 76px 0 var(--pad);
}
.note {
  padding: clamp(16px, 2.6vh, 26px) clamp(18px, 1.8vw, 26px);
  background: var(--paper); color: var(--ink); border-radius: 3px;
  box-shadow: 0 24px 60px -28px rgba(11, 16, 48, .55), 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.note__title { font: 200 clamp(1.7rem, 2.2vw, 2.1rem)/1.05 var(--display); letter-spacing: -.01em; }
.note__lede { margin-top: 4px; font: italic 400 1.02rem/1.35 var(--display); color: var(--ink-soft); }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: clamp(10px, 1.8vh, 16px); }
.swatch {
  width: 31px; height: 31px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(28, 33, 64, .28); background: var(--c);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: clamp(10px, 1.8vh, 16px); min-height: 62px; }
.verdict__stamp {
  padding: 5px 9px 4px; border: 2px solid currentColor; border-radius: 3px;
  font: 700 .66rem/1 var(--ui); letter-spacing: .18em; text-transform: uppercase;
  transform: rotate(-7deg); color: var(--ink-soft);
}
.verdict[data-ok="yes"] .verdict__stamp { color: #1F6B52; }
.verdict[data-ok="no"] .verdict__stamp { color: var(--rose); }
.verdict.is-stamped .verdict__stamp { animation: stamp .35s var(--ease); }
@keyframes stamp { from { transform: rotate(-7deg) scale(1.7); opacity: 0; } }
.verdict__text { font: italic 400 1rem/1.35 var(--display); }
.note__foot { margin-top: clamp(8px, 1.4vh, 12px); font-size: .82rem; color: var(--ink-soft); }

.rules { list-style: none; margin: clamp(8px, 1.6vh, 14px) 0 0; padding: 0; display: grid; gap: clamp(8px, 1.5vh, 13px); }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; font-size: .92rem; line-height: 1.4; }
.rules li::before { content: ""; width: 7px; height: 7px; margin-top: .5em; border-radius: 50%; background: var(--sun); }
.rules strong { font-weight: 600; }
.rules em { font: italic 400 1rem/1.35 var(--display); color: var(--ink-soft); }

@media (max-width: 820px) {
  .wedding { padding-bottom: var(--tabbar); }
  .scene { bottom: var(--tabbar); }
  .switch {
    position: fixed; z-index: 31; top: 12px; right: var(--pad);
    display: flex; gap: 2px; padding: 3px; border-radius: 999px;
    background: rgba(251, 248, 242, .9); color: var(--ink);
  }
  .switch button {
    min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none;
    font: 600 .62rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  }
  .switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

  .sunpath { left: 9vw; right: 9vw; top: 13vh; bottom: calc(var(--tabbar) + 20vh); }
  .track { left: 9vw; right: 9vw; bottom: calc(var(--tabbar) + 20vh - 4px); }
  .moment { left: var(--pad); right: var(--pad); width: auto; bottom: calc(var(--tabbar) + 20vh + 62px); }
  .moment__clock { font-size: clamp(3.4rem, 19vw, 5rem); }
  .moment__body { font-size: .98rem; min-height: 5.9em; }
  .tick span { display: none; }
  .tick[aria-current="true"] span { display: inline; }

  .cards { left: var(--pad); right: var(--pad); width: auto; padding: 70px 0 calc(var(--tabbar) + 18px); }
  .wedding[data-view="day"] .cards { display: none; }
  .wedding:not([data-view="day"]) .day { display: none; }
  .wedding[data-view="dress"] .note--rules,
  .wedding[data-view="rules"] .note--dress { display: none; }
}

/* ---------- Venue: the map sheet ---------- */

.venue {
  display: grid; grid-template-columns: minmax(340px, 31rem) minmax(0, 1fr);
  height: 100vh; height: 100dvh; overflow: hidden;
}
.venue__info {
  position: relative; z-index: 2; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(72px, 11vh, 104px) var(--pad) var(--pad);
}
.venue__name { margin-top: 8px; font: 200 clamp(3rem, 4.7vw, 4.8rem)/.95 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.venue__address { margin-top: clamp(10px, 2vh, 18px); font: italic 300 1.25rem/1.35 var(--display); }
.venue__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: clamp(14px, 2.6vh, 24px); }

.facts { margin-top: clamp(14px, 3vh, 30px); border-top: 1px solid var(--champagne); }
.facts details { border-bottom: 1px solid var(--champagne); }
.facts summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: clamp(9px, 1.5vh, 13px) 0; cursor: pointer; list-style: none;
  font: 500 .7rem/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase;
}
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: "+"; font: 300 1.3rem/1 var(--display); letter-spacing: 0; }
.facts details[open] summary::after { content: "–"; }
.facts p { padding: 0 0 clamp(10px, 1.8vh, 16px); max-width: 28rem; font-size: .96rem; color: var(--ink-soft); }
.facts p strong { color: var(--ink); font-weight: 600; }

.venue__map { position: relative; min-width: 0; min-height: 0; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map text { font-family: var(--ui); fill: var(--ink); }
.map .t-display { font-family: var(--display); font-style: italic; font-weight: 300; }
.map .t-caps { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; fill: var(--ink-soft); }
.map .t-soft { fill: var(--ink-soft); }
.map .route { stroke-dasharray: 2 9; stroke-linecap: round; animation: travel 1.6s linear infinite; }
@keyframes travel { to { stroke-dashoffset: -22; } }
.map .pin-ring { transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.venue__print {
  position: absolute; z-index: 2; right: var(--pad); bottom: var(--pad);
  width: clamp(110px, 11vw, 170px); padding: 7px 7px 26px; background: #fff;
  box-shadow: 0 18px 40px -18px rgba(11, 16, 48, .5); transform: rotate(3deg);
}
.venue__print img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.venue__print figcaption {
  position: absolute; left: 0; right: 0; bottom: 5px; text-align: center;
  font: italic 400 .78rem/1 var(--display); color: var(--ink-soft);
}

@media (max-width: 820px) {
  .venue { grid-template-columns: 1fr; grid-template-rows: 36vh auto; height: auto; min-height: 100dvh; overflow: visible; padding-bottom: var(--tabbar); }
  .venue__map { grid-row: 1; }
  .venue__info { overflow: visible; justify-content: flex-start; padding: 18px var(--pad) 26px; }
  .venue__name { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .venue__print { display: none; }
  .map .t-caps { font-size: 14px; letter-spacing: .16em; }
  .map .t-small { font-size: 17px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .page-index .hero img { transform: none; }
  @view-transition { navigation: none; }
}
