:root {
  --bg: #fbfaf7;
  --fg: #1f2328;
  --muted: #6a6f76;
  --line: #e6e2da;
  --accent: #2f5d8a;
  --code-bg: #f1eee8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #e4e6e9;
    --muted: #9aa0a8;
    --line: #2a2e33;
    --accent: #8fb6dd;
    --code-bg: #1f2226;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.7 Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 18px;
  margin-bottom: 40px;
}
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand {
  font: 600 18px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: .01em;
}
.brand span { color: var(--muted); font-weight: 400; }
nav a {
  font: 15px system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }

h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.3; }
h1 { font-size: 30px; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 36px 0 8px; }

a { color: var(--accent); }

.lede { color: var(--muted); margin-top: 0; }

.posts { list-style: none; padding: 0; margin: 32px 0; }
.posts li { padding: 18px 0; border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a { font: 600 19px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; color: var(--fg); }
.posts a:hover { color: var(--accent); }
.posts p { margin: 4px 0 0; color: var(--muted); }

.meta, time { font: 14px system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); }

article p, article li { hyphens: auto; }

code, pre {
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg);
  border-radius: 4px;
}
code { padding: 1px 5px; }
pre { padding: 14px 16px; overflow-x: auto; }
pre code { padding: 0; background: none; }

blockquote {
  margin: 20px 0;
  padding: 2px 18px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

footer.site {
  margin: 64px 0 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 14px system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--muted);
}
footer.site a { color: var(--muted); }
