:root {
  --fg: #1a1a1a;
  --bg: #fff;
  --muted: #666;
  --accent: #0a5;
  --rule: #e5e5e5;
  --max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: baseline; gap: 1.5rem; }
.site-header .brand { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--fg); }
.site-header nav a { margin-right: 1rem; text-decoration: none; color: var(--muted); }
.site-header nav a:hover { color: var(--accent); }

.hero h1 { font-size: 2rem; margin: 1.5rem 0 0.5rem; }
.hero .lead { font-size: 1.1rem; color: var(--muted); }

h1, h2, h3 { line-height: 1.25; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
.post-list time { color: var(--muted); font-size: 0.9rem; margin-left: 0.5rem; }
.post-list p { margin: 0.25rem 0 0; color: var(--muted); }

.post header .meta { color: var(--muted); font-size: 0.9rem; }
.post .toc {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  background: #f8faf9;
  font-size: 0.95rem;
}
.post .toc h2 { margin-top: 0; font-size: 1rem; }
.post .content img { max-width: 100%; height: auto; }
.post .content pre {
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
}
.post .content code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; }

.site-footer { border-top: 1px solid var(--rule); margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
