/* ---------- Blog (reuses the tokens from styles.css) ----------
   Ported onto the 2026 rebuild's tokens. This file used to read --brand, --border, --radius,
   --radius-sm, --shadow-sm, --shadow-lg and --text-muted, none of which styles.css defines any more;
   an invalid var() invalidates the whole declaration, so every border, radius, shadow and muted
   colour here was being dropped silently. Design language is "Industry": square corners, hairline
   borders, no shadows, Barlow Condensed headings, steel-blue accents. */

/* ── Blog listing ────────────────────────────────────────────────────── */
.blog-hero { padding: 56px 0 24px; }
.blog-hero .container { max-width: 820px; }
.blog-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin: 0 0 14px;
}
.blog-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 0 0 14px; }
.blog-hero p { font-size: 1.05rem; opacity: .85; }

.post-list { padding: 8px 0 64px; }
.post-list .container { max-width: 820px; }

.post-card {
  display: block;
  padding: 24px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--divider);
  text-decoration: none;
  color: inherit;
  transition: border-left-color .15s ease, background .15s ease;
}
.post-card + .post-card { margin-top: 14px; }
.post-card:hover { border-left-color: var(--accent); background: var(--bg); color: inherit; }
.post-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-card h2 { font-size: 26px; margin: 0 0 8px; color: var(--text); }
.post-card p { font-size: 15px; opacity: .82; margin: 0; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 10px;
}

.draft-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a6116;
  background: rgba(138, 97, 22, .12);
  border: 1px solid rgba(138, 97, 22, .3);
  padding: 1px 8px;
}

/* ── Article ─────────────────────────────────────────────────────────── */
.article { padding: 40px 0 64px; }
.article .container { max-width: 740px; }
.back-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  display: inline-block;
  margin-bottom: 28px;
}
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin: .6rem 0 .75rem; }
.article-meta { font-size: .9rem; opacity: .8; }

.draft-note {
  background: rgba(138, 97, 22, .08);
  border: 1px solid rgba(138, 97, 22, .3);
  border-left: 3px solid #8a6116;
  padding: 1rem 1.25rem;
  color: #6d4d12;
  font-size: .95rem;
  margin-bottom: 2rem;
}

.prose { color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: 1.7rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.3rem; margin: 1.75rem 0 .5rem; }
.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.prose li { margin: .35rem 0; }
.prose a { text-underline-offset: 3px; }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--bg-alt);
  border: 1px solid var(--hairline);
  padding: .05em .4em;
}
.prose pre {
  background: var(--accent-900);
  color: #e6ecf2;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 0 0 1.15rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9rem;
  line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose blockquote {
  margin: 0 0 1.15rem;
  padding: .5rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
  opacity: .9;
}

.article-cta {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--divider);
}

/* ── Diagrams (pre-rendered Mermaid → inline SVG asset) ──────────────── */
.article-figure { margin: 1.75rem 0 1.5rem; }
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--divider);
  padding: 1rem;
}
.article-figure figcaption {
  margin-top: .6rem;
  font-size: .88rem;
  opacity: .75;
  text-align: center;
}
