:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0284c7;
  --rule: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --rule: #334155;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Helvetica Neue',
    sans-serif;
  line-height: 1.6;
}

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

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* The wordmark in the artwork is near-black, so it is never used on a page
   that follows the system colour scheme. The mark carries its own background. */
.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

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

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
