:root {
  --bg: #fafaf9;
  --fg: #1a1a1a;
  --muted: #5f5f5f;
  --rule: #d9d9d6;
  /* Read by ascii.js; keep it faint so body text stays readable. */
  --ascii: rgba(0, 0, 0, 0.09);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --fg: #e8e8e6;
    --muted: #9a9a97;
    --rule: #2c2c2a;
    --ascii: rgba(255, 255, 255, 0.11);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.65 var(--mono);
}

#ascii {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3rem, 14vh, 9rem) 1rem 4rem;
}

h1, h2 { font-weight: 600; margin: 0; }
h1 { font-size: 1.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1rem; margin: 2.5rem 0 1rem; }
h2::before { content: "## "; color: var(--muted); }

p { margin: 1.25rem 0; }
.muted { color: var(--muted); margin: 0.25rem 0 0; }

dl { margin: 0; }
dt { font-weight: 600; }
dt::before { content: "> "; color: var(--muted); }
dd { margin: 0 0 1rem 2ch; color: var(--muted); }

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
