:root {
  color-scheme: light dark;
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #5c5c5c;
  --rule: #d9d9d9;
  --code: #f3f3f3;
  --link: #0b57d0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e6;
    --bg: #161616;
    --muted: #a0a0a0;
    --rule: #3a3a3a;
    --code: #242424;
    --link: #8ab4f8;
  }
}
body {
  margin: 0 auto;
  padding: 0 16px 48px;
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
nav { order: -1; padding: 12px 0; border-bottom: 1px solid var(--rule); }
nav a { margin-right: 16px; }
footer { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.25; }
h2 { margin-top: 2em; }
main { overflow-wrap: break-word; min-width: 0; }
main > p, main > ul, main > ol { max-width: 46rem; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
code { background: var(--code); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
td code, th code { white-space: nowrap; }
pre { background: var(--code); padding: 12px; overflow-x: auto; }
pre code { padding: 0; background: none; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; font-size: 14px; }
th, td { border: 1px solid var(--rule); padding: 4px 8px; text-align: left; vertical-align: top; }
th { background: var(--code); }
