:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #4a4a4a;
  --link: #0b57d0;
  --link-visited: #6b3fa0;
  --rule: #d9d9d9;
  --code-bg: #f2f2f2;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #ececec;
    --muted: #bdbdbd;
    --link: #8ab4f8;
    --link-visited: #c9a7f5;
    --rule: #3a3a3a;
    --code-bg: #262626;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
header, main, footer { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }
header nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
}
header .home { font-weight: 600; text-decoration: none; color: var(--fg); }
main { padding-top: 0.5rem; padding-bottom: 2rem; }
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; padding-bottom: 2rem; }
h1 { font-size: 1.875rem; line-height: 1.25; margin: 1.5rem 0 1rem; }
h2 { font-size: 1.375rem; line-height: 1.3; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.125rem; line-height: 1.35; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; }
li { margin: 0.25rem 0; }
a { color: var(--link); text-underline-offset: 0.15em; overflow-wrap: anywhere; }
a:visited { color: var(--link-visited); }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 4px; font-size: 0.95em; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem; z-index: 1; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
