:root {
  --bg: #fbfaf7;
  --fg: #16181d;
  --muted: #5a606b;
  --accent: #1d4ed8;
  --accent-fg: #ffffff;
  --card: #ffffff;
  --line: #e4e1d9;
  --bar2: #9aa3b5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --fg: #f1efe9;
    --muted: #a2a8b3;
    --accent: #7aa2ff;
    --accent-fg: #111111;
    --card: #181b21;
    --line: #2a2e36;
    --bar2: #5d6577;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
.wrap { max-width: 52rem; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
header.nav { padding: 14px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; }
.brand { font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--fg); font-size: 15px; padding: 12px 0; display: inline-block; }
.brand span { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; display: inline-block; padding: 12px 0; min-height: 44px; }
nav a:hover { color: var(--fg); }
.hero { padding: 28px 0 32px; }
h1 { font-size: clamp(3rem, 14vw, 5.5rem); line-height: 1; margin: 0 0 16px; letter-spacing: -.03em; color: var(--accent); }
.tagline { font-size: clamp(1.3rem, 5vw, 1.75rem); line-height: 1.25; font-weight: 700; margin: 0 0 14px; max-width: 34rem; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 36rem; margin: 0 0 22px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share .label { color: var(--muted); font-size: 14px; margin-right: 2px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[hidden] { display: none; }
section { padding: 32px 0; border-top: 1px solid var(--line); }
h2 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -.01em; }
h3 { margin: 0 0 6px; font-size: 1.05rem; }
h4 { margin: 18px 0 8px; font-size: 1rem; }
.sub { color: var(--muted); margin: 0 0 18px; }
p { margin: 0 0 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 40rem) { .grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 8px; scroll-margin-top: 12px; }
.card:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card h3 a { color: var(--fg); text-decoration: none; }
.big { font-size: clamp(1.8rem, 8vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.big span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
svg.bars { width: 100%; height: auto; display: block; margin: 0 0 8px; }
svg.bars .bl { font: 600 12px system-ui, sans-serif; fill: var(--muted); }
svg.bars .b1 { fill: var(--accent); }
svg.bars .b2 { fill: var(--bar2); }
dl.figs { margin: 0 0 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 15px; }
dl.figs dt { color: var(--muted); }
dl.figs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.small { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.sharelink { display: inline-flex; align-items: center; min-height: 44px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
details[open] { padding-bottom: 14px; }
footer { padding: 28px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
footer p { margin: 0 0 10px; }
footer a { display: inline-block; padding: 10px 0; min-height: 44px; }
ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 8px; }
code { font-size: .9em; }
@media (max-width: 40rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  td { border: 0; padding: 2px 0; text-align: left !important; white-space: normal !important; }
  td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  td:first-child { font-weight: 700; }
  td:first-child::before { content: ""; }
}
h1.h1s { font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.05; }
.hero-img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; margin: 0 0 8px; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 0 0 10px; }
details p { margin: 0 0 14px; }
.cite { margin-top: 18px; }
