/* ====================================================================
   Blog — hub (/blog/) and post (/blog/<slug>/) pages.
   New surface (no build-template provenance); scoped .blog-* / .post-*.
   ==================================================================== */

/* ---- Hub hero ---- */
.blog-hero { padding-bottom: 24px; }
.blog-h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.6vw, 3.8rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.03;
  margin: 0; text-wrap: balance;
}
.blog-h1 em { font-style: normal; color: var(--accent); }
.blog-lede {
  font-family: var(--serif); font-size: 19px; line-height: 1.5;
  color: var(--ink-2); margin: 18px 0 0; max-width: 56ch; text-wrap: pretty;
}

/* ---- Hub list ---- */
.blog-list-section { padding-top: 40px; }
.blog-list { border-top: 1px solid var(--line); }
.blog-list .blog-card { border-bottom: 1px solid var(--line); }

.blog-card {
  display: block; padding: 28px 16px; margin: 0 -16px;
  text-decoration: none; color: inherit;
  transition: background 140ms ease;
}
.blog-card:hover { background: var(--paper-warm); }
.blog-card-meta {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
}
.blog-card-cat { color: var(--accent-warm); }
.blog-card-h {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: -0.022em; line-height: 1.15; margin: 12px 0 0; text-wrap: balance;
}
.blog-card:hover .blog-card-h { color: var(--accent); }
.blog-card-d {
  font-size: 15px; line-height: 1.6; color: var(--ink-3);
  margin: 10px 0 0; max-width: 72ch; text-wrap: pretty;
}

/* ---- Post page ---- */
.post-wrap { max-width: 760px; }
.post-hero { padding-bottom: 0; }
.post-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: 500; letter-spacing: -0.028em; line-height: 1.08;
  margin: 0; text-wrap: balance;
}
.post-title em { font-style: normal; color: var(--accent); }
.post-meta {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
  margin: 22px 0 0;
}
.post-body-section { padding-top: 48px; }

/* ---- Post body typography ---- */
.post-body p {
  font-size: 17px; line-height: 1.72; color: var(--ink-2);
  margin: 0 0 20px; text-wrap: pretty;
}
.post-body h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.024em; line-height: 1.15; margin: 44px 0 16px; text-wrap: balance;
}
.post-body h3 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.018em;
  line-height: 1.25; margin: 34px 0 12px;
}
.post-body h4 {
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.012em;
  line-height: 1.3; margin: 26px 0 10px;
}
.post-body h2:first-child, .post-body h3:first-child, .post-body p:first-child { margin-top: 0; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 26px; }
.post-body li {
  font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 8px;
}
.post-body li::marker { color: var(--accent-warm); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a {
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.post-body a:hover { color: var(--accent-deep); }

/* ---- Related posts ---- */
.post-related-section .section-head { margin-bottom: 24px; }
.post-related {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 900px) { .post-related { grid-template-columns: 1fr; } }
.post-related .blog-card {
  margin: 0; padding: 24px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper);
}
.post-related .blog-card-h { font-size: 19px; }
.post-related .blog-card-d { font-size: 14px; }
