/* ---------- Blog (reuses tokens from styles.css) ---------- */

/* Blog listing */
.blog-hero { padding: 3.5rem 0 1rem; }
.blog-hero .container { max-width: 780px; }
.blog-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.5rem;
}
.blog-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0 0 0.75rem; }
.blog-hero p { color: var(--text-muted); font-size: 1.075rem; }

.post-list { padding: 1.5rem 0 4rem; }
.post-list .container { max-width: 780px; }
.post-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  margin-bottom: 1.25rem;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 101, 192, 0.3);
}
.post-card h2 { font-size: 1.25rem; margin: 0 0 0.4rem; color: var(--text); }
.post-card p { color: var(--text-muted); font-size: 0.975rem; margin: 0; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.draft-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

/* Article */
.article { padding: 2.5rem 0 4rem; }
.article .container { max-width: 720px; }
.back-link { font-weight: 600; font-size: 0.9rem; display: inline-block; margin-bottom: 1.5rem; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0.6rem 0 0.75rem; }
.article-meta { font-size: 0.9rem; color: var(--text-muted); }

.draft-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.prose { color: var(--text); font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: 1.45rem; margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 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: 0.35rem 0; }
.prose code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose blockquote {
  margin: 0 0 1.15rem;
  padding: 0.5rem 1.1rem;
  border-left: 3px solid var(--brand);
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

/* 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(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.article-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
