@font-face { font-family: "Plex Sans"; src: url(assets/fonts/plex-sans-var.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(assets/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(assets/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
/* Dark is the default. app.js sets data-theme before first paint; without
   script the page follows the system. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0D0A; --fg: #EBE6DC; --muted: #A69D8D; --faint: #918770;
  --hair: rgba(232,214,176,.085); --hair-soft: rgba(232,214,176,.045); --hair-strong: rgba(232,214,176,.16);
  --primary: #C3A56A; --striker: #5A4128;
  --box-top: #3A3328; --box-left: #1C1914; --box-right: #2A251D; --box-edge: rgba(232,214,176,.3); --tray: #15120E; --stick: #C9A877;
  --sans: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { color-scheme: light; --bg: #F5F1E7; --fg: #1C1813; --muted: #5F5A4C; --faint: #6C6352;
    --hair: rgba(120,96,44,.12); --hair-soft: rgba(120,96,44,.055); --hair-strong: rgba(120,96,44,.22); --primary: #9A7B3F; --striker: #8C6A43;
    --box-top: #EFE9DC; --box-left: #CFC6AF; --box-right: #DED6C3; --box-edge: rgba(120,96,44,.4); --tray: #C4BAA2; --stick: #B8925B; }
}
:root[data-theme="light"] { color-scheme: light; --bg: #F5F1E7; --fg: #1C1813; --muted: #5F5A4C; --faint: #6C6352;
  --hair: rgba(120,96,44,.12); --hair-soft: rgba(120,96,44,.055); --hair-strong: rgba(120,96,44,.22); --primary: #9A7B3F; --striker: #8C6A43;
  --box-top: #EFE9DC; --box-left: #CFC6AF; --box-right: #DED6C3; --box-edge: rgba(120,96,44,.4); --tray: #C4BAA2; --stick: #B8925B; }
body { transition: background-color 240ms ease-out, color 240ms ease-out; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 14px/20px var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 24px 64px; }
/* The first screen: the header, the hero, and the invite to scroll. */
.screen { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 20px; border-bottom: 1px solid var(--hair-soft); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.topnav .icon { display: grid; place-items: center; min-width: 40px; min-height: 40px; color: var(--faint); text-decoration: none; transition: color 160ms ease-out; }
.topnav .icon:hover { color: var(--primary); }
.topnav .icon svg { width: 20px; height: 20px; fill: currentColor; }
.topnav .app { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; padding: 7px 13px; border-radius: 999px; color: var(--bg); background: var(--primary); text-decoration: none; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transition: filter 160ms ease-out; }
.topnav .app:hover { filter: brightness(1.08); }
.topnav .app svg { width: 13px; height: 13px; fill: currentColor; }
/* Phones: keep the app CTA + the match toggle; GitHub/Discord stay in the footer. */
@media (max-width: 640px) { .topnav .icon { display: none; } }
@media (max-width: 400px) { .topnav .app .label { display: none; } .topnav .app { padding: 7px 10px; } }
.brand .mark { width: 30px; height: auto; }
.mark .top { fill: var(--box-top); } .mark .left { fill: var(--box-left); } .mark .right { fill: var(--box-right); }
.mark .tray { fill: var(--tray); } .mark .strike { fill: var(--striker); stroke: none; }
.mark path { stroke: var(--box-edge); stroke-width: .6; stroke-linejoin: round; transition: fill 240ms ease-out; }
.mark .stick { stroke: var(--stick); stroke-width: 1.4; stroke-linecap: round; } .mark .head { fill: var(--primary); }
.brand b { font-weight: 600; letter-spacing: -.01em; }

/* The matchbox switch */
.match { border: 0; background: none; padding: 0; margin: -4px -6px; cursor: pointer; color: var(--faint); display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.match:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.match svg { overflow: visible; }
.match .sleeve { fill: var(--bg); stroke: currentColor; stroke-width: 2.5; transition: fill 240ms ease-out; }
.match .striker { stroke: none; }
.match .grit { fill: var(--striker); }
.match .drawer { transform-box: view-box; }
.match .drawer rect { fill: var(--bg); stroke: currentColor; stroke-width: 2; }
.match .m { transform-box: view-box; transform-origin: 0 0; }
.match .stick { stroke: #C9A877; stroke-width: 3; stroke-linecap: round; }
.match .head { fill: #9E3B24; }
.match .flame { transform-box: fill-box; transform-origin: 0% 50%; }
.match .fire { fill: #E8822E; }
.match .core { fill: #FFD27A; }
.match .lit .fire, .match .lit .core { animation: flicker 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 50%; }
.match .lit .core { animation-duration: 1.1s; }
@keyframes flicker { 0%,100% { transform: scale(1,1) } 25% { transform: scale(1.06,.92) } 50% { transform: scale(.95,1.06) } 75% { transform: scale(1.04,.96) } }
.match .halo { opacity: 0; transition: opacity 240ms ease-out; }
.match .lit .halo { opacity: 1; animation: halo 1.6s ease-in-out infinite; }
@keyframes halo { 50% { opacity: .75 } }
.match .glow-in { stop-color: #E8822E; stop-opacity: .45; }
.match .glow-out { stop-color: #E8822E; stop-opacity: 0; }
.match .spark { opacity: 0; transform-box: fill-box; transform-origin: center; stroke: #FFD27A; stroke-width: 1.6; stroke-linecap: round; }
.match .smoke { opacity: 0; fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; transform-box: fill-box; }
.match:hover .sleeve { stroke: var(--primary); }
main { display: grid; gap: 28px; padding-block: 8px 64px; min-width: 0; scroll-margin-top: 24px; }
#console { scroll-margin-top: 24px; }
.micro { font: 500 11px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.micro.lead { color: var(--primary); }
h1 { margin: 0; font-size: clamp(40px, 6vw, 66px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.sub { margin: 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.35; color: var(--muted); max-width: 46ch; }
.motto { margin: 12px 0 0; color: var(--muted); font-style: italic; }
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 4px; transition: text-decoration-color 180ms ease-out; }
a:hover { text-decoration-color: var(--primary); }
.go { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none; justify-self: start; }
.go b { font-weight: 500; text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 4px; transition: text-decoration-color 180ms ease-out; }
.go:hover b { text-decoration-color: var(--primary); }
.go span { color: var(--faint); transition: transform 180ms ease-out, color 180ms ease-out; }
.go:hover span { transform: translateX(3px); color: var(--primary); }
footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--hair-soft); color: var(--faint); font-size: 12px; line-height: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* The replay: frames of the real console, drawn in the theme's tokens. */
:root, :root[data-theme="dark"] {
  --stage: #0B0A08;
  --t-bg: #0F0D0A; --t-fg: #EBE6DC; --t-muted: #A69D8D; --t-faint: #776F60; --t-hair: #2E2921; --t-accent: #C3A56A; --t-wash: #221D14; --t-warn: #B98F44; --t-neg: #B0563F;
  --t-mark-top: #3A3328; --t-mark-left: #1C1914; --t-mark-right: #2A251D; --t-mark-tray: #15120E; --t-mark-striker: #5A4128; --t-mark-stick: #C9A877;
  --t-flame-amber: #F5A54A; --t-flame-core: #FFD27A; --t-match-head: #C2452D; --t-match-ember: #9C5A46; --t-match-breath-1: #9E3A26; --t-match-breath-2: #7A2F1F; --t-match-breath-3: #572318;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { --stage: #FBF8F0;
    --t-bg: #F5F1E7; --t-fg: #1C1813; --t-muted: #5F5A4C; --t-faint: #8A8170; --t-hair: #DDD5C3; --t-accent: #9A7B3F; --t-wash: #ECE3CF; --t-warn: #8A6420; --t-neg: #9E4A34;
    --t-mark-top: #EFE9DC; --t-mark-left: #CFC6AF; --t-mark-right: #DED6C3; --t-mark-tray: #C4BAA2; --t-mark-striker: #8C6A43; --t-mark-stick: #B8925B;
    --t-flame-amber: #DF8E2C; --t-flame-core: #D69A2A; --t-match-head: #B23A24; --t-match-ember: #9E5E4A; --t-match-breath-1: #BF5F4B; --t-match-breath-2: #CD8372; --t-match-breath-3: #DAA899; }
}
:root[data-theme="light"] { --stage: #FBF8F0;
  --t-bg: #F5F1E7; --t-fg: #1C1813; --t-muted: #5F5A4C; --t-faint: #8A8170; --t-hair: #DDD5C3; --t-accent: #9A7B3F; --t-wash: #ECE3CF; --t-warn: #8A6420; --t-neg: #9E4A34;
  --t-mark-top: #EFE9DC; --t-mark-left: #CFC6AF; --t-mark-right: #DED6C3; --t-mark-tray: #C4BAA2; --t-mark-striker: #8C6A43; --t-mark-stick: #B8925B;
  --t-flame-amber: #DF8E2C; --t-flame-core: #D69A2A; --t-match-head: #B23A24; --t-match-ember: #9E5E4A; --t-match-breath-1: #BF5F4B; --t-match-breath-2: #CD8372; --t-match-breath-3: #DAA899; }
.stage { background: var(--stage); border-radius: 8px; box-shadow: 0 0 0 1px var(--hair-strong); padding: 18px 16px; overflow: hidden; display: grid; justify-content: center; justify-items: center; gap: 14px; }
@media (max-width: 640px) { .stage { padding: 10px 8px; border-radius: 6px; } }
/* The stage is an iPhone Duo. --w is one half's screen: folded the phone's
   44 columns fill it, open the duo's 104 run across two of it, so it opens
   to about the same height, as the Duo does. On a narrow page the open Duo
   shrinks to fit rather than scroll. */
.fold { --w: min(340px, calc(100vw - 92px)); --gut: 12px; --swing: 620ms cubic-bezier(.2,.7,.2,1); position: relative; perspective: 2200px; border-radius: 34px; display: grid; align-content: center; justify-items: center; }
.fold.open { --w: min(340px, calc((100vw - 92px) / 2)); }
.fold[role="button"] { cursor: pointer; }
.fold:focus-visible { outline: 2px solid var(--primary); outline-offset: 6px; }
.fold .body { position: relative; width: calc(var(--w) + 2 * var(--gut) + 2px); background: var(--box-left); border: 1px solid var(--box-edge); border-radius: 34px; padding: 30px var(--gut) 22px; transition: width var(--swing); }
.fold.open .body { width: calc(2 * var(--w) + 2 * var(--gut) + 2px); }
.fold .body::before { content: ""; position: absolute; top: 12px; left: calc(var(--w) / 2 + var(--gut) - 30px); width: 60px; height: 9px; border-radius: 6px; background: var(--tray); transition: left var(--swing); }
.fold.open .body::before { left: calc(var(--w) * 1.5 + var(--gut) - 30px); }
.fold .hinge { position: absolute; top: 0; bottom: 0; left: calc(var(--w) + var(--gut)); width: 2px; margin-left: -1px; background: linear-gradient(transparent, rgba(0,0,0,.35) 8%, rgba(0,0,0,.35) 92%, transparent); opacity: 0; transition: opacity 300ms 400ms; pointer-events: none; }
.fold.open .hinge { opacity: 1; }
/* The back half swings out from behind the hinge while it opens. */
.fold .leaf { position: absolute; top: -1px; bottom: -1px; left: calc(var(--w) + 2 * var(--gut) - 1px); width: calc(var(--w) + var(--gut)); background: var(--box-left); border: 1px solid var(--box-edge); border-left: 0; border-radius: 0 34px 34px 0; transform-origin: 0 50%; transform: rotateY(-180deg); opacity: 0; pointer-events: none; }
.fold.swinging .leaf { opacity: 1; transition: transform var(--swing); }
.fold.swinging.open .leaf { transform: none; }
.fold .glass { border-radius: 20px; overflow: hidden; background: var(--t-bg); }
.replay { --cols: 44; margin: 0; color: var(--t-fg); font: 400 calc(var(--w) / (var(--cols) * .605))/1.18 var(--mono); white-space: pre; text-rendering: geometricPrecision; transition: color 240ms ease-out, opacity 180ms ease-out; }
.fold.open .replay { --cols: 52; }
/* On a wide screen the box opens larger, so the console fills the room. */
@media (min-width: 1100px) { .fold { --w: 420px; } }
.fold.fading .replay { opacity: 0; }
.say { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 640px) { .fold, .fold .body { border-radius: 26px; } .fold .leaf { border-radius: 0 26px 26px 0; } .fold .body { padding-block: 24px 16px; } }
@media (prefers-reduced-motion: reduce) { .fold .body, .fold .body::before, .fold .hinge, .fold .leaf, .replay { transition: none; } }
/* On a phone the open Duo cannot be wider than the page: folded, the phone
   leaves room, so that opening still widens it. */
@media (max-width: 640px) { .fold { --w: min(340px, calc(100vw - 124px)); } .fold.open { --w: calc((100vw - 92px) / 2); } }
/* Folded · Open: the switch under a Duo, for whoever does not tap the device. */
.foldswitch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.foldswitch button { appearance: none; border: 0; background: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 11px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color 180ms ease-out, background-color 180ms ease-out; }
.foldswitch button:hover { color: var(--fg); }
.foldswitch button[aria-pressed="true"] { color: var(--bg); background: var(--primary); }
.foldswitch svg { width: 18px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.foldswitch button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.foldswitch[hidden], .steps[hidden], .keypad[hidden] { display: none; }
.replay .cell { display: inline-block; width: 1ch; overflow: visible; text-align: center; }
.replay .u .cell { text-decoration: underline; text-underline-offset: .2em; }
.replay .b { font-weight: 500; } .replay .u { text-decoration: underline; text-underline-offset: .2em; }
.fg-fg { color: var(--t-fg); } .fg-muted { color: var(--t-muted); } .fg-faint { color: var(--t-faint); } .fg-hair { color: var(--t-hair); }
.fg-accent { color: var(--t-accent); } .fg-warn { color: var(--t-warn); } .fg-neg { color: var(--t-neg); } .fg-bg { color: var(--t-bg); }
.fg-mark-top { color: var(--t-mark-top); } .fg-mark-left { color: var(--t-mark-left); } .fg-mark-right { color: var(--t-mark-right); }
.fg-mark-tray { color: var(--t-mark-tray); } .fg-mark-striker { color: var(--t-mark-striker); } .fg-mark-stick { color: var(--t-mark-stick); }
.fg-flame { color: #E8822E; } .fg-flame-core { color: var(--t-flame-core); } .fg-flame-amber { color: var(--t-flame-amber); }
.fg-match-head { color: var(--t-match-head); } .fg-match-ember { color: var(--t-match-ember); }
.fg-match-breath-1 { color: var(--t-match-breath-1); } .fg-match-breath-2 { color: var(--t-match-breath-2); } .fg-match-breath-3 { color: var(--t-match-breath-3); }
.bg-wash { background: var(--t-wash); } .bg-bg { background: var(--t-bg); }
.bg-mark-top { background: var(--t-mark-top); } .bg-mark-left { background: var(--t-mark-left); } .bg-mark-right { background: var(--t-mark-right); }
.bg-mark-tray { background: var(--t-mark-tray); } .bg-mark-striker { background: var(--t-mark-striker); } .bg-mark-stick { background: var(--t-mark-stick); }
.bg-flame { background: #E8822E; } .bg-flame-core { background: var(--t-flame-core); } .bg-accent { background: var(--t-accent); }
/* The night (DESIGN §2.1): one palette in both themes. */
.fg-night-fg { color: #D9DCE3; } .fg-night-muted { color: #8E96A8; } .fg-night-faint { color: #636B7D; } .fg-night-hair { color: #1F2636; } .fg-night { color: #7C8BB0; }
.bg-night-bg { background: #0C1019; } .bg-night-wash { background: #18202F; }

/* The hero: the line and the strike, side by side on a wide screen. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(24px, 6vh, 64px); }
.hero-text { display: grid; gap: 20px; min-width: 0; }
.strike { display: block; width: 100%; height: min(58vh, 480px); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block: 8px 28px; } .strike { height: 220px; order: -1; } }

/* Install: one row for each command, each with its copy button. */
.install { display: grid; max-width: 640px; margin-top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tabs { display: flex; width: fit-content; max-width: 100%; border: 1px solid var(--hair-strong); border-bottom: 0; }
.tabs button { appearance: none; border: 0; border-right: 1px solid var(--hair-strong); background: none; padding: 9px 15px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 130ms ease, background 130ms ease; }
.tabs button:last-child { border-right: 0; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, transparent); }
.tabs button:focus-visible, .copy:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.cmd { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--hair-strong); background: var(--stage); }
.cmd code { flex: 1; min-width: 0; padding: 15px 18px; font: 400 15px/1.5 var(--mono); color: var(--fg); overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.cmd code .p { color: var(--faint); user-select: none; }
.copy { appearance: none; flex: none; border: 0; border-left: 1px solid var(--hair-strong); background: none; padding: 0 18px; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color 130ms ease; }
.copy:hover { color: var(--fg); }
.copy[data-done] { color: var(--primary); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 11px 0 0; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.meta a { color: var(--muted); text-underline-offset: .2em; }
.meta a:hover { color: var(--fg); }
.soon { font: 500 10px/14px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 2px 6px; border-radius: 3px; box-shadow: 0 0 0 1px var(--hair-strong); vertical-align: 2px; }
.copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 640px) { .tabs { width: 100%; } .tabs button { flex: 1; } .cmd code { padding: 13px 14px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; } .copy { padding: 0 14px; } }

/* Three blocks: what it does today, and what comes in v0.1. */
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.blocks > div { padding: 2px 20px; min-width: 0; }
.blocks > div:first-child { padding-left: 0; }
.blocks > div + div { border-left: 1px solid var(--hair); }
.blocks h3 { margin: 0 0 6px; font-size: 15px; line-height: 22px; font-weight: 600; }
.blocks p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .blocks { grid-template-columns: minmax(0, 1fr); row-gap: 18px; } .blocks > div { padding: 0; border-left: 0 !important; } }
.pocket { display: grid; gap: 18px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 2px 0 0; }
.cta { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; background: var(--primary); color: var(--bg); text-decoration: none; font: 500 14px/1 var(--sans); transition: filter 160ms ease-out; }
.cta:hover { filter: brightness(1.08); }
.cta svg { width: 17px; height: 17px; fill: currentColor; }
.cta-note { color: var(--faint); font: 400 13px/1.4 var(--mono); }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* The invite to scroll: a closed matchbox whose drawer slides out, as if
   to open it. One fire on the page, the hero's: this one does not burn. */
.scroll-invite { justify-self: center; display: grid; justify-items: center; gap: 10px; padding: 6px 12px 22px; color: var(--muted); text-decoration: none; font: 500 11px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.scroll-invite:hover { color: var(--fg); }
.scroll-invite:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.scroll-invite svg { display: block; overflow: visible; }
.scroll-invite .sleeve { fill: var(--box-top); stroke: var(--box-edge); stroke-width: 1; }
.scroll-invite .band { fill: var(--striker); }
.scroll-invite .tray { fill: var(--tray); stroke: var(--box-edge); stroke-width: 1; }
.scroll-invite .tip { fill: var(--t-match-head); }
.scroll-invite .drawer { animation: open-box 3.2s cubic-bezier(.45,.05,.3,1) 1.2s infinite; }
.scroll-invite:hover .drawer { animation-duration: 1.6s; }
@keyframes open-box { 0%, 18% { translate: 0 0; } 45%, 70% { translate: 0 14px; } 100% { translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .scroll-invite .drawer { animation: none; translate: 0 8px; } }
@media (max-width: 860px) { .scroll-invite { padding-top: 0; } }

/* The news line over the hero: what is new, and the way to the changelog.
   The middle span is the long headline: min-width:0 + flex so it wraps beside
   New instead of claiming a full row at its max-content width. */
.news { justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; width: fit-content; max-width: 100%; min-width: 0; padding: 6px 12px 6px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-strong); color: var(--muted); text-decoration: none; font: 400 13px/18px var(--sans); transition: box-shadow 130ms ease, color 130ms ease; }
.news:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--primary); }
.news:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.news .tag { flex: none; font: 500 10px/14px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--primary); padding: 2px 7px; border-radius: 999px; }
.news .go { flex: none; color: var(--primary); font: 500 12px/18px var(--mono); }
.news > span:not(.tag):not(.go) { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .news { border-radius: 12px; font-size: 12px; padding: 6px 10px 6px 6px; gap: 4px 8px; } }

/* The agents: one line on the first screen, then a command and the console
   row it gives for each agent. */
.works { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font: 400 13px/1.5 var(--mono); color: var(--muted); }
.works li { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); }
.works li.any { color: var(--muted); }
.logo { width: 18px; height: 18px; flex: none; fill: currentColor; }
.logo .dim { opacity: .45; }
.run figcaption .logo { width: 14px; height: 14px; color: var(--fg); }
.agents { display: grid; gap: 14px; min-width: 0; }
.agents h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; }
.agents .lede, .agents .note { margin: 0; color: var(--muted); max-width: 72ch; }
.agents .note code { font: 400 12.5px/1 var(--mono); color: var(--fg); }
.runs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .runs { grid-template-columns: minmax(0, 1fr); } }
.run { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; padding: 14px 16px; background: var(--stage); box-shadow: 0 0 0 1px var(--hair-strong); border-radius: 6px; }
.run figcaption { display: flex; align-items: center; gap: 8px; font: 500 11px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.run code { font: 400 14px/1.5 var(--mono); color: var(--fg); overflow-wrap: anywhere; }
.run code .p { color: var(--faint); user-select: none; }
.run .row { display: flex; flex-wrap: wrap; gap: 0 8px; padding-top: 8px; border-top: 1px solid var(--hair); font: 400 13px/1.6 var(--mono); color: var(--t-fg); }
.run .row > span { white-space: nowrap; }
.run .row .t { white-space: normal; flex-basis: 100%; }

/* The stoker takes orders (stoker.js): the same Duo, folded at first, six
   steps over it, the switch and the Sessions keys under it. */
.orders .stage { gap: 16px; padding-block: 20px; }
/* Its lines run to both edges: a margin keeps the glass's corners off them. */
.orders .glass { padding: 9px 8px; }
.orders .replay { font-size: calc((var(--w) - 16px) / (44 * .605)); }
.orders .fold.open .replay { font-size: calc((2 * var(--w) - 16px) / (89 * .605)); }
.orders .replay:focus-visible { outline: none; }
.orders .glass:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.orders .glass.night { background: #0C1019; }
.orders .replay [data-act] { cursor: pointer; }
.fg-dim { color: color-mix(in srgb, var(--t-fg) 28%, var(--t-bg)); }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.steps button { appearance: none; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-width: 40px; min-height: 36px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-strong); font: 500 12px/1 var(--mono); color: var(--muted); cursor: pointer; transition: color 180ms ease-out, box-shadow 180ms ease-out; }
.steps .n { color: var(--faint); }
.steps .l { margin-left: 8px; }
.steps button:hover { color: var(--fg); }
.steps button[aria-selected="true"] { color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: color-mix(in srgb, var(--primary) 11%, transparent); }
.steps button[aria-selected="true"] .n { color: var(--primary); }
.steps button:focus-visible, .keypad button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; }
.keypad { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.keypad button { appearance: none; border: 0; min-width: 36px; min-height: 36px; padding: 0 11px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair-strong); font: 500 13px/1 var(--mono); color: var(--t-accent); cursor: pointer; }
.keypad button span { margin-left: 6px; font: 400 12px/1 var(--sans); color: var(--muted); }
.keypad button:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.orders .say { max-width: 60ch; }
.orders .say b { color: var(--fg); font-weight: 600; }
/* On a phone the steps show their numbers, and the chosen one its name. */
@media (max-width: 640px) {
  .steps button { padding: 0 10px; }
  .steps button:not([aria-selected="true"]) .l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
