/* blog/blog.css — Artikel-Typografie auf dem Site-Geruest (/tools/shell.css).
   Welle 1 des Site-Redesigns (2026-11-16). Brand (bapla v0.3): Inter als Lesetext
   (16–17 px, 1.55), Source Serif 4 fuer Titel und kursive Lede, JetBrains Mono fuer
   Meta, Tabellen und Code. Keine Flaechen fuer Signalrot; Hinweiskaesten als Linien.

   Die Klassen der migrierten Posts (tldr, pull, atom-ref, chapter, rule-box, caveat,
   callout, diagram, lead, footnote, td.num/rate/pos/neg/blank/tag/value, pre .kw/.str/.cm)
   werden hier zentral definiert — die Posts tragen kein eigenes CSS mehr. */

:root { --post-w: 720px; }

/* ── Kopf ── */
.post-head { grid-template-columns: minmax(0, 1fr); padding-block: 36px 24px; }
.post-head h1 { max-width: 24ch; }
.post-head .lede { font-style: italic; max-width: 60ch; }
.post-kicker { margin: 0 0 14px; }
.post-kicker time { color: var(--ink-2); }
.post-meta { margin: 14px 0 0; text-transform: none; letter-spacing: 0.02em; font-size: 12px; color: var(--ink-3); line-height: 1.7; max-width: 80ch; }
.post-meta a { color: var(--ink-2); }

/* ── Lesetext ── */
.post-body { max-width: var(--post-w); font-size: 17px; line-height: 1.6; color: var(--ink); }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.1em; color: var(--ink); }
.post-body .lead { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink-2); margin-bottom: 1.4em; }
.post-body h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; line-height: 1.2; margin: 2.4em 0 0.6em; padding-top: 0.8em; border-top: 1px solid var(--rule-soft); }
.post-body h2.chapter { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); border-top: 1px solid var(--rule); margin-top: 3em; padding-top: 1em; }
.post-body h2.chapter + h2 { margin-top: 1em; border-top: 0; padding-top: 0; }
.post-body h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; margin: 1.8em 0 0.5em; }
.post-body h3 .num, .post-body h3 .pos { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--signal); margin-right: 0.5em; font-variant-numeric: tabular-nums; vertical-align: 0.15em; }
.post-body strong { font-weight: 600; }
.post-body em { color: var(--ink-2); }
.post-body a { color: var(--ink); text-decoration-color: var(--rule); }
.post-body a:hover { text-decoration-color: var(--signal); }
.post-body ul, .post-body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.post-body li { margin-bottom: 0.4em; }
.post-body li::marker { color: var(--ink-3); }
.post-body hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 2.4em 0; }
.post-body blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 2px solid var(--rule); color: var(--ink-2); font-family: var(--serif); font-size: 18px; font-style: italic; }
.post-body code { font-family: var(--mono); font-size: 0.86em; color: var(--ink); background: var(--surface); padding: 0.08em 0.35em; }
.post-body pre { background: var(--bg-cool); border: 1px solid var(--rule); padding: 14px 16px; margin: 1.2em 0 1.6em; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body pre .kw { color: var(--signal); font-weight: 500; }
.post-body pre .str { color: var(--ok); }
.post-body pre .cm { color: var(--ink-3); }
.post-body pre.formation { font-size: 11px; line-height: 1.4; }
.post-body .diagram { background: var(--bg-cool); border: 1px solid var(--rule); padding: 18px 20px; margin: 1.4em 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; overflow-x: auto; white-space: pre; }
.post-body .cny { font-family: var(--mono); }

/* Hinweiskaesten — Linien statt Flaechen */
.post-body .tldr, .post-body .callout, .post-body .caveat, .post-body .rule-box {
  margin: 1.6em 0 2em; padding: 14px 0 14px 18px; border-left: 2px solid var(--ink); font-size: 15.5px; line-height: 1.6;
}
.post-body .tldr strong:first-child, .post-body .caveat strong:first-child, .post-body .rule-box strong:first-child {
  display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal);
}
.post-body .caveat { border-left-color: var(--rule); }
.post-body .caveat strong:first-child { color: var(--warn); }
.post-body .rule-box { border: 1px solid var(--ink); border-left-width: 2px; padding: 14px 18px; }
.post-body .callout { border-left-color: var(--rule); }
.post-body .callout strong { color: var(--ink); }
.post-body .tldr p:last-child, .post-body .callout p:last-child, .post-body .caveat p:last-child, .post-body .rule-box p:last-child { margin-bottom: 0; }
.post-body .pull { margin: 1.4em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 2px solid var(--ink); font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--ink); }
.post-body .atom-ref { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); margin: -0.6em 0 1.4em; }
.post-body .footnote { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--rule-soft); font-size: 14px; color: var(--ink-2); }

/* Tabellen — Ledger */
.post-body .tablewrap { margin: 1.2em 0 1.8em; border: 1px solid var(--rule); background: var(--bg-cool); overflow-x: auto; max-width: 100%; }
.post-body table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; margin: 0; }
.post-body th { text-align: left; padding: 8px 12px; font-weight: 500; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); border-bottom: 1px solid var(--rule-soft); white-space: nowrap; vertical-align: bottom; }
.post-body td { padding: 8px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.post-body tr:last-child td { border-bottom: 0; }
.post-body tbody tr:hover td { background: var(--surface); }
.post-body td:first-child { font-family: var(--sans); font-size: 13.5px; }
.post-body td.num, .post-body td.rate, .post-body td.value { text-align: right; white-space: nowrap; }
.post-body td.value { font-weight: 600; }
.post-body td.pos { color: var(--ok); }
.post-body td.neg { color: var(--signal); }
.post-body td.blank, .post-body td.tag { color: var(--ink-3); font-style: italic; }
.post-body td code { background: none; padding: 0; }

/* ── Fuss ── */
.post-footer { max-width: var(--post-w); margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.post-footer p { margin: 0 0 0.6em; }
.post-footer a { color: var(--ink-2); }

/* ── Blog-Uebersicht ── */
.post-list { border-top: 1px solid var(--rule-soft); }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule-soft); }
.post-row .when { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); line-height: 1.9; display: grid; align-content: start; }
.post-row .when .lang { color: var(--signal); }
.post-row h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 6px; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-row p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 72ch; }
.post-row .alt { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.post-row .alt a { color: var(--ink-2); }
.post-row[hidden] { display: none; }
.post-count { margin-top: 14px; }

@media (max-width: 720px) {
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 23px; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .post-row .when { display: flex; gap: 12px; }
}
