:root {
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #666666;
  --link: #1a56db;
  --border: #e5e5e5;
  --max-width: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e8e8;
    --bg: #14161a;
    --muted: #9a9a9a;
    --link: #7ba7ff;
    --border: #2a2d33;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
}

.site-header, .site-footer, main {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
}

main { padding: 2rem 0 3rem; }

h1 { font-size: 1.75rem; line-height: 1.3; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1rem; }

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

.disclosure {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
}

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.post-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.post-excerpt { color: var(--muted); margin: 0.35rem 0 0; }

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
