/* ============================================================
   blog — the index (/blog) and each post (/blog/<slug>)
   2026-11-14. The articles keep their own markup (kicker, dek,
   byline, hero, tables, inline SVG charts, post footer); this is
   that markup in the website's dark type and colours.
   ============================================================ */

.post-crumbs {
  max-width: calc(740px + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(118px, 10vw, 160px) var(--gutter) 0;
  font-size: 13px; color: rgb(150, 156, 166);
}
.post-crumbs a { color: rgb(150, 156, 166); }
.post-crumbs a:hover { color: var(--white); }

.post {
  --chart-muted: rgb(150, 156, 166);
  --line-soft: rgb(38, 41, 46);
  max-width: calc(740px + 2 * var(--gutter)); margin: 0 auto;
  padding: 18px var(--gutter) clamp(40px, 5vw, 72px);
  color: rgb(214, 217, 222);
}
.post .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.post h1 { margin: 14px 0 18px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; color: var(--heading); }
.post .dek { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); }
.post .byline, .post .updated { margin-top: 18px; font-size: 13px; color: rgb(150, 156, 166); }
.post .byline strong { color: var(--heading); font-weight: 600; }
.post .post-hero { margin: 32px 0 40px; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.post .post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post h2 { margin: 56px 0 16px; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; color: var(--heading); }
.post h3 { margin: 32px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--heading); }
.post p, .post li { font-size: 17px; line-height: 1.7; }
.post p { margin: 0 0 20px; }
.post ul, .post ol { margin: 0 0 20px; padding-left: 24px; }
.post ul { list-style: disc; } .post ol { list-style: decimal; }
.post li { margin: 6px 0; }
.post li::marker { color: rgb(96, 102, 112); }
.post a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post a:hover { color: var(--muted); }
.post strong { color: var(--white); font-weight: 600; }
.post em { color: rgb(196, 200, 207); }
.post blockquote { margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgb(12, 13, 15); color: var(--muted); }
.post blockquote p:last-child, .post blockquote ul:last-child { margin-bottom: 0; }
.post hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line-soft); }
.post code { font-size: 0.9em; padding: 0.1em 0.4em; border: 1px solid var(--line-soft); border-radius: 4px; background: rgb(24, 26, 30); }
.post .table-wrap { margin: 0 0 28px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; }
.post table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.post th, .post td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.post tr:last-child td { border-bottom: 0; }
.post th { background: rgb(16, 17, 20); font-weight: 600; color: var(--heading); }
.post figure { margin: 32px 0; }
.post figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.post figcaption { margin-top: 10px; font-size: 13px; color: rgb(150, 156, 166); }
.post .blog-chart { padding: 16px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgb(12, 13, 15); color: var(--heading); }
.post .blog-chart svg { display: block; width: 100%; height: auto; }
.post .post-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: rgb(150, 156, 166);
}
.post .post-footer a { color: var(--muted); text-decoration: none; }

.post-more {
  max-width: calc(740px + 2 * var(--gutter)); margin: 0 auto;
  padding: 0 var(--gutter) clamp(60px, 8vw, 120px);
}
.post-more h2 { font-size: 18px; font-weight: 600; color: var(--heading); }
.post-more ul { margin-top: 14px; display: grid; gap: 10px; list-style: none; padding: 0; }
.post-more li a { font-size: 15px; color: var(--muted); }
.post-more li a:hover { color: var(--white); }
.post-more__try { margin-top: 28px; padding: 18px 20px; border: 1px solid rgb(38, 41, 46); border-radius: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-more__try a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ── the index ─────────────────────────────────────────────── */
.blog-index { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(120px, 11vw, 180px) var(--gutter) clamp(60px, 8vw, 120px); }
.blog-index__head h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; color: var(--heading); }
.blog-index__head p { max-width: 600px; margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.blog-grid { margin-top: clamp(36px, 4vw, 64px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.2vw, 36px); list-style: none; padding: 0; }
.blog-card__link { display: flex; flex-direction: column; gap: 10px; height: 100%; color: inherit; }
.blog-card__img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid rgb(38, 41, 46); border-radius: 14px; transition: transform 300ms var(--ease-out); }
.blog-card__link:hover .blog-card__img { transform: translateY(-3px); }
.blog-card__kicker { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.blog-card__title { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--heading); }
.blog-card__dek { font-size: 14px; line-height: 1.55; color: var(--muted); }
.blog-card__meta { margin-top: auto; font-size: 12px; color: rgb(150, 156, 166); }

@media (prefers-reduced-motion: reduce) { .blog-card__img { transition: none; } }
