:root {
  --bg: #fbfaf7; --surface: #f1efe9; --ink: #1c1d20; --muted: #5f636a; --line: #e3e0d8;
  --accent: #1f6f4a; --accent-ink: #ffffff; --code: #f3f1eb; --warn: #fdf3de;
  --max: 720px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131417; --surface: #1c1e22; --ink: #e9eaec; --muted: #a0a5ad; --line: #2c2f35;
    --accent: #6cc595; --accent-ink: #0c1410; --code: #1b1d21; --warn: #322a19;
  }
}
:root[data-theme="dark"] {
  --bg: #131417; --surface: #1c1e22; --ink: #e9eaec; --muted: #a0a5ad; --line: #2c2f35;
  --accent: #6cc595; --accent-ink: #0c1410; --code: #1b1d21; --warn: #322a19;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.65 ui-serif, Georgia, "Iowan Old Style", serif; }
header.site, footer.site, main { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { display: flex; justify-content: space-between; align-items: baseline; padding-top: 28px; padding-bottom: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; }
header.site a { color: var(--ink); text-decoration: none; font-weight: 650; }
header.site nav a { color: var(--muted); font-weight: 500; margin-left: 16px; }
main { padding-bottom: 64px; }
h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 32px 0 8px; }
h2 { font-size: 1.4rem; margin: 48px 0 8px; }
h3 { font-size: 1.1rem; margin: 28px 0 4px; }
p, li { margin: 0 0 14px; }
a { color: var(--accent); text-underline-offset: 3px; }
.meta { color: var(--muted); font: 15px system-ui, sans-serif; margin-bottom: 28px; }
.lede { font-size: 1.15rem; color: var(--muted); }
code { font: 0.86em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code); padding: 2px 5px; border-radius: 5px; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
pre code { background: none; padding: 0; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font: 15px/1.45 system-ui, sans-serif; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.note { background: var(--warn); border-radius: 10px; padding: 12px 16px; font: 16px/1.55 system-ui, sans-serif; margin: 18px 0; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 600 16px system-ui, sans-serif;
  padding: 10px 16px; border-radius: 8px; margin: 6px 0 18px; }
figure { margin: 24px 0; }
figure svg { width: 100%; height: auto; }
figcaption { color: var(--muted); font: 14px system-ui, sans-serif; margin-top: 6px; }
.posts { list-style: none; padding: 0; }
.posts li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.posts a { font: 650 1.2rem system-ui, sans-serif; text-decoration: none; }
.posts p { color: var(--muted); margin: 4px 0 0; }
footer.site { color: var(--muted); font: 14px system-ui, sans-serif; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); }
