/* Shared by the static pages (guides + legal). Light by default, dark when theme.js says so. */
:root{--bg:#fbf9f6;--ink:#1c1b22;--muted:#55535e;--faint:#6c6a76;--line:rgba(28,27,34,.08);--surface:#fff;--chip:#f1eee9;--accent:oklch(0.58 0.2 28);--accent-ink:oklch(0.5 0.18 28);--soft:oklch(0.95 0.035 28);--on-ink:#fff;color-scheme:light}
:root[data-theme=dark]{--bg:#141318;--ink:#f3f1f6;--muted:#b4b1be;--faint:#908d9b;--line:rgba(255,255,255,.1);--surface:#1d1c24;--chip:#2a2833;--accent:oklch(0.66 0.2 28);--accent-ink:oklch(0.82 0.12 28);--soft:oklch(0.3 0.06 28);--on-ink:#141318;color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.65 Onest,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--accent-ink);text-underline-offset:3px}a:hover{color:var(--accent)}
.top{border-bottom:1px solid var(--line);background:var(--bg)}
.top>div{max-width:1040px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.top .go{margin-left:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:14px;background:var(--accent);color:#fff;font:700 16px/1 'Bricolage Grotesque',system-ui,sans-serif;text-decoration:none;border:0}
.btn:hover{background:oklch(0.54 0.2 28);color:#fff}
main{max-width:760px;margin:0 auto;padding:44px 20px 24px}
.crumbs{font-size:13.5px;color:var(--faint);margin-bottom:14px}.crumbs a{color:var(--faint)}
.note{font:500 12px 'JetBrains Mono',monospace;color:var(--faint);margin:0 0 6px}
h1{font:800 clamp(34px,6vw,52px)/1.02 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.03em;margin:0 0 18px;text-wrap:balance}
h2{font:800 clamp(24px,3.4vw,31px)/1.15 'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.02em;margin:40px 0 12px}
p{margin:0 0 16px;color:var(--muted)}.lead{font-size:19px;color:var(--ink)}
ul,ol{padding-left:22px;color:var(--muted);margin:0 0 16px}li{margin:0 0 8px}li strong{color:var(--ink)}
.cta{margin:36px 0;padding:28px;border-radius:24px;background:var(--soft);text-align:center}
.cta p{color:var(--ink);font:700 22px/1.2 'Bricolage Grotesque',system-ui,sans-serif;margin:0 0 16px}
details{border-bottom:1px solid var(--line)}details:first-of-type{border-top:1px solid var(--line)}
summary{cursor:pointer;list-style:none;padding:16px 0;font:700 18px/1.3 'Bricolage Grotesque',system-ui,sans-serif;display:flex;justify-content:space-between;gap:16px}
summary::-webkit-details-marker{display:none}summary::after{content:'+';color:var(--accent);font-size:22px;line-height:1}details[open] summary::after{transform:rotate(45deg)}
details p{padding-bottom:6px}
.related{display:flex;flex-wrap:wrap;gap:10px;padding:0;list-style:none}.related a{display:block;padding:10px 16px;border-radius:12px;background:var(--surface);border:1px solid var(--line);text-decoration:none;font-weight:600;color:var(--ink)}.related a:hover{border-color:var(--accent)}
footer{border-top:1px solid var(--line);margin-top:40px}footer>div{max-width:1040px;margin:0 auto;padding:22px 20px;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;color:var(--faint)}footer a{color:var(--muted)}
.item{display:flex;gap:14px;margin:0 0 14px}.item .n{font:500 13px 'JetBrains Mono',monospace;color:var(--accent-ink);padding-top:5px}.item b{font:700 18px 'Bricolage Grotesque',system-ui,sans-serif;color:var(--ink)}.item p{margin:4px 0 0;font-size:15.5px}
.back{font-size:14px}
/* logo (light/dark files swapped by theme) */
.brand{display:inline-flex;align-items:center;line-height:0;text-decoration:none}
.brand .lg{height:34px;width:auto;display:block}
.brand .lg-dark{display:none}
:root[data-theme=dark] .brand .lg-light{display:none}
:root[data-theme=dark] .brand .lg-dark{display:block}
