:root {
  --bg: #F4F2EA;
  --surface: #FBFAF5;
  --text: #16161A;
  --text-secondary: #46443E;
  --text-muted: #6B6960;
  --rule: #D8D4C7;
  --border-control: #8C897E;
  --focal-bg: #D4F25A;
  --focal-text: #16161A;
  --focal-border: #16161A;
  --highlight-text: #4A6400;
  --status-pass: #1E7A46;
  --status-fail: #B4261A;
  --status-slipping: #8F5400;
  --focus-ring: #16161A;
  --code-bg: #141418;
  --code-text: #EFEDE4;
  --code-label: #C2BFB4;
  --code-rule: #34343A;
  --code-focus: #D4F25A;
  --code-border: #141418;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141418;
    --surface: #1D1D22;
    --text: #EFEDE4;
    --text-secondary: #C2BFB4;
    --text-muted: #9A978D;
    --rule: #34343A;
    --border-control: #6E6C66;
    --focal-bg: #D4F25A;
    --focal-text: #16161A;
    --focal-border: #D4F25A;
    --highlight-text: #C9EC52;
    --status-pass: #5BC88A;
    --status-fail: #FF8A7A;
    --status-slipping: #E9A93B;
    --focus-ring: #D4F25A;
    --code-bg: #141418;
    --code-text: #EFEDE4;
    --code-label: #C2BFB4;
    --code-rule: #34343A;
    --code-focus: #D4F25A;
    --code-border: #34343A;
  }
}
/* SPDX-License-Identifier: MIT */
/* Copyright (c) 2026 Kunolu */
/* Colour variables (light, dark) are generated from docs/brand/tokens.json by build.mjs and prepended to this file. */

@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 200 800; src: url(/fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font-display: Newsreader, Georgia, serif;
  --font-sans: Geist, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  /* Selected docs link: halfway between paper and rule (board #E9E6DB), so it follows the theme. */
  --selected: color-mix(in srgb, var(--rule) 50%, var(--bg));
  color-scheme: light dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 23px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--text-secondary); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
code, pre, kbd { font-family: var(--font-mono); }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 16px; background: var(--focal-bg); color: var(--focal-text); border: 1.5px solid var(--focal-border); border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.mono-tag { font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: 0.02em; color: var(--text-muted); }
.kicker { font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: 0.04em; color: var(--text-muted); }
.icon { flex-shrink: 0; }

/* Buttons (links styled as buttons) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; font-family: var(--font-sans); font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; background: var(--surface); border: 1px solid var(--border-control); color: var(--text); }
.btn:hover { color: var(--text); background: var(--bg); }
.btn--focal { min-height: 48px; font-size: 16px; font-weight: 600; background: var(--focal-bg); border: 1.5px solid var(--focal-border); color: var(--focal-text); }
.btn--focal:hover { background: var(--focal-bg); color: var(--focal-text); }
.btn--quiet { background: transparent; border: 0; text-decoration: underline; padding: 0 8px; }
.btn--quiet:hover { background: transparent; }

/* Header */
.site-header { max-width: 1216px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 32px; }
.logo { display: flex; }
.logo img { height: 30px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 22px; flex: 1 1 300px; font-size: 15px; justify-content: flex-end; }
.site-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; }
.menu-button { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); cursor: pointer; border-radius: 6px; }

.masthead { max-width: 1152px; margin: 0 auto; border-top: 2px solid var(--text); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-secondary); letter-spacing: 0.04em; }
.header-rule { border-top: 1px solid var(--rule); }

/* Footer */
.site-footer { border-top: 2px solid var(--text); max-width: 1152px; margin: 0 auto; padding: 16px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }

/* Home */
.hero { max-width: 1216px; margin: 0 auto; padding: 56px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 64px; line-height: 68px; font-weight: 500; letter-spacing: -0.02em; max-width: 900px; }
.swipe { background: linear-gradient(transparent 14%, var(--focal-bg) 14%, var(--focal-bg) 90%, transparent 90%); padding: 0 4px; color: var(--focal-text); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .sub { font-size: 19px; line-height: 29px; color: var(--text-secondary); max-width: 640px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmd-chip { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--border-control); background: var(--surface); font-size: 14px; color: var(--text); }
.hero .note { font-size: 14px; line-height: 21px; color: var(--text-muted); max-width: 640px; }

.features { max-width: 1152px; margin: 0 auto; border-top: 1px solid var(--rule); padding: 20px 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 24px; list-style: none; }
.features li { display: flex; flex-direction: column; gap: 6px; }
.features h2 { font-size: 20px; line-height: 26px; font-weight: 600; }
.features p { font-size: 14px; line-height: 21px; color: var(--text-secondary); }

.geo { max-width: 1152px; margin: 0 auto 28px; border-top: 1px solid var(--rule); padding: 28px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.geo-copy { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.geo h2 { font-size: 26px; line-height: 30px; font-weight: 600; }
.geo p { color: var(--text-secondary); }
.geo .btn { margin-top: 6px; }

.today-box { max-width: 1152px; margin: 0 auto 40px; padding: 28px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.today-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 420px; }
.today-box h2 { font-size: 26px; line-height: 30px; font-weight: 600; }
.today-box p { font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.today-box .helper { font-size: 13px; line-height: 19px; color: var(--text-muted); }
.today-action { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Code blocks: dark in both themes (the CLI frame) */
.code { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 10px; overflow: hidden; min-width: 0; }
.code-head { display: flex; justify-content: space-between; align-items: center; min-height: 32px; padding: 4px 4px 4px 14px; border-bottom: 1px solid var(--code-rule); }
.code-label { font-family: var(--font-mono); font-size: 11px; color: var(--code-label); }
.copy-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--code-text); font: 500 13px var(--font-sans); cursor: pointer; border-radius: 6px; }
.copy-button:focus-visible { outline-color: var(--code-focus); }
.code pre { margin: 0; padding: 14px; font-size: 13px; line-height: 20px; color: var(--code-text); white-space: pre-wrap; word-break: break-word; }
.code pre code { font: inherit; }
.code--output pre { white-space: pre; word-break: normal; overflow-x: auto; }

/* Notes */
.note-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--text-secondary); border-left-width: 4px; background: var(--surface); }
.note-box > div { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.note-box strong { font-size: 15px; line-height: 21px; color: var(--text); }
.note-box p, .note-box span { font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.draft-banner { border-color: var(--status-slipping); }
.draft-banner strong { color: var(--text); }

/* Legal and docs layout */
.page { max-width: 1152px; margin: 0 auto; display: flex; gap: 48px; padding: 32px 0 48px; align-items: flex-start; }
.toc { flex: 0 0 240px; display: flex; flex-direction: column; position: sticky; top: 16px; }
.toc ol, .toc ul, .docs-nav ul, .rail ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 40px; font-size: 14px; line-height: 18px; text-decoration: none; }
.toc a[aria-current="true"] { font-weight: 600; }
.prose { display: flex; flex-direction: column; gap: 20px; min-width: 0; flex: 1; max-width: 720px; }
.prose h1 { font-size: 44px; line-height: 50px; font-weight: 500; letter-spacing: -0.015em; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.short-box { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.short-box ul { margin: 0; padding-left: 20px; }
.short-box li { padding: 6px 0; font-size: 16px; line-height: 25px; }
.legal-section { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.legal-section h2 { font-size: 22px; line-height: 28px; font-weight: 600; }
.legal-section h3 { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.legal-section p, .legal-section li { font-size: 16px; line-height: 25px; }
.legal-section ul, .legal-section ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-section code, .doc-body p code, .doc-body li code, .doc-body td code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
.placeholder { background: color-mix(in srgb, var(--status-slipping) 14%, transparent); padding: 0 3px; border-radius: 3px; }

.docs-wrap { max-width: 1216px; margin: 0 auto; display: flex; gap: 40px; padding: 24px 32px 48px; align-items: flex-start; }
.docs-nav { flex: 0 0 220px; display: flex; flex-direction: column; border-right: 1px solid var(--rule); padding-right: 12px; }
.docs-nav label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; padding: 0 12px; }
.docs-nav input { height: 44px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border-control); background: var(--surface); color: var(--text); font: 15px var(--font-sans); width: 100%; }
.docs-nav .group { padding: 16px 12px 6px; }
.docs-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; text-decoration: none; font-size: 14px; line-height: 18px; }
.docs-nav a[aria-current="page"] { background: var(--selected); font-weight: 600; }
.docs-nav .no-match { padding: 8px 12px; font-size: 13px; color: var(--text-muted); }
.docs-nav-toggle { display: none; }
.doc-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; flex: 1; max-width: 720px; }
.doc-main h1 { font-size: 44px; line-height: 50px; font-weight: 500; letter-spacing: -0.015em; }
.doc-main .lede { font-size: 17px; line-height: 27px; color: var(--text-secondary); }
.doc-body { display: flex; flex-direction: column; gap: 16px; }
.doc-body h2 { font-size: 24px; line-height: 30px; font-weight: 600; margin-top: 8px; scroll-margin-top: 16px; }
.doc-body h3 { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.doc-body p, .doc-body li { font-size: 15px; line-height: 23px; color: var(--text-secondary); }
/* Long URLs in prose (vendor docs, IP lists) wrap instead of widening the page on a phone. */
.doc-body p a, .doc-body li a, .doc-body td a { overflow-wrap: anywhere; }
.doc-body strong { color: var(--text); }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--text); }
.doc-body th { font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 400; text-transform: uppercase; }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.doc-foot .btn:only-child { margin-left: auto; }
.rail { flex: 0 0 180px; display: flex; flex-direction: column; position: sticky; top: 16px; }
.rail a { display: flex; align-items: center; min-height: 36px; font-size: 13px; line-height: 17px; color: var(--text-secondary); }

.redirect { max-width: 720px; margin: 0 auto; padding: 56px 32px; display: flex; flex-direction: column; gap: 16px; }
.redirect h1 { font-size: 44px; line-height: 50px; font-weight: 500; }

/* Narrower desktops */
@media (max-width: 1100px) {
  .rail { display: none; }
  .page, .features, .geo, .today-box, .masthead, .site-footer { margin-left: 32px; margin-right: 32px; }
  .today-box { margin-bottom: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

/* Phone (board DHomePhone at 390; works from 360) */
@media (max-width: 760px) {
  .site-header { padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--rule); justify-content: space-between; }
  .logo img { height: 22px; }
  .js .menu-button { display: flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav { flex: 1 1 100%; flex-direction: column; gap: 0; justify-content: flex-start; padding: 0 8px 8px 0; }
  .masthead, .page, .features, .geo, .today-box, .site-footer { margin-left: 16px; margin-right: 16px; }
  .hero { padding: 28px 16px; }
  .hero h1 { font-size: 42px; line-height: 46px; }
  .hero .sub { font-size: 17px; line-height: 27px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .geo { grid-template-columns: 1fr; }
  .geo .btn { width: 100%; }
  .today-box { padding: 20px; margin-bottom: 28px; }
  .today-box h2 { font-size: 22px; line-height: 30px; }
  .today-action { width: 100%; }
  .today-action .btn { width: 100%; }
  .page { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 0 40px; }
  .toc { position: static; flex: none; width: 100%; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px 4px; }
  .prose h1, .doc-main h1 { font-size: 36px; line-height: 42px; }
  .docs-wrap { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 16px 40px; }
  .docs-nav { flex: none; width: 100%; border-right: 0; padding-right: 0; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 0; }
  .js .docs-nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--text); font: 500 15px var(--font-sans); cursor: pointer; }
  .js .docs-nav-panel { display: none; }
  .js .docs-nav-panel.is-open { display: block; padding-top: 8px; }
  .doc-foot .btn { white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
