@font-face { font-family: "ClackSnack Machine"; src: url("/assets/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: block; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; }
:root { background: #0b0e0c; color: #f2eee6; font-family: "Plex Sans", sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; }
/* landing.js keeps the page still when the scroll track resizes, in every browser; Chromium's own
   scroll anchoring would add a second correction, and Safari doesn't anchor reliably. */
body { overscroll-behavior-y: none; overflow-anchor: none; }
/* The scroll track's height is set by landing.js from the stage's measured height. */
#scroll-space { min-height: 100vh; }
/* dvh follows a phone browser's bars as they show and hide, so the stage always fills the screen. */
#stage { position: sticky; top: 0; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: #0b0e0c; }
#room { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; }
#screen-well, #board, #phone-screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
/* The screen behind the board is the board's average colour as seen (machines and margin together, measured
   18,21,18 on a dark board), so the board's edge never shows inside the TV (owner, 2026-10-18). */
#screen-well { background: #121512; }
#board { display: block; background: #0b0e0c; }
/* Glass over each TV screen, so the board sits in the room rather than on top of the photo: a faint
   reflection of the room's light from the upper left, a gentle darkening toward the corners, and the
   screen's edges falling into the bezel (landing.js sets that inner shadow to the screen's size).
   It never moves on its own (owner, 2026-10-18). */
#screen-glass { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,246,230,.15) 0%, rgba(255,246,230,.06) 31%, rgba(255,246,230,0) 46%),
    radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,.28) 100%); }
#phone-screen { display: block; z-index: 1; max-width: none; object-fit: cover; object-position: center top; opacity: 0; }
#blackout { position: absolute; z-index: 2; inset: 0; background: #000; opacity: 0; pointer-events: none; }
#masthead { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(24px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 24px max(28px, env(safe-area-inset-left)); pointer-events: none; }
#masthead > img { display: block; width: 132px; height: auto; filter: drop-shadow(0 1px 4px #0b0e0c); }
button { min-height: 44px; border-radius: 4px; border: 1px solid #c9c5bd; color: #f2eee6; background: rgba(11,14,12,.82); padding: 0 18px; font: 600 14px "Plex Sans", sans-serif; cursor: pointer; }
button:hover { border-color: #f2eee6; }
button:focus-visible { outline: 2px solid #e8a33d; outline-offset: 3px; }
button.primary { color: #141414; border-color: #e8a33d; background: #e8a33d; }
button.primary:hover { background: #f4be6a; }
/* Quiet marks: a bare Lucide glyph about the wordmark's height, inside an invisible 44 px tap area. */
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; pointer-events: auto; }
.icon-button:hover { border: 0; background: rgba(11,14,12,.35); }
.icon-button img { width: 24px; height: 24px; filter: invert(1) drop-shadow(0 1px 3px #000); }
#menu-button { margin-right: -10px; }
/* Sound sits bottom right, where people expect a mute control. */
#speaker { position: absolute; z-index: 5; right: calc(max(28px, env(safe-area-inset-right)) - 10px); bottom: calc(22px + env(safe-area-inset-bottom)); }
#site-menu { position: absolute; z-index: 6; top: calc(max(24px, env(safe-area-inset-top)) + 34px); right: max(28px, env(safe-area-inset-right)); display: flex; flex-direction: column; min-width: 230px; padding: 8px; background: rgba(14,15,15,.95); border: 1px solid #2a2b2b; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
#site-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: #f2eee6; font: 500 15px "Plex Sans", sans-serif; text-decoration: none; }
#site-menu a:hover { background: rgba(242,238,230,.08); color: #f4be6a; }
#site-menu a:focus-visible { outline: 2px solid #e8a33d; outline-offset: -2px; }
#site-menu a:first-child { color: #e8a33d; }
/* For a returning visitor, a small link past the story, bottom left. */
#skip-story { position: absolute; z-index: 4; left: max(28px, env(safe-area-inset-left)); bottom: calc(22px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; min-height: 44px; color: #f2eee6; font: 500 11px "Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; text-underline-offset: 4px; text-shadow: 0 1px 3px #000; }
#skip-story:hover { color: #f4be6a; }
#sound-gate { position: absolute; z-index: 5; bottom: calc(30px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 9px 12px 9px 18px; background: rgba(11,14,12,.9); border: 1px solid #3a3b3b; border-radius: 5px; }
#sound-gate span { margin-right: 6px; }
#caption { position: absolute; z-index: 3; left: 28px; bottom: 28px; width: min(350px, calc(100vw - 56px)); padding: 16px 18px; background: rgba(11,14,12,.82); border-radius: 4px; }
#caption-eyebrow { color: #e8a33d; text-transform: uppercase; font: 500 11px "Plex Mono", monospace; letter-spacing: .08em; }
#caption-line { margin: 8px 0; font-size: 20px; line-height: 1.2; font-weight: 600; }
#caption-sentence { margin: 0; color: #c9c5bd; font-size: 14px; line-height: 1.45; }
/* The story's progress row sits in the masthead, centred between the wordmark and the menu and level
   with both (owner, 2026-10-18); the masthead's 44 px menu button sets its middle. */
#scene-steps { position: absolute; z-index: 4; left: 50%; top: calc(max(24px, env(safe-area-inset-top)) + 22px); transform: translate(-50%, -50%); display: flex; margin: 0; padding: 0; list-style: none; white-space: nowrap; font: 500 13px "Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 2px #0b0e0c, 0 0 10px rgba(11,14,12,.9), 0 0 18px rgba(11,14,12,.6); pointer-events: none; }
/* The current scene is pure white and the rest well dimmed, so the active one is plain at a glance (owner). */
#scene-steps li { color: rgba(242,238,230,.34); transition: color .3s ease; }
#scene-steps li + li::before { content: "·"; margin: 0 .9em; color: rgba(242,238,230,.34); }
#scene-steps li[aria-current] { color: #fff; }
/* Too narrow for the row between the wordmark and the menu: it gets its own line just below them. */
@media (max-width: 720px) {
  #scene-steps { top: calc(max(24px, env(safe-area-inset-top)) + 58px); transform: translateX(-50%); font-size: 11px; letter-spacing: .1em; }
  #scene-steps li + li::before { margin: 0 .6em; }
}
/* Centred on the same line as Skip the story and the sound button: both are 44 px tall, 22 px up. */
#scroll-hint { position: absolute; z-index: 4; bottom: calc(44px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 50%); padding: 8px 12px; background: rgba(11,14,12,.7); font: 500 11px "Plex Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
#next { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: calc(28px + env(safe-area-inset-bottom)); }
#dev { position: absolute; z-index: 6; right: 12px; bottom: 12px; padding: 5px 7px; background: rgba(11,14,12,.9); font: 11px "Plex Mono", monospace; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  #masthead { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); }
  #sound-gate { bottom: calc(24px + env(safe-area-inset-bottom)); width: calc(100vw - 32px); max-width: 370px; flex-wrap: wrap; justify-content: center; white-space: normal; gap: 8px; }
  #sound-gate span { width: 100%; text-align: center; }
  #caption { left: 16px; bottom: 16px; width: min(310px, calc(100vw - 32px)); }
  /* On a phone the bottom row already holds Skip the story and the sound button, so the hint sits just above it. */
  #scroll-hint { bottom: calc(68px + env(safe-area-inset-bottom)); transform: translateX(-50%); }
  #scene-steps { top: calc(max(16px, env(safe-area-inset-top)) + 54px); }
  #next { bottom: calc(24px + env(safe-area-inset-bottom)); }
  #speaker { right: calc(max(16px, env(safe-area-inset-right)) - 10px); bottom: calc(16px + env(safe-area-inset-bottom)); }
  #site-menu { right: max(16px, env(safe-area-inset-right)); top: calc(max(16px, env(safe-area-inset-top)) + 34px); }
  #skip-story { left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  #dev { bottom: auto; top: 68px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { #room, #screen-well, #board, #phone-screen { will-change: auto; } }

.privacy-page { min-height: 100vh; }
.privacy-copy { max-width: 760px; padding-top: 80px; padding-bottom: 120px; font-size: 17px; line-height: 1.65; }
.privacy-copy h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 36px; }
/* The page-below reset (#page-below p) would otherwise remove the gaps between paragraphs. */
#page-below .privacy-copy p { margin: 0 0 24px; }
#page-below .privacy-copy a { color: #9a5f0c; text-underline-offset: 3px; }

/* The ordinary page starts after the sticky story has left the viewport. */
/* "only light" stops a TV browser's automatic dark mode from recoloring the warm light page (owner, 2026-10-17). */
#page-below { background: #f6f3ec; color: #1c1b19; color-scheme: only light; }
#page-below .page-wrap { width: min(100%, 1200px); margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
#page-below a { color: inherit; }
#page-below a:hover { color: #9a5f0c; }
#page-below a:focus-visible, #page-below button:focus-visible, #page-below input:focus-visible { outline: 3px solid #b06f12; outline-offset: 3px; }
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; }
.page-logo, .page-footer img { display: block; width: 132px; }
.page-logo img { display: block; width: 100%; height: auto; }
.page-header nav, .page-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.page-header nav a, .page-footer nav a, .page-footer nav span { display: inline-flex; min-height: 44px; align-items: center; padding: 10px; text-decoration: none; }
.page-header nav a { font-size: 15px; font-weight: 600; }
.page-eyebrow, .vocabulary dt, .invite-field label, .step-number { font: 500 11px "Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.page-eyebrow { color: #6b665d; }
#page-below h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.01em; }
#page-below h3 { margin: 0; font-size: 22px; line-height: 1.2; }
#page-below p { margin: 0; color: #4a4741; }
.page-opening { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 48px 96px; }
.opening-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
#page-below .page-display-heading { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.02em; }
.opening-copy p { max-width: 34em; font-size: 19px; line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.page-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 10px; font-size: 16px; font-weight: 600; text-decoration: none; }
#page-below .page-primary { background: #e8a33d; color: #141414; }
#page-below .page-primary:hover { background: #f4be6a; color: #141414; }
.page-secondary { border: 1px solid #b9b2a2; }
.opening-figure { flex: 1 1 520px; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.teak-frame { width: 100%; padding: 8px; background: #7a5233; border-radius: 3px; box-shadow: 0 24px 48px #1c1b1938; }
.page-board { display: block; width: 100%; aspect-ratio: 27 / 15; background: #050606; }
/* The eyebrow spans the section; the heading and the Snack / Pack / Spread cards start together beneath it. */
.page-why { display: flex; flex-direction: column; gap: 16px; padding-block: 96px; border-top: 1px solid #ddd8cc; }
.why-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; }
.why-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.why-copy p, .page-405 p { font-size: 18px; line-height: 1.6; }
#page-below .why-last { color: #1c1b19; font-weight: 600; }
.vocabulary { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.vocabulary > div { padding: 22px 24px; border-radius: 14px; background: #ede9df; }
.vocabulary dt { margin-bottom: 6px; color: #9a5f0c; }
.vocabulary dd { margin: 0; font-size: 17px; line-height: 1.5; }
.page-tabs { background: #ede9df; }
.page-tabs .page-wrap { padding-block: 96px; }
.page-tabs h2, .page-how h2 { margin-top: 12px !important; }
.tab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.tab-grid article { min-width: 0; padding: 24px; border: 1px solid #d8d3c7; border-radius: 16px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.tab-grid article .page-eyebrow { color: #9a5f0c; }
.tab-grid p { font-size: 16px; line-height: 1.5; }
.tab-grid p + p, .page-how li p + p { margin-top: 4px; }
.page-405 { background: #0b0e0c; color: #f2eee6; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 96px; }
.band-inner > div { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.page-405 .page-eyebrow { color: #e8a33d; }
#page-below .page-405 p { color: #c9c5bd; }
.band-inner canvas { flex: 1 1 560px; min-width: 0; max-width: 100%; }
.page-how { padding-block: 96px; }
.page-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 32px 0 0; padding: 0; }
.page-how li { min-width: 0; border-top: 1px solid #d2ccbe; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.step-number { color: #9a5f0c; font-size: 28px; }
.page-how li p { font-size: 16px; line-height: 1.55; }
.page-invite { padding-bottom: 96px; }
.invite-card { border: 1px solid #d8d3c7; border-radius: 20px; background: #fff; padding: 56px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.invite-card > p { max-width: 32em; font-size: 18px; line-height: 1.55; }
.invite-card form { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 12px; width: min(100%, 520px); margin-top: 8px; }
.invite-field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.invite-field label { color: #6b665d; }
.invite-field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cfc9bb; border-radius: 10px; background: #f6f3ec; font: 16px "Plex Sans", sans-serif; }
.invite-card button { min-height: 48px; border: 0; border-radius: 10px; padding-inline: 22px; background: #e8a33d; color: #141414; font: 600 16px "Plex Sans", sans-serif; }
.invite-card button:disabled, .invite-field input:disabled { opacity: .55; cursor: not-allowed; }
#page-below .invite-note { margin-top: 4px; color: #6b665d; font-size: 14px; }
.invite-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#page-below .invite-status { font-size: 16px; line-height: 1.5; }
#page-below .invite-signin { font-size: 15px; }
.invite-signin a { font-weight: 600; }
.page-footer { border-top: 1px solid #ddd8cc; }
.page-footer .page-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px 40px; }
.page-footer .page-wrap > div { display: flex; flex-direction: column; gap: 10px; }
.page-footer nav { font-size: 14px; }
.page-footer nav span { color: #6b665d; }
@media (max-width: 900px) { .tab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-how ol { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  #page-below .page-wrap { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .page-header { padding-block: 16px; }
  .page-header nav { width: 100%; justify-content: space-between; }
  .page-opening { gap: 40px; padding-block: 48px 72px; }
  /* The two opening buttons share the full width, like the text above them; on a very narrow phone
     they stack, each full width (owner, 2026-10-18). */
  .page-actions .page-button { flex: 1 1 auto; }
  .page-why, .page-tabs .page-wrap, .band-inner, .page-how { padding-block: 72px; }
  .page-invite { padding-bottom: 72px; }
  .tab-grid { grid-template-columns: 1fr; }
  .opening-figure figcaption { text-align: center; }
  .invite-card { padding: 40px 20px; }
  .invite-card button { width: 100%; }
}
