/* Party site: one white page, black type, one pink accent.
   What is on the page: docs/_research/2026-11-26-party-site-verdict.md §2. */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* Permanent Marker (Apache 2.0, LICENSE-permanentmarker.txt): the hand lettering on every button. */
@font-face {
  font-family: "Permanent Marker";
  src: url("/assets/fonts/marker.woff2") format("woff2");
  font-display: swap;
}
/* Playfair Display Italic 700, cut down to the one "&" of the wordmark (renamed: Reserved Font Name). */
@font-face {
  font-family: "Smokey Amp";
  src: url("/assets/fonts/amp.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: block;
}
/* Fallback metrics against Arial, measured with fontTools (~/SCRATCH/pony-fonts/build.py). */
@font-face {
  font-family: "Anton Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 81.9%;
  ascent-override: 143.6%;
  descent-override: 40.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 102.8%;
  ascent-override: 94.2%;
  descent-override: 23.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --color-bg: #fff;
  --color-ink: #000;
  --color-ink-muted: #6b6b6b; /* 5.3:1 on bg, 4.8:1 on surface */
  --color-surface: #f2f2f2;
  --color-line: #8a8a8a; /* field borders, 3.5:1 on surface */
  /* The accent is only 3.3:1 on white: buttons, the route line and marks, never small text on white.
     Text on the accent is white (Casper, 2026-11-26), also 3.3:1, so text on pink is always big and bold. */
  --color-accent: #ff3d9a;
  --color-on-accent: #fff;
  --color-button: #000;
  --color-on-button: #fff;
  --color-media-bg: #000;
  --color-focus: #000;
  --color-rule: #ddd;
  --color-ok: #1e7a3c;
  --color-error: #b3261e;
  --radius-card: 22px;
  --radius-field: 16px;
  /* one spacing scale: tight, near, apart, between sections */
  --s1: 8px;
  --s2: 16px;
  --s3: 32px;
  --s4: 56px;
  --gutter: 24px;
  --font-title: "Anton", "Anton Fallback", Impact, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-amp: "Smokey Amp", Georgia, serif;
  --font-marker: "Permanent Marker", "Inter Fallback", system-ui, sans-serif; /* buttons and Smokey's lines */
  /* Buttons wear the bubbles' hand-drawn marker (MARKER_SVGS in server.ts): a solid shape stretched over the
     button, and for the solid ones a thin white line drawn 6px inside it. */
  --marker-ink: url("/marker/line.svg") center / calc(100% - 12px) calc(100% - 12px) no-repeat, url("/marker/ink.svg") center / 100% 100% no-repeat;
  --marker-pink: url("/marker/line.svg") center / calc(100% - 12px) calc(100% - 12px) no-repeat, url("/marker/pink.svg") center / 100% 100% no-repeat;
  --marker-ghost: url("/marker/ghost.svg") center / 100% 100% no-repeat;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font: 400 16px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* One column on every page and every screen. The wordmark fills it, and everything else starts and ends on its edges;
   only Smokey peeks a little into the gutter. The footer sits at the bottom of the screen on short pages. */
.app { display: flex; flex-direction: column; min-height: 100svh; max-width: calc(440px + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter) calc(2 * var(--s4) + env(safe-area-inset-bottom)); }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
/* the hand-drawn buttons get a lighter ring: a stiff black box round a wobbly shape looked harsh */
:is(.btn, .pick, .say):focus-visible { outline: 2px dashed var(--color-ink); outline-offset: 4px; }

.label {
  display: block;
  margin: 0;
  font: 600 11px/1.3 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.title {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
}
/* data-fit lines are sized to the column by enhance.js; hidden until then so they do not jump, and shown after
   1.5 s whatever happens, so a script that never runs cannot hide a title */
.js [data-fit]:not(.fitted) { visibility: hidden; animation: fit-show 0s 1.5s forwards; }
@keyframes fit-show { to { visibility: visible; } }

/* ---------- fields and buttons ---------- */
.field {
  display: block;
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-field);
  border: 1.5px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 0 18px;
  font: 500 17px var(--font-body);
}
textarea.field { padding: 14px 18px; min-height: 9rem; resize: vertical; line-height: 1.45; }
.field::placeholder { color: var(--color-ink-muted); }
.field:focus-visible { outline-offset: 1px; }

.field[type="file"] {
  min-height: 96px;
  padding: 14px;
  border-style: dashed;
  color: var(--color-ink-muted);
  font-size: 15px;
}
.field[type="file"]::file-selector-button {
  font: 400 16px var(--font-marker);
  min-height: 44px;
  margin-right: 12px;
  padding: 0 20px;
  border: 0;
  background: var(--marker-ink);
  color: var(--color-on-button);
  cursor: pointer;
}

.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 8px 22px;
  border: 0;
  background: var(--marker-ink);
  color: var(--color-on-button);
  font: 400 19px/1.15 var(--font-marker);
  letter-spacing: 0.02em;
  cursor: pointer;
}
@media (hover: hover) { .btn:hover { rotate: -1deg; } }
.btn:active { scale: 0.97; rotate: -1deg; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn-ghost { background: var(--marker-ghost); color: var(--color-ink); }
a.btn { display: grid; place-items: center; text-align: center; text-decoration: none; }
.btn-small { width: auto; min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-accent { background: var(--marker-pink); color: var(--color-on-accent); }

.note {
  margin: 0;
  padding: var(--s2);
  border-radius: var(--radius-field);
  background: var(--color-surface);
  font-weight: 600;
}
.note:empty { display: none; }
.note-ok { color: var(--color-ok); }
.note-error { color: var(--color-error); }

/* ---------- the logo block: kicker and wordmark ---------- */
/* minmax(0, 1fr): the kicker's own width must not widen the column the wordmark measures itself against */
.logo { display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }
/* The kicker's ink spans the column exactly, like the wordmark under it: at letter-spacing 0.22em its ink is
   25.76em wide (Inter 600, measured from screenshots at 360, 390 and 440). Fitted lines turn optical sizing
   off, so Inter keeps the same shapes at every size and that measurement holds at every width. */
.kicker {
  width: max-content; margin: 0 0 var(--s1) -0.02em;
  font-size: 3.882cqi; font-optical-sizing: none; letter-spacing: 0.22em; white-space: nowrap;
  color: var(--color-accent);
}
/* The wordmark scales with the column and its ink fills it edge to edge. Anton letters carry 0.031em of blank
   space on the left, so each line is pulled left by that much; sizes set so the ink is exactly 100cqi wide
   (GUIDO ink 2.102em, CARO ink 1.860em, measured in Chrome with Anton loaded). */
.names { position: relative; width: 100%; margin: 0; container-type: inline-size; isolation: isolate; }
.names .fit { display: block; width: max-content; margin-left: -0.031em; line-height: 0.9; white-space: nowrap; }
.names .guido { font-size: 47.57cqi; }
.names .caro { font-size: 53.76cqi; }
/* The "&" is white with a pink outline: over the black letters it reads as a cut-out, beside them as a drawn sign.
   paint-order puts the stroke under the fill, so only the outer half of the stroke shows. */
.names .amp {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font: italic 700 93.33cqi/1 var(--font-amp);
  color: var(--color-bg);
  -webkit-text-stroke: 8px var(--color-accent);
  paint-order: stroke fill;
  text-transform: none;
}

/* ---------- Smokey, the guide: his cutout and his speech bubble ---------- */
/* "side": the bubble on the column's left, Smokey right of it, peeking a little into the gutter.
   "below": the bubble on top, Smokey under it, for the wide poses. --pose-w sets his size per pose. */
.guide { --pose-w: 132px; display: grid; gap: var(--s2); margin-block: var(--s2); }
.guide-side { grid-template-columns: minmax(0, 1fr) var(--pose-w); align-items: start; }
.guide-below { gap: 0; }
.guide-img { display: block; width: var(--pose-w); max-width: none; height: auto; animation: smokey-in 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s both; }
.guide-side .guide-img { margin-right: calc(-0.75 * var(--gutter)); }
.guide-below .guide-img { justify-self: end; margin: var(--s1) calc(-0.5 * var(--gutter)) 0 0; }
.pose-wave, .pose-ticket, .pose-popcorn { --pose-w: 124px; }
.pose-three-quarter { --pose-w: 120px; }
.pose-filmcam { --pose-w: 150px; }
.pose-sniff { --pose-w: 78%; }
.pose-back { --pose-w: 72%; }
.pose-runside { --pose-w: 70%; }
.guide-flip .guide-img { scale: -1 1; justify-self: start; margin: var(--s1) 0 0 calc(-0.5 * var(--gutter)); }
.guide-flip .bubble-tail { scale: -1 1; }
@keyframes smokey-in { from { opacity: 0; translate: 0 20px; } }

/* One bubble for every line: Smokey's hand-drawn pink marker outline (a vector path stretched over the box, see
   bubble() in server.ts), the speaker button under the line, and a tail aimed at his mouth.
   The tail's spot comes from guide()'s --ratio and --mouth-x/-y: beside him it sits at his mouth's height (the
   bubble and the cutout share a top edge), above him it sits over his mouth. */
/* Bubble text grows with the column: --u is 1px on a 390-wide phone (a 342px column) and grows with the screen up to
   the 440px column, so on a computer the words fill the bubble the way they do on the phone. Never under 1px, so
   small phones keep today's sizes. */
.bubble {
  --u: clamp(1px, calc((100vw - 2 * var(--gutter)) / 342), calc(440px / 342));
  position: relative; display: flow-root; isolation: isolate;
  padding: 28px 26px 26px; color: var(--color-ink);
  animation: bubble-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.3) 0.35s both;
}
.bubble-shape { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; }
.bubble-shape path, .bubble-tail .fill { fill: var(--color-bg); }
.bubble-shape path, .bubble-tail .line { stroke: var(--color-accent); stroke-width: 4px; stroke-linejoin: round; stroke-linecap: round; }
.bubble-tail { position: absolute; z-index: -1; overflow: visible; }
.bubble-tail .line { fill: none; }
.bubble p { margin: 0; font: 400 calc(19 * var(--u))/1.35 var(--font-marker); letter-spacing: 0.01em; text-wrap: pretty; }
/* The door line keeps "Il Direttore & Co." on one line (no-break spaces). That bubble gets a smaller Smokey and less
   side padding to make room, and on a narrow phone its text shrinks with the bubble instead of running past the
   outline (11cqi: the name line is about 8.9 times the font size wide). */
.guide:has(.bubble-door) { --pose-w: 108px; }
.bubble-door { container-type: inline-size; padding-inline: 18px; }
.bubble-door p { font-size: min(calc(19 * var(--u)), 11cqi); }
.tail-right { transform-origin: 100% 30%; }
.tail-right .bubble-tail { left: calc(100% - 3px); top: clamp(16px, calc(var(--pose-w) * var(--ratio) * var(--mouth-y) - 10px), calc(100% - 36px)); }
.tail-down { transform-origin: 50% 100%; }
.tail-down .bubble-tail { top: calc(100% - 3px); left: clamp(20px, calc(100% + 0.5 * var(--gutter) - var(--pose-w) * (1 - var(--mouth-x)) - 10px), calc(100% - 44px)); }
.guide-flip .tail-down .bubble-tail { left: clamp(20px, calc(var(--pose-w) * (1 - var(--mouth-x)) - 0.5 * var(--gutter) - 10px), calc(100% - 44px)); }
.tail-none { animation: none; }
@keyframes bubble-in { from { opacity: 0; scale: 0.85; } }

/* Smokey's voice: a round pink marker button with enhance.js, the clip's own controls without it */
.say { display: none; }
.js .say {
  display: grid; place-items: center; width: 44px; height: 44px; margin-top: 12px; padding: 0; border: 0; cursor: pointer;
  background: url("/marker/dot-line.svg") center / calc(100% - 10px) calc(100% - 10px) no-repeat, url("/marker/dot.svg") center / 100% 100% no-repeat;
  color: var(--color-on-accent);
}
.say svg { display: block; }
.say .say-stop, .say[aria-pressed="true"] .say-play { display: none; }
.say[aria-pressed="true"] .say-stop { display: inline; }
.say:active { scale: 0.92; }
.say-clip { display: block; width: 100%; margin-top: var(--s1); }
.js .say-clip { display: none; }

/* ---------- door, name, pass, closed and unlock screens: one column, top to bottom ---------- */
.door { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s3); }
.door-title { font-size: 64px; }
.door-line { margin: 0; font-size: 17px; color: var(--color-ink-muted); text-wrap: pretty; }
.door-line + .door-line { margin-top: calc(var(--s2) - var(--s3)); }

/* every form: controls a step apart, a label right on top of its field */
form { margin: 0; }
.door form, .panel form, .status-form { display: grid; gap: var(--s2); }
.label + .field { margin-top: calc(var(--s1) - var(--s2)); }
.field + .hint { margin-top: calc(var(--s1) - var(--s2)); }
.door form .label, .panel .label, .status-form .label { color: var(--color-ink-muted); }

/* ---------- "Bewaar je pas" ---------- */
.pass-body { display: grid; gap: var(--s2); }
.pass-card {
  display: grid;
  padding: 0 var(--s2) var(--s2);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  overflow: hidden;
}
.pass-card::before { content: ""; height: var(--s1); margin: 0 calc(-1 * var(--s2)) var(--s2); background: var(--color-accent); }
.pass-card p { margin: 0; }
.pass-card .label { margin-top: var(--s2); color: var(--color-ink-muted); }
.pass-card .label + p { margin-top: var(--s1); }
.pass-name { font: 700 19px/1.3 var(--font-body); overflow-wrap: anywhere; }
.pass-code { font: 400 44px/1 var(--font-title); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.pass-link { font-size: 15px; overflow-wrap: anywhere; }
.pass-link a { color: var(--color-ink); }
.share, .share-links { display: grid; gap: var(--s2); }
.share-links[hidden], .share-now[hidden] { display: none; }
.home-help summary { padding: 11px 0; font-weight: 700; cursor: pointer; }
.home-help p { margin: var(--s1) 0 0; color: var(--color-ink-muted); }

/* ---------- main page ---------- */
.hero { display: grid; gap: var(--s3); padding-block: var(--s3); }
.stack { display: grid; gap: var(--s3); }
.block { padding-top: var(--s3); border-top: 1.5px solid var(--color-ink); }
.block > * { margin: 0; }
.block > * + * { margin-top: var(--s2); }
.block > :is(.picks, .panel, .film, .song, .route, .invite-made, .invite-form, .sent) { margin-top: var(--s3); }
.block > .film + .hint { margin-top: var(--s1); }
.block > .title { font-size: 44px; }
.hint { margin: 0; font-size: 14px; color: var(--color-ink-muted); }

/* guestbook: the prompt, three big buttons, one open form, the guest's own list */
/* 26px base: enhance.js grows each line to the column, and from 22px "genoeg voor Il Direttore" needed more than its
   1.45 limit on an iPhone, so it stayed small under a full-width first line. */
.prompt { margin: 0; font: 700 26px/1.35 var(--font-body); }
.prompt [data-fit] { display: block; }
.block > .title + .prompt { margin-top: 24px; }
/* a pink sticker on a key word */
mark { display: inline-block; padding: 0 0.18em; border-radius: 0.35em; background: var(--color-accent); color: var(--color-on-accent); rotate: -2deg; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); }
.pick {
  display: grid; place-items: center; align-content: center; gap: var(--s1);
  min-height: 112px; padding: var(--s2) 10px;
  background: var(--marker-pink);
  color: var(--color-on-accent);
  font: 400 17px/1.15 var(--font-marker);
  text-align: center; text-decoration: none;
  hyphens: manual;
  transition: rotate 0.15s ease, scale 0.15s ease;
}
.pick svg { display: block; width: 48px; height: 48px; }
@media (hover: hover) { .pick:hover { rotate: -2deg; } }
.pick:active { scale: 0.94; rotate: 3deg; }
.pick[aria-expanded="true"] { background: var(--marker-ink); color: var(--color-on-button); }
/* Guests did not read the three tiles as buttons, so every few seconds they give a small wiggle, one after the other,
   like something waiting to be pressed. They stay still on touch or hover, and while one of them is open. */
.pick { animation: pick-nudge 4s ease-in-out 1.2s infinite; }
.pick:nth-child(2) { animation-delay: 1.4s; }
.pick:nth-child(3) { animation-delay: 1.6s; }
.pick:is(:hover, :active, :focus-visible), .picks:has([aria-expanded="true"]) .pick { animation: none; }
@keyframes pick-nudge {
  0%, 76%, 100% { rotate: 0deg; scale: 1; }
  81% { rotate: -4deg; scale: 1.06; }
  86% { rotate: 3deg; scale: 1.06; }
  91% { rotate: -1.5deg; scale: 1.03; }
  96% { rotate: 0deg; scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pick { transition: none; animation: none; }
  .pick:active, .btn:active { rotate: 0deg; }
  .guide-img, .bubble { animation: none; }
  .say:active { scale: 1; }
}
.sticker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--color-ink); color: var(--color-bg); font-weight: 600; font-size: 15px; rotate: -1.5deg; }
.lead { text-wrap: pretty; }
.invite-made { display: grid; gap: var(--s2); padding: var(--s2); border-radius: var(--radius-card); background: var(--color-surface); }
.invite-made > * { margin: 0; }
.invite-made .label { color: var(--color-ink-muted); }
.invite-made .label + .pass-link { margin-top: calc(var(--s1) - var(--s2)); }

.panel { background: var(--color-surface); border-radius: var(--radius-card); padding: var(--s2); scroll-margin-top: var(--s2); }
.panel[hidden] { display: none; }
.panel .field { background: var(--color-bg); }
/* Smokey with his prop inside an opened form: smaller, and kept within the grey panel. With JavaScript he waits
   (display:none, so his lazy image is not fetched) until the guest opens that form. */
.panel .guide { --pose-w: 100px; margin-bottom: var(--s2); }
.panel .guide-side .guide-img { margin-right: 0; }
.js .panel:not(.opened) .guide { display: none; }

.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.progress:empty { display: none; }
.progress li { display: flex; justify-content: space-between; gap: 12px; }
.progress .file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress .ok { color: var(--color-ok); }
.progress .bad { color: var(--color-error); }

.recorder { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s2); }
.recorder[hidden] { display: none; }
.rec-toggle[aria-pressed="true"] { background: var(--marker-pink); color: var(--color-on-accent); }
.rec-time { font: 600 17px var(--font-body); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: right; }
.rec-preview { grid-column: 1 / -1; width: 100%; }
.rec-preview[hidden] { display: none; }
.voice-status { margin: 0; color: var(--color-ink-muted); }
.voice-status:empty { display: none; }

.sent > .label { color: var(--color-ink-muted); }
/* nothing sent yet: Smokey lies on his back in the box, judging */
.sent-none { display: grid; gap: var(--s2); padding: var(--s2); border-radius: var(--radius-card); background: var(--color-surface); }
.sent-none p { margin: 0; }
.sent-list { list-style: none; margin: var(--s1) 0 0; padding: 0; display: grid; gap: var(--s1); }
.sent-list li { display: flex; gap: var(--s2); align-items: baseline; overflow-wrap: anywhere; }
.sent-list .label { flex: none; width: 5.5em; color: var(--color-ink-muted); }

/* film and song */
/* object-fit crops the portrait poster to its photo inside the 16:9 frame; the film itself is 16:9 already */
.film { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-field); background: var(--color-media-bg); }

/* the premiere entry: one full screen over the page, the column layout inside */
.premiere { position: fixed; inset: 0; z-index: 10; overflow-y: auto; background: var(--color-bg); }
.premiere:focus { outline: none; } /* focused on open so screen readers land inside; the ring belongs to the button */
.premiere-in {
  container-type: inline-size;
  max-width: calc(440px + 2 * var(--gutter)); min-height: 100%; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--s3);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
}
.premiere-in > * { margin: 0; }
.premiere-in .kicker { margin: 0 0 calc(var(--s2) - var(--s3)) -0.02em; }
/* the invite's photo, cut out of the portrait poster: source pixels x 44-676, y 402-811 of 720x1280 */
.premiere-poster { aspect-ratio: 632 / 409; overflow: hidden; border-radius: var(--radius-card); }
.premiere-poster img { display: block; width: 113.92%; max-width: none; height: auto; margin: -63.61% 0 0 -6.96%; }
/* the countdown after the entry's button (enhance.js): boxing round cards 30, 13, 3, 1 (/media/ring/, 1200x1800 PNG
   with see-through rounded corners) held up on a black screen, one at a time. Width is the smaller of 88vw and what
   86svh allows at 2:3, so a short screen keeps the whole card. Each card swings up from below; enhance.js tilts
   them left and right in turn. */
.countdown { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden; background: var(--color-ink); }
.countdown img { display: block; width: min(88vw, 57.33svh); height: auto; animation: card-up 0.22s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes card-up { from { translate: 0 30svh; rotate: -9deg; } }
@media (prefers-reduced-motion: reduce) { .countdown img { animation: none; } }
.song-title { font: 700 22px/1.25 var(--font-body); }
.block > .song-title + .song-by { margin-top: 0; }
.song-by { color: var(--color-ink-muted); }
.song { display: block; width: 100%; }

/* the route: stops down the column, joined by one pink dashed line that runs in the left gutter */
.route { list-style: none; padding: 0; position: relative; display: grid; gap: var(--s4); }
.route::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: calc(var(--gutter) / -2 - 1.5px);
  border-left: 3px dashed var(--color-accent);
}
.stop { position: relative; }
.stop::before {
  content: ""; position: absolute; top: 8px; left: calc(var(--gutter) / -2 - 7px);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-bg);
}
.stop > * { margin: 0; }
.stop .title { font-size: 32px; }
.stop .label { margin-top: var(--s1); color: var(--color-ink-muted); }
.stop :is(img, video) { display: block; width: 100%; height: auto; margin-top: var(--s2); border-radius: var(--radius-field); background: var(--color-surface); }
.stop .bubble { margin-top: var(--s2); }
.stop .bubble p { font-size: calc(17 * var(--u)); line-height: 1.5; }

/* ---------- the footer: only on pages that pass one (the pass line and maker credit under the main page) ---------- */
.foot { display: grid; gap: var(--s2); margin-top: auto; padding-top: var(--s4); }
.pass-foot { margin: 0; color: var(--color-ink-muted); }
.pass-foot strong { color: var(--color-ink); letter-spacing: 0.04em; }
.pass-foot a { display: inline-block; padding: 12px 0; color: var(--color-ink); font-weight: 600; }
/* plenty of room under the credit, and clear of the phone's home bar */
.credit { margin: 0; padding-bottom: calc(2 * var(--s4) + env(safe-area-inset-bottom)); }
.credit a {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  font: 600 11px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-ink-muted); text-decoration: none; border-radius: 8px;
}
.credit a:hover { color: var(--color-ink); }
.credit svg { display: block; width: 40px; height: 40px; color: var(--color-ink); }

/* ---------- Casper's status page (/s/<key>) ---------- */
.status { display: grid; gap: var(--s2); padding-block: var(--s3) var(--s4); }
.status > * { margin: 0; }
.status > .title { font-size: 56px; }
.status-sum { font-weight: 600; margin-bottom: var(--s2) !important; }
.status-person { background: var(--color-surface); border-radius: var(--radius-card); padding: var(--s2); }
.status-person h2 { margin: 0; font: 700 19px/1.3 var(--font-body); }
.status-person ul { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.status-person li { padding: var(--s1) 0; border-top: 1px solid var(--color-rule); overflow-wrap: anywhere; }
.status-person a { color: var(--color-ink); font-weight: 600; }
.status-meta { display: block; color: var(--color-ink-muted); font-size: 14px; margin: 2px 0 0; }
.status-form { margin: var(--s2) 0; }
.status-form .field { background: var(--color-bg); }
.status-pass form { margin-top: var(--s1); }
.status-pass.is-off strong { text-decoration: line-through; }
