:root {
  --bg: #f6f7f9;
  --text: #1c1f23;
  --muted: #6b7280;
  --border: #e2e5ea;
  --code: #f0f2f5;
  --link: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --text: #e8eaed;
    --muted: #9aa3ae;
    --border: #2c3238;
    --code: #24292e;
    --link: #6ea8fe;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

main {
  max-width: 46rem;
  margin: 0 auto;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
}

p {
  margin: 0.5rem 0;
}

a {
  color: var(--link);
}

.muted {
  color: var(--muted);
}

pre {
  margin: 0.5rem 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

p code,
li code {
  padding: 0.1rem 0.35rem;
  background: var(--code);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.9em;
}

ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

li {
  margin: 0.35rem 0;
}

footer {
  margin-top: 2rem;
  font-size: 0.9rem;
}
