:root {
  --bg: #fff;
  --fg: #1f2328;
  --muted: #6a737d;
  --accent: #0969da;
  --rule: #d8dee4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181c;
    --fg: #d6d8dd;
    --muted: #8b949e;
    --accent: #58a6ff;
    --rule: #30363d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 680px; /* 648px content + padding */
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.site-title {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
nav { display: flex; gap: 16px; }
nav a { color: var(--fg); text-decoration: none; }
nav a:hover { color: var(--accent); }

main { padding: 24px 0; min-height: 60vh; }

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

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.7em; }

.post-list { list-style: none; padding: 0; }
.post-list li { display: flex; gap: 16px; margin: 8px 0; }
.post-list time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Post content styles live in prose.css, shared with the editor preview. */

footer {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
footer a { color: var(--muted); }
