:root {
  color-scheme: light dark;
  --text: #1d1e20;
  --muted: #5b5e63;
  --background: #f6f5f2;
  --code-background: #e9e7e1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #a5a8ad;
    --background: #111214;
    --code-background: #23252a;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

h2 {
  margin-top: 3rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
}

code,
pre {
  font: 0.9em ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--code-background);
  border-radius: 4px;
}

code {
  padding: 0.1em 0.3em;
  overflow-wrap: anywhere;
}

pre {
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

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