/* Blog pages — same design tokens as the main site, article-first layout. */
:root {
  --paper: oklch(0.972 0.002 250);
  --card: oklch(0.99 0.002 250);
  --ink: oklch(0.24 0.008 250);
  --accent: oklch(0.53 0.2 27);
  --muted: oklch(0.24 0.008 250 / 0.62);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { margin: 0; box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  background-image: radial-gradient(oklch(0.24 0.008 250 / 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.b-head {
  display: flex; align-items: baseline; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 28px 20px 0;
}
.b-home {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); text-decoration: none; font-weight: 500;
}
.b-home:hover { color: var(--accent); }
.b-crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.b-crumbs a { color: inherit; text-decoration: none; }
.b-crumbs a:hover { color: var(--accent); }

.b-main { max-width: 720px; margin: 0 auto; padding: 56px 20px 40px; }
.b-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 46px);
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 16px;
}
.b-lede { font-size: 19px; color: var(--muted); margin-bottom: 40px; }

article h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; margin: 44px 0 12px; }
article h3 { font-size: 19px; margin: 32px 0 8px; }
article p { margin: 0 0 18px; }
article a { color: var(--accent); text-underline-offset: 2px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin-bottom: 6px; }
article img { max-width: 100%; border-radius: 8px; border: 1px solid oklch(0.24 0.008 250 / 0.12); }
article blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink);
}
article pre {
  background: var(--card); border: 1px solid oklch(0.24 0.008 250 / 0.14);
  border-radius: 8px; padding: 16px 18px; overflow-x: auto; margin: 0 0 18px;
}
article code { font-family: var(--mono); font-size: 14px; }
article p code, article li code {
  background: oklch(0.24 0.008 250 / 0.06); padding: 1px 5px; border-radius: 4px;
}
article table { border-collapse: collapse; margin: 0 0 18px; width: 100%; font-size: 15px; }
article th, article td { border: 1px solid oklch(0.24 0.008 250 / 0.15); padding: 8px 12px; text-align: left; }
article th { font-weight: 600; background: var(--card); }

.b-cta {
  margin-top: 56px; padding: 22px 24px;
  border: 1px solid oklch(0.53 0.2 27 / 0.3); border-radius: 10px;
  background: oklch(0.53 0.2 27 / 0.06);
}
.b-cta-title { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.b-cta p { color: var(--muted); margin-bottom: 14px; }
.b-btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 10px 20px; border-radius: 4px; font-weight: 600; font-size: 14px;
  text-decoration: none;
}
.b-btn:hover { background: var(--accent); }

.b-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.b-item {
  display: block; padding: 18px 20px; border-radius: 10px; text-decoration: none;
  color: inherit; background: var(--card); border: 1px solid oklch(0.24 0.008 250 / 0.1);
}
.b-item:hover { border-color: oklch(0.53 0.2 27 / 0.45); }
.b-item-date { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.b-item-title { font-family: var(--serif); font-size: 22px; margin: 4px 0 4px; }
.b-item-desc { font-size: 14.5px; color: var(--muted); }
.b-empty { color: var(--muted); font-style: italic; }

.b-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  max-width: 720px; margin: 0 auto; padding: 20px;
  border-top: 1px solid oklch(0.24 0.008 250 / 0.1);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.b-foot a { color: inherit; text-decoration: none; margin-left: 14px; }
.b-foot a:first-child { margin-left: 0; }
.b-foot a:hover { color: var(--accent); }

/* with the site header on blog pages, the crumb bar sits under the nav */
.b-crumbbar {
  max-width: 720px; margin: 0 auto; padding: 18px 20px 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted);
}
.b-crumbbar a { color: inherit; text-decoration: none; }
.b-crumbbar a:hover { color: var(--accent); }
.b-main { padding-top: 34px; }

/* stat strip: big number, small label — simple, no chart libraries */
.b-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin: 26px 0 6px;
}
.b-stat {
  background: var(--card); border: 1px solid oklch(0.24 0.008 250 / 0.12);
  border-radius: 10px; padding: 14px 16px;
}
.b-stat-n { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1.1; }
.b-stat-l { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* machine-translation marker: honest, quiet */
.b-mtnote {
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
  color: oklch(0.24 0.008 250 / 0.5); margin: -6px 0 26px;
}
.b-mtnote a { color: inherit; }

/* the listing shows only the selected language; the other stays in the
   DOM for crawlers and appears instantly on toggle */
html[data-lang="en"] .b-item[data-post-lang="de"] { display: none; }
html[data-lang="de"] .b-item[data-post-lang="en"] { display: none; }

/* diagram, related link, author box */
.b-fig { margin: 26px 0; }
.b-fig svg { width: 100%; height: auto; }
.b-fig figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.b-related { margin-top: 34px; padding-top: 16px; border-top: 1px solid oklch(0.24 0.008 250 / 0.1); font-size: 15px; }
.b-author {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 26px;
  padding: 16px 18px; background: var(--card);
  border: 1px solid oklch(0.24 0.008 250 / 0.12); border-radius: 10px;
  font-size: 14px; line-height: 1.6; color: var(--muted);
}
.b-author img { border-radius: 50%; }
.b-author strong { color: var(--ink); }
