:root {
  --bg: #f9f9f7;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #2a6dd9;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-mono: 'Courier New', Courier, monospace;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --fg: #e8e8e4;
    --muted: #999;
    --accent: #6fa3ef;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: normal;
  line-height: 1.3;
}

h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }

p { margin: 0.75rem 0; }

pre, code {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

hr {
  border: none;
  border-top: 1px solid var(--muted);
  margin: 2rem 0;
  opacity: 0.3;
}

ul {
  padding-left: 1.5rem;
}

li {
  margin: 0.25rem 0;
}

.muted {
  color: var(--muted);
  /* font-size: 0.9rem; */
}
