/* slipmatic.app: a night gallery floor, one warm spotlight, cream paper slips.
   Saturated colour comes only from the machines. */
:root {
  --floor: #1a1714;
  --floor-lift: #24201c;
  --pool: #3a2c1f;
  --paper: #fbf8f3;
  --paper-well: #f2ece3;
  --ink: #1e1b18;
  --ink-soft: #655d54;
  --chalk: #f3eee6;
  --chalk-soft: #b9afa3;
  --brass: #d9a96f;
  --medal: #e5b04a;
  --rule: #40392f;
  --perforation: #d8cdbd;
  --oak: #9a6b45;
  --oak-deep: #6e4529;
  --neon-pink: #ff4fa3;
  --neon-mint: #5be3a8;
  --radius-slip: 24px;
  --shadow-paper: 0 2px 3px rgba(0, 0, 0, .25), 0 22px 44px -18px rgba(0, 0, 0, .7);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Mitr", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--floor);
  color: var(--chalk);
  font-family: var(--round);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(th) body, html:lang(th) { line-height: 1.7; }
::selection { background: var(--brass); color: var(--ink); }
a { color: var(--brass); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--chalk); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; border-radius: 10px; }
html { scrollbar-color: var(--rule) var(--floor); }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ── Header ─────────────────────────────────────────────── */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(20px, calc((100% - 1180px) / 2));
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--chalk); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.lang {
  display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px;
  background: rgba(26, 23, 20, .6);
}
.lang button {
  font: 700 14px/1 var(--round); color: var(--chalk-soft); background: none; border: 0;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); }

/* ── Hero: the machine you work ─────────────────────────── */
.hero {
  position: relative; min-height: min(100svh, 980px); overflow: clip;
  display: grid; align-items: center;
  background:
    radial-gradient(55% 45% at 72% 45%, rgba(255, 196, 120, .10), transparent 70%),
    var(--floor);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 104px 48px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--brass); }
@media (min-width: 901px) { .hero h1 span { white-space: nowrap; } }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--chalk-soft); max-width: 30ch; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 18px;
  background: var(--chalk); color: var(--ink); border-radius: 18px; text-decoration: none;
  font-weight: 800; font-size: 17px; line-height: 1.15;
}
.store small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.store svg { width: 26px; height: 26px; flex: none; }
.ghost { color: var(--chalk); font-weight: 700; padding: 14px 6px; text-decoration: none; }
.ghost:hover { color: var(--brass); }

/* The printer: the phone itself, in the machine's enamel. The Dynamic
   Island is the paper slot; the slip feeds down out of it. Flat colour,
   no sheen (DESIGN.md "Flat, not glossy"). */
.stage { position: relative; justify-self: center; width: min(340px, 100%); display: grid; justify-items: center; gap: 18px; }
.stage::before {
  content: ""; position: absolute; left: -30%; right: -30%; top: 6%; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--glow, #d9b36a) 22%, transparent), transparent 72%);
  pointer-events: none; transition: background .6s var(--ease-out);
}
.printer {
  --bezel: 11px;
  position: relative; width: 100%; aspect-ratio: 9 / 19.2; border-radius: 56px; overflow: hidden;
  background: var(--enamel); border: var(--bezel) solid #0d0c0b;
  box-shadow: 0 2px 3px rgba(0,0,0,.35), 0 40px 70px -30px rgba(0,0,0,.85);
  display: grid; grid-template-rows: 52px auto minmax(0, 1fr) auto; padding: 14px 16px 22px; gap: 12px;
  transition: background-color .6s var(--ease-out); touch-action: pan-y; user-select: none;
}
.slot {
  position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 36%; height: 34px; z-index: 6;
  background: #050505; border-radius: 999px; box-shadow: 0 0 0 4px color-mix(in oklab, var(--enamel-deep) 70%, #000);
}
.led { position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #2a3a30; transition: background .2s; }
.hero.printing .led { background: #5be3a8; }
.display {
  grid-row: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  background: #15110c; border-radius: 12px; padding: 9px 12px 8px; min-width: 0;
  font: 700 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: #ffb547; letter-spacing: .08em;
}
.display .dname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.display .dstatus { color: #c98a2f; white-space: nowrap; font-size: 10px; }
:lang(th) .display .dstatus { letter-spacing: 0; font-family: var(--round); font-size: 11px; }
.window {
  grid-row: 3; border-radius: 26px; background: #f2ece3; display: grid; place-items: center; overflow: hidden; min-height: 0;
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--enamel-deep) 80%, #000);
}
.window img { width: 86%; height: 86%; object-fit: contain; transition: opacity .35s, scale .5s var(--ease-out); -webkit-user-drag: none; }
.window img.swap { opacity: 0; scale: .94; }
.keys { grid-row: 4; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; transition: opacity .3s, translate .4s var(--ease-out); }
.hero.printing .keys { opacity: 0; translate: 0 18px; pointer-events: none; }
.minikey { width: 46px; height: 46px; border-radius: 14px; background: var(--enamel-deep); display: grid; place-items: center; color: var(--label); }
.minikey svg { width: 20px; height: 20px; fill: currentColor; opacity: .9; }
.minikey.medal { flex-direction: column; gap: 2px; font: 800 10px/1 var(--round); }
.minikey.medal i { width: 10px; height: 10px; border-radius: 50%; background: var(--medal); }
.bigkey {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--key); color: var(--key-ink);
  transition: scale .12s, background-color .3s var(--ease-out);
}
.bigkey svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bigkey:active, .bigkey.down { scale: .94; background: var(--key-deep); }
.bigkey:focus-visible { outline-color: var(--label); outline-offset: 6px; border-radius: 50%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The slip, feeding down out of the slot, bottom edge first. */
.feed { position: absolute; top: 40px; left: 6%; right: 6%; bottom: 96px; overflow: hidden; z-index: 5; pointer-events: none; padding: 0 10px; margin: 0 -10px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.hero.printing .feed, .hero.kept .feed { pointer-events: auto; }
.slip { translate: 0 -105%; transition: translate 1.35s cubic-bezier(.3, 0, .25, 1); }
.hero.printing .slip { translate: 0 0; }
.slip.torn { translate: 0 130%; rotate: -5deg; transition: translate .6s var(--ease-out), rotate .6s var(--ease-out); }
.tray { position: absolute; left: 16px; right: 16px; bottom: 20px; z-index: 6; display: flex; opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .3s .9s, translate .4s .9s var(--ease-out); }
.hero.printing .tray { opacity: 1; translate: 0 0; pointer-events: auto; }
.slab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--key); color: var(--key-ink); font: 800 17px/1 var(--round); transition: scale .12s, background-color .2s;
}
.slab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.slab:active { scale: .97; background: var(--key-deep); }
.slab:focus-visible { outline-color: var(--label); }

/* A thermal receipt: cream paper, blue-black ink, dashed rules, bars-only
   barcode, a zig-zag torn edge. Shared by the hero slip and the holiday slips. */
.receipt {
  --tooth: 9px;
  background: var(--paper); color: #232637; padding: 16px 18px calc(16px + var(--tooth));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}
.receipt p { margin: 0; }
.receipt .rhead { display: flex; justify-content: space-between; gap: 10px; font: 700 10px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; color: #232637; margin-bottom: 10px; }
.receipt .rhead span + span { color: #6a6c7e; letter-spacing: .04em; }
:lang(th) .receipt .rhead span + span { font-family: var(--round); letter-spacing: 0; }
.receipt .dash { border: 0; border-top: 1.5px dashed #b9b3a6; margin: 12px 0; }
.receipt .bars { height: 26px; margin: 12px 8% 0; background: repeating-linear-gradient(90deg, #232637 0 2px, transparent 2px 4px, #232637 4px 5px, transparent 5px 8px, #232637 8px 11px, transparent 11px 12px); }
.slip .rmachine { font-size: 11px; font-weight: 700; color: #6a6c7e; text-transform: uppercase; letter-spacing: .1em; }
:lang(th) .slip .rmachine { text-transform: none; letter-spacing: 0; font-size: 12px; }
.slip .charm { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; margin-top: 6px; }
.slip .charm img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.slip .reading { font-weight: 800; font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.slip .companion { font-size: 13px; color: #6a6c7e; margin-bottom: 10px; }
.slip .fine { font-size: 11px; color: #6a6c7e; text-align: center; }
.slip .tomorrow { font: 700 9px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; text-align: center; margin-top: 6px; color: #232637; }

/* The cord hangs from the printer's right side: pull it down to print. */
.cord {
  position: absolute; left: calc(100% - 16px); top: 13%; width: 56px; margin-left: -10px;
  height: calc(170px + var(--cord, 0px)); display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; cursor: grab; touch-action: none; z-index: 7;
}
.cord:active { cursor: grabbing; }
.cord .ring { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #0d0c0b; background: var(--enamel-deep, #141c30); flex: none; }
.cord .string { width: 3px; flex: 1; margin-top: -2px; border-radius: 2px; background: linear-gradient(#efe2c4, #d9c49b); }
.cord .tassel { width: 26px; height: 48px; margin-top: -3px; fill: var(--tassel, #d9b36a); filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); transition: fill .6s var(--ease-out); }
.cord .tassel .band { fill: color-mix(in oklab, var(--tassel, #d9b36a) 60%, #000); }
.cord .hint {
  position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; white-space: nowrap;
  font: 800 15px/1 var(--round); color: var(--ink); background: var(--chalk); padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: opacity .3s;
}
.cord .hint::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; background: inherit; translate: -50% 0; rotate: 45deg; border-radius: 2px; }
.hero.pulled .cord .hint { opacity: 0; }
.cord:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .hero:not(.pulled) .cord .hint { animation: nudge 2.4s var(--ease-out) 1.2s infinite; }
  @keyframes nudge { 0%, 70%, 100% { translate: -50% 0; } 80% { translate: -50% 6px; } }
  .printer { transition: background-color .6s var(--ease-out), translate .4s var(--ease-out); }
}

.skins { display: flex; gap: 10px; }
.skins button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); transition: scale .25s var(--ease-out);
}
.skins button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--floor), 0 0 0 5px var(--chalk); }
.skins button:hover { scale: 1.12; }
.swipe { color: var(--chalk-soft); font-size: 14px; text-align: center; max-width: 34ch; margin: 0; }

/* ── Sections ───────────────────────────────────────────── */
main:not(.read) > section { padding-block: clamp(80px, 11vw, 150px); }
main:not(.read) > section + section { padding-top: clamp(56px, 7vw, 110px); }
.example { color: var(--chalk-soft); font-size: 14px; font-weight: 700; margin: 0 0 14px; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; font-weight: 800; }
.section-head p { color: var(--chalk-soft); font-size: 19px; max-width: 54ch; margin: 18px 0 0; }

/* The row of machines on the floor */
.row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); align-items: start; }
.exhibit { text-align: center; }
.exhibit figure { margin: 0 0 18px; position: relative; height: clamp(150px, 15vw, 210px); display: grid; grid-template-rows: minmax(0, 1fr); place-items: end center; }
.exhibit figure::before {
  content: ""; position: absolute; inset: 8% 4% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tint) 34%, transparent), transparent);
  opacity: .55; transition: opacity .5s var(--ease-out);
}
.exhibit img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.5)); transition: translate .5s var(--ease-out); }
.exhibit:hover img { translate: 0 -8px; }
.exhibit:hover figure::before { opacity: 1; }
.exhibit h3 { font-size: 20px; font-weight: 800; }
.exhibit .placard {
  display: inline-block; margin: 8px 0 10px; padding: 6px 12px; border: 1px solid color-mix(in oklab, var(--brass) 55%, transparent);
  border-radius: 8px; color: var(--brass); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
:lang(th) .exhibit .placard { letter-spacing: 0; text-transform: none; font-size: 14px; }
.exhibit p { color: var(--chalk-soft); font-size: 15px; margin: 0; line-height: 1.45; }

/* The shelf */
.shelf-band { background: linear-gradient(var(--floor), var(--floor-lift) 40%, var(--floor)); }
.shelf { position: relative; display: flex; gap: clamp(12px, 2vw, 22px); align-items: flex-end; overflow-x: auto; padding: 10px 4px 0; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.board { height: clamp(26px, 3vw, 38px); margin: -6px -2% 0; background: url("/img/shelf.png") center / 100% 100% no-repeat; filter: drop-shadow(0 16px 18px rgba(0,0,0,.55)); }
.kept {
  position: relative; flex: 0 0 clamp(170px, 19vw, 210px); background: var(--paper); color: var(--ink); border-radius: 14px;
  padding: 44px 16px 0; margin-top: 46px; box-shadow: var(--shadow-paper); rotate: var(--tilt, 0deg);
  transform-origin: 50% 100%; transition: rotate .5s var(--ease-out), translate .5s var(--ease-out);
}
.kept .animal { position: absolute; top: -50px; left: 50%; translate: -50% 0; width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.kept .dot { position: absolute; top: 14px; left: 14px; }
.kept .stub { border-top: 2px dotted var(--perforation); margin: 0 -16px; padding: 10px 16px 12px; font-weight: 700; font-size: 13px; color: #8f5a28; }
.kept:hover { rotate: 0deg; translate: 0 -6px; }
.kept .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tint); }
.kept p { font-weight: 700; font-size: 15px; line-height: 1.35; margin: 0 0 14px; min-height: 4.05em; }
.kept.new { animation: land .7s var(--ease-out); }
@keyframes land { from { translate: 0 -40px; rotate: -8deg; opacity: 0; } }

/* Secrets */
.secrets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.whisper { display: flex; align-items: flex-end; gap: 16px; }
.whisper img { width: clamp(120px, 15vw, 190px); flex: none; }
.bubble {
  background: var(--paper); color: var(--ink); border-radius: 22px 22px 22px 6px; padding: 18px 20px;
  font-weight: 700; font-size: 19px; line-height: 1.35; box-shadow: var(--shadow-paper); margin-bottom: 60px;
}
.medals { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.medals li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.medals li:last-child { border-bottom: 0; }
.medals .name { font-weight: 800; font-size: 18px; }
.medals .what { color: var(--chalk-soft); font-size: 15px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--chalk-soft); opacity: .7; }
.dots i.on { background: var(--medal); border-color: var(--medal); opacity: 1; }

/* Privacy promise: a full-width paper band, perforated top and bottom like a slip */
.promise {
  text-align: center; background: var(--paper); color: var(--ink); position: relative;
  border-block: 2px dotted var(--perforation);
}
.promise h2 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 800; line-height: 1.05; max-width: 18ch; margin: 0 auto; }
.promise p { color: var(--ink-soft); max-width: 52ch; margin: 22px auto 0; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.chips span { background: var(--paper-well); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 15px; color: var(--ink); }
.promise ::selection { background: var(--ink); color: var(--paper); }

/* Plus */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--floor-lift); border-radius: 26px; padding: clamp(24px, 3vw, 36px); }
.plan.plus { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-paper); }
.plan h3 { font-size: 26px; font-weight: 800; }
.plan .price { font-size: 17px; font-weight: 700; color: var(--chalk-soft); margin: 6px 0 18px; }
.plan.plus .price { color: #8f5a28; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 1.45; }
.plan li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--brass); }
.plan.plus li svg { color: #8f5a28; }
.plan .note { font-size: 13px; color: var(--chalk-soft); margin: 20px 0 0; }
.plan.plus .note { color: var(--ink-soft); }

/* Holidays: three slips on the floor, each with its caption below. */
.hol-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.hol { margin: 0; display: grid; gap: 22px; }
.hol .receipt { rotate: var(--tilt, 0deg); filter: drop-shadow(0 22px 26px rgba(0,0,0,.55)); transition: rotate .5s var(--ease-out), translate .5s var(--ease-out); padding: 20px 22px calc(18px + var(--tooth)); }
.hol:hover .receipt { rotate: 0deg; translate: 0 -6px; }
.hol .big { font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin: 4px 0 6px; }
.hol .mid { font-weight: 800; font-size: 19px; }
.hol .soft { color: #6a6c7e; font-size: 14px; }
.hol .small { font-size: 12px; }
.hol .up { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
:lang(th) .hol .up { text-transform: none; letter-spacing: 0; }
.hol .list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.hol .list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-weight: 700; font-size: 16px; line-height: 1.3; }
.hol svg { width: 18px; height: 18px; margin-top: 1px; }
.hol .star { fill: #232637; }
.hol .box { fill: none; stroke: #232637; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hol .box.on rect { fill: #232637; }
.hol .box.on path { stroke: var(--paper); }
.hol .ticks { display: flex; gap: 18px; font-weight: 800; margin-top: 6px; }
.hol .ticks > span { display: inline-flex; gap: 6px; align-items: center; }
.hol .sign { border-top: 1px solid #8a8c9c; margin-top: 26px; padding-top: 6px; font-size: 13px; color: #6a6c7e; }
.hol .stat { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; padding: 3px 0; }
.hol .stat b { font: 800 20px/1 ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
.hol .animals { display: flex; gap: 6px; margin-top: 10px; }
.hol .animals img { width: 30px; height: 30px; object-fit: contain; }
.hol figcaption h3 { font-size: 22px; font-weight: 800; }
.hol figcaption p { color: var(--chalk-soft); font-size: 16px; margin: 6px 0 0; max-width: 34ch; }
.supplies { color: var(--chalk-soft); font-size: 16px; margin: 26px 0 0; max-width: 60ch; }

/* Close */
.close { text-align: center; padding-bottom: 60px; }
.close img { width: clamp(150px, 18vw, 220px); margin: 0 auto 16px; }
.close h2 { font-size: clamp(36px, 5vw, 68px); font-weight: 800; line-height: 1; }
.close p { color: var(--chalk-soft); margin: 16px auto 28px; max-width: 40ch; }
footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; color: var(--chalk-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--chalk); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--brass); }

/* ── Read pages (privacy, support): a cream page resting on the floor ── */
.read-top { position: static; }
.read { width: min(820px, 100% - 32px); margin: 8px auto 80px; background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(28px, 6vw, 72px); box-shadow: var(--shadow-paper); }
.read h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.02; }
.read .updated { color: var(--ink-soft); font-size: 15px; margin: 10px 0 0; }
.read .short { font-size: 21px; font-weight: 700; line-height: 1.4; margin: 28px 0 8px; }
.read h2 { font-size: 22px; font-weight: 800; margin: 40px 0 8px; }
.read p, .read li { color: #3d3730; max-width: 68ch; }
.read a { color: #8f5a28; }
.read a:hover { color: var(--ink); }
.read hr { border: 0; border-top: 2px dotted var(--perforation); margin: 40px 0; }
.read .mochi-line { display: flex; gap: 16px; align-items: center; background: var(--paper-well); border-radius: 20px; padding: 18px 20px; margin-top: 28px; }
.read .mochi-line img { width: 72px; flex: none; }
.read .mochi-line p { margin: 0; font-weight: 700; font-size: 18px; color: var(--ink); }

/* Letters signup: a field and a button on paper (letters page) or on the floor (home). */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 26px 0 8px; max-width: 560px; }
.signup input[type=email] {
  font: 600 17px/1.2 var(--round); padding: 15px 18px; border-radius: 16px; border: 2px solid var(--perforation);
  background: #fff; color: var(--ink); min-width: 0;
}
.signup input[type=email]:focus-visible { outline: 3px solid #8f5a28; outline-offset: 2px; border-color: transparent; }
.signup button { font: 800 17px/1 var(--round); padding: 0 22px; border: 0; border-radius: 16px; background: var(--ink); color: var(--paper); cursor: pointer; min-height: 52px; }
.signup button:hover { background: #3a332c; }
.signup button:disabled { opacity: .6; cursor: progress; }
.signup .status { grid-column: 1 / -1; margin: 2px 0 0; min-height: 1.5em; font-weight: 700; font-size: 15px; color: #8f5a28; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.soon { font-weight: 700; color: var(--brass); margin: 18px 0 0; }
.read .soon { color: #8f5a28; }
.read .fineprint { font-size: 14px; color: var(--ink-soft); }
.close .signup { margin: 26px auto 0; text-align: left; }
.close .signup input[type=email] { background: var(--floor-lift); color: var(--chalk); border-color: var(--rule); }
.close .signup input[type=email]::placeholder { color: var(--chalk-soft); }
.close .signup input[type=email]:focus-visible { outline-color: var(--brass); }
.close .signup button { background: var(--chalk); color: var(--ink); }
.close .signup button:hover { background: var(--brass); }
.close .signup .status { color: var(--brass); text-align: center; }
.close .letters-line { color: var(--chalk-soft); font-size: 16px; margin: 30px auto 0; }
@media (max-width: 520px) { .signup { grid-template-columns: 1fr; } }

/* ── Narrow screens ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 84px 32px; gap: 14px; }
  .hero .copy { display: contents; }
  .hero h1 { order: 1; }
  .hero .lede { order: 2; margin: 0; font-size: 16px; line-height: 1.5; }
  .hero .cta-row { order: 3; }
  .hero .stage { order: 4; }
  .hero .ghost { display: none; }
  .stage { width: min(290px, 70%); margin: 10px auto 30px; translate: -14px 0; }
  .hol-row { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; row-gap: 48px; }
  .hero h1 { font-size: clamp(42px, 11vw, 64px); }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .row .exhibit:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .secrets, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .printer { border-radius: 46px; --bezel: 9px; padding: 12px 12px 18px; }
  .bigkey { width: 72px; height: 72px; }
  .cord { height: calc(120px + var(--cord, 0px)); top: 16%; }
  .cord .hint { font-size: 13px; padding: 7px 11px; left: 30%; }
  .slip .reading { font-size: 16px; }
  .slip .companion { font-size: 12px; }
  .receipt { padding-inline: 14px; }
}
