:root {
  --fg: #1a1a1a;
  --bg: #fdfdfc;
  --muted: #666;
  --accent: #0a5ad6;
  --rule: #e5e5e2;
  --measure: 65ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header,
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

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

.site-title {
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

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

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; }

.intro { margin: 1rem 0 2.5rem; }
.intro .bio { font-size: 1.05rem; margin: 0.25rem 0; }
.intro .links { color: var(--muted); }

.post-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 2rem; }

.post-list ul { list-style: none; padding: 0; }
.post-list li {
  display: flex;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-list time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

article.post p,
article.post li { overflow-wrap: break-word; }

article.post pre {
  background: #f4f4f2;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
  font-size: 0.9rem;
}
article.post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
article.post :not(pre) > code {
  background: #f4f4f2;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

article.post blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}

hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

img { max-width: 100%; height: auto; }
