@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: 1180px; margin: 0 auto; padding: 0 24px 64px; min-height: 100dvh; display: flex; flex-direction: column; }
@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; }
.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 { flex: 1; display: grid; align-content: center; gap: 28px; padding-block: 56px 64px; min-width: 0; }
.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;
}
@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; }
}
: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; }
.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; }
@media (max-width: 640px) { .stage { padding: 10px 8px; border-radius: 6px; } }
.replay { margin: 0; color: var(--t-fg); font: 400 min(15px, calc((min(100vw, 1180px) - 82px) / 60.5))/1.18 var(--mono); white-space: pre; transition: color 240ms ease-out; }
.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: #FFD27A; }
.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: #FFD27A; } .bg-accent { background: var(--t-accent); }

/* The hero: the line and the strike, side by side on a wide screen. */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.hero-text { display: grid; gap: 20px; min-width: 0; }
.strike { display: block; width: 100%; height: 300px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .strike { height: 220px; order: -1; } }

/* Install: one row for each command, each with its copy button. */
.install { display: grid; gap: 10px; max-width: 760px; }
.install h2 { margin: 0; }
.cmd { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; box-shadow: 0 0 0 1px var(--hair-strong); background: var(--stage); min-width: 0; }
.cmd .micro { width: 34px; flex: none; }
.cmd code { flex: 1; min-width: 0; font: 400 14px/20px var(--mono); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.soon { flex: none; 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; }
.copy { flex: none; height: 30px; padding: 0 12px; border: 0; border-radius: 4px; background: none; box-shadow: 0 0 0 1px var(--hair-strong); color: var(--fg); font: 500 12px/1 var(--sans); cursor: pointer; transition: box-shadow 180ms ease-out, color 180ms ease-out; }
.copy:hover { box-shadow: 0 0 0 1px var(--primary); }
.copy:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.copy[data-done] { color: var(--primary); }
.copied { margin: 0; min-height: 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { .cmd { flex-wrap: wrap; } .cmd code { flex-basis: 100%; order: 3; font-size: 12px; white-space: normal; overflow-wrap: anywhere; } }

/* 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; } }
.links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
