/* ============================================================================
   blog.css — long-form reading styles, loaded only on blog pages. Reuses the
   site's tokens; adds the article reading column, prose typography, and the
   post-list index.
   ========================================================================== */

.article,
.blog {
  flex: 1 1 auto;
  width: 100%;
  max-width: 44rem;
  padding-block: var(--space-7);
}

.article__back { font-size: var(--text-sm); margin-bottom: var(--space-5); }
.article__back a { color: var(--c-rust); text-decoration: none; }
.article__back a:hover { text-decoration: underline; }

.article__title {
  font-family: var(--font-head);
  font-weight: var(--weight-bold);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.article__meta { margin-top: var(--space-3); margin-bottom: var(--space-6); font-size: var(--text-sm); color: var(--c-ink-soft); }

.blog-head { margin-bottom: var(--space-7); }

/* ---- Prose (rendered Markdown) ------------------------------------------- */
.prose { font-size: var(--text-lg); line-height: var(--leading-body); color: var(--c-ink); }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 {
  font-family: var(--font-head); font-weight: var(--weight-bold);
  font-size: var(--text-2xl); line-height: 1.2; letter-spacing: -0.01em;
  margin-top: var(--space-7);
}
.prose h3 {
  font-family: var(--font-head); font-weight: var(--weight-semibold);
  font-size: var(--text-xl); margin-top: var(--space-6);
}
.prose a { color: var(--c-rust); text-underline-offset: 2px; }
.prose strong { font-weight: var(--weight-semibold); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose blockquote {
  border-left: 3px solid var(--c-line-strong);
  padding-left: var(--space-4);
  color: var(--c-ink-soft);
  font-style: italic;
}
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
}
.prose pre {
  background: var(--c-ink); color: var(--c-cream);
  padding: var(--space-4); border-radius: var(--radius); overflow-x: auto;
}
.prose pre code { background: none; border: none; padding: 0; color: inherit; }
.prose img { max-width: 100%; border-radius: var(--radius); }
.prose hr { border: none; border-top: 1px solid var(--c-line); }

/* ---- Post list (index) --------------------------------------------------- */
.post-list__items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.post-list__date { font-size: var(--text-sm); color: var(--c-ink-soft); }
.post-list__title { font-family: var(--font-head); font-weight: var(--weight-semibold); font-size: var(--text-xl); margin-top: var(--space-1); }
.post-list__title a { color: var(--c-ink); text-decoration: none; }
.post-list__title a:hover { color: var(--c-rust); }
.post-list__summary { margin-top: var(--space-2); color: var(--c-ink-soft); }
.post-list__empty { color: var(--c-ink-soft); }
