:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --fg: #1f2328;
  --muted: #5b636d;
  --rule: #e3e5e8;
  --accent: #2f5d8a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #e6e8eb;
    --muted: #9aa3ad;
    --rule: #2a2e33;
    --accent: #8db4dc;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.mark {
  margin: 0 0 3.5rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.mark a { color: inherit; text-decoration: none; }

h1 {
  margin: 0 0 1rem;
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.lead {
  margin: 0 0 3rem;
  font-size: 1.15rem;
  color: var(--muted);
}

section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}

p { margin: 0 0 0.9rem; }

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

a { color: var(--accent); text-underline-offset: 0.15em; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

footer a { color: inherit; }
