:root {
  --bg: #ffffff;
  --fg: #1d2330;
  --muted: #5b6475;
  --accent: #1f5fd1;
  --line: #e3e6ec;
  --soft: #f5f7fa;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --fg: #e6e9ef;
    --muted: #9aa3b2;
    --accent: #7aa7ff;
    --line: #2a303b;
    --soft: #1a1f27;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
header.site, main, footer.site {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}
header.site {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); font-size: .95rem; }
header.site nav { display: flex; gap: 1rem; }
header.site nav a { text-decoration: none; }
header.site nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
main { padding-top: 1.5rem; padding-bottom: 2rem; }
h1 { font-size: 1.75rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .6rem; border: 1px solid var(--line); }
thead th { background: var(--soft); }
table.meta { width: auto; }
table.meta th { background: var(--soft); font-weight: 600; }
code { font-size: .9em; background: var(--soft); padding: .1em .3em; border-radius: 3px; }
ul, ol { padding-left: 1.4rem; }
footer.site { padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) {
  th, td { padding: .4rem; }
  table { font-size: .9rem; }
}
