:root {
  --bg: #fdfdfc;
  --fg: #1a1a1a;
  --muted: #666;
  --accent: #8b3a2f;
  --rule: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --fg: #e8e6e3;
    --muted: #999;
    --accent: #d97757;
    --rule: #2a2a2a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-serif, Georgia, Charter, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

main, .site-header, .site-footer {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  padding: 2rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.site-title {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.25rem;
}

.site-nav a:hover { color: var(--accent); }

a { color: var(--accent); text-underline-offset: 0.15em; }

h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; }

.post-list { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list time, .post-header time {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
}

code, pre { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 0.9em; }
pre { background: var(--rule); padding: 1rem; overflow-x: auto; }
