/* Burt blog theme — the locked monochrome brand, matching hiburt.com.
   Ink #14161A on white, Bricolage Grotesque display, Hanken Grotesk body, IBM Plex Mono for figures. */
:root {
  --ink: #14161A; --graphite: #2C313A; --slate: #565E69; --steel: #828A95; --mist: #AEB5BE;
  --line: #E4E7EB; --line-soft: #EEF0F2; --surface: #FFFFFF; --surface-2: #F8F9FA; --ground: #F2F4F5;
  --accent: #14161A; --accent-press: #000000; --on-accent: #FFFFFF;
  --radius: 6px; --radius-lg: 11px; --radius-xl: 16px;
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', Georgia, sans-serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --wrap: 720px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Nav ── */
.site-nav { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.nav-row { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; padding-inline: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand-blog { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-home { font-family: var(--font-mono); font-size: 13px; color: var(--steel) !important; }

/* ── Feed header ── */
.site-main { padding: 56px 0 72px; }
.feed-head { max-width: var(--wrap); margin: 0 auto 44px; padding-inline: 24px; }
.feed-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin: 0 0 10px; }
.feed-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.feed-desc { color: var(--slate); font-size: 18px; margin: 12px 0 0; max-width: 60ch; }

/* ── Post feed (ruled list, not cards) ── */
.post-feed { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.post-card { border-top: 1px solid var(--line); }
.post-card:last-child { border-bottom: 1px solid var(--line); }
.post-card-link { display: block; padding: 28px 0; }
.post-card-link:hover { text-decoration: none; }
.post-card-title { font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -.015em; line-height: 1.2; margin: 0; transition: color .15s; }
.post-card-link:hover .post-card-title { color: var(--graphite); }
.post-card-excerpt { color: var(--slate); font-size: 16.5px; line-height: 1.6; margin: 8px 0 0; max-width: 62ch; }
.post-card-meta { font-size: 12.5px; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; margin-top: 14px; }

/* ── Pagination ── */
.pagination { max-width: var(--wrap); margin: 40px auto 0; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; }
.pagination a { color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; }
.pagination a:hover { border-color: var(--mist); text-decoration: none; }
.pagination .page-number { color: var(--steel); }

/* ── Single post ── */
.post-wrap { max-width: var(--wrap); }
.post-header { margin: 8px 0 32px; }
.post-kicker { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.post-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5.5vw, 48px); letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.post-lede { font-size: 20px; line-height: 1.55; color: var(--slate); margin: 18px 0 0; }
.post-meta { font-size: 13px; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-feature { margin: 0 0 36px; }
.post-feature img { width: 100%; border-radius: var(--radius-lg); }
.post-feature figcaption { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel); text-align: center; margin-top: 10px; }

/* ── Post prose (Ghost {{content}}) ── */
.post-content { font-size: 18.5px; line-height: 1.72; color: var(--graphite); }
.post-content > * { margin: 0 0 1.5em; }
.post-content h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); margin: 1.8em 0 .5em; }
.post-content h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); margin: 1.6em 0 .4em; }
.post-content h4 { font-weight: 700; font-size: 18px; color: var(--ink); margin: 1.4em 0 .3em; }
.post-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--mist); }
.post-content a:hover { text-decoration-color: var(--ink); }
.post-content strong { font-weight: 700; color: var(--ink); }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content li { margin: 0 0 .5em; }
.post-content blockquote { border-left: 3px solid var(--ink); padding: 2px 0 2px 22px; margin-left: 0; color: var(--slate); font-size: 20px; font-style: italic; }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-content img, .post-content .kg-card { border-radius: var(--radius-lg); }
.post-content figcaption { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel); text-align: center; margin-top: 10px; }
.post-content code { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.post-content pre { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; background: var(--ink); color: #EDEFF2; border-radius: var(--radius-lg); padding: 18px 20px; overflow-x: auto; }
.post-content pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
/* Ghost Koenig card widths */
.kg-width-wide { width: min(100vw - 48px, 1000px); margin-inline: calc(50% - min(50vw - 24px, 500px)); }
.kg-width-full { width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0; }
.kg-width-full img { border-radius: 0; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.footer-row { max-width: 1080px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 24px; color: var(--slate); font-size: 14px; }
.footer-row .mono { font-size: 12.5px; color: var(--steel); }
.footer-row a { color: var(--steel); }
.footer-row a:hover { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links ul { display: none; }
  .site-main { padding: 36px 0 48px; }
}
