:root {
  --red: #d0000f;
  --red-deep: #a8000c;
  --red-soft: rgba(208, 0, 15, .08);
  --paper: #fbf9f6;
  --white: #ffffff;
  --rule: rgba(208, 0, 15, .45);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --radius: 6px;
  --tap: 52px;            /* minimum tap height: granny safe */
  --pad: 16px;
  --row: 45.5px;          /* closed step = header (44) + rule (1.5) */
  --ease: cubic-bezier(.65, 0, .35, 1);
  --dur: .55s;
  /* text column stays readable on wide screens while bars and rules run edge to edge */
  --gutter: max(var(--pad), calc((100vw - 720px) / 2));
}

* { box-sizing: border-box; }
/* The page never scrolls: the steps fill the screen and the cover slides over them.
   (A scrolling page with snap made it jump whenever something was tapped.) */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--red);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; left: -9999px; }

/* ---------- Cover ---------- */
.cover {
  position: fixed; inset: 0; z-index: 10; background: var(--paper);
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--pad) max(16px, env(safe-area-inset-bottom));
}
.cover-top { align-self: stretch; height: 56px; flex: none; display: flex; justify-content: space-between; align-items: center; }
.cover-top .mark { font-family: var(--serif); font-size: 26px; }
.cover-kicker { margin: 0; font-family: var(--serif); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.cover .art { flex: none; margin: auto 0; width: min(100%, calc((100dvh - 176px) / 1.5)); }
.cover-go { flex: none; width: 100%; display: flex; align-items: center; justify-content: center; gap: .3em; }
.cover-go::after { content: "↓"; font-family: var(--mono); font-size: 20px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }

/* ---------- App shell: exactly one screen tall ---------- */
.app {
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 0 env(safe-area-inset-bottom);
}
.topbar {
  flex: none; height: 56px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter);
}
.topbar .mark { font-family: var(--serif); font-size: 26px; }
.langs { display: flex; gap: 2px; border: 1.5px solid var(--red); border-radius: 99px; padding: 3px; }
.langs button {
  font-size: 14px; letter-spacing: .06em;
  background: none; border: 0; color: var(--red);
  min-width: 44px; height: 36px; border-radius: 99px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--red); color: var(--white); }

.steps { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; }

/* ---------- One step = a header row + a panel ---------- */
.step {
  flex: 0 0 var(--row); min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; border-top: 1.5px solid var(--red);
  transition: flex-grow var(--dur) var(--ease);
}
.step.open { flex-grow: 1; }

.head {
  flex: none; width: 100%; min-height: 44px;
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px;
  padding: 6px var(--gutter); text-align: left;
  background: transparent; border: 0; cursor: pointer; color: var(--red);
  transition: background-color .35s var(--ease), color .35s var(--ease), min-height var(--dur) var(--ease);
}
.head .n { font-size: 13px; letter-spacing: .06em; }
.head .title { font-family: var(--serif); text-transform: uppercase; font-size: 23px; line-height: 1; padding-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: font-size var(--dur) var(--ease); }
.step.open > .head .title { white-space: normal; }
.head::after {
  content: ""; width: 22px; height: 12px; background: currentColor;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 92% 0, 50% 84%, 8% 0);
  transition: opacity .3s;
}
.head:hover { background: var(--red-soft); }
.head:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
/* the step you're on: solid red bar, bigger title, "2 / 7" on the right */
.step.open > .head { background: var(--red); color: var(--white); min-height: 64px; cursor: default; }
.step.open > .head .title { font-size: 34px; }
.step.open > .head::after { content: attr(data-progress); width: auto; height: auto; background: none; clip-path: none; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }

.panel { display: flex; flex: 1; min-height: 0; position: relative; }
.scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 22px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 20px; align-items: stretch;
  opacity: 0; translate: 0 14px;
  transition: opacity .2s ease, translate .2s ease;
}
.step.open .scroll { opacity: 1; translate: 0 0; transition: opacity .45s ease .18s, translate .6s var(--ease) .12s; }
.scroll > * { margin: 0; }
/* "more below" cue: shown by app.js while the step isn't scrolled to the end */
.panel::after {
  content: attr(data-more); position: absolute; left: 50%; bottom: 10px; translate: -50% 6px;
  padding: 7px 14px; border-radius: 99px; white-space: nowrap;
  background: var(--red); color: var(--white); font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  pointer-events: none; opacity: 0; transition: opacity .2s, translate .2s;
}
.step.open .panel.has-more::after { opacity: 1; translate: -50% 0; }

/* ---------- Pinned Back / Next ---------- */
.stepnav {
  flex: none; padding: 10px var(--gutter) 12px;
  border-top: 1.5px solid var(--red); background: var(--paper);
}
.navbtns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.next, .back {
  min-height: var(--tap); border-radius: var(--radius); cursor: pointer;
  font-family: var(--serif); font-size: 26px; line-height: 1; padding: 8px 14px 6px;
}
.next { background: var(--red); color: var(--white); border: 1.5px solid var(--red); }
.next, .back, .btn, .pills button, .choice span, .stepper button { transition: background-color .2s, color .2s, transform .12s; }
.next:active, .back:active, .btn:active, .pills button:active, .stepper button:active { transform: scale(.97); }
.next:active { background: var(--red-deep); }
.back { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.back[hidden] { display: none; }
.navbtns:has(.back[hidden]) { grid-template-columns: 1fr; }
.next[disabled] { opacity: .6; cursor: progress; }

/* ---------- Content ---------- */
.big { font-family: var(--serif); font-size: 40px; line-height: 1; }
.q { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.small { font-size: 15px; }
.copy p { margin: 0 0 12px; }
.copy p:first-child { font-family: var(--serif); font-size: 34px; line-height: 1; }
.tbc { background: var(--red-soft); padding: 0 5px; border-radius: 3px; }
.scroll > p:not(.big):not(.q):not(.small):not(.form-msg) { margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 14px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when { font-family: var(--serif); font-size: 26px; line-height: 1.05; }

.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--tap); padding: 8px 16px; border-radius: var(--radius);
  font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--red); background: transparent; color: var(--red);
}
.btn.solid { background: var(--red); color: var(--white); }

.map { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--red-soft); border: 1.5px solid var(--red); flex: none; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); }

/* Travel: big buttons to pick your city (not dropdowns) */
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pills button {
  min-height: var(--tap); border-radius: var(--radius); cursor: pointer;
  font-size: 16px; border: 1.5px solid var(--red); background: transparent; color: var(--red);
}
.pills button[aria-selected="true"] { background: var(--red); color: var(--white); }
.route { display: none; }
.route.active { display: block; }
.route .opt { padding: 16px 0; border-top: 1px solid var(--rule); }
.route .opt:last-child { border-bottom: 1px solid var(--rule); }
.route .opt > b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; margin-bottom: 4px; }
.route .opt p { margin: 0; }

/* FAQ: plain list, no nested dropdowns */
.faq { margin: 0; }
.faq dt { font-family: var(--serif); font-size: 28px; line-height: 1.05; padding-top: 16px; border-top: 1px solid var(--rule); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd { margin: 6px 0 18px; }

/* ---------- Form ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend {
  font-size: 15px; font-weight: 500; letter-spacing: .02em; padding: 0; margin-bottom: 8px;
}
.steps input[type="text"], .steps textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--red);
  background: var(--white); border: 1.5px solid var(--red); border-radius: var(--radius);
  padding: 12px 14px; min-height: var(--tap); outline: none;
}
.steps textarea { min-height: 96px; resize: vertical; }
.steps input::placeholder, .steps textarea::placeholder { color: rgba(208, 0, 15, .45); }
.steps input:focus, .steps textarea:focus { box-shadow: 0 0 0 3px rgba(208, 0, 15, .2); }

.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice.stack { display: grid; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  min-height: var(--tap); padding: 8px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--red); font-size: 16px; background: var(--white);
}
.choice span::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%;
}
.choice input[type="checkbox"] + span::before { border-radius: 3px; }
.choice input:checked + span { background: var(--red); color: var(--white); }
.choice input:checked + span::before { background: var(--white); box-shadow: inset 0 0 0 3px var(--red); }
.choice input:focus-visible + span { outline: 3px solid rgba(208, 0, 15, .35); outline-offset: 2px; }
.choice.stack span { font-family: var(--serif); font-size: 28px; min-height: 64px; padding-top: 10px; }

.only-yes, .only-no { display: flex; flex-direction: column; gap: 20px; }
.only-yes[hidden], .only-no[hidden] { display: none; }
.counter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1.5px solid var(--red); border-radius: var(--radius); padding: 10px 12px 10px 16px; background: var(--white);
}
.counter .lbl { font-size: 16px; line-height: 1.2; }
.counter .lbl small { display: block; font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 1.5px solid var(--red); background: transparent; color: var(--red);
  font-size: 26px; cursor: pointer; line-height: 1;
}
.stepper output { font-family: var(--serif); font-size: 38px; min-width: 28px; text-align: center; }
.guestnames { display: grid; gap: 10px; }
.form-msg { font-size: 17px; font-weight: 500; background: #111; color: var(--white); padding: 12px 14px; border-radius: var(--radius); }
.form-msg:empty { display: none; }

/* ---------- Thank-you screen ---------- */
.thanks {
  position: fixed; inset: 0; z-index: 20;
  background: var(--red); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 32px max(var(--pad), calc((100% - 720px) / 2));
}
.thanks[hidden] { display: none; }
.thanks p { margin: 0; }
.thanks .big { font-size: 64px; }
.thanks .next { background: var(--white); color: var(--red); border-color: var(--white); }
.thanks .back { color: var(--white); border-color: var(--white); }

/* ---------- Poster (inside step 01) ---------- */
/* Everything is positioned in % of the poster so it scales like a print */
.art {
  position: relative; width: min(100%, 460px); align-self: center;
  aspect-ratio: 10 / 15; container-type: inline-size; flex: none;
}
.art > * { position: absolute; margin: 0; }
.p-date { left: 3%; top: 7%; font-family: var(--serif); font-size: 8cqw; line-height: 1; z-index: 3; }
.p-strip {
  left: 33%; top: 1%; width: 30%;
  transform: rotate(1.2deg);
  filter: drop-shadow(0 1.2cqw 2.4cqw rgba(0,0,0,.18));
  animation: drop .9s cubic-bezier(.2,.8,.2,1) both;
}
/* Lettering scan used as a mask, filled with the page red, multiplied over the photos like ink */
.p-letters {
  left: 2%; top: 16%; width: 94%; aspect-ratio: 2000 / 1919; z-index: 2; pointer-events: none;
  background: var(--red);
  -webkit-mask: url(assets/lettering.webp) center / contain no-repeat;
          mask: url(assets/lettering.webp) center / contain no-repeat;
  mix-blend-mode: multiply;
  animation: ink 1.2s .35s ease-out both;
}
.p-scan { left: 79%; top: 55%; width: 19%; transform: rotate(-1deg); filter: drop-shadow(0 1cqw 2cqw rgba(0,0,0,.12)); animation: drop .9s .2s cubic-bezier(.2,.8,.2,1) both; }
/* "Max →": arrow tip sits at the scan strip's left edge, pointing at its last frame */
.p-max { left: 44%; top: 87.8%; width: 34%; z-index: 3; }
.p-max span { position: absolute; left: 2%; bottom: 100%; margin-bottom: .5em; white-space: nowrap; font-size: max(10px, 2.6cqw); letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.p-max-ink {
  display: block; aspect-ratio: 790 / 222; background: var(--red);
  -webkit-mask: url(assets/max.png) center / contain no-repeat;
          mask: url(assets/max.png) center / contain no-repeat;
  mix-blend-mode: multiply;
  animation: ink .8s 1.3s ease-out both;
}
@keyframes drop { from { opacity: 0; translate: 0 3cqw; } }
@keyframes ink { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .art > *, .p-max-ink, .cover-go::after { animation: none !important; }
  .step, .head, .head .title, .scroll, .step.open .scroll { transition: none !important; }
}

/* While typing (keyboard open) only the current step + Back/Next stay on screen */
.typing .topbar, .typing .step:not(.open) { display: none; }

/* Short screens (small phones, landscape): tighter rows so the open step keeps room */
@media (max-height: 700px) {
  :root { --row: 39.5px; }
  .head { min-height: 38px; }
  .head .title { font-size: 20px; }
  .step.open > .head { min-height: 52px; }
  .step.open > .head .title { font-size: 28px; }
}

/* Indent: serif headings sit on the left edge, the mono text under them steps in 16px */
:root { --indent: 16px; }
.scroll > p:not(.big):not(.q):not(.form-msg),
.copy p:not(:first-child),
.route .opt p,
.faq dd { padding-left: var(--indent); }
.faq dd { margin-left: 0; }


/* Where to stay: same row style as travel options, plus a "View" button */
.places .opt { padding: 16px 0; border-top: 1px solid var(--rule); display: grid; gap: 4px; justify-items: start; }
.places .opt:last-child { border-bottom: 1px solid var(--rule); }
.places .opt > b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; }
.places .meta { font-size: 14px; font-weight: 500; }
.places .opt p { margin: 0 0 8px; padding-left: var(--indent); }
.places .btn { min-height: 44px; padding: 6px 18px; }
.note { border: 1.5px solid var(--red); border-radius: var(--radius); padding: 12px 14px; }

/* Cover slides up out of the way; tap B&A to bring it back */
.cover.ready { transition: transform .7s var(--ease); } /* not on first paint, so deep links don't animate */
.cover.gone { transform: translateY(-100%); }
.topbar .mark { background: none; border: 0; padding: 0; cursor: pointer; color: var(--red); }
@media (prefers-reduced-motion: reduce) { .cover.ready { transition: none; } }

/* Photo of the house at the top of step 02 */
.photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); flex: none; }
.opt p b { font-weight: 500; }

/* Travel: second row of buttons (how), as many columns as there are options */
.pills.modes { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }

/* Honest caveat from reviews, under a place */
.places .opt p.warn { font-size: 14px; border-left: 3px solid var(--red); padding-left: 10px; margin-left: var(--indent); }

/* ---------- Thank-you: invite to the fun part ---------- */
.fun-invite { display: grid; gap: 12px; padding: 16px 0; border-top: 1.5px solid rgba(255,255,255,.5); border-bottom: 1.5px solid rgba(255,255,255,.5); }
.fun-invite[hidden] { display: none; }
.fun-invite p { font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.thanks .link { background: none; border: 0; color: var(--white); text-decoration: underline; font-size: 15px; cursor: pointer; justify-self: start; padding: 8px 0; }

/* ---------- The fun part: Typeform-style, one question per screen ---------- */
.fun {
  position: fixed; inset: 0; z-index: 21; background: var(--paper);
  display: flex; flex-direction: column;
}
.fun[hidden] { display: none; }
.fun-head {
  flex: none; height: 56px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.fun-head .title { font-family: var(--serif); text-transform: uppercase; font-size: 24px; }
.fun-close { background: none; border: 0; color: var(--red); font-size: 15px; text-decoration: underline; cursor: pointer; min-height: 44px; }
.fun-progress { flex: none; height: 4px; background: var(--red-soft); }
.fun-progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .5s var(--ease); }
.fun-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.fun-q {
  position: absolute; inset: 0; overflow-y: auto;
  padding: 8vh var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0; translate: 0 40px; pointer-events: none;
  transition: opacity .35s ease, translate .5s var(--ease);
}
.fun-q.above { translate: 0 -40px; }
.fun-q.on { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .12s; }
.fun-q > * { margin: 0; }
.fun-num { font-size: 15px; font-weight: 500; }
.fun-q h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 8vw, 52px); line-height: 1.02; }
.fun-hint { font-size: 15px; padding-left: var(--indent); }
.fun-q input[type="text"], .fun-q textarea {
  width: 100%; font: inherit; font-size: 22px; color: var(--red);
  background: transparent; border: 0; border-bottom: 2px solid var(--red); border-radius: 0;
  padding: 10px 0; outline: none;
}
.fun-q textarea { min-height: 120px; resize: vertical; }
.fun-q input::placeholder, .fun-q textarea::placeholder { color: rgba(208, 0, 15, .4); }
.fun-enter { font-size: 13px; }
.fun-count { margin: 0 0 8px; text-align: center; font-size: 14px; }
.filebtn { align-self: start; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--red); color: var(--white); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fun-q, .fun-progress i { transition: none; } }

/* Where to stay: the "see everything" button and the hurry line */
.big-cta { width: 100%; min-height: 60px; font-size: 17px; font-weight: 500; }
.hurry { font-weight: 500; background: #111; color: var(--white); padding: 10px 14px; border-radius: var(--radius); }

/* Fun part: choice questions — big buttons with A/B/C keys */
.fun-choice span { font-family: var(--mono); font-size: 18px; min-height: 60px; padding-top: 8px; }
.fun-choice span::before { display: none; }
.fun-choice .key { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid currentColor; border-radius: 4px; font-size: 14px; font-weight: 500; }

/* ---------- List of steps ↔ one step full screen ---------- */
.step { transition: flex-grow var(--dur) var(--ease), flex-basis var(--dur) var(--ease); }
.head .t { display: grid; gap: 4px; min-width: 0; }
.head .hint { display: none; font-size: 14px; line-height: 1.3; }

/* LIST: every step is a big row and together they fill the screen */
.app.list .step { flex: 1 1 var(--row); }
.app.list .head { height: 100%; align-items: center; }
.app.list .head .title { font-size: clamp(26px, 7vw, 38px); white-space: normal; }
.app.list .stepnav .navbtns { grid-template-columns: 1fr; }

/* ONE STEP: the others fold away completely, the open one takes the whole screen */
.app.focus .step:not(.open) { flex-grow: 0; flex-basis: 0; border-top-width: 0; }
.app.focus .step.open > .head::after { content: attr(data-progress); font-size: 14px; white-space: nowrap; border: 1.5px solid currentColor; border-radius: 99px; padding: 6px 12px; }

/* Scrolled down inside a step: thinner red bar */
.step.open.compact > .head { min-height: 48px; }
.step.open.compact > .head .title { font-size: 24px; }
.step.open > .head .title { white-space: normal; }

/* Rows can be tall in list mode but never squeeze content when a step is open */
@media (prefers-reduced-motion: reduce) { .step { transition: none; } }

/* Friday plan: only shown to people coming on Friday */
.fri-note { border: 1.5px solid var(--red); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 4px; }
.fri-note[hidden] { display: none; }
.fri-note p { margin: 0; }
.fri-title { font-family: var(--serif); font-size: 24px; line-height: 1.05; }
.thanks .fri-note { border-color: rgba(255,255,255,.6); }

/* A line of song/saying, only in some languages */
.quote { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.15; padding-left: var(--indent); border-left: 3px solid var(--red); }

.photo.portrait { aspect-ratio: 3 / 4; object-position: 50% 30%; }

/* Save the date photo: a small print stuck on the page, lots of paper around it */
.snapshot {
  flex: none; align-self: center; margin: 28px 0 36px;
  width: min(56%, 230px);
  background: var(--white); padding: 8px 8px 30px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.12);
  transform: rotate(-2.5deg); position: relative;
}
.snapshot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; display: block; }
/* a strip of tape holding it */
.snapshot::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px;
  translate: -50% 0; rotate: 3deg;
  background: rgba(240, 232, 214, .78); box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ---------- Scrolling ticker (top left, replaces "B&A") ---------- */
.topbar, .cover-top { gap: 12px; }
.ticker {
  flex: 1; min-width: 0; overflow: hidden; display: block;
  background: none; border: 0; padding: 0; color: var(--red); text-align: left; cursor: pointer;
  /* soft fade at both ends */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent);
}
.cover-top .ticker { cursor: default; }
.ticker-track {
  display: inline-flex; align-items: baseline; gap: 14px; white-space: nowrap;
  font-family: var(--serif); font-size: 22px; line-height: 1; padding-top: 2px;
  animation: tick 38s linear infinite;
}
.ticker-track i { font-style: normal; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Gifts: the shopping list ---------- */
.gift { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.gift > p { margin: 0; }
.gift-intro { padding-left: var(--indent); }
.gift-list span { font-family: var(--mono); font-size: 16px; min-height: 52px; padding-top: 8px; }
.gift-joke { font-family: var(--serif); font-style: italic; font-size: 24px; padding-left: var(--indent); }
.gift-joke[hidden], .pay[hidden] { display: none; }
.pay { display: grid; gap: 10px; border: 1.5px solid var(--red); border-radius: var(--radius); padding: 14px; background: var(--white); }
.pay-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.pay-label { grid-column: 1 / -1; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.pay-val { font-size: 17px; overflow-wrap: anywhere; min-width: 0; user-select: all; }
.pay .copy { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.pay-row.concept { padding-top: 10px; border-top: 1px solid var(--rule); }
.gift-thx { display: grid; gap: 8px; }
.gift-thx p { margin: 0; }
/* three cities now: one row of three */
.pills:not(.modes) { grid-template-columns: repeat(3, 1fr); }
.gift > .gift-warm { padding-left: var(--indent); font-weight: 500; }

/* Saturday is the main event: tinted row, big time */
.timeline li.main-day { background: var(--red-soft); margin: 0 -10px; padding-inline: 10px; border-radius: var(--radius); border-top-color: transparent; }
.timeline li.main-day + li { border-top-color: transparent; }
.timeline li.main-day b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin-bottom: 4px; }

/* ---------- Top right: mute + languages ---------- */
.top-right { display: flex; align-items: center; gap: 8px; flex: none; }
.mute {
  width: 44px; height: 44px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1.5px solid var(--red); background: transparent; color: var(--red);
  display: grid; place-items: center; padding: 0;
}
.mute svg { width: 20px; height: 20px; }
.mute .ico-off, .mute[aria-pressed="true"] .ico-on { display: none; }
.mute[aria-pressed="true"] .ico-off { display: block; }

/* ---------- Gift screen (everyone passes through it after sending) ---------- */
.gift-screen { position: fixed; inset: 0; z-index: 22; background: var(--paper); display: flex; flex-direction: column; }
.gift-screen[hidden] { display: none; }
.gift-screen .fun-head { background: var(--red); color: var(--white); }
.gift-screen .scroll { opacity: 1; translate: none; }
.gift-screen .gift { border-bottom: 0; }

/* ---------- Paper invitation ---------- */
.paper .small { margin: 0 0 6px; }
.gift-screen .navbtns { grid-template-columns: 1fr; }
/* payment details first, then pick a reference */
.gift > .gift-pick { font-size: 15px; font-weight: 500; margin-top: 6px; }
.pay.concept-box .pay-row.concept { padding-top: 0; border-top: 0; }
.mute[hidden] { display: none; }

/* Contact numbers in the FAQ: tap to open WhatsApp */
.contacts { display: grid; gap: 8px; margin-top: 10px; }
.contacts a { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 14px; border: 1.5px solid var(--red); border-radius: var(--radius); text-decoration: none; font-size: 17px; background: var(--white); }
.contacts b { font-family: var(--serif); font-weight: 400; font-size: 24px; min-width: 56px; }

/* Cover: Max's first photo as a polaroid stuck on the poster (replaces the ultrasound) */
.p-maxphoto {
  left: 78.5%; top: 80%; width: 21.5%; z-index: 1;
  background: #fff; padding: 1.2cqw 1.2cqw 5cqw;
  box-shadow: 0 .3cqw .6cqw rgba(0,0,0,.08), 0 2cqw 4cqw rgba(0,0,0,.14);
  transform: rotate(3deg);
  animation: drop .9s .2s cubic-bezier(.2,.8,.2,1) both;
}
.p-maxphoto img { display: block; width: 100%; height: auto; aspect-ratio: 484 / 588; object-fit: cover; }
.p-maxphoto::before {
  content: ""; position: absolute; top: -2.2cqw; left: 50%; width: 11cqw; height: 4cqw;
  translate: -50% 0; rotate: -4deg;
  background: rgba(240, 232, 214, .8); box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.p-maxphoto img { filter: grayscale(1) contrast(1.05); }
.fun-invite p.fun-sent { font-family: var(--mono); font-size: 16px; line-height: 1.4; }

/* Fun part: Max's weight guess, a number with a fixed "kg" */
.fun-q .kg { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--red); max-width: 200px; }
.fun-q .kg input[type="text"] { border-bottom: 0; font-family: var(--serif); font-size: 56px; line-height: 1; padding: 4px 0 0; width: 100%; min-width: 0; }
.fun-q .kg span { font-family: var(--serif); font-size: 36px; }

/* Where to stay: three searches */
.stay-links { display: grid; gap: 10px; }

/* Confirmation at the top of the gift screen (right after sending) */
.sent-ok { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--red); color: var(--white); font-size: 16px; line-height: 1.4; }
.sent-ok b { font-family: var(--serif); font-weight: 400; font-size: 26px; display: block; line-height: 1.05; margin-bottom: 2px; }
