/* Shared page surfaces, typography and controls. Diagram colors identify data or anatomy. */
:root { color-scheme:light; --paper:#f5f1e9; --surface:#fcfcfb; --ink:#231e19; --muted:#62564c; --line:#d2c6b8; --accent:#913e27; --accent-ink:#fff; --mast:#24201d; --mast-ink:#fff8ee; --first:#2a78d6; --second:#eb6834; --third:#1baf7a; --tint:#f2e7dd; --grid:#ded6cb; --error:#963520; --radius:5px; }
:root[data-theme=dark] { color-scheme:dark; --paper:#201b17; --surface:#1a1a19; --ink:#f5ecdf; --muted:#d2c4b5; --line:#685d53; --accent:#f0a18a; --accent-ink:#27170f; --mast:#12110f; --first:#3987e5; --second:#d95926; --third:#199e70; --tint:#382a23; --grid:#4d4139; --error:#ffae96; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.65 system-ui,"Noto Sans CJK SC",sans-serif; }
[hidden] { display:none !important; }
a { color:var(--accent); text-underline-offset:.22em; }
button, input, select, textarea { font:inherit; color:inherit; }
:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
button, .button, input, select, textarea { border:1px solid var(--line); border-radius:5px; background:var(--surface); }
button, .button, summary { min-height:44px; }
button, .button { padding:7px 14px; cursor:pointer; text-decoration:none; }
.button { display:inline-flex; align-items:center; }
button:disabled { opacity:.6; cursor:default; }
.primary { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); font-weight:750; }
.masthead { background:var(--mast); color:var(--mast-ink); padding:14px max(16px,calc((100% - 1100px)/2)); display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; }
.masthead nav { display:flex; gap:6px 18px; align-items:center; flex-wrap:wrap; }
.masthead a,.masthead button { color:inherit; background:transparent; display:inline-flex; align-items:center; min-height:44px; }
.masthead button { padding:0 4px; border:0; }
.masthead :focus-visible { outline-color:var(--mast-ink); }
.brand { font-size:28px; line-height:1; font-weight:760; letter-spacing:-.06em; text-decoration:none; }
:root { --bg:var(--paper); --soft-ink:var(--muted); --accent-text:var(--accent-ink); --measured:var(--first); --fitted:var(--second); --structure-fit:var(--third); }
