:root {
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #6b6a66;
  --rule: #e4e2dc;
  --link: #1f5fbf;
  --code-bg: #f1efe9;
  --accent: #b45309;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --fg: #ecebe6;
    --muted: #9a9994;
    --rule: #2c2b29;
    --link: #8ab4f8;
    --code-bg: #1f1e1c;
    --accent: #f59e0b;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 42rem; margin: 0 auto; padding: 4.5rem 16px 3rem; }
a { color: var(--link); text-underline-offset: 2px; }
h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 0 .4rem; letter-spacing: -0.02em; }
h2 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 3rem 0 1rem; font-weight: 600;
}
h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
p { margin: 0 0 1rem; }
.lede { color: var(--muted); font-size: 1.1rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.meta { color: var(--muted); font-size: .9rem; }
.row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.links { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
footer { margin-top: 4rem; color: var(--muted); font-size: .85rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }

/* Diagrams: inline SVG, themed through currentColor and the tokens above. */
.fig { margin: 1rem 0 .25rem; overflow-x: auto; }
.fig svg { display: block; width: 100%; min-width: 30rem; height: auto; color: var(--fg); }
.fig figcaption { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: .6rem; }
.dg text { fill: currentColor; font: 12.5px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.dg .ts { font-size: 11px; fill: var(--muted); }
.dg .tb { font-weight: 600; }
.dg text.acct { fill: var(--accent); }
.dg .box { fill: none; stroke: currentColor; stroke-width: 1.25; }
.dg .ln { fill: none; stroke: currentColor; stroke-width: 1.25; }
.dg .mut { stroke: var(--muted); }
.dg .acc { stroke: var(--accent); }
.dg .fa { fill: var(--accent); }
.dg .bar { fill: var(--muted); opacity: .45; }
.dg .dash { stroke-dasharray: 5 4; }
.dg .dot { stroke-dasharray: 1.5 4; stroke-linecap: round; }
