:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --panel: #fff;
  --line: #ddd;
  --text: #1a1a1a;
  --muted: #555;
  --code: #eee;
  --link: #0b57d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --panel: #1e2128;
    --line: #2f343f;
    --text: #e8eaef;
    --muted: #98a0af;
    --code: #2a2e37;
    --link: #8ab4f8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 48rem;
  padding: 1.5rem 1rem;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1, h2 { line-height: 1.2; }
h2 { font-size: 1.17em; margin: 1em 0; }
section > :first-child { margin-top: 0; }
header p { color: var(--muted); }
section { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
code { padding: 0 .25rem; background: var(--code); border-radius: 3px; overflow-wrap: anywhere; }
li { margin: .35rem 0; }
a { color: var(--link); overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

@media (max-width: 30rem) {
  section { padding: 1rem; }
}
