/* site.css — the miniboom website's stylesheet, shared by the docs site
   (scripts/site-server.js wraps every rendered page in it). Extracted from
   site/index.html on 2026-09-08 so the two cannot drift. */
/* Light and dark. The default follows the reader's system; the header's
   toggle (theme.js) sets data-theme on <html> to override it, so the dark
   values are written twice: once for the system, once for the choice. */
:root{
  --page:#f9f9f7; --surface:#fcfcfb; --ink:#0b0b0b; --ink-2:#52514e; --muted:#6b6a65;
  --grid:#e1e0d9; --baseline:#c3c2b7; --border:rgba(11,11,11,.10);
  --accent:#1f62b8; --aqua:#1baf7a; --yellow:#eda100; --red:#e34948; --violet:#4a3aa7;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){ --page:#0d0d0d; --surface:#1a1a19; --ink:#ffffff; --ink-2:#c3c2b7; --muted:#898781;
    --grid:#2c2c2a; --baseline:#383835; --border:rgba(255,255,255,.10);
    --accent:#3987e5; --aqua:#199e70; --yellow:#c98500; --red:#e66767; --violet:#9085e9; color-scheme:dark; }
}
:root[data-theme="dark"]{ --page:#0d0d0d; --surface:#1a1a19; --ink:#ffffff; --ink-2:#c3c2b7; --muted:#898781;
  --grid:#2c2c2a; --baseline:#383835; --border:rgba(255,255,255,.10);
  --accent:#3987e5; --aqua:#199e70; --yellow:#c98500; --red:#e66767; --violet:#9085e9; color-scheme:dark; }
*{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--ink);
  font:16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif;}
main{max-width:880px;margin:0 auto;padding:40px 24px 80px}
a{color:var(--accent)}
code{font:.9em ui-monospace,Menlo,monospace}
h2{font-size:1.5rem;margin:0 0 .4em;letter-spacing:-.01em}
section{margin:72px 0}
.kicker{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:600}

/* The two faces the site uses, self hosted (site/fonts, SIL Open Font
   License, copies beside the files). Archivo is one variable file carrying
   both the width and the weight axis; JetBrains Mono is two static weights.
   The landing page and the docs body both set them (docs.css); the landing
   page's own body rule is in landing.css. */
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;
  font-display:swap;src:url(/fonts/archivo-latin-wdth-wght.woff2) format("woff2-variations"),
  url(/fonts/archivo-latin-wdth-wght.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url(/fonts/jetbrains-mono-latin-400.woff2) format("woff2")}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:600;font-display:swap;
  src:url(/fonts/jetbrains-mono-latin-600.woff2) format("woff2")}

/* The site header: the SAME one on the home page and on every docs page, so
   that mid-scroll there is always a wordmark to go back by and a way forward.
   Since redesign v4 (round L1, 2026-11-13) it is calm chrome: one hairline
   under it, the wordmark at normal width and medium weight, quiet links, and
   the start action as an ink pill (no studs, no lip, nothing presses down).
   The brick lives in the logo only, the same small yellow brick the
   dashboard carries. The header is exactly 58px tall because the docs side
   nav sticks at that offset. Colours come from the page variables, so each
   page's own light and dark apply: the pill is the page's ink with the
   page's ground for its words, in both schemes. */
.topbar{position:sticky;top:0;z-index:30;height:58px;background:var(--page);
  border-bottom:1px solid var(--grid);font-family:"Archivo","Helvetica Neue",Arial,sans-serif}
.topbar .wrap{max-width:1160px;height:100%;margin:0 auto;padding-inline:clamp(18px,4vw,44px);
  display:flex;align-items:center;gap:22px}
.topbar .brand{display:flex;align-items:center;gap:9px;font-weight:600;font-size:17px;
  letter-spacing:-.01em;color:var(--ink);text-decoration:none;line-height:1}
.topbar .brand i{width:20px;height:15px;background:#F5B800;border-radius:3px;position:relative;
  box-shadow:0 3px 0 #C99300;margin-top:1px;flex:none}
.topbar .brand i::before{content:"";position:absolute;top:-4px;left:3px;right:3px;height:4px;
  background:repeating-linear-gradient(90deg,#F5B800 0 5px,transparent 5px 9px);border-radius:1px 1px 0 0}
.topbar nav{margin-left:auto;display:flex;gap:26px;align-items:center;font-weight:400;font-size:14px;flex-wrap:nowrap}
.topbar nav a{color:var(--ink-2);text-decoration:none;white-space:nowrap}
.topbar nav a:hover{color:var(--ink)}
.topbar nav .plate{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:999px;
  background:var(--ink);color:var(--page);font:500 14px/1 "Archivo","Helvetica Neue",Arial,sans-serif;
  transition:opacity .12s}
.topbar nav .plate:hover{color:var(--page);opacity:.86}
/* The theme toggle (round L2, theme.js): a small quiet icon button, a sun
   while the page is light and a moon while it is dark. It keeps its room
   whether or not the script ran (so nothing in the header moves when it
   does), and is shown only where it did: without a script the system theme
   applies and there is nothing to press. */
.theme-toggle{visibility:hidden;display:inline-grid;place-items:center;width:32px;height:32px;padding:0;margin:0 -6px;
  border:0;border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer;flex:none}
.tj .theme-toggle{visibility:visible}
.theme-toggle:hover{color:var(--ink);background:var(--grid)}
.theme-toggle:focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:2px;border-radius:50%}
.theme-toggle svg{width:17px;height:17px;display:block}
.theme-toggle .moon{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .theme-toggle .sun{display:none}
  :root:not([data-theme="light"]) .theme-toggle .moon{display:block}}
:root[data-theme="dark"] .theme-toggle .sun{display:none}
:root[data-theme="dark"] .theme-toggle .moon{display:block}
@media (max-width:700px){.topbar nav{gap:16px}.topbar nav a:not(.plate){display:none}}
/* A 320px phone (round B16): the wordmark and the pill both fit, so the
   page never scrolls sideways. */
@media (max-width:420px){.topbar .wrap{gap:12px;padding-inline:14px}
  .topbar nav .plate{padding:0 12px;font-size:13.5px}}
@media (max-width:360px){.topbar .wrap{gap:8px;padding-inline:10px}.topbar .brand{font-size:16px;gap:7px}
  .topbar nav .plate{padding:0 10px;font-size:12.5px}}
/* The skip link (round B16, WCAG 2.4.1): the first Tab on every page lands
   on it; it shows only while focused and jumps past the header and the side
   nav to the page's content. */
.skip{position:absolute;left:8px;top:-100px;z-index:40;padding:10px 14px;background:var(--ink);color:var(--page);
  font:500 15px/1 "Archivo","Helvetica Neue",Arial,sans-serif;border-radius:999px;text-decoration:none}
.sr-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip:focus{top:8px;outline:3px solid var(--blue,#2A78D6);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.topbar nav .plate{transition:none}}
.btn.small{padding:6px 12px;font-size:.85rem}

/* hero */
header.hero{padding:48px 0 8px;text-align:center}
header.hero h1{font-size:clamp(2rem, 5.5vw, 3.1rem);line-height:1.12;margin:.35em auto .3em;
  letter-spacing:-.02em;max-width:760px}
header.hero .lede{font-size:1.2rem;color:var(--ink-2);max-width:640px;margin:0 auto}
.ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-block;border-radius:10px;padding:12px 22px;text-decoration:none;
  font-weight:600;font-size:.95rem;border:1px solid var(--border);color:var(--ink);
  background:var(--surface);transition:transform 160ms cubic-bezier(0.23,1,0.32,1), border-color 120ms ease}
.btn:hover{border-color:var(--accent)}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover{filter:brightness(1.06)}
.hero .status{margin-top:18px;color:var(--muted);font-size:.85rem}

/* claim cards */
.claims{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:20px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px 20px 16px}
.card .n{font-weight:700;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase}
.card h3{margin:.4em 0 .3em;font-size:1.1rem}
.card p{margin:0;color:var(--ink-2);font-size:.95rem}
.card.simpler .n{color:var(--accent)} .card.smarter .n{color:var(--violet)} .card.broader .n{color:var(--aqua)}

/* decision strip */
.strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:22px 0 8px}
.strip .cell{background:var(--surface);border:1px solid var(--border);border-radius:10px;
  padding:14px;text-align:center}
.strip .q{font-weight:700;font-size:1rem}
.strip .a{color:var(--ink-2);font-size:.85rem;margin-top:4px}
.bound{border:1.5px dashed var(--yellow);border-radius:10px;padding:10px 16px;margin-top:12px;
  color:var(--ink-2);font-size:.9rem;text-align:center}
.bound b{color:var(--ink)}

/* boundary figure */
figure.split{margin:24px 0 8px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* Three planes, not two: the device, the scrubbed event, and the one thing a
   visitor hands over on purpose. */
figure.split.three{grid-template-columns:1fr 1fr 1fr}
@media (max-width:900px){figure.split.three{grid-template-columns:1fr}}
@media (max-width:640px){figure.split{grid-template-columns:1fr}}
figure.split>div{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}
figure.split h4{margin:0 0 8px;font-size:.85rem;text-transform:uppercase;letter-spacing:.06em}
figure.split .device h4{color:var(--aqua)} figure.split .server h4{color:var(--accent)}
figure.split .given h4{color:var(--yellow)}
figure.split ul{margin:0;padding-left:18px;color:var(--ink-2);font-size:.92rem}
figure.split pre{margin:0;background:transparent;color:var(--ink-2);font:12px/1.55 ui-monospace,Menlo,monospace;
  white-space:pre-wrap;word-break:break-word}
figcaption{grid-column:1/-1;color:var(--muted);font-size:.85rem;text-align:center;padding-top:6px}

.say{border-left:3px solid var(--accent);background:var(--surface);padding:14px 18px;
  margin:24px 0;border-radius:0 8px 8px 0}
.say .who{color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.say p{margin:.4em 0 0;font-size:1.05rem}

.fair{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:18px}
.fair .card h3{display:flex;gap:8px;align-items:center}
.tick{color:var(--aqua);font-weight:700}.cross{color:var(--red);font-weight:700}

ol.receipt{background:var(--surface);border:1px solid var(--border);border-radius:12px;
  margin:18px 0 0;padding:18px 18px 18px 38px;color:var(--ink-2)}
ol.receipt li{margin:.4em 0}
ol.receipt b{color:var(--ink)}

footer{border-top:1px solid var(--border);margin-top:80px;padding-top:24px;
  color:var(--muted);font-size:.85rem;text-align:center}
/* The ROW wraps; a link never does. "api reference" breaking across two lines
   read as two dead links, one of which said "reference". */
footer a{margin:0 8px;white-space:nowrap}
