:root {
  --bg: #faf8f4;
  --text: #1c2430;
  --muted: #5d6673;
  --rule: #e2ddd3;
  --accent: #1f5f8b;
  --measure: 40rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --text: #e4e0d8;
    --muted: #9aa3ad;
    --rule: #2a313b;
    --accent: #7fb3d9;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: calc(var(--measure) + 2rem);
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.65 var(--serif);
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: space-between; align-items: baseline;
  padding: 2rem 0 1rem; border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 0.95rem;
}
.site-name { color: var(--text); font-weight: 600; text-decoration: none; letter-spacing: 0.01em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

main { padding: 2.5rem 0 3rem; }
h1, h2, h3 { line-height: 1.25; font-weight: 600; }
h1 { font-size: 2.1rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }

.intro .role {
  margin: 0 0 0.25rem; font-family: var(--sans); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.intro h1 { font-size: 2.6rem; }
.lede p { font-size: 1.2rem; }
.cta { font-family: var(--sans); font-size: 1rem; margin-top: 2rem; }
.cta a { font-weight: 600; }

.post-list, .work-list { list-style: none; padding: 0; margin: 1rem 0; }
.post-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--rule);
}
.post-list time, .meta, .stack, .empty {
  color: var(--muted); font-family: var(--sans); font-size: 0.9rem; white-space: nowrap;
}
.work-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.work-list h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.work-list p { margin: 0.25rem 0; }

pre, code { font-family: var(--mono); font-size: 0.9em; }
pre { padding: 1rem; overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); color: var(--muted); }
img { max-width: 100%; height: auto; }

.pager { display: flex; justify-content: space-between; font-family: var(--sans); }
.site-footer {
  display: flex; gap: 1.25rem; padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }

@media (max-width: 34rem) {
  body { font-size: 1.05rem; }
  .intro h1 { font-size: 2.1rem; }
  .post-list li { flex-direction: column; gap: 0.1rem; }
}
