/* Site stylesheet: system fonts only, light and dark through prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --surface: #f6f8fa;
  --link: #0969da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --border: #3d444d;
    --surface: #151b23;
    --link: #4493f8;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

main,
header,
footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border-radius: 0.375rem;
}

code {
  padding: 0.1em 0.3em;
}

pre {
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
}

pre code {
  padding: 0;
  background: none;
}

section {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

footer,
.muted {
  color: var(--muted);
  font-size: 0.9em;
}
