/* Typeset — the stage, and the few styles the demo and the previews use. The engine needs the stage's box and nothing else. */
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/IBMPlexMono-500.woff2") format("woff2"); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--deep); color-scheme: dark; }
html, body { overflow-x: clip; }
body { min-height: 100svh; color: var(--ink); background: var(--deep); font: 300 17px/1.6 var(--sans); }
button { font: inherit; color: inherit; }
.stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--deep); touch-action: pan-y; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.preview .stage { height: min(72vh, 640px); min-height: 420px; }
.note { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 6px 10px; background: rgba(6,7,11,.78); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); pointer-events: none; }
.eyebrow { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glow); }
.sheet { width: min(100%, 1180px); margin: 0 auto; padding: 40px clamp(18px, 4vw, 48px) 60px; display: grid; gap: 14px; }
.sheet h1 { font: 300 clamp(28px, 4vw, 48px)/.95 var(--sans); letter-spacing: -.035em; }
.sheet p { max-width: 640px; color: #c3cbd3; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 6px; }
.swatch { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; align-items: center; padding: 8px; border: 1px solid #1e242e; border-radius: 4px; }
.swatch i { display: block; width: 34px; height: 34px; border-radius: 3px; background: var(--value); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.swatch b { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .04em; }
.swatch span { display: block; font: 400 10px/1.3 var(--mono); color: var(--ink-soft); }
.specimen { display: grid; gap: 18px; }
.specimen .display { font: 300 clamp(40px, 6vw, 72px)/.95 var(--sans); letter-spacing: -.035em; }
.specimen .body { font: 300 17px/1.6 var(--sans); max-width: 560px; }
.specimen .label { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glow); }
.specimen .caption { font: 400 12px/1.6 var(--mono); color: var(--ink-soft); }
a { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .stage canvas { cursor: default; } }
