:root {
  --bg: #fbfaf7; --text: #1d2626; --muted: #5d6b6b; --accent: #004449;
  --rule: #e3e0d8; --code-bg: #f1efe9; --code-text: #1d2626;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #111818; --text: #e6ecea; --muted: #9aaaa8; --accent: #6fc2bd;
    --rule: #263233; --code-bg: #1a2425; --code-text: #e6ecea; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #111818; --text: #e6ecea; --muted: #9aaaa8; --accent: #6fc2bd;
  --rule: #263233; --code-bg: #1a2425; --code-text: #e6ecea; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.7 Georgia, "Iowan Old Style", "Times New Roman", serif; }
a { color: var(--accent); text-underline-offset: 3px; }
.masthead, main, .bio { max-width: 680px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.post-body { min-width: 0; }
.post h1, .post h2, .post-list a { text-wrap: balance; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.masthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding-top: 40px; padding-bottom: 18px; border-bottom: 1px solid var(--rule);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; }
.brand { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.tag { color: var(--muted); font-size: 15px; letter-spacing: .02em; }
main { padding-top: 28px; padding-bottom: 32px; }
.intro p { color: var(--muted); margin: 0 0 24px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.post-list time, .date { display: block; color: var(--muted); font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; margin: 0; }
.post-list a { font-size: 22px; font-weight: 700; text-decoration: none; line-height: 1.3; }
.post-list p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.post h1 { font-size: 34px; line-height: 1.2; margin: 6px 0 24px; }
.post h2 { font-size: 23px; line-height: 1.3; margin: 40px 0 12px; }
.lead { font-size: 24px; font-weight: 700; line-height: 1.35; }
blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent);
  font-style: italic; }
code { font: 0.85em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg); color: var(--code-text); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--code-bg); border: 1px solid var(--rule); border-radius: 6px;
  padding: 14px 16px; overflow-x: auto; margin: 20px 0; }
pre code { padding: 0; background: none; font-size: 14px; line-height: 1.55; }
.back { margin-top: 40px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; font-size: 15px; }
.bio { display: flex; gap: 14px; align-items: center; padding-top: 22px; padding-bottom: 48px;
  border-top: 1px solid var(--rule); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif; }
.bio img { border-radius: 50%; flex: none; }
.bio strong, .bio span, .bio nav { display: block; }
.bio span, .bio nav { color: var(--muted); }
