/* No Way On Earth — two grounds: night up top, a desk below.
   Night (header + hero): a warm, lamp-lit dusk round the globe, the only place the page is dark.
   Desk (everything after): warm linen, so the cards read as cards on a table and the pictures carry the colour.
   Both grounds share one set of tokens; the desk scope remaps them, so components never ask where they are.
   Type: Fraunces for titles and display figures; Inter for reading and interface; Reenie Beanie for anything written by hand.
   Small caps labels run at 500 weight with .1em tracking so they stay legible in muted ink; figures are tabular.
   Actions are card stock on space and ink on the desk; signal red is kept for the satellite itself. */
:root {
  --ground: #05070e;
  --ground-2: #0c1020;
  --desk: #e7e1d4;
  --text: #f3f5fb;
  --soft: #c5cbdb;
  --muted: #8e97ad;
  --sky: #f5cd7a;
  --on-sky: #1d1608;
  --paper: #f8f5ee;
  --dark: #0b1f45;
  --zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M19.5 19.5l8 8' stroke='%23fff' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M19.5 19.5l8 8' stroke='%230b1f45' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='13' r='9' fill='%23f8f5ee' fill-opacity='.92' stroke='%23fff' stroke-width='4.5'/%3E%3Ccircle cx='13' cy='13' r='9' fill='none' stroke='%230b1f45' stroke-width='2'/%3E%3Cpath d='M13 8.5v9M8.5 13h9' stroke='%230b1f45' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 13 13, zoom-in;
  --signal: #ff5a4a;
  --rule: rgba(214, 224, 255, .16);
  --btn-bg: var(--paper);
  --btn-fg: var(--dark);
  --btn-hover: #fff;
  --lie: 0 14px 30px -16px rgba(0, 0, 0, .8);
  --lift: 0 24px 50px -20px rgba(0, 0, 0, .9);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --hand: "Reenie Beanie", "Bradley Hand", cursive;

  --page: 1240px;
  --pad: max(24px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html { font-variation-settings: "SOFT" 0, "WONK" 0; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; font: 16px/1.55 var(--sans); color: var(--text); overflow-x: hidden;
  /* The desk: linen with a faint paper grain. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--desk);
}
/* The hero glow and the parcel's hat reach past the screen edge. A phone ignores body's overflow-x (it widens the page to
   fit them and shows it zoomed out), so main clips them itself; clip, unlike hidden, makes no scroll box, so sticky still works. */
main, .bleed { overflow-x: clip; }
/* Night: header and hero (and the scene page's hero) on full-bleed deep space with a still field of stars. The star
   tile is laid twice at sizes that don't divide each other, so no pattern shows; both are fixed to the viewport, so
   the field runs on unbroken from the header into the hero. */
.top, .hero { position: relative; isolation: isolate; }
.top { border-image: linear-gradient(var(--ground), var(--ground)) fill 0 / / 0 100vw; }
.hero { border-image: linear-gradient(var(--ground), var(--ground-2)) fill 0 / / 0 100vw; }
.top::before, .hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none;
  background: url("img/stars.svg") 0 0 / 800px fixed, url("img/stars.svg") 340px 170px / 1270px fixed;
}
/* The desk scope: same tokens, ink on linen. */
.sets, .ways, .about, .atlas, .faq, .close, .foot, .reply, .dock {
  --text: #14213d;
  --soft: #3d4a66;
  --muted: #5f6a80;
  --sky: #8a5a00;
  --on-sky: #fff;
  --rule: rgba(20, 33, 61, .14);
  --btn-bg: var(--dark);
  --btn-fg: var(--paper);
  --btn-hover: #f5cd7a;
  --lie: 0 1px 2px rgba(60, 45, 20, .18), 0 12px 24px -14px rgba(60, 45, 20, .45);
  --lift: 0 2px 4px rgba(60, 45, 20, .14), 0 26px 44px -18px rgba(60, 45, 20, .5);
  color: var(--text); color-scheme: light;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.mono { font-variant-numeric: tabular-nums lining-nums; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--sky); }
/* The big headline in Fraunces' soft, wonky cut: rounder and warmer than the section titles. Its accent stays upright. */
h1 { font-variation-settings: "SOFT" 100, "WONK" 1; }

.top, .hero, .sets, .ways, .about, .atlas, .faq, .close, .foot { width: 100%; max-width: calc(var(--page) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }

/* Header */
.top { display: flex; align-items: center; gap: 24px; padding-top: calc(20px + env(safe-area-inset-top, 0px)); padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; fill: var(--text); flex: none; }
.brand span { font: 400 21px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 14px; }
.top-nav a { text-decoration: none; color: var(--soft); transition: color .2s; }
.top-nav a:hover { color: var(--text); }
.env-btn { display: inline-flex; gap: 8px; align-items: baseline; background: none; border: 1px solid var(--rule); border-radius: 3px; padding: 8px 14px 9px; cursor: pointer; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.env-btn:hover { border-color: var(--soft); }
.env-btn b { font-weight: 500; font-size: 12px; color: var(--sky); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 3px; padding: 14px 22px 15px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s;
}
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--lie); transition: background .2s, transform .2s, box-shadow .2s, opacity .2s; }
.btn.primary:hover:not(:disabled) { background: var(--btn-hover); color: #1d1608; transform: translateY(-1px) rotate(-.6deg); box-shadow: var(--lift); }
.btn.primary:disabled { opacity: .35; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: none; border: 1px solid var(--rule); }
.btn.ghost:hover:not(:disabled) { border-color: var(--text); }
.btn.ghost:disabled { color: var(--muted); cursor: default; }
.btn.quiet { background: none; padding-inline: 6px; color: var(--soft); }
.btn.quiet:hover { color: var(--text); }
.btn.quiet::after { content: "→"; margin-left: 8px; }
.btn.quiet.s-download::after { content: "↓"; }
.btn.quiet[data-post]::after { content: none; }
.btn.link { background: none; padding: 4px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn.small { padding: 9px 14px 10px; font-size: 11px; }
/* All buttons are in the style of the cards' "Details" tag: a label in small spaced capitals. */
.btn.label.primary { box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8); }
.btn.label.primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn.label.quiet { border: 1px solid var(--rule); padding-inline: 20px; }
.btn.label.quiet:hover { border-color: var(--soft); }

/* Hero: the words on the left, one postcard on the right. The scene page reuses .hero with its globe. */
.hero {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center;
  min-height: min(760px, calc(100svh - 76px)); padding-bottom: 64px;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
h1 { font-size: clamp(3rem, 4.6vw, 4.6rem); line-height: .98; letter-spacing: -.03em; }
.lede { margin: 0; max-width: 30em; font-size: 19px; color: var(--soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* The card in a faint glow: its written back lies bottom left, the picture on top of it top right, covering only the
   back's stamp corner, so the message and Oma Ruth's address both stay in view. Both are the same size; the box offsets them so the picture clears the message and the address. */
.hero-card { position: relative; aspect-ratio: 170 / 123; width: 88%; justify-self: center; }
.hero-card::before {
  content: ""; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150, 175, 255, .09), rgba(120, 140, 220, .03) 60%, transparent);
}
.hero-back, .hero-front { position: absolute; box-shadow: 0 2px 4px rgba(12, 6, 8, .35), 0 28px 50px -18px rgba(12, 6, 8, .85); }
.hero-back, .hero-front {
  padding: 0; border: 0; border-radius: 3px; background: none; cursor: pointer;
  transition: rotate .4s cubic-bezier(.2, .8, .3, 1), translate .4s cubic-bezier(.2, .8, .3, 1);
}
.hero-back { left: 0; bottom: 0; width: 67%; rotate: -2.5deg; }
.hero-front { right: 0; top: 0; width: 67%; rotate: 3deg; }
.hero-back { display: block; text-align: left; }
.hero-back .pc-back, .hero-front .pc-front { width: 100%; box-shadow: none; }
.hero-front .pc-front { display: block; }
.hero-front:hover { rotate: 1.5deg; translate: 0 -6px; }
.hero-back:hover { rotate: -1.5deg; translate: 0 -4px; }
/* First-print-run banner above the header: the pre-order goal is the first thing anyone reads. Card stock on space. */
.banner {
  display: block; padding: calc(15px + env(safe-area-inset-top, 0px)) var(--pad) 15px; text-align: center; text-decoration: none;
  background: var(--paper); color: var(--dark); font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase;
}
.banner:empty { display: none; }
.banner small { font-size: inherit; }
@media (max-width: 600px) { .banner { font-size: 13.5px; letter-spacing: .04em; } .banner .b-more { display: none; } }
.banner b { font-weight: 700; color: #c8321f; }
/* The arrow is an ink button that nudges now and then, so the strip reads as something to press. */
.banner span {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-left: .5em;
  border-radius: 99px; background: var(--dark); color: var(--paper); letter-spacing: 0; transition: transform .2s, background .2s;
  animation: banner-nudge 4s ease-in-out 1.5s infinite;
}
.banner:hover span { transform: translateY(4px); background: #f5cd7a; color: #1d1608; animation: none; }
@keyframes banner-nudge { 0%, 80%, 100% { transform: none; } 88% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .banner span { animation: none; } }
.banner + .top { padding-top: 20px; }
.launch { max-width: 34em; }
.launch-line { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.launch-line b { color: var(--text); font-weight: 500; }
.launch-bar { height: 3px; margin: 10px 0; background: var(--rule); border-radius: 2px; overflow: hidden; }
.launch-bar span { display: block; height: 100%; background: var(--sky); transition: width .6s ease; }
.launch-note { margin: 0; font-size: 14px; color: var(--soft); }
.launch-note b { color: var(--text); font-weight: 500; }
/* The hero's order counter: centred under the copy and the card, one lit segment per order towards the goal. */
.hero:has(> .hero-goal) { grid-template-rows: 1fr auto; }
.hero-goal { grid-column: 1 / -1; justify-self: center; width: min(100%, 780px); text-align: center; }
.hero-goal:empty { display: none; }
.goal-call { margin: 0 0 16px; font: 500 clamp(1.25rem, 2.1vw, 1.6rem)/1.25 var(--serif); letter-spacing: -.01em; }
.goal-call b { color: var(--sky); font-weight: 600; white-space: nowrap; }
.goal-bar { position: relative; display: flex; gap: 3px; height: 14px; padding: 3px; border: 1px solid var(--rule); border-radius: 99px; }
/* The envelope's Santa hat, mirrored and pulled over the bar's left end for the season. */
.goal-bar::before {
  content: ""; position: absolute; left: -16px; top: -30px; width: 62px; aspect-ratio: 130 / 110; scale: -1 1; rotate: -30deg; pointer-events: none;
  background: url("/img/santa-hat.svg") no-repeat center / contain;
  filter: drop-shadow(0 2px 3px rgba(12, 6, 8, .5));
}
.goal-bar i { flex: 1; border-radius: 2px; background: rgba(214, 224, 255, .1); transition: background .4s ease calc(var(--i) * 30ms), box-shadow .4s ease calc(var(--i) * 30ms); }
.goal-bar i:first-child { border-radius: 99px 2px 2px 99px; }
.goal-bar i:last-child { border-radius: 2px 99px 99px 2px; }
.goal-bar i.on { background: var(--sky); box-shadow: 0 0 8px rgba(245, 205, 122, .55); }
.goal-meta { margin: 12px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.goal-meta b { color: var(--text); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .goal-bar i { transition: none; } }

/* The globe under a lamp: a warm glow behind it, reaching out past its box. */
.hero-globe { position: relative; }
.hero-globe::before {
  content: ""; position: absolute; inset: -18% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 170, 96, .2), rgba(255, 140, 80, .07) 55%, transparent);
}
.globe { position: relative; aspect-ratio: 1; width: 100%; cursor: grab; touch-action: pan-y; }
.globe.grabbing { cursor: grabbing; }
.globe canvas, .pins { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe canvas {
  -webkit-mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%);
}
.pins { pointer-events: none; }

/* Handwriting: only for what a sender writes on a card. */
.hand { font-family: var(--hand); font-weight: 400; color: #1c3a8f; }
/* A message written on a back (size set from its length by postcard.js); it takes the place of the caption note. */
.b-hand { margin: .6cqw 0 0; font-size: 4.8cqw; line-height: 1.02; transform: rotate(-1.5deg); max-width: 84cqw; white-space: pre-line; overflow-wrap: anywhere; }
.pc-back.written .b-note { display: none; }
.hero-back .pc-back.written .b-note { display: -webkit-box; } /* the hero shows the caption note above its message */
.hero-back .b-hand { margin-block: auto; } /* ...and the message in the middle of the space between the note and the QR code */
.hero-back .b-qr { margin-top: 0; }
.addr i { min-height: 1em; font: 400 3.9cqw/1.05 var(--hand); color: #1c3a8f; padding-left: 1cqw; font-style: normal; }

.noglobe { margin: 0; color: var(--muted); }

/* Pins, like a sewing pin in a pincushion: the button sits on the glass head, in the set's colour, and the needle
   runs back from it (::before) to the hole it is stuck in at the card's spot (::after). globe.js sets --len and --ang
   from the head to the hole. The pin of the card on top of the pile (.on) wears a cream collar and its name. */
.pin {
  --len: 0px; --ang: 0rad;
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 0; padding: 0; background: none; cursor: pointer; pointer-events: auto; opacity: var(--f, 1); transition: opacity .25s;
}
.pin::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: var(--len); height: 1.6px; margin-top: -.8px; border-radius: 1px;
  transform-origin: 0 50%; rotate: var(--ang); pointer-events: none;
  background: linear-gradient(90deg, #fbf3e4, #c9bca6 55%, #7d6f5c);
}
.pin::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 4px; margin: -2px 0 0 -2.5px; border-radius: 50%;
  transform: rotate(var(--ang)) translateX(var(--len)); background: rgba(40, 22, 10, .55); pointer-events: none;
}
.pin i {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 11%, transparent 32%),
    radial-gradient(circle at 42% 40%, color-mix(in srgb, var(--c) 65%, #fff), var(--c) 52%, color-mix(in srgb, var(--c) 55%, #1a0e08));
  box-shadow: 2px 3px 4px rgba(24, 12, 6, .5); transition: transform .2s, box-shadow .2s;
}
.pin:hover i, .pin:focus-visible i { transform: scale(1.35); }
.pin.on i { transform: scale(1.5); box-shadow: 0 0 0 2.5px #fbf3e4, 2px 4px 7px rgba(24, 12, 6, .55); }
.pin-label {
  position: absolute; left: 24px; top: 50%; transform: translate(-4px, -50%) rotate(-1.5deg); white-space: nowrap;
  font: 400 15px/1 var(--serif); padding: 5px 9px 6px; border-radius: 3px; background: var(--paper); color: var(--dark);
  box-shadow: 0 6px 14px -6px rgba(24, 12, 6, .6); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.pin:hover .pin-label, .pin:focus-visible .pin-label, .pin.on .pin-label { opacity: 1; transform: translate(0, -50%) rotate(-1.5deg); }
.pin:focus-visible { outline: none; }
.pin:focus-visible i { outline: 2px solid var(--sky); outline-offset: 3px; }
/* The followed satellite's name on a small dark tag, legible over sea and land alike; pins stay on top of it. */
.sat-label {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; z-index: 90;
  font-size: 10px; color: var(--text); margin: -38px 0 0 12px; padding: 3px 7px 3px 8px; border-left: 1px solid var(--signal);
  background: rgba(23, 16, 24, .78); border-radius: 0 3px 3px 0; transition: opacity .4s;
}
.sat-label b { font-weight: 500; color: var(--signal); }
.sat-label span { display: block; color: var(--soft); font-size: 9px; }
.sat-pin {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; z-index: 250;
  border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto;
}

/* The sets: a shelf of packs, then the open set's cards. */
.sets { padding-top: 96px; scroll-margin-top: -64px; }
.sets-head { display: grid; gap: 12px; }
.sets-head h2 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; }
.sets-sub { margin: 4px 0 0; max-width: 52em; font-size: 17px; color: var(--soft); }
/* A slim row of small packs that works as a filter for the five cards below. One row however many sets there are;
   it scrolls sideways once they no longer fit. */
.shelf {
  display: flex; align-items: center; gap: 24px;
  margin: 0 calc(-1 * var(--pad)); padding: 28px var(--pad) 12px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad); scrollbar-width: thin;
}
.pack {
  flex: none; display: grid; grid-template-columns: 68px auto; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; scroll-snap-align: start;
  position: relative; padding: 10px 18px 14px 10px; border-radius: 6px; transition: background .2s;
}
/* The open pack is a tab: a tinted chip with a caret pointing down at the set it opened. */
.pack[aria-selected="true"] { --tint: color-mix(in srgb, currentColor 9%, transparent); background: var(--tint); }
.pack[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 22px; height: 9px; margin-left: -11px;
  background: var(--tint); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.pack:not([aria-selected="true"]):hover { background: color-mix(in srgb, currentColor 4%, transparent); }
/* "Show all": the last tab, pushed to the shelf's right end, a label with no stack of cards. */
.pack-all { display: block; margin-left: auto; padding: 10px 14px 14px; }
.pack-all .pack-name { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.pack-all:not([aria-selected="true"]) .pack-name { opacity: .5; transition: opacity .2s; }
.pack-all:hover .pack-name { opacity: 1; }
/* A pack: its five cards squared up in a stack. */
.pack-fan { position: relative; display: block; aspect-ratio: 170 / 120; margin: 6px 4px; }
.pack-fan .pc-front {
  position: absolute; inset: 0; transform-origin: 50% 140%; box-shadow: var(--lie);
  rotate: calc(var(--i) * 1.5deg); translate: calc(var(--i) * 1px) calc(var(--i) * -1px);
  transition: rotate .45s cubic-bezier(.2, .8, .3, 1), translate .45s cubic-bezier(.2, .8, .3, 1);
}
.pack-fan .pc-standin { display: none; }
/* Hovering a pack loosens it; the open one is fanned out like a hand of cards. */
.pack:hover .pc-front, .pack:focus-visible .pc-front { rotate: calc(var(--i) * 4deg); translate: calc(var(--i) * 2px) 0; }
.pack[aria-selected="true"] .pc-front { rotate: calc(var(--i) * 5deg); translate: calc(var(--i) * 3px) 0; }
.pack-label { display: grid; gap: 2px; }
.pack-name { font: 400 16px/1.15 var(--serif); white-space: nowrap; }
.pack[aria-selected="true"] .pack-name { font-weight: 600; }
.pack:not([aria-selected="true"]) .pack-label { opacity: .5; transition: opacity .2s; }
.pack:hover .pack-label { opacity: 1; }
.pack:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; border-radius: 4px; }

/* Swipe dots (app.js swipeDots): where a sideways row is, and how much is left to swipe to. */
.swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.swipe-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--text); opacity: .18; transition: opacity .25s; }
.swipe-dots i.on { opacity: .7; }

.set { padding-top: 32px; }
.set-head { display: grid; gap: 12px; padding-bottom: 8px; }
.set-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.set h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.1; }
.set-blurb { margin: 0; max-width: 46em; color: var(--soft); }
/* "Take all five": sits beside the set's name, outlined in the yellow accent. */
.btn.take { background: none; color: var(--sky); border: 1.5px solid var(--sky); padding: 10px 18px 11px; font-size: 11px; transition: background .2s, color .2s, opacity .2s; }
.btn.take:hover:not(:disabled) { background: var(--sky); color: var(--on-sky); }
.btn.take:disabled { opacity: .55; cursor: default; }

.grid { list-style: none; margin: 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 20px; }
.card { min-width: 0; }
.card-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .3, 1); }
.card-img:hover, .card-img:focus-visible { transform: translateY(-6px) scale(1.08); z-index: 2; }
/* On hover a paper label slides up over the picture: this card opens. */
.card-peek {
  position: absolute; left: 50%; bottom: 10%; translate: -50% 8px; white-space: nowrap; pointer-events: none;
  padding: 6px 12px 7px; border-radius: 3px; background: var(--paper); color: var(--dark);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8);
  opacity: 0; transition: opacity .25s, translate .25s cubic-bezier(.2, .8, .3, 1);
}
.card-img:hover .card-peek, .card-img:focus-visible .card-peek,
.hero-card button:hover .card-peek, .hero-card button:focus-visible .card-peek { opacity: 1; translate: -50% 0; }
/* Laid out like cards on a table: each a little askew until you pick it up. */
.card:nth-child(odd) .card-img { rotate: -1.4deg; }
.card:nth-child(even) .card-img { rotate: 1.1deg; }
.card:nth-child(3n) .card-img { rotate: -.4deg; }
.card-img { transition: transform .35s cubic-bezier(.2, .8, .3, 1), rotate .35s cubic-bezier(.2, .8, .3, 1); }
.card .card-img:hover, .card .card-img:focus-visible { rotate: 0deg; }
.card-img .pc-front { box-shadow: var(--lie); }
.card-img:hover .pc-front { box-shadow: var(--lift); }
.card-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 14px; }
.card-txt { display: grid; gap: 4px; min-width: 0; }
.card-meta { margin: 0; font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.card h3 { font-size: 22px; line-height: 1.05; }
/* Add to envelope: the page's most-used action, so a labelled pill in ink, not a bare plus. */
.add {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px 0 11px;
  border-radius: 3px; border: 1px solid color-mix(in srgb, var(--text) 40%, transparent); background: none;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.add::before { content: "+"; font-size: 17px; font-weight: 400; margin-top: -1px; }
.add:hover:not(.blocked) { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); transform: rotate(-2deg); }
.add.blocked { color: var(--muted); border-color: var(--rule); cursor: default; }
.add:not([data-count=""])::after {
  content: "×" attr(data-count); position: absolute; top: -8px; right: -10px; padding: 2px 5px; border-radius: 3px;
  background: var(--sky); color: var(--on-sky); font: 500 10px/1.2 var(--sans);
}
.mix { margin: 56px 0 0; padding: 20px 0; border-top: 1px solid var(--rule); color: var(--muted); font: 400 26px/1.3 var(--serif); text-align: center; }

/* Two ways to send: the envelope, posted for you, and the reply loop. */
.ways { padding-top: 120px; display: grid; gap: 16px; }
.ways h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.02; max-width: 16em; }
.ways-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ways-list li { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 24px 22px 22px; border: 1px solid var(--rule); border-radius: 6px; }
/* The middle one is the card we post: on paper, a little askew, like the real thing. */
.ways-list li:nth-child(2) { background: var(--paper); color: var(--dark); border-color: transparent; rotate: -.8deg; box-shadow: var(--lift); }
.ways-list li:nth-child(2) .way-n, .ways-list li:nth-child(2) .way-price span { color: #8a5a00; }
.ways-list h3 { font-size: 28px; line-height: 1.05; }
.ways-list p { margin: 0; font-size: 15px; }
.way-n { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.way-price { margin-top: 6px !important; font-size: 13px !important; color: var(--muted); }
.ways-list li:nth-child(2) .way-price { color: #8a5a00; }
.way-price b { font: 400 28px/1 var(--serif); color: inherit; margin-right: 6px; }
.ways-list li:nth-child(2) .way-price b { color: var(--dark); }
.ways-list li:not(:nth-child(2)) .way-price b { color: var(--text); }
.mix .btn.link { font: inherit; padding: 0; color: var(--text); }

/* What's on the card */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 72px; align-items: center; padding-top: 120px; padding-bottom: 40px; scroll-margin-top: -88px; }
.how-copy { display: grid; gap: 16px; align-content: start; }
.how-copy h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.02; }
.how-copy p { margin: 0; }
/* The steps are a list that grows as the phone goes on: each one it has reached stays, numbered, and the one it is on is lit. */
.scan-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: step; }
.scan-steps li { counter-increment: step; display: none; grid-template-columns: 2.6em 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule);
  font-size: 15px; line-height: 1.4; color: var(--muted); transition: color .4s, opacity .5s, translate .5s; }
.scan-steps li::before { content: counter(step, decimal-leading-zero); font: 500 11px/1 var(--sans); letter-spacing: .1em; color: var(--muted); transition: color .4s; }
.scan-steps li.seen { display: grid; }
@starting-style { .scan-steps li.seen { opacity: 0; translate: 0 8px; } }
.scan-steps li.on { color: var(--text); font: 400 clamp(1.2rem, 1.7vw, 1.5rem)/1.25 var(--serif); letter-spacing: -.01em; border-top-color: var(--sky); }
.scan-steps li.on::before { color: var(--sky); }
/* The phone shows the card's page (app.js renderSpecimen), only to watch: the page scroll moves it on (on narrow screens
   it plays by itself), so it never traps a wheel or a swipe, and a click opens the page to use. */
.demo-phone { cursor: pointer; } .demo-phone iframe { pointer-events: none; }
.phone.demo-phone { --h: min(560px, 100svh - 120px); justify-self: center; } /* over .phone, set further down */
/* See for yourself: a label stuck on the phone, tilted, a word to a line so it stays small. On desktop it hangs off the
   bottom right corner into the words beside it; on narrow screens (the phone is centred, with little room beside it)
   it sits on the bottom edge. */
.phone-try { position: absolute; left: 50%; bottom: 0; translate: -50% 50%; rotate: -4deg; z-index: 1; text-align: center; line-height: 1.25; }
@media (min-width: 861px) { .phone-try { left: auto; right: 0; bottom: 8%; translate: 50% 0; } }
.spec { margin: 8px 0 0; display: grid; }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.spec dt { font: 500 11px/2 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.spec dd { margin: 0; }
.specimen .flip { rotate: 1.2deg; }
.specimen .pc-front { box-shadow: var(--lie); }
/* Desktop: the section runs tall and the card, the phone and their words stay put while it scrolls by, so the card can
   turn over in view and then the phone rise over it, stepping through the card's page (app.js renderSpecimen). The card
   swells a little as it turns, as if picked up. The words for the card give way to the words for the phone; both stay
   readable to a screen reader, and tabbing to See for yourself brings the phone up too. */
@media (min-width: 861px) {
  /* The card's turn and the phone's rise take 1.1 screens of scroll, then .6 of a screen for each of the phone's
     screens (--screens, set by app.js once the page has loaded), and a little to hold the last. */
  .about { min-height: calc((2.5 + var(--screens, 9) * .6) * 100vh); align-items: start; }
  .specimen, .how-copy, .demo-phone { position: sticky; top: max(24px, calc(50vh - 240px)); grid-row: 1; }
  .specimen, .demo-phone { grid-column: 1; }
  .how-copy { grid-column: 2; }
  .phone.demo-phone { position: sticky; top: max(24px, calc(50vh - var(--h) / 2)); justify-self: end; margin-right: 4%; z-index: 1; }
  .specimen, .how-copy, .demo-phone { transition: opacity .5s, translate .7s cubic-bezier(.3, .8, .25, 1), scale .7s cubic-bezier(.3, .8, .25, 1); }
  .about:not(.scanning, :has([data-qr]:focus-visible)) .demo-phone { opacity: 0; pointer-events: none; }
  .about:not(.scanning, :has([data-qr]:focus-visible)) .scan-steps { visibility: hidden; } /* the card's turn comes first */
  .about:is(.scanning, :has([data-qr]:focus-visible)) .specimen { opacity: .45; scale: .88; translate: -8% 0; }
}
@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  .specimen .flip-in { animation: pick-up .8s cubic-bezier(.3, .8, .25, 1); }
  .specimen .flip.turned .flip-in { animation-name: pick-up-back; }
  .about:not(.scanning, :has([data-qr]:focus-visible)) .demo-phone { translate: 0 30vh; } /* it rises into view */
}
@keyframes pick-up { 50% { scale: 1.08; } }
@keyframes pick-up-back { 50% { scale: 1.08; } }

/* Questions: the objections a pre-order raises, answered where people decide. Native disclosure, one rule per row. */
/* On the map: two paper sheets lying on the desk, inked like an old survey map (sepia borders, a hand-tinted edge round
   the home country, pale water), with Sentinel-2's 100 km tile grid dashed across them. The cards lie on their footprints
   as small photos framed in their set's colour; the panel is an index card beside them showing the one pointed at.
   Columns are sized in km (--w), so both sheets share one scale. */
.atlas { padding-top: 120px; scroll-margin-top: -88px; }
.atlas-head { display: grid; gap: 12px; }
.atlas-head h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.02; }
.atlas-sub { margin: 4px 0 0; max-width: 46em; color: var(--soft); }
/* Set filter: the shelf's tabs laid flat in a row. Serif set names at half strength with their colour dot; a shown set
   is a tinted tab in bold; "All" is the shelf's small "Show all" label. */
.atlas-sets { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0 -12px; }
.set-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 7px 12px; border: 0; border-radius: 6px;
  background: none; color: inherit; cursor: pointer; font: 400 16px/1.15 var(--serif); white-space: nowrap; transition: background .2s;
}
.set-chip span { display: inline-grid; opacity: .5; transition: opacity .2s; }
.set-chip span::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; } /* bold width held, so tabs don't shift */
.set-chip:hover span, .set-chip[aria-pressed="true"] span { opacity: 1; }
.set-chip:not([aria-pressed="true"]):hover { background: color-mix(in srgb, currentColor 4%, transparent); }
.set-chip[aria-pressed="true"] { background: color-mix(in srgb, currentColor 9%, transparent); font-weight: 600; }
.set-chip:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.set-chip-all { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.set-chip-all[aria-pressed="true"] { font-weight: 500; }
/* "Your selection": the envelope's cards only, at the row's far end; faint and inert while the envelope is empty. */
.set-chip-mine { margin-left: auto; font-style: italic; }
.set-chip-mine:disabled { cursor: default; background: none; }
.set-chip-mine:disabled span { opacity: .25; }
.fp[hidden] { display: none; }
.atlas-body {
  display: grid; grid-template-columns: minmax(0, 376fr) minmax(0, 286fr); grid-template-areas: "ch nl" "panel nl";
  gap: 28px 40px; align-items: start; margin-top: 40px;
}
.sheet { margin: 0; display: grid; gap: 10px; min-width: 0; }
.sheet-ch { grid-area: ch; }
.sheet-nl { grid-area: nl; }
.sheet-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.sheet-name { font: 400 22px/1 var(--serif); letter-spacing: -.01em; }
.sheet-map {
  position: relative; aspect-ratio: var(--w) / var(--h); background: var(--paper); box-shadow: var(--lie);
  outline: 1px solid rgba(107, 86, 64, .5); outline-offset: -7px;
}
.sheet-ch .sheet-map { rotate: -1.4deg; }
.sheet-nl .sheet-map { rotate: .6deg; }
.sheet-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The sheets have been folded in three, and keep the creases: a light ridge and a shadowed valley at each third. */
.sheet-map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(100% / 3 - 6px), rgba(60, 45, 20, .05) calc(100% / 3 - 1px), rgba(255, 255, 255, .45) calc(100% / 3), rgba(60, 45, 20, .1) calc(100% / 3 + 1px), transparent calc(100% / 3 + 8px)),
    linear-gradient(90deg, transparent calc(200% / 3 - 8px), rgba(60, 45, 20, .1) calc(200% / 3 - 1px), rgba(255, 255, 255, .45) calc(200% / 3), rgba(60, 45, 20, .05) calc(200% / 3 + 1px), transparent calc(200% / 3 + 6px));
}
.sheet-map path { vector-effect: non-scaling-stroke; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.sheet-map .m-land { fill: #ebe3d0; }
.sheet-map .m-home { fill: #fbf8f1; }
.sheet-map .m-water { fill: #cfe0dd; stroke: #86a9ad; stroke-width: .6; }
.sheet-map .m-river { stroke: #86a9ad; stroke-width: 1; }
.sheet-map .m-coast { stroke: #86a9ad; stroke-width: .8; }
.sheet-map .m-border { stroke: #8c7a62; stroke-width: .7; stroke-dasharray: 4 3; }
.sheet-map .m-tint { stroke: rgba(196, 140, 66, .28); stroke-width: 7; }
.sheet-map .m-edge { stroke: #6b5640; stroke-width: 1.2; }
.sheet-map .m-grid { stroke: rgba(20, 33, 61, .3); stroke-width: .7; stroke-dasharray: 1 4; }

/* Labels stay on the sheet; the cards' name tags may reach past its edge. */
.m-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.m-label { position: absolute; pointer-events: none; white-space: nowrap; color: #6b5640; line-height: 1; }
.m-tile { font-size: 9px; letter-spacing: .08em; color: rgba(20, 33, 61, .45); }
.m-country { translate: -50% -50%; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: rgba(107, 86, 64, .6); }
.m-sea { translate: -50% -50%; font: italic 300 17px/1 var(--serif); color: #5f8a90; letter-spacing: .04em; }
.m-city { font-size: 10.5px; padding-left: 9px; translate: -3.5px -50%; }
.m-city::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #6b5640; }
/* The scale bar, a ruler like the one on the card backs: 50 km of black and white, bottom left. */
.m-scale { position: absolute; left: 18px; bottom: 16px; font-size: 9.5px; letter-spacing: .08em; color: #6b5640; padding-top: 7px; width: var(--km); white-space: nowrap; }
.m-scale small { display: block; margin-top: 3px; font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.m-scale::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border: 1px solid #6b5640;
  background: linear-gradient(90deg, #6b5640 0 25%, transparent 0 50%, #6b5640 0 75%, transparent 0);
}

/* A card on its footprint: its own photo, framed in its set's colour. Pointing lifts it and names it. */
.fp {
  position: absolute; padding: 0; border: 0; background: #d8d2c4; cursor: pointer; z-index: 1;
  box-shadow: 0 0 0 1.5px var(--c), 0 3px 8px -3px rgba(60, 45, 20, .55);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s;
}
.fp > img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.fp > img.ready { opacity: 1; }
.fp:hover, .fp:focus-visible { z-index: 4; transform: scale(1.6); box-shadow: 0 0 0 1px var(--c), 0 10px 22px -8px rgba(60, 45, 20, .7); }
.fp:focus-visible { outline: 1.5px solid var(--text); outline-offset: 2px; border-radius: 0; }
.fp[aria-pressed="true"] { z-index: 3; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--text), 0 6px 14px -6px rgba(60, 45, 20, .6); }
.fp[aria-pressed="true"]:hover, .fp[aria-pressed="true"]:focus-visible { z-index: 4; }
/* No footprint yet (its photo isn't in): a map pin with a glass head in the set's colour. */
.fp-pin { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--paper), 1px 2px 4px rgba(60, 45, 20, .55); }
.fp-pin[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--text); }
.fp-tag {
  position: absolute; left: 50%; bottom: calc(100% + 6px); translate: -50% 4px; rotate: -1.5deg; pointer-events: none;
  padding: 4px 8px 5px; border-radius: 3px; background: var(--dark); color: var(--paper); white-space: nowrap;
  font: 400 13px/1 var(--serif); box-shadow: 0 6px 14px -6px rgba(24, 12, 6, .6); opacity: 0; transition: opacity .2s, translate .2s;
}
.fp:not(.fp-pin) .fp-tag { scale: .625; transform-origin: 50% 100%; } /* undoes the footprint's 1.6x lift */
.fp:hover .fp-tag, .fp:focus-visible .fp-tag { opacity: 1; translate: -50% 0; }
/* In the envelope already: its count, as on the Add buttons. */
.fp:not([data-count=""])::after {
  content: "×" attr(data-count); position: absolute; top: -7px; right: -7px; padding: 1px 4px; border-radius: 99px;
  background: var(--sky); color: var(--on-sky); font: 500 9px/1.2 var(--sans);
}
.fp:not(.fp-pin):hover::after, .fp:not(.fp-pin):focus-visible::after { scale: .625; transform-origin: 100% 0; }
/* Only a footprint's hit cells take the pointer (fitHits in app.js). They shrink back as the card lifts, on the same
   curve, so they stay where the card lies at rest. */
.fp:not(.fp-pin) { pointer-events: none; }
.fp-hit { position: absolute; inset: 0; transition: transform .25s cubic-bezier(.2, .8, .3, 1); }
.fp-hit > span { position: absolute; pointer-events: auto; }
.fp:not(.fp-pin):is(:hover, :focus-visible) .fp-hit { transform: scale(.625); }
/* A footprint with smaller ones on it (the Rhône Valley) lifts like any other, but picked and at rest it stays under them. */
.fp.fp-host[aria-pressed="true"]:not(:hover, :focus-visible) { z-index: 1; }

/* The panel: an index card on the desk with the card pointed at, and Add. */
.atlas-panel {
  grid-area: panel; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 18px; background: var(--paper); box-shadow: var(--lie); rotate: -.4deg; min-height: 0;
}
.atlas-card { rotate: -1.2deg; }
.atlas-card .pc-front { box-shadow: var(--lie); }
.atlas-txt { display: grid; gap: 6px; min-width: 0; }
.atlas-txt .eyebrow { display: flex; align-items: center; gap: 7px; }
.atlas-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(20, 33, 61, .2); }
.atlas-txt h3 { font-size: 24px; line-height: 1.05; }
.atlas-txt .card-meta { margin: 0; }
.atlas-note { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.atlas-act { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .fp, .fp-tag, .fp-hit { transition: none; } }
@media (max-width: 1060px) {
  .atlas-panel { grid-template-columns: minmax(0, 1fr); }
  .atlas-card { max-width: 260px; }
}
/* One column: the sheets one above the other, the panel held at the bottom of the screen while the maps go by. */
@media (max-width: 860px) {
  .atlas { padding-top: 88px; scroll-margin-top: -56px; }
  .atlas-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ch" "nl" "panel"; gap: 28px; }
  .atlas-panel {
    position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; rotate: none;
    grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px; box-shadow: var(--lift);
  }
  .atlas-card { max-width: none; }
  .atlas-note { display: none; }
  .atlas-txt h3 { font-size: 19px; }
  .atlas-act { margin-top: 2px; }
}
/* Phones: no map. The sheets are too small to point at, so the section isn't shown (its nav link is hidden below 860px too). */
@media (max-width: 760px) { .atlas { display: none; } }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 72px; padding-top: 120px; scroll-margin-top: -88px; }
.faq-head { display: grid; gap: 12px; align-content: start; }
.faq h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.02; }
.faq-list { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font: 400 22px/1.2 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 26px/1 var(--sans); color: var(--muted); transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover::after { color: var(--text); }
.faq details p { margin: -4px 0 20px; max-width: 46em; color: var(--soft); }
/* The close: the deadline and both ways to buy, once more, as a card laid on the desk. */
.close {
  display: grid; justify-items: center; gap: 20px; text-align: center; margin-top: 120px;
  padding-block: 64px 56px; border-radius: 6px; background: var(--paper); box-shadow: var(--lift); rotate: -.4deg;
  max-width: min(860px, calc(100% - 2 * var(--pad)));
}
/* The parcel: the order as the buyer gets it, a sealed stiffened envelope lying on the card. Kraft board lit from the top
   left (an SVG lighting filter makes the fibres; a faint crease marks where the cards' stiffener ends), a hand-addressed
   label to Oma Ruth like the hero's card, the shop's stamp, and a postmark running over it. Sizes are cqw of the envelope. */
.parcel { margin: 0 0 12px; width: min(100%, 460px); rotate: -3deg; }
.parcel-env {
  position: relative; container-type: inline-size; aspect-ratio: 1.42; border-radius: 0; color: #2a1d0e;
  background: linear-gradient(160deg, #ecd9b4, #e2c796 55%, #d8b985);
  box-shadow: 0 .3cqw .4cqw rgba(50, 32, 10, .35), 0 1.4cqw 2.2cqw -.4cqw rgba(50, 32, 10, .38), 0 5cqw 6cqw -2cqw rgba(50, 32, 10, .4),
    inset 0 .25cqw .2cqw rgba(255, 240, 205, .5), inset -.2cqw -.3cqw .3cqw rgba(70, 40, 5, .3);
}
.parcel-tex {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: multiply; opacity: .55;
  background:
    linear-gradient(180deg, rgba(255, 245, 220, .35), transparent 22%, transparent 70%, rgba(60, 35, 5, .22)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='284'%3E%3Cfilter id='k' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .06' numOctaves='5' seed='7' result='f'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='3' result='g'/%3E%3CfeComposite in='f' in2='g' operator='arithmetic' k2='.5' k3='.5' result='h'/%3E%3CfeDiffuseLighting in='h' lighting-color='%23fff6e2' surfaceScale='.9' diffuseConstant='1.1'%3E%3CfeDistantLight azimuth='235' elevation='62'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}
.parcel .mark svg { display: block; width: 100%; height: 100%; }
.parcel-hat { position: absolute; top: -21.6cqw; right: -17.4cqw; width: 43cqw; rotate: 32deg; z-index: 2; filter: drop-shadow(.4cqw .9cqw .8cqw rgba(50, 30, 5, .45)); }
.parcel-from { position: absolute; left: 5.5cqw; top: 6cqw; display: flex; align-items: center; gap: 1.6cqw; color: var(--dark); }
.parcel-from .mark { width: 5.4cqw; height: 5.4cqw; }
.parcel-from p { margin: 0; font: 400 3.4cqw/1 var(--serif); text-align: left; }
.parcel-from b { font-weight: 500; }
.parcel .parcel-stamp { top: 5cqw; right: 5.5cqw; width: 11.5cqw; height: 13.6cqw; background: #f6f0e1; filter: drop-shadow(0 .2cqw .2cqw rgba(50, 30, 5, .4)); }
.parcel .parcel-stamp .mark { display: block; width: 100%; height: 100%; padding: 1.8cqw; background: #f6f0e1; color: var(--ground); }
.parcel-pm { position: absolute; top: 10cqw; right: 14cqw; width: 17cqw; color: rgba(42, 28, 58, .85); rotate: -12deg; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(115deg, #000 15%, rgba(0, 0, 0, .35) 90%); mask-image: linear-gradient(115deg, #000 15%, rgba(0, 0, 0, .35) 90%); }
.parcel-to {
  position: absolute; left: 26cqw; bottom: 9cqw; margin: 0; padding: 3.2cqw 6cqw 3.2cqw 4cqw; rotate: -.8deg; text-align: left;
  background: #fdfcf9; border: .18cqw solid rgba(60, 35, 5, .22); border-radius: 0; box-shadow: 0 .1cqw .15cqw rgba(60, 35, 5, .3);
  font: 400 7.4cqw/1.02 var(--hand);
}
.close h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1; }
.close .launch { width: min(100%, 34em); text-align: center; }
.close .launch-bar { margin-inline: auto; max-width: 20em; }
.close .launch-line b { color: var(--text); }
.close .hero-cta { justify-content: center; } /* the hero's buttons, centred like the rest of the card, also once they wrap */
.foot { padding-top: 64px; padding-bottom: 88px; color: var(--muted); font-size: 14px; text-align: center; }
.foot p { margin: 0 auto 8px; max-width: 72em; }
/* Wide screens: the docked envelope's bottom edge (20px up) lines up with the paragraph's last line when scrolled all the way down. */
@media (min-width: 761px) { .foot { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
.foot-title { font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; color: var(--muted); }
.fine { max-width: 60em; font-size: 12px; }

/* Postcard faces */
.flip { perspective: 1200px; cursor: pointer; }
.flip-in { position: relative; aspect-ratio: 170 / 120; max-width: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .8, .25, 1.1); }
.flip.turned .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face-back { transform: rotateY(180deg); }
/* As printed: 170 x 120 mm with a 5 mm white border round the 160 x 110 mm photo. Sized from the card's own box
   (background size and absolute insets), not padding, whose % would be of the parent's width. */
.pc-front {
  position: relative; aspect-ratio: 170 / 120; max-width: 100%; border-radius: 0; overflow: hidden; container-type: inline-size;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--sky)) 30%, var(--ground)), var(--ground)) center / calc(100% * 160 / 170) calc(100% * 110 / 120) no-repeat, #fff;
}
.pc-front img {
  position: absolute; left: calc(500% / 170); top: calc(500% / 120); width: calc(100% * 160 / 170); height: calc(100% * 110 / 120);
  display: block; object-fit: cover; opacity: 0; transition: opacity .6s;
}
.pc-front img.ready { opacity: 1; }
/* The gradient is only a stand-in while the photo loads; left behind it, it shows as a dark hairline along the photo's edge wherever the photo is white. */
.pc-front:has(img.ready) { background: #fff; }
/* On cards whose real crop isn't in yet: a pencilled tag saying the picture is a sketch. */
.pc-standin {
  position: absolute; right: calc(500% / 170 + 6px); top: calc(500% / 120 + 6px); padding: 3px 7px; border-radius: 2px; rotate: 2deg;
  background: var(--paper); color: var(--dark); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
/* A course on the photo (Postcard.routeSvg): over the photo, inside the border, the same as the print's drawRoute. */
.pc-route { position: absolute; left: calc(500% / 170); top: calc(500% / 120); width: calc(100% * 160 / 170); height: calc(100% * 110 / 120); pointer-events: none; overflow: hidden; transition: opacity .4s; }
.pc-route path { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke: #f5cd7a; stroke-width: 30; }
.pc-route path.halo { stroke: rgba(8, 17, 38, .7); stroke-width: 62; }
.pc-route circle { fill: #f5cd7a; stroke: rgba(8, 17, 38, .85); stroke-width: 17; }
.pc-route text { fill: #fff; stroke: rgba(8, 17, 38, .8); stroke-width: 38; paint-order: stroke; stroke-linejoin: round; font: 400 143px Inter, sans-serif; letter-spacing: 17px; text-anchor: middle; }
.closer-move .pc-route { left: 0; top: 0; width: 100%; height: 100%; }
.closer-pic.zoomed .pc-route { opacity: 0; }
/* The mark and the date and time of the pass, sized and placed in units of the card's own width (cqw), so they sit the same on every card, big or small.
   100cqw is 170 mm, so the 5 mm border is 500cqw / 170 on every side. The crop tool draws the same on the print file (drawCaption). */
.pc-cap {
  position: absolute; left: calc(500cqw / 170 + 1.2cqw); bottom: calc(500cqw / 170 + 1cqw); display: flex; align-items: center; gap: .8cqw;
  font-size: 1.5cqw; line-height: 1; white-space: nowrap;
  color: #fff; letter-spacing: .06em; text-shadow: 0 .1cqw .25cqw rgba(0, 0, 0, .8); opacity: .9;
}
.pc-cap svg { width: 2cqw; height: 2cqw; flex: none; filter: drop-shadow(0 .1cqw .25cqw rgba(0, 0, 0, .8)); }
.pc-back {
  aspect-ratio: 170 / 120; max-width: 100%; border-radius: 0; overflow: hidden;
  background: var(--paper); color: var(--ground-2); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  padding: 5.5% 5% 5% 5.5%; container-type: inline-size; box-shadow: var(--lie);
}
.b-left { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; padding-right: 5cqw; border-right: 1px solid var(--divider); margin-right: 3.5cqw;
  --divider: color-mix(in srgb, var(--ground-2) 35%, var(--paper)); } /* opaque, so the ruler's ticks meet it without a darker join */
.b-title { margin: 0; font: 400 3.3cqw/1.1 var(--serif); }
.b-place { margin: 0; font-size: 1.45cqw; line-height: 1.4; opacity: .75; }
.b-note { margin: .6cqw 0 0; font-size: 1.7cqw; line-height: 1.4; max-width: 90cqw; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* The QR code closes the message side: after the note or the message, set off by a rule, with its invitation set as a line of the card. */
.b-qr { margin-top: auto; padding-top: 2.2cqw; display: flex; align-items: center; gap: 2.4cqw; }
.b-qr canvas { width: 12cqw; height: 12cqw; image-rendering: pixelated; flex: none; }
/* On the site the QR code is a link to the card's page: a soft ring breathes around it to say it can be clicked. */
.b-qr-link { display: block; flex: none; border-radius: .6cqw; animation: qr-pulse 2.8s ease-in-out infinite; }
.b-qr-link canvas { display: block; }
.b-qr-link:hover, .b-qr-link:focus-visible { animation: none; box-shadow: 0 0 0 .7cqw rgb(12 16 32 / .22); }
.flip:not(.turned) .b-qr-link { visibility: hidden; } /* not focusable while the card shows its picture */
@keyframes qr-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(12 16 32 / 0); } 50% { box-shadow: 0 0 0 .7cqw rgb(12 16 32 / .16); } }
@media (prefers-reduced-motion: reduce) { .b-qr-link { animation: none; box-shadow: 0 0 0 .5cqw rgb(12 16 32 / .12); } }
/* Beside the code, exactly its height: the invitation at the top, the shop's mark, name and web address, smaller, at the bottom. */
.b-qr-text { height: 12cqw; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.b-qr-text > p { margin: -.35cqw 0 0; font: 400 2.5cqw/1.2 var(--serif); }
.b-brand { display: flex; align-items: center; gap: 1cqw; }
.b-brand svg { width: 3cqw; height: 3cqw; flex: none; }
.b-brand p { margin: 0; display: grid; gap: .45cqw; }
.b-brand b { font: 600 1.25cqw/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.b-brand span { font-size: 1.2cqw; line-height: 1; letter-spacing: .06em; opacity: .7; }
.b-right { position: relative; min-width: 0; }
.addr { position: absolute; left: 0; right: 0; bottom: 9cqw; display: grid; gap: 4.4cqw; }
.addr i { display: block; border-bottom: 1px solid color-mix(in srgb, var(--ground-2) 35%, transparent); }
/* The data credit, as the last line of the picture's caption under the place and time: where, when, and whose data. */
.b-cred { margin: -.7cqw 0 0; font-size: 1.2cqw; line-height: 1.4; letter-spacing: .04em; opacity: .5; }
/* The divider as a ruler for the front (postcard.js ruler), all on the message side: ticks every --step up from its
   foot, true to size, each numbered (fading by --o), and "km on the front" reading up between the first two. */
.b-left { position: relative; }
.b-ruler { position: absolute; left: 100%; top: 0; bottom: 0; width: 0; font-size: 1.1cqw; line-height: 1; letter-spacing: .06em; }
.b-ruler i { position: absolute; right: -1px; width: calc(.9cqw + 1px); height: 1px; background: var(--divider); }
.b-ruler b { position: absolute; right: calc(100% + .5cqw); top: 0; translate: 0 -50%; font-weight: 400; font-style: normal; opacity: calc(var(--o) * .6); }
.b-ruler span {
  position: absolute; right: 1.4cqw; bottom: 0; height: var(--step); display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; opacity: .5;
}

/* Envelope dock, bottom right once something is in it: an envelope cut to the card (184 × 129 mm, the size a 170 × 120
   card travels in), seen from the front and open at the top, so nothing on it reads as a closed flap. Three layers:
   the inside of the back (::before), standing a little above the front edge, with the open top flap above it
   (::after); the picked cards standing in the pocket, fanned like a hand (JS sets --i and --n); and the front, with
   its flap seams, a stamp, the set's name, the price and checkout. At rest the fan stays within the envelope's width; hovering
   deals the cards out upwards, one above the other with a slight overlap, each at its own small tilt. The stack
   squeezes on short screens so the top card stays in view. */
.dock {
  --w: 240px; --card: calc(var(--w) * 170 / 184); --peek: 62px; --step: .5deg; --shift: 2px; --deal: 34px; --bias: 0px; --overlap: 16px; --tilt: 4deg;
  position: fixed; right: calc(28px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: var(--w); aspect-ratio: 184 / 129;
  filter: drop-shadow(0 2px 2px rgba(60, 45, 20, .2)) drop-shadow(0 18px 22px rgba(60, 45, 20, .4));
  transform: translateY(calc(100% + var(--w) * .4 + 9px + 60px)); /* hidden: clear of the open flap, which stands 9px + .4w above the dock */ transition: transform .4s cubic-bezier(.2, .9, .3, 1.1);
}
body.has-picks:not(.at-top) .dock { transform: none; }
.dock.shake { animation: shake .45s; }
/* Resting, the envelope sits smaller in its corner; hovering or focusing it brings it up to full size. */
@media (min-width: 761px) {
  .dock { scale: .72; transform-origin: 100% 100%; transition: transform .4s cubic-bezier(.2, .9, .3, 1.1), scale .3s cubic-bezier(.2, .8, .3, 1); }
  .dock:hover, .dock:focus-within { scale: 1; }
}
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.dock::before {
  content: ""; position: absolute; inset: -10px 0 0; border-radius: 0;
  background: linear-gradient(#cdc2a9, #ddd3be 24px);
}
/* The top flap, opened up: its inside faces us, behind the cards, hinged on the back wall's top edge. */
.dock::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% + 9px); height: calc(var(--w) * .4);
  background: linear-gradient(#e6dcc6, #d6caaf); clip-path: polygon(0 100%, 46% 3%, 50% 0, 54% 3%, 100% 100%);
}
.slots { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 1; }
.slot {
  --o: calc(var(--i, 0) - (var(--n, 1) - 1) / 2);
  position: absolute; left: calc(50% - var(--card) / 2 + var(--bias)); bottom: calc(100% + var(--peek) - var(--card) * 120 / 170);
  width: var(--card); aspect-ratio: 170 / 120; transform-origin: 50% 200%;
  /* Tilt per card from its position: varied, but steady when the envelope's contents change. */
  --r: calc(sin(var(--i, 0) * 2.4) * var(--tilt));
  --rise: min(var(--card) * 120 / 170 - var(--overlap), (100dvh - 340px) / max(var(--n, 1) - 1, 1));
  translate: calc(var(--o) * var(--shift)) 0; rotate: calc(var(--o) * var(--step));
  transition: translate .35s cubic-bezier(.2, .9, .3, 1.2), rotate .35s cubic-bezier(.2, .9, .3, 1.2);
}
.dock:hover .slot, .dock:focus-within .slot {
  translate: 0 calc(-1 * (var(--deal) + var(--i, 0) * var(--rise))); rotate: var(--r); transform-origin: 50% 50%;
  z-index: calc(var(--n, 1) - var(--i, 0)); /* lower cards in front, so each top edge (and its ×) shows */
}
.dock:hover .slot:nth-child(2n), .dock:focus-within .slot:nth-child(2n) { transition-delay: 30ms; }
/* The free sixth card, face down: a plain card back with a handwritten question mark, tucked behind the picked ones. */
.slot.mystery {
  z-index: -1;
  display: grid; place-items: start center; padding-top: 6px; border: 3px solid var(--paper); border-radius: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  background: repeating-linear-gradient(135deg, var(--paper) 0 6px, #e8e0cc 6px 12px);
  font: 400 40px/1 var(--hand); color: #1c3a8f;
  animation: land .55s .35s cubic-bezier(.2, .9, .3, 1.2) backwards;
}
.slot-card {
  display: block; width: 100%; height: 100%; padding: calc(500% / 170); border: 0; border-radius: 0; overflow: hidden;
  background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.slot-card img { width: 100%; height: 100%; object-fit: cover; }
.slot.landed { animation: land .55s cubic-bezier(.2, .9, .3, 1.2) backwards; }
@keyframes land { from { transform: translateY(-90px) rotate(-12deg); opacity: 0; } }
/* Take a card out: a bin on a paper disc, top-left, uncovered both in the fan and in the stack, where each card lies
   over the bottom of the one above. */
.slot-x {
  position: absolute; top: -9px; left: -9px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--dark); cursor: pointer;
  opacity: 0; transition: opacity .15s, background .15s, color .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.slot-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slot-x:hover { background: var(--dark); color: var(--paper); }
.slot:hover .slot-x, .slot-x:focus-visible { opacity: 1; }
/* Hovering a card in the fan brings it to the front and hangs a paper tag above it, turned back upright. */
.dock .slot:is(:hover, :focus-within) { z-index: 10; }
.slot-tag {
  position: absolute; left: 50%; bottom: calc(100% + 8px); width: max-content; max-width: 180px;
  display: grid; gap: 2px; justify-items: center; text-align: center; pointer-events: none;
  padding: 5px 10px 6px; border-radius: 3px; background: var(--paper); color: var(--dark);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45);
  translate: -50% 6px; rotate: calc(-1 * var(--r)); opacity: 0;
  transition: opacity .15s, translate .2s cubic-bezier(.2, .9, .3, 1.2);
}
.slot-tag b { font: 400 22px/.95 var(--hand); color: #1c3a8f; }
.slot-tag small { font: 10px/1.3 var(--sans); letter-spacing: .02em; color: #5d72a0; }
.slot:hover .slot-tag, .slot:has(.slot-card:focus-visible) .slot-tag { opacity: 1; translate: -50% 0; }
.env-front {
  position: absolute; inset: 0; z-index: 2; border-radius: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; align-items: center; gap: 8px 10px;
  padding: 26px 12px 12px 16px; color: var(--dark);
  /* The back of an envelope with its top flap open: a V is cut out of the front, so the cards show in that triangle;
     below it the folded side flaps and the bottom flap, with their seam. */
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 184 129' preserveAspectRatio='none'><rect width='184' height='129' fill='%23f1ebdd'/><path d='M0 129L84 86Q92 82 100 86L184 129Z' fill='%23faf7ef'/><path d='M0 129L84 86Q92 82 100 86L184 129' fill='none' stroke='%23cfc2a4' stroke-width='.8'/></svg>") 0 0 / 100% 100%;
}
/* The stamp: the shop's mark on paper inside a perforated edge, drawn once as an SVG mask: five half holes along the top and
   bottom, six down the sides, the same size and gap on every edge, with a full tooth at every corner. (Its proportions are those of both boxes.)
   On the envelope it sits top right; on a card's back it is the same stamp, greyed out. It has no tilt of its own: it sits square on its paper and tilts with it. */
.b-stamp, .parcel-stamp {
  position: absolute; padding: 4px; background: var(--ground);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 35.6 42.2' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H35.6V42.2H0ZM2.60 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM2.60 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM9.20 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM9.20 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM15.80 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM15.80 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM22.40 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM22.40 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM29.00 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM29.00 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 4.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 4.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 11.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 11.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 17.80a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 17.80a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 24.40a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 24.40a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 31.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 31.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 37.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 37.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 35.6 42.2' preserveAspectRatio='none'%3E%3Cpath fill-rule='evenodd' d='M0 0H35.6V42.2H0ZM2.60 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM2.60 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM9.20 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM9.20 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM15.80 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM15.80 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM22.40 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM22.40 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM29.00 0.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM29.00 42.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 4.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 4.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 11.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 11.20a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 17.80a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 17.80a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 24.40a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 24.40a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 31.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 31.00a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM-2.00 37.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0ZM33.60 37.60a2.0 2.0 0 1 0 4.0 0a2.0 2.0 0 1 0 -4.0 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.b-stamp svg, .parcel-stamp svg { display: block; width: 100%; height: 100%; padding: 5px; background: #faf7ef; fill: var(--ground); }
/* On a card's back the stamp is a pale solid, filled edge to edge, with the mark cut out of it in white. */
.b-stamp { padding: 0; top: 0; right: 0; width: 8cqw; height: 9.6cqw; background: color-mix(in srgb, var(--ground) 22%, #fff); }
.b-stamp svg { padding: 1.4cqw; background: none; fill: #fff; color: #fff; }
/* The set's name, handwritten in the middle of the envelope. */
.price { grid-column: 1 / -1; align-self: end; margin: 0; display: grid; justify-items: center; text-align: center; gap: 3px; line-height: 1.1; }
.price-label { font: 400 24px/.9 var(--hand); color: #1c3a8f; }
.price-val { font: 400 22px/.9 var(--hand); white-space: nowrap; color: #1c3a8f; }
.price-val:empty { display: none; }
/* Empty top left; the amount bottom left, Checkout bottom right. "incl. shipping" is said in the dialogs, not here. */
.dock .price-val { display: none; }
.dock .clear { grid-area: 1 / 1; align-self: start; justify-self: start; margin-top: 30px; padding: 4px 2px; font-size: 13px; }
.dock .price { display: none; }
.dock .buy { display: contents; }
.dock .buy-amt { grid-area: 3 / 1; justify-self: start; }
.dock .checkout { grid-area: 3 / 2; padding: 9px 18px; }
.buy-amt { font: 600 20px/1 var(--sans); letter-spacing: -.01em; color: var(--dark); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  background: var(--paper); color: var(--dark); padding: 8px 8px 8px 18px; border-radius: 3px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); font-size: 14px; animation: rise .35s cubic-bezier(.2, .9, .3, 1.2);
}
/* Undo: the site's small label button, in ink on the paper strip. */
.toast-act {
  flex: none; border: 0; border-radius: 3px; padding: 9px 14px 10px; background: var(--dark); color: var(--paper); cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s;
}
.toast-act:hover { background: var(--sky); color: var(--on-sky); }
@keyframes rise { from { transform: translate(-50%, 14px); opacity: 0; } }
@media (max-width: 760px) { body.has-picks .toast { bottom: calc(110px + env(safe-area-inset-bottom, 0px)); } }

/* Full-size viewer */
.viewer {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px 72px 20px; border: 0;
  background: transparent; color: var(--text); overflow: auto;
  display: none; grid-template-rows: auto auto; justify-items: center; align-content: center; gap: 24px;
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: rgba(23, 16, 24, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.v-stage { width: 100%; display: grid; place-items: center; }
.v-stage .flip { width: min(100%, 1100px, (100dvh - 320px) * 1.417); }
.v-stage { align-content: center; row-gap: 6px; }
.v-foot { width: min(100%, 1100px, (100dvh - 320px) * 1.417); display: flex; justify-content: space-between; padding-inline: 3.5%; }
.v-stage .pc-front { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9); }
.v-side { width: min(100%, 1100px, (100dvh - 320px) * 1.417); display: grid; gap: 6px; }
.v-side h3 { font-size: 36px; line-height: 1; }
.d-place { margin: 0; font-size: 11px; color: var(--muted); }
.d-note { margin: 0; max-width: 62ch; color: var(--soft); }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.v-side .d-actions { justify-content: center; margin-top: 10px; }
.v-side .btn.ghost[aria-pressed="true"] { background: var(--paper); color: var(--dark); border-color: var(--paper); }
.d-add { display: contents; }
.step { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); border-radius: 3px; }
.step[hidden] { display: none; }
.step button { width: 46px; background: none; border: 0; color: var(--text); font: 400 20px/1 var(--sans); cursor: pointer; transition: background .2s, opacity .2s; }
.step button:hover:not(:disabled) { background: var(--rule); }
.step button:disabled { opacity: .35; cursor: not-allowed; }
.step output { min-width: 44px; display: grid; place-items: center; font: 500 14px/1 var(--sans); border-inline: 1px solid var(--rule); }
.v-nav, .v-close {
  position: fixed; border: 1px solid var(--rule); background: rgba(43, 30, 41, .7); color: var(--text); cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.v-nav:hover, .v-close:hover { background: var(--paper); color: var(--dark); }
.v-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.v-next { right: 14px; top: 50%; transform: translateY(-50%); }
.v-close { right: 14px; top: 14px; }
.scene-close { z-index: 5; top: calc(14px + env(safe-area-inset-top, 0px)); text-decoration: none; }
.scene-close[hidden] { display: none; }

/* What the QR opens: the card's page, live, in a phone. */
.qr-demo {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 20px; border: 0;
  background: transparent; color: var(--soft);
  display: none; place-items: center; align-content: center; gap: 16px;
}
.qr-demo[open] { display: grid; }
.qr-demo::backdrop { background: rgba(23, 16, 24, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* The page is laid out at a real phone's size, 393 × 760 (an iPhone 15 or 16 with the browser bars showing), and
   scaled down to fit (--s, set by app.js), so every stop fits the way it does on the phone in your hand. */
.phone {
  --h: min(780px, 100dvh - 110px);
  position: relative; padding: calc(var(--h) * .05) calc(var(--h) * .016) calc(var(--h) * .03);
  border-radius: calc(var(--h) * .068); background: #0d0d10;
  box-shadow: inset 0 0 0 2px #3b3b42, 0 0 0 1px #000, 0 50px 100px -30px rgba(0, 0, 0, .9);
}
.phone::before { /* the camera island, in its own strip, clear of the page */
  content: ""; position: absolute; top: calc(var(--h) * .013); left: 50%; transform: translateX(-50%);
  width: 28%; height: calc(var(--h) * .025); border-radius: 99px; background: #000;
}
.phone-screen {
  height: calc(var(--h) * .92); aspect-ratio: 393 / 760; overflow: hidden; background: var(--ground);
  border-radius: calc(var(--h) * .02) calc(var(--h) * .02) calc(var(--h) * .052) calc(var(--h) * .052);
}
.phone iframe { display: block; width: 393px; height: 760px; border: 0; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.qr-demo-note { margin: 0; font-size: 11px; }
.qr-demo-note a { color: var(--text); }

/* Order dialog, on paper */
.order {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 12px;
  background: var(--paper); color: var(--dark); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.order::backdrop { background: rgba(23, 16, 24, .75); }
.order-form { display: grid; gap: 12px; padding: 24px 22px 20px; }
.order-form h2 { font-size: 32px; line-height: 1.05; }
.order-note { margin: 0; font-size: 14px; color: #3b5486; }
.order-form .eyebrow { color: #3b5486; }
.order-form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 13px; font-weight: 500; }
.order-form label > :is(input, select, textarea) { flex: 1 0 100%; }
.order-form label span { font-weight: 400; color: #5d72a0; }
.order-form input, .order-form select {
  font: inherit; font-size: 16px; color: var(--dark); background: #fff;
  border: 1px solid rgba(11, 31, 69, .22); border-radius: 6px; padding: 9px 10px; min-width: 0;
}
/* Own chevron so it can sit 14px in from the edge; the native one hugs the border. */
.order-form select {
  appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b1f45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.order-form input:focus-visible, .order-form select:focus-visible { outline: 2px solid #2a5bd7; outline-offset: 1px; }
/* The picked cards on the checkout form: small postcards with white borders, each laid down a little askew. */
.order-cards { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.order-cards li { display: grid; gap: 5px; justify-items: center; min-width: 0; animation: deal .45s calc(var(--i) * 60ms) cubic-bezier(.2, .9, .3, 1.2) backwards; }
.order-cards li:nth-child(3n + 1) { rotate: -1.5deg; }
.order-cards li:nth-child(3n + 3) { rotate: 1.2deg; }
/* The photo's 5 mm white edge: padding % is of the li's width, which the img fills, so 5 / 170 of the card. */
.order-cards img { padding: calc(500% / 170); background: #fff; }
.order-cards i { border: 3px solid #fff; }
.order-cards img, .order-cards i {
  display: block; width: 100%; aspect-ratio: 170 / 120; object-fit: cover; box-sizing: border-box;
  border-radius: 2px; box-shadow: 0 1px 2px rgba(11, 31, 69, .2), 0 8px 14px -8px rgba(11, 31, 69, .5);
}
.order-cards i {
  display: grid; place-items: center; font: 400 40px/1 var(--hand); font-style: normal; color: #1c3a8f;
  background: repeating-linear-gradient(135deg, var(--paper) 0 6px, #e8e0cc 6px 12px);
}
.order-cards span { max-width: 100%; font: 400 19px/.95 var(--hand); color: #1c3a8f; text-align: center; }
/* The card that was waiting for room pops in, ringed. */
.order-cards li.arrive { animation: arrive .7s cubic-bezier(.3, .7, .4, 1) backwards; z-index: 1; }
.order-cards li.arrive img { outline: 4px solid var(--sky); outline-offset: 2px; animation: ring 1.6s .5s ease-out forwards; }
/* Taken out: the card tips over and drops away. The newcomer then pops into the same place. */
.order-cards li.crumple { animation: drop .55s cubic-bezier(.5, 0, .9, .5) forwards; pointer-events: none; }
@keyframes drop { to { opacity: 0; transform: translateY(40px) rotate(10deg) scale(.7); } }
.order-cards.settled li:not(.arrive) { animation: none; }
@keyframes arrive { from { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.06); } }
@keyframes ring { to { outline-color: transparent; } }
@keyframes deal { from { opacity: 0; translate: 0 -14px; } }
.order.peek { width: fit-content; min-width: min(360px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
.peek-full {
  margin: 0; padding: 10px 16px; border-radius: 3px; text-align: center; background: var(--sky); color: var(--on-sky);
  font: 600 15px/1.3 var(--sans); box-shadow: 0 6px 16px -6px rgba(180, 120, 10, .7); animation: shake .45s;
}
.peek-full[hidden] { display: none; }
.peek-cards { grid-template-columns: repeat(var(--cols, 3), 168px); justify-content: center; gap: 22px 12px; margin: 10px 0 6px; }
@media (max-width: 640px) {
  .peek-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order.peek { width: calc(100vw - 32px); }
  /* Cards are ~95px wide here: the picture itself is the way to open it, so only the take-out badge stays. */
  .peek-pic .peek-x { width: 32px; height: 32px; top: 3px; right: 3px; }
  /* At checkout the pictures are enough; the names would double the grid's height. */
  .order:not(.peek) .order-cards span { display: none; }
}
.peek-cards li { width: 100%; }
/* Checkout cards: the picture opens the viewer, and lifts a little on hover. */
.order-cards .peek-open { transition: transform .18s ease, z-index 0s; }
@media (hover: hover) { .order-cards li:hover { z-index: 3; } .order-cards .peek-open:hover { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .order-cards .peek-open { transition: none; } }
.peek-pic { position: relative; width: 100%; }
.peek-pic img { width: 100%; height: auto; }
.peek-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: var(--zoom); border-radius: 0; }
.peek-open:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
.peek-x {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--dark);
  box-shadow: 0 1px 4px rgba(11, 31, 69, .35);
}
.peek-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.peek-x:hover, .peek-x:focus-visible { background: var(--dark); color: var(--paper); }
.order-total { margin: 0; font-size: 15px; color: #3b5486; text-align: center; }
.order-total b { font: 600 20px/1 var(--sans); color: var(--dark); margin-right: 2px; }
.order-total:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .order-cards li, .order-cards li.arrive, .order-cards li.arrive img, .order-cards li.crumple { animation: none; } }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.order-status { margin: 0; min-height: 1.4em; font-size: 14px; }
.order-status:empty { display: none; }
.order-actions { display: flex; align-items: center; gap: 12px; }
.order .btn.link { color: #3b5486; }
/* On paper the primary button is ink: the page's paper-on-dark button would vanish into the dialog. */
.order { --btn-bg: var(--dark); --btn-fg: var(--paper); --lie: 0 8px 18px -10px rgba(11, 31, 69, .7); --lift: 0 12px 22px -10px rgba(11, 31, 69, .8); }
.order .btn.primary:hover:not(:disabled) { background: var(--sky); color: var(--on-sky); }
/* The dialog opens on its heading, not on a field (a phone would raise the keyboard over the form). */
.order-form h2:focus { outline: none; }
/* Long forms scroll, but the buttons stay in reach. */
.order-actions { position: sticky; bottom: 0; padding: 10px 0 2px; background: var(--paper); box-shadow: 0 -8px 10px -6px var(--paper); z-index: 2; }

/* Posted for you: the live back on the left (picture chooser under it), the message and address on the right. */
.post, .wide { width: min(1080px, calc(100vw - 32px)); }
.post-form, .wide-form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; padding: 40px 40px 36px; }
.post-preview { display: grid; gap: 16px; position: sticky; top: 40px; }
.post-card .flip { rotate: -1deg; }
.post-card .face { box-shadow: 0 18px 40px -18px rgba(11, 31, 69, .55), 0 0 0 1px rgba(11, 31, 69, .08); }
.post-turn { justify-self: end; margin-top: -6px; }
.post-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.post-pick legend { color: #3b5486; margin-bottom: 8px; }
.post-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.post-thumb { position: relative; display: block; aspect-ratio: 170 / 120; border-radius: 0; overflow: hidden; cursor: pointer; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(11, 31, 69, .25); background: var(--ground-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb input { position: absolute; opacity: 0; }
.post-thumb:has(input:checked) { outline: 3px solid var(--dark); outline-offset: 3px; }
.post-thumb:has(input:focus-visible) { outline: 2px dashed #2a5bd7; outline-offset: 6px; }
.post-fields { display: grid; gap: 14px; }
.post-x { top: 12px; right: 12px; width: 34px; height: 34px; z-index: 3; }
.order:not(.peek) .order-actions { padding: 14px 0 4px; }
.post .order-actions, .wide .order-actions { position: static; box-shadow: none; }
.order:not(.peek) .order-actions .btn { width: 100%; padding: 17px 28px 18px; }
.post-form textarea {
  font: 400 24px/1.1 var(--hand); color: #1c3a8f; background: #fff;
  border: 1px solid rgba(11, 31, 69, .22); border-radius: 6px; padding: 8px 10px; resize: vertical; min-width: 0;
}
.post-form textarea:focus-visible { outline: 2px solid #2a5bd7; outline-offset: 1px; }
.post-left { margin-left: auto; font-weight: 400; color: #5d72a0; }
.post-sub { margin: 6px 0 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #3b5486; }
@media (max-width: 760px) {
  .post-form, .wide-form { grid-template-columns: minmax(0, 1fr); padding: 52px 18px 18px; }
  .post-preview { position: static; }
}

/* Narrower screens */
/* The card's own page, behind the QR code on its back (scene.html): a quiet column on deep space, one screen per stop.
   The page snaps from screen to screen (the zoom has three), so nothing ever rests half-way; the reply is on the desk. */
html:has(.scene-page) { scroll-snap-type: y mandatory; scroll-behavior: smooth; scroll-padding-top: 0; } /* stops snap flush to the top */
.scene-page { background: url("img/stars.svg") 0 0 / 800px fixed, url("img/stars.svg") 340px 170px / 1270px fixed, var(--ground); }
.scene-page .top { position: absolute; z-index: 2; left: 0; right: 0; border-image: none; }
.scene-page .top::before { content: none; }
.screen, .zoom-stage { width: 100%; max-width: calc(520px + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 28px; }
.screen { min-height: 100svh; padding-bottom: 84px; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; }
.scan h2 { font-size: clamp(1.9rem, 7.6vw, 2.4rem); line-height: 1.08; }
.scan h3 { font-size: 21px; line-height: 1.15; }
.scan .lede { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--soft); }
.scan .lede b { color: var(--text); font-weight: 500; }
.scan .eyebrow { margin-bottom: 14px; }
.scan h1 em { font-style: normal; } /* no italic words inside upright sentences on this page */

/* The rail: one dot per stop, the current one long. */
.rail { position: fixed; z-index: 3; right: max(2px, env(safe-area-inset-right, 0px)); top: 50%; translate: 0 -50%; display: grid; gap: 2px; }
.rail a { display: grid; place-items: center; width: 18px; height: 22px; }
.rail a::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--muted); opacity: .6; transition: height .3s, background .3s, opacity .3s; }
.rail a[aria-current]::before { height: 18px; background: var(--sky); opacity: 1; }
.rail.on-desk a::before { background: #5f6a80; }
.rail.on-desk a[aria-current]::before { background: #14213d; }
.next-stop {
  position: fixed; z-index: 3; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer;
}
.next-stop svg { width: 44px; height: 44px; padding: 11px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--rule); background: rgba(5, 7, 14, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.next-start[hidden] { display: none; }
.next-stop[hidden] { display: none; }
.next-stop svg { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.next-stop:hover svg { background: var(--paper); stroke: var(--dark); }
@media (prefers-reduced-motion: no-preference) {
  .next-stop svg { animation: nudge 2.4s ease-in-out infinite; }
  @keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 3px; } }
}

/* 1 · Arrival: the words, then the card itself, bigger and a little askew, as if just pulled from the letterbox. */
.s-arrive { position: relative; text-align: center; align-items: center; }
.s-wow { margin: 0; font: 400 clamp(4rem, 22vw, 6rem)/.9 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--sky); letter-spacing: -.02em; }
.s-arrive h1 { margin-top: 10px; font-size: clamp(2rem, 8.6vw, 2.8rem); line-height: 1.05; }
.s-arrive .lede { max-width: 26em; margin-top: 16px; }
/* The card as printed (Postcard.front), a little askew. */
/* Its width also follows the screen's height (card is 17:12): on a short phone the words above take most of the screen, and a
   full-width card would run under the fixed Start button. */
.s-card { width: min(100%, 440px, max(200px, calc((100svh - 470px) * 1.42))); margin: 30px 0 0; border-radius: 2px; overflow: hidden; rotate: -3deg;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 50px -18px rgba(0, 0, 0, .9); }
.s-card .pc-front { width: 100%; }
.confetti { position: absolute; inset: 0 calc(50% - 50vw); overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 1px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .s-wow.pop { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
  @keyframes pop { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
  .confetti i { animation: fall var(--t, 2.6s) cubic-bezier(.3, .4, .6, 1) var(--d, 0s) both; }
  @keyframes fall {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--x, 0), 90svh) rotate(var(--r, 360deg)); }
  }
}

/* 2 · Zoom out: three snap points, and one stage that stays put while the camera moves between them. The view takes
   the screen, the words sit under it. */
.s-zoom { position: relative; height: 300svh; }
.zoom-snap { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.zoom-snap span { scroll-snap-align: start; scroll-snap-stop: always; }
.zoom-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding-top: 76px; padding-bottom: 84px; }
.zoom-stage .eyebrow { margin-bottom: 10px; }
.zoom-step { margin-left: 8px; color: var(--sky); }
.zoom-caps { display: grid; margin-top: 16px; min-height: 4.1em; font: 300 19px/1.35 var(--serif); }
/* The caption leaving rises and fades; the next one rises in from below after it (the other way round going back). */
.zoom-cap { grid-area: 1 / 1; margin: 0; opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .9s cubic-bezier(.2, .7, .2, 1); }
.zoom-cap.past { translate: 0 -22px; }
.zoom-cap.on { opacity: 1; translate: 0 0; transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) { .zoom-cap, .zoom-cap.past { translate: 0 0; } }
.zoom-cap b { font-weight: 400; color: var(--sky); }
.zoom-frame { position: relative; flex: 1; min-height: 240px; max-height: 560px; margin-top: 4px; border-radius: 12px; overflow: hidden; background: #02040a; box-shadow: inset 0 0 0 1px var(--rule); }
.orbit-view { position: relative; }
.orbit-view canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; } /* the shared canvas arrives at the last view's size: never let it size this one */
.zoom-view { position: absolute; inset: 0; }
.zoom-mark { position: absolute; opacity: 0; pointer-events: none; color: var(--text); }
.zoom-mark svg { display: block; width: 100%; height: 100%; }
/* "No way!" under the mark, fading in and out with it. */
.zoom-wow { position: absolute; left: 50%; top: 100%; translate: -50% 6px; white-space: nowrap; font: italic 400 clamp(1.5rem, 7vw, 2.2rem)/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--sky); }
/* The data credit, small, running up the view's left edge like the credit on a map. */
.zoom-credit { position: absolute; left: 7px; bottom: 12px; margin: 0; writing-mode: vertical-rl; rotate: 180deg; max-height: calc(100% - 24px);
  font-size: 9px; line-height: 1.3; letter-spacing: .02em; color: rgba(214, 224, 255, .5); pointer-events: none; }

/* 3 · Look closer: the card in a window; a pin flies the picture in. Pins are open rings that stay the same size. */
@property --z { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --tx { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ty { syntax: "<length>"; inherits: false; initial-value: 0px; }
.closer-pic { position: relative; margin-top: 20px; border-radius: 6px; overflow: hidden; aspect-ratio: 1600 / 1101; background: #0c1020; }
.closer-move { position: absolute; inset: 0; transform-origin: 0 0; transform: translate(var(--tx), var(--ty)) scale(var(--z));
  transition: --z 1.1s cubic-bezier(.6, 0, .25, 1), --tx 1.1s cubic-bezier(.6, 0, .25, 1), --ty 1.1s cubic-bezier(.6, 0, .25, 1); }
.closer-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.closer-pins { position: absolute; inset: 0; }
/* The 10 m patch over the place a pin flew to: hidden at once on leaving, faded in on landing. */
.spot-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spot-line path { fill: none; stroke: #0b2a78; stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.spot-line.on path { stroke-dashoffset: 0; transition: stroke-dashoffset 4s ease-in-out .3s; }
.closer-patch { position: absolute; display: block; opacity: 0; pointer-events: none; }
.closer-patch.on { opacity: 1; transition: opacity .35s; }
.spot-pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; scale: calc(1 / var(--z)); }
.spot-pin span { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .4); transition: opacity .2s, scale .2s; }
.spot-pin:hover span { scale: 1.12; }
.spot-pin[aria-pressed="true"] span { opacity: 0; } /* zoomed in on it: the circle would cover the place */
.closer-back { position: absolute; top: 10px; right: 10px; padding: 7px 12px 8px; border: 0; border-radius: 3px; cursor: pointer;
  background: rgba(5, 7, 14, .72); color: var(--text); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px); }
.closer-spot { margin-top: 16px; min-height: 7.5em; }
.closer-name { font-size: 21px; }
.closer-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); }

/* 4 · The photographer: a pass hanging from a key ring. */
.keyring { margin: 12px auto 0; width: 100%; max-width: 340px; display: grid; justify-items: center; }
.keyring-ring { width: 50px; height: 60px; margin-bottom: -18px; position: relative; z-index: 1; }
.pass { position: relative; width: 100%; padding: 28px 18px 14px; background: var(--paper); color: #1b1e27; border-radius: 10px;
  box-shadow: 0 22px 44px -10px rgba(0, 0, 0, .7); transform-origin: 50% -36px; rotate: 1.5deg; }
.pass-hole { position: absolute; top: 10px; left: calc(50% - 14px); width: 28px; height: 9px; border-radius: 5px; background: var(--ground); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.pass-head { display: flex; justify-content: space-between; gap: 12px; }
.pass-label { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #5b6170; }
.pass-name { margin: 8px 0 0; font: 400 28px/1 var(--serif); }
.pass-org { margin: 6px 0 0; font-size: 13px; color: #5b6170; }
.pass-org span { white-space: nowrap; }
/* The pass photo: the satellite on deep space, like an ID photo. */
.pass-photo { flex: none; width: 92px; height: 92px; border-radius: 6px; overflow: hidden; background: radial-gradient(circle at 40% 35%, #1a2440, var(--ground) 75%); box-shadow: inset 0 0 0 1px rgba(27, 30, 39, .25); }
.pass-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pass-facts { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed rgba(27, 30, 39, .3); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; }
/* Four short facts in pairs, then the two sentences (pass time, visits) each across the full width. */
.pass-facts div:nth-last-child(-n+2) { grid-column: 1 / -1; }
.pass-facts dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5b6170; }
.pass-facts dd { margin: 3px 0 0; font-size: 14px; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .pass { animation: swing 2.6s cubic-bezier(.3, .7, .4, 1) both paused; }
  .s-who.seen .pass { animation-play-state: running; }
  @keyframes swing { 0% { rotate: -9deg; } 25% { rotate: 6deg; } 50% { rotate: -3deg; } 75% { rotate: 2.5deg; } 100% { rotate: 1.5deg; } }
}

/* 5 · Its colours */
.bands-pic { position: relative; margin-top: 18px; border-radius: 6px; overflow: hidden; background: #0c1020; aspect-ratio: 1000 / 687; }
.bands-canvas { display: block; width: 100%; height: 100%; }
.bands-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 13px; color: var(--muted); }
.bands-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.chip { min-height: 40px; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 3px; background: none; cursor: pointer;
  font-size: 10.5px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.chip:hover { border-color: var(--soft); }
.chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: #1b1e27; }
.bands-note { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); min-height: 4.5em; }
.bands-used { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bands-note b { color: var(--text); font-weight: 500; }
/* Mix your own: three channels side by side, each a label over a plain choice underlined in its colour. */
.bands-mix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; min-height: 4.5em; }
.mix-ch { --ch: #ff6a5a; display: grid; align-content: start; gap: 2px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mix-green { --ch: #5fc27a; }
.mix-blue { --ch: #6b9bff; }
.mix-ch span { color: var(--ch); }
.mix-ch select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 40px; padding: 0 18px 0 0; border: 0; border-bottom: 2px solid var(--ch); border-radius: 0; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c5cbdb' stroke-width='1.5'/%3E%3C/svg%3E") right 2px center no-repeat;
  color: var(--text); font: 500 13.5px var(--sans); text-overflow: ellipsis; }
.mix-ch select option { background: var(--ground-2); color: var(--text); }
.bands-save { margin-top: 12px; align-self: center; }
.bands-save::after { content: none !important; }

/* 6 · Right now */
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot::before { animation: blink 1.2s steps(1, end) infinite; }
  @keyframes blink { 50% { opacity: .15; } }
}
.live-view { aspect-ratio: 1; width: min(100%, 36svh, 340px); margin: 14px auto 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.live-view.dragging { cursor: grabbing; }
.live-label { position: absolute; left: 0; top: 0; margin: -9px 0 0 12px; padding: 2px 6px 3px; border-radius: 3px; white-space: nowrap; pointer-events: none;
  background: rgba(5, 7, 14, .78); box-shadow: inset 0 0 0 1px rgba(255, 90, 74, .55); font-size: 11px; font-weight: 500; color: var(--text); }
.s-nowline { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--soft); text-align: center; }
.next { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); }
.next .eyebrow { margin: 0; }
.next-when { margin: 6px 0 0; font: 300 20px/1.3 var(--serif); }

/* 7 · Your turn, on the desk, signed off with the mark. */
.scan .reply { max-width: none; padding-inline: max(var(--pad), calc(50% - 260px)); background: var(--desk); }
.scan .reply { padding-bottom: 20px; }
.picker { margin: 20px calc(-1 * var(--pad)) 0; padding: 0; border: 0; min-width: 0; }
.picker-row { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 14px calc(var(--pad) + 28px) 14px var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
.pick { position: relative; scroll-snap-align: start; display: grid; align-content: start; gap: 10px; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; } /* held inside its pick (relative), or it escapes the row's scroll box and widens the page */
/* The cards lie a little over each other, as if dealt onto the desk: each is wider than its column, so its right edge
   slips under the next one, and each is turned a touch. The chosen one comes to the top and lies straight. */
.pick-card { position: relative; display: block; width: calc(100% + 28px); aspect-ratio: 170 / 120; overflow: hidden; background: #fff;
  box-shadow: var(--lie), -6px 0 14px -8px rgba(40, 30, 15, .45); rotate: -1.4deg; transition: translate .2s, rotate .2s, outline-color .2s;
  outline: 3px solid transparent; outline-offset: 3px; }
.pick:nth-child(3n+2) .pick-card { rotate: 1.1deg; translate: 0 4px; }
.pick:nth-child(3n) .pick-card { rotate: -.4deg; translate: 0 -2px; }
.pick:hover .pick-card { z-index: 1; }
.pick-card .pc-front { width: 100%; }
.pick input:checked + .pick-card { z-index: 2; outline-color: var(--text); translate: 0 -3px; rotate: 0deg; }
.pick input:focus-visible + .pick-card { outline-color: #2a5bd7; }
.pick-name { font: 400 15px/1.15 var(--serif); }
.reply .s-post { display: flex; width: 100%; margin-top: 16px; }
.reply .btn.quiet { margin-top: 8px; width: 100%; color: var(--text); text-align: center; }
.reply .btn.quiet::after { content: none; }
.reply-brand { margin: 28px auto 0; display: grid; justify-items: center; gap: 4px; text-decoration: none; text-align: center; }
.reply-brand svg { width: 36px; height: 36px; margin-bottom: 6px; color: var(--text); }
.reply-brand b { font: 400 19px/1.1 var(--serif); letter-spacing: -.01em; }
.reply-brand > span:last-child { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .picker-row { grid-auto-columns: 30%; }
}

@media (max-width: 1060px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways-list { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 24px; gap: 56px; }
  .hero-card { width: min(100%, 500px); justify-self: center; }
  .hero-globe { max-width: 520px; width: 100%; justify-self: center; }
  .sets { padding-top: 72px; scroll-margin-top: -40px; }
  /* Both rows are carousels with small items, so the next ones always show at the edge: there is more to swipe to.
     A pack is its small stack with the name under it, about three and a half to a phone screen. */
  .shelf { gap: 6px; padding-top: 16px; }
  .pack { width: 112px; grid-template-columns: none; justify-items: start; align-items: start; gap: 4px; padding: 8px 8px 12px; }
  .pack-fan { width: 76px; margin: 4px 6px 6px; }
  .pack-name { font-size: 14px; white-space: normal; }
  .pack-all { align-self: stretch; display: grid; place-items: center; width: auto; }
  /* Cards a little over half the width: the next one stands well into view. Add goes under the name. */
  .grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 56%; column-gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); padding-bottom: 8px; scrollbar-width: none; }
  .card { scroll-snap-align: start; }
  .card-foot { flex-direction: column; gap: 10px; margin-top: 12px; }
  .card h3 { font-size: 19px; }
  .about { grid-template-columns: minmax(0, 1fr); padding-top: 88px; scroll-margin-top: -56px; }
  .faq { grid-template-columns: minmax(0, 1fr); padding-top: 88px; scroll-margin-top: -56px; }
  .close { margin-top: 88px; padding-inline: 24px; rotate: none; }
  .top-nav a { display: none; }
  .viewer { padding: 72px var(--pad) 20px; align-content: start; }
  .v-stage .flip { width: 100%; }
  .v-prev, .v-next { top: 14px; transform: none; width: 40px; height: 40px; }
  .v-prev { left: var(--pad); }
  .v-next { left: calc(var(--pad) + 50px); right: auto; }
}
@media (max-width: 520px) {
  :root { --pad: 18px; }
  .brand span { font-size: 21px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
}

/* Phones and small tablets: the corner envelope would sit over the cards, so it lies flat along the bottom instead,
   a slim envelope the width of the screen. The picked cards are tucked into its top edge as small thumbnails (a tap
   opens one; "remove one" is in the viewer), and the label, Empty and Checkout share one row. */
@media (max-width: 760px) {
  .dock {
    left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; height: 60px; aspect-ratio: auto;
  }
  .dock::before, .dock::after { display: none; }
  .slot, .dock:hover .slot, .dock:focus-within .slot {
    left: calc(16px + var(--i, 0) * 30px); bottom: calc(100% - 12px); width: 46px;
    translate: none; rotate: calc(sin(var(--i, 0) * 2.4) * 5deg); transform-origin: 50% 100%; z-index: auto;
  }
  .slot.mystery { padding-top: 0; place-items: center; font-size: 20px; }
  .slot-card { padding: 2px; }
  .slot-x, .slot-tag { display: none; }
  .env-front { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: none; gap: 4px; padding: 8px 8px 8px 14px; border-radius: 0; clip-path: none; background: linear-gradient(#fcfaf5, var(--paper) 40%, #f0ebdf); }
  .dock .clear, .dock .price, .dock .buy-amt, .dock .checkout { grid-area: auto; align-self: center; margin-top: 0; }
  .dock .buy { display: flex; align-items: center; gap: 8px; }
  .dock .buy-amt { font-size: 17px; }
  /* The label ("4 more to go", the set's name) shows in the row; without it a greyed-out Checkout gives no reason. */
  .dock .price { display: grid; grid-column: auto; align-self: center; gap: 1px; min-width: 0; justify-items: start; text-align: left; }
  .price-label { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  @media (max-width: 360px) { .price-label { font-size: 19px; line-height: .95; white-space: normal; } }
  .dock .checkout { min-height: 44px; }
  .dock .clear { padding: 12px 8px; margin-left: -8px; }
  /* Fingers, not a pointer: every tap target at least about 40 px, the small text links padded out without moving them. */
  .add { height: 44px; }
  .brand { padding-block: 8px; margin-block: -8px; }
  .env-btn { padding-block: 11px 12px; }
  .btn.take { padding-block: 12px 13px; }
  .mix .btn.link { padding-block: 5px; margin-block: -5px; }
  .chip { min-height: 44px; }
  /* The scene's rail: a 28 × 30 tap area per stop, its dot centred inside the page's side padding, clear of the content. */
  .rail { right: env(safe-area-inset-right, 0px); gap: 0; }
  .rail a { width: 28px; height: 30px; }
  /* The parcel smaller and a little left, so it and its hat sit centred together and the hat stays on the screen. */
  .parcel { width: 76%; translate: -8% 0; }
  .post-x { width: 44px; height: 44px; top: 8px; right: 8px; }
  .v-foot .btn.link { padding: 10px 4px; margin-block: -6px; }
  .fine a { padding-block: 15px; } /* inline, so the padding widens the tap area and moves no text */
  .btn.post-turn { padding: 10px 4px; margin-block: -6px; }
  .toast-act { min-height: 40px; }
  /* The toast as wide as the envelope below it, so its line doesn't wrap into a column. */
  .toast { left: 12px; right: 12px; transform: none; max-width: none; animation-name: rise-phone; }
}
@keyframes rise-phone { from { transform: translateY(14px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Contact form in the footer. */
.contact-form { display: grid; gap: 10px; max-width: 28em; padding-bottom: 22px; }
.foot .contact-form { margin: 14px auto 0; text-align: left; }
.foot .contact-form[hidden] { display: none; }
.foot p .btn.link { font: inherit; padding: 11px 0; margin-block: -11px; color: inherit; cursor: pointer; } /* a taller tap area that moves no text */
.contact-form :is(input, textarea) { font: inherit; font-size: 16px; color: var(--text); background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 9px 10px; min-width: 0; resize: vertical; }
.contact-form :is(input, textarea):focus-visible { outline: 2px solid var(--soft); outline-offset: 1px; }
.contact-form button { justify-self: start; cursor: pointer; }
.contact-form .contact-trap { position: absolute; left: -9999px; }
.contact-status { min-height: 1.4em; margin: 0; font-size: 14px; }

/* Wide screens: the sets are a list down the left, all in view at once, and the open one deals its cards out to the
   right of it. (Narrow screens keep the sideways shelf above the cards.) */
@media (min-width: 861px) {
  .sets { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 44px; align-items: start; }
  .sets-head, .mix { grid-column: 1 / -1; }
  /* The shelf sticks inside its own cell, so it stops at the bottom of the cards and never runs over what follows. */
  .shelf-col { align-self: stretch; }
  .shelf {
    flex-direction: column; align-items: stretch; gap: 6px; margin: 32px 0 0; padding: 0; overflow: visible;
    position: sticky; top: 88px;
  }
  .pack { grid-template-columns: 78px minmax(0, 1fr); padding: 12px 22px 12px 10px; scroll-snap-align: none; }
  .pack-name { white-space: normal; }
  .pack:not([aria-selected="true"]) .pack-label { opacity: .85; }
  /* The open set is a tab pointing right, at the cards it dealt. */
  .pack[aria-selected="true"]::after {
    left: 100%; top: 50%; width: 9px; height: 22px; margin: -11px 0 0;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
  .pack-all { margin: 0; padding: 12px 10px; }
  .pack-all .pack-name { opacity: .7; }
  .swipe-dots { display: none; } /* the shelf is a list here, its pointer tab only seems to overflow */
  .set { padding-top: 32px; grid-column: 2; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 861px) and (max-width: 1060px) {
  .sets { grid-template-columns: 210px minmax(0, 1fr); column-gap: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Nothing scrolls behind a dialog. */
html:has(dialog:modal) { overflow: hidden; }
/* Opened from the envelope: one card, no browsing, and opaque so the envelope under it does not ghost through. */
.viewer.in-env::backdrop { background: #171018; backdrop-filter: none; -webkit-backdrop-filter: none; }
.viewer.in-env .v-nav { display: none; }
.viewer .btn:disabled { opacity: .45; cursor: not-allowed; }
