:root {
  --text: #1f2328;
  --muted: #59636e;
  --background: #ffffff;
  --code: #f6f8fa;
  --link: #0969da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6edf3;
    --muted: #9198a1;
    --background: #0d1117;
    --code: #161b22;
    --link: #4493f8;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

h1 small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

h2 {
  margin-top: 2rem;
  font-size: 1.1rem;
}

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

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

pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--code);
  border-radius: 6px;
}
