:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #6b675f;
  --line: #e2ded5;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1d1d1b;
    --ink: #ecebe6;
    --muted: #a29e95;
    --line: #2e2d2a;
    --accent: #2dd4bf;
    --accent-ink: #0b1f1d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 19px/1.7 var(--serif); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 17px/1 var(--sans); letter-spacing: -0.01em; }
.tile { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--sans); }
.tile small { position: absolute; top: 4px; left: 5px; font-size: 9px; font-weight: 600; opacity: 0.85; }
nav { display: flex; gap: 20px; font: 500 15px/1 var(--sans); }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }

main.wrap { padding-top: 56px; padding-bottom: 72px; }
.hero { margin-bottom: 44px; }
.hero h1 { font: 600 clamp(36px, 7vw, 54px)/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 12px; }
.hero p { margin: 0; color: var(--muted); font-size: 21px; }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 26px 0; color: inherit; text-decoration: none; }
.post-list time, .meta { font: 500 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.post-list h2 { font: 600 26px/1.25 var(--serif); letter-spacing: -0.01em; margin: 10px 0 6px; }
.post-list a:hover h2 { color: var(--accent); }
.post-list p { margin: 0; color: var(--muted); font-size: 17px; }
.empty { color: var(--muted); }

.post header { margin-bottom: 32px; }
.post h1, .page h1 { font: 600 clamp(32px, 6vw, 46px)/1.15 var(--serif); letter-spacing: -0.02em; margin: 12px 0; }
.dek { font-size: 21px; color: var(--muted); margin: 0; }
.cover { display: block; width: 100%; height: auto; border-radius: 8px; margin: 0 0 32px; }

.prose h2 { font-size: 28px; line-height: 1.3; margin: 2em 0 0.5em; }
.prose h3 { font-size: 22px; line-height: 1.35; margin: 1.6em 0 0.4em; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose blockquote { margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font: 0.85em var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.prose pre code { border: 0; padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.back { margin-top: 56px; font: 500 15px/1 var(--sans); }
.back a { text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font: 14px/1 var(--sans); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; }
