:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1b1f27;
  --muted: #565e6c;
  --line: #dde1e8;
  --accent: #2748c9;
  --box: #eef2fd;
  --box-line: #c5d1f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141a;
    --fg: #e6e9ef;
    --muted: #a3acbb;
    --line: #2a303b;
    --accent: #8fa8ff;
    --box: #1a2133;
    --box-line: #2f3d63;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; color: var(--muted); font-size: 0.9rem; }
.bar { max-width: 72ch; margin: 0 auto; padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.site-nav a, .site-footer a { margin-right: 1rem; }
.site-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
main { max-width: 72ch; margin: 0 auto; padding: 2rem 1.25rem 0; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.75rem 0 0.75rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
.meta { color: var(--muted); margin: 0 0 1.5rem; font-size: 0.95rem; }
.summary { background: var(--box); border: 1px solid var(--box-line); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.summary h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border: 1px solid var(--line); }
th { background: var(--box); }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--box); padding: 0.1em 0.35em; border-radius: 4px; }
address { font-style: normal; margin: 0 0 1rem; }
