:root {
  color-scheme: light dark;
  --fg: #111;
  --muted: #555;
  --bg: #fafafa;
  --card: #fff;
  --border: #e5e5e5;
  --accent: #0b57d0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f2f2;
    --muted: #aaa;
    --bg: #0f0f0f;
    --card: #171717;
    --border: #2a2a2a;
    --accent: #8ab4f8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.posts {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.posts li {
  border-bottom: 1px solid var(--border);
}

.posts a {
  display: block;
  padding: 1rem 0.1rem;
  color: inherit;
}

.posts a:hover { background: transparent; text-decoration: none; }
.posts .title { font-weight: 600; }
.posts .meta { color: var(--muted); font-size: 0.875rem; margin-top: 0.2rem; }

article h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.25;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.nav {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
