@font-face{font-family:Fraunces;src:url(fonts/fraunces-normal-latin.woff2) format("woff2");font-weight:300 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF}
@font-face{font-family:Fraunces;src:url(fonts/fraunces-normal-latin-ext.woff2) format("woff2");font-weight:300 900;font-display:swap;unicode-range:U+0100-024F,U+0218-021B,U+1E00-1EFF}
@font-face{font-family:Plex;src:url(fonts/IBMPlexSans-latin.woff2) format("woff2");font-weight:100 700;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF,U+2212}
@font-face{font-family:Plex;src:url(fonts/IBMPlexSans-latin-ext.woff2) format("woff2");font-weight:100 700;font-display:swap;unicode-range:U+0100-024F,U+0218-021B,U+1E00-1EFF}
:root{--bg:#10151b;--panel:#171e26;--ink:#e8edf2;--muted:#9ba8b5;--line:#2a3542;--v:#f26a4f;--l:#45c7b5;--gold:#f2c14e;--slate:#5d6b7b;--body:#e8edf2;--max:41rem;color-scheme:dark}
:root[data-theme=light]{--bg:#f2f4f6;--panel:#e6eaee;--ink:#151a20;--muted:#56626e;--line:#c9d1d9;--v:#c23a22;--l:#0b8576;--gold:#a87700;--slate:#8794a2;--body:#1d242c;color-scheme:light}
@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--bg:#f2f4f6;--panel:#e6eaee;--ink:#151a20;--muted:#56626e;--line:#c9d1d9;--v:#c23a22;--l:#0b8576;--gold:#a87700;--slate:#8794a2;--body:#1d242c;color-scheme:light}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.6 Plex,system-ui,sans-serif}
a{color:inherit;text-decoration-color:var(--gold);text-underline-offset:3px}
a:hover{color:var(--gold)}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.6rem 1rem;font-size:.85rem;color:var(--muted);border-bottom:1px solid var(--line)}
.topbar a{text-decoration:none}
.topbar .lang a[aria-current]{color:var(--ink);font-weight:600}
.theme-btn{background:none;border:1px solid var(--line);color:var(--muted);border-radius:99px;padding:.2rem .7rem;font:inherit;cursor:pointer}
header.hero{max-width:72rem;margin:0 auto;padding:2.2rem 1rem 1rem}
.kicker{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--v);margin:0 0 .6rem}
h1{font:600 clamp(2rem,5.2vw,3.6rem)/1.05 Fraunces,Georgia,serif;margin:0 0 1rem;max-width:22ch;letter-spacing:-.01em}
.dek{font-size:1.15rem;color:var(--muted);max-width:44rem;margin:0}
.layout{max-width:72rem;margin:0 auto;padding:0 1rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--max));gap:2.5rem}
.stage{position:sticky;top:0;height:calc(var(--vh,1svh)*100);display:flex;flex-direction:column;justify-content:center;padding:1rem 0}
.stage svg{width:100%;height:auto;max-height:74svh;display:block;overflow:visible}
.stage-cap{font-size:.88rem;color:var(--muted);min-height:2.8em;margin:.4rem 0 0}
.controls{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.6rem}
.controls button{font:inherit;font-size:.82rem;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:.32rem .8rem;cursor:pointer}
.controls button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}
.controls .sep{width:1px;background:var(--line);margin:0 .2rem}
.text{padding:2rem 0 4rem}
.text section{min-height:70svh;padding:1rem 0 2.5rem}
.text section:first-child{min-height:auto}
h2{font:600 1.75rem/1.15 Fraunces,Georgia,serif;margin:0 0 .9rem}
h3{font:600 1.15rem/1.3 Fraunces,Georgia,serif;margin:1.6rem 0 .5rem}
p{margin:0 0 1rem}
.big{font:600 3rem/1 Fraunces,Georgia,serif;color:var(--gold);display:block;margin:.4rem 0 .2rem}
.v{color:var(--v)}.l{color:var(--l)}.g{color:var(--gold)}
blockquote{margin:1rem 0;padding:.2rem 0 .2rem 1rem;border-left:2px solid var(--v);color:var(--muted)}
blockquote .src{display:block;font-size:.8rem;margin-top:.4rem}
blockquote i{color:var(--ink)}
table{border-collapse:collapse;width:100%;font-size:.88rem;margin:.6rem 0 1.2rem}
th,td{text-align:left;padding:.38rem .5rem;border-bottom:1px solid var(--line);vertical-align:top}
thead th{font-weight:600;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}
td.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.note{font-size:.85rem;color:var(--muted)}
form.you{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1rem}
.field{display:grid;grid-template-columns:1fr 7rem;gap:.6rem;align-items:center;margin:.45rem 0}
.field label{font-size:.92rem}
.field small{display:block;color:var(--muted);font-size:.78rem;line-height:1.35}
.field input,.field select{font:inherit;width:100%;padding:.4rem .5rem;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
form.you button{font:inherit;margin-top:.6rem;background:var(--gold);color:#111;border:0;border-radius:99px;padding:.5rem 1.1rem;font-weight:600;cursor:pointer}
.you-out{margin-top:1rem}
.you-sum{font:600 1.2rem/1.35 Fraunces,Georgia,serif}
.you-tab tr.ok td:last-child{color:var(--l);font-weight:600}
.you-tab tr.miss td:last-child{color:var(--v);font-weight:600}
.you-tab tr.sub td{border-bottom:1px solid var(--line);color:var(--muted);font-size:.8rem;padding-top:0}
.you-tab tr.sub td{border-top:0}
.you-tab tr.ok th,.you-tab tr.miss th,.you-tab tr.ok td,.you-tab tr.miss td{border-bottom:0}
.warn{border-left:3px solid var(--v);padding-left:.7rem}
a.share{display:inline-block;border:1px solid var(--gold);border-radius:99px;padding:.35rem .9rem;text-decoration:none}
.site-footer{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;font-size:.82rem;color:var(--muted);border-top:1px solid var(--line);padding:1.2rem 1rem;max-width:72rem;margin:0 auto}
.back-top{position:fixed;right:1rem;bottom:1rem;display:flex;gap:.3rem;align-items:center;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:.35rem .7rem;font:inherit;font-size:.8rem;cursor:pointer}
/* svg */
#stage-svg .sq-rule{fill:none;stroke:var(--v);stroke-width:1.4;vector-effect:non-scaling-stroke}
#stage-svg .sq-real{fill:none;stroke:var(--gold);stroke-width:1.4;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
#stage-svg .ground{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
#stage-svg .tickline{stroke:none}
#stage-svg .fig .limb{stroke:var(--body);stroke-width:2.4;stroke-linecap:round;vector-effect:non-scaling-stroke}
#stage-svg .fig .head,#stage-svg .fig .torso{fill:none;stroke:var(--body);stroke-width:2.4;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#stage-svg .fig.rule .limb,#stage-svg .fig.rule .head,#stage-svg .fig.rule .torso{stroke:var(--v)}
#stage-svg .joint{fill:var(--bg);stroke:var(--body);stroke-width:1.2;vector-effect:non-scaling-stroke}
#stage-svg .tip{fill:var(--gold)}
#stage-svg .navel{fill:var(--l)}
#stage-svg .circ-navel{fill:none;stroke:var(--v);stroke-width:1.4;vector-effect:non-scaling-stroke}
#stage-svg .circ-hand{fill:none;stroke:var(--gold);stroke-width:1.2;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
#stage-svg .lbl{fill:var(--ink);font:.046px Plex,sans-serif}
#stage-svg .lbl.small{font-size:.036px;fill:var(--muted)}
#stage-svg .fig.ghost .limb,#stage-svg .fig.ghost .head,#stage-svg .fig.ghost .torso{stroke:var(--slate);opacity:.45}#stage-svg .fig.ghost .tip,#stage-svg .fig.ghost .navel,#stage-svg .fig.ghost .joint{display:none}
#stage-svg .lbl.strong{font-weight:600;fill:var(--ink)}
#stage-svg .lbl.v{fill:var(--v)}#stage-svg .lbl.l{fill:var(--l)}
#stage-svg .dot.out{fill:var(--gold);opacity:.55}
#stage-svg .dot.in{fill:var(--slate);opacity:.7}
#stage-svg .dot.nav{fill:var(--l);opacity:.45}
#stage-svg .phi{stroke:var(--v);stroke-width:1.2;vector-effect:non-scaling-stroke}
#stage-svg .phi.half{stroke:var(--muted)}
#stage-svg .hbar{stroke:var(--muted);stroke-width:2;vector-effect:non-scaling-stroke}
#stage-svg .bar.real{fill:var(--gold)}
#stage-svg .bar.assumed{fill:var(--slate)}
#stage-svg .rule-v{stroke:var(--v);stroke-width:2;vector-effect:non-scaling-stroke}
#stage-svg .rule-l{stroke:var(--l);stroke-width:2;stroke-dasharray:3 2;vector-effect:non-scaling-stroke}
@media (max-width:860px){
 .layout{display:block;padding:0}
 .stage{height:auto;max-height:none;top:0;z-index:5;background:var(--bg);padding:.4rem 1rem .5rem;border-bottom:1px solid var(--line)}
 .stage svg{height:min(32svh,32vh);max-height:32svh;width:100%}
 .stage-cap{font-size:.78rem;min-height:2.4em;margin:.2rem 0 0}
 .controls{margin-top:.3rem;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
 .controls button{white-space:nowrap;font-size:.76rem;padding:.25rem .6rem}
 .text{padding:1rem 1rem 3rem}
 .text section{min-height:auto}
 header.hero{padding-top:1.4rem}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#stage-svg .circ-faint{fill:none;stroke:var(--v);stroke-width:1;opacity:.35;vector-effect:non-scaling-stroke}
