@import '@fontsource-variable/hanken-grotesk'; @import '@fontsource-variable/lilex'; /* ── tokens ─────────────────────────────────────────────────── */ :root { /* stark near-mono grounds; same starkness both schemes */ --ground: #ffffff; --ink: #111111; --ink-dim: #575757; --rule: #111111; --raised: #f4f4f2; /* the one working accent: a theme token by design — a publisher's site.standard.theme.basic accent/accentForeground can drive these per-project (PRODUCT.md brand commitment) */ --accent: #2222ee; --accent-fg: #ffffff; /* semantic verification colors: fact, not brand */ --ok: #0a7d33; --bad: #c11919; --warn: #8a5f00; --font: 'Hanken Grotesk Variable', system-ui, sans-serif; --mono: 'Lilex Variable', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; --measure: 68ch; --gutter: clamp(1rem, 4vw, 2.5rem); } @media (prefers-color-scheme: dark) { :root { --ground: #0c0c0c; --ink: #f2f2f2; --ink-dim: #a3a3a3; --rule: #f2f2f2; --raised: #171717; --accent: #5555ff; --accent-fg: #ffffff; --ok: #46c876; --bad: #ff6060; --warn: #e0a83a; } } /* ── base ───────────────────────────────────────────────────── */ * { box-sizing: border-box; margin: 0; } html { color-scheme: light dark; /* short and tall pages coexist behind one tab bar: hold the scrollbar's gutter so the centered frame never shifts */ scrollbar-gutter: stable; } body { background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; } a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } a:hover { color: var(--accent); } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } code, pre { font-family: var(--mono); font-size: 0.875em; } ::selection { background: var(--accent); color: var(--accent-fg); } /* ── view transitions ───────────────────────────────────────── */ /* navigations swap instantly — no page crossfade; the one element that travels is a tab bar's active rule, gliding its baseline */ ::view-transition-old(root), ::view-transition-new(root) { animation: none; } ::view-transition-group(*) { animation-duration: 200ms; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); } /* ── shared type voices ─────────────────────────────────────── */ .display { font-weight: 900; letter-spacing: -0.02em; line-height: 0.95; font-size: clamp(2.75rem, 9vw, 6rem); overflow-wrap: anywhere; } .display-sub { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(1.5rem, 4vw, 2.25rem); } .label { font-weight: 700; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; } .dim { color: var(--ink-dim); } /* fat rule: the one structural ornament */ .rule-fat { border: 0; border-top: 4px solid var(--rule); } /* ── the prose voice ──────────────────────────────────────────── Long-form reading, shared by docs pages and changelog surfaces: one typographic ramp, one list indent, book-ruled tables. The pipelines differ (built markdown vs sanitized publisher HTML); the reading voice does not. */ .prose { max-width: var(--measure); font-size: 1.125rem; } .prose p { margin-bottom: 1rem; } .prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; } .prose h1 { font-size: 1.5rem; margin: 3rem 0 1rem; } .prose h2 { font-size: 1.25rem; margin: 2.75rem 0 0.9rem; } .prose h3, .prose h4 { font-size: 1.125rem; margin: 2.25rem 0 0.8rem; } /* a document that opens with a heading binds to the page title above it rather than floating below a gap */ .prose :is(h1, h2, h3, h4):first-child { margin-top: 0; } .prose ul, .prose ol { margin: 0 0 1rem; padding-left: 2rem; } .prose li { margin-bottom: 0.35rem; } .prose code { background: var(--raised); padding: 0.1rem 0.35rem; /* long at-uris and front-door URLs wrap rather than pan */ overflow-wrap: anywhere; } .prose pre { background: var(--raised); padding: 0.8rem 1rem; overflow-x: auto; margin-bottom: 1rem; } .prose pre code { background: none; padding: 0; overflow-wrap: normal; } .prose blockquote { border-left: 1px solid var(--rule); padding-left: 1rem; margin: 0 0 1rem; color: var(--ink-dim); } .prose hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; } .prose img { max-width: 100%; } /* book rules, not ledger rules: prose tables are reading furniture — one rule under the header, one closing the table, and the raised wash tracks rows without ink */ .prose table { border-collapse: collapse; margin-bottom: 1rem; font-size: 1rem; } .prose th { text-align: left; font-weight: 800; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--rule); padding: 0.4rem 1.25rem 0.4rem 0.5rem; } .prose td { padding: 0.5rem 1.25rem 0.5rem 0.5rem; vertical-align: baseline; } .prose tbody tr:nth-child(even) td { background: var(--raised); } .prose tbody tr:last-child td { border-bottom: 1px solid var(--rule); } .prose a { color: inherit; } .prose strong { font-weight: 800; } /* data sets its figures */ .nums { font-variant-numeric: tabular-nums; } /* drawn state square: an element, not a glyph */ .sq { display: inline-block; width: 0.55em; height: 0.55em; background: currentColor; vertical-align: baseline; margin-right: 0.35em; } .sq.hollow { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; } /* details affordance drawn in the rule language: an outline square that fills when open */ details.drawn > summary { list-style: none; cursor: pointer; font-weight: 700; } details.drawn > summary::-webkit-details-marker { display: none; } details.drawn > summary::before { content: ''; display: inline-block; width: 0.6em; height: 0.6em; box-shadow: inset 0 0 0 1.5px currentColor; margin-right: 0.5em; transition: background 120ms ease-out; } details.drawn[open] > summary::before { background: currentColor; }