:root {
  --text: #222;
  --bg: #fff;
  --accent: #05a;
  --muted: #666;
  --border: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ddd;
    --bg: #111;
    --accent: #6af;
    --muted: #999;
    --border: #333;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font: 1rem/1.7 system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

header nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

main {
  padding: 2rem 0;
}

footer {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

@media (prefers-color-scheme: dark) {
  pre {
    background: #1a1a1a;
  }
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
