:root {
  --bg: #fafaf8;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e2e2de;
  --accent: #0b6e4f;
  --code-bg: #f0f0ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #e8e8e6;
    --muted: #9a9a96;
    --border: #2a2a2a;
    --accent: #4cc9a4;
    --code-bg: #1e1e1e;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
header.site a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
header.site a:hover { color: var(--accent); }
h1 { font-size: 1.8rem; font-weight: 650; letter-spacing: -0.02em; margin: 0.75rem 0 0.5rem; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0.8rem 0; }
ul, ol { padding-left: 1.4rem; }
a { color: var(--accent); }
time { color: var(--muted); font-size: 0.85rem; }
main { margin-top: 1rem; }
ul.posts { list-style: none; padding: 0; margin-top: 1.5rem; }
ul.posts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
ul.posts a { text-decoration: none; }
ul.posts a:hover { text-decoration: underline; }
code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
pre {
  background: var(--code-bg);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}
pre code { background: none; padding: 0; }
blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1rem 0;
}
