/* ---- Blog posts and case studies (/blog/<slug>, /case-study/<slug>) ----
   One reading column: back link, meta line, title, lead image, then the
   article. Article text keeps its real capitals, unlike the lowercase
   marketing pages, because long lowercase copy is hard to read. */

.post { padding: 56px 0 96px; }
.post-col { max-width: 760px; margin: 0 auto; }

.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--brand);
}
.post-back:hover { color: var(--brand-ink); }

.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 32px 0 16px; font-size: 14px; color: var(--muted); }
.post-meta .res-type { font-size: 11px; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.post h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 0 0 32px; }
.post-hero { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); margin-bottom: 44px; }

.post-body { text-transform: none; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 20px; }
.post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
  color: var(--ink); line-height: 1.3; letter-spacing: -.01em; margin: 44px 0 14px;
}
.post-body h2 { font-size: 28px; }
.post-body h3 { font-size: 23px; }
.post-body h4 { font-size: 19px; margin-top: 32px; }
.post-body h5, .post-body h6 { font-size: 17px; margin-top: 28px; }
.post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--brand-ink); }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body li > p { margin: 0; }
.post-body li > ul, .post-body li > ol { margin: 8px 0 0; }
.post-body li::marker { color: var(--brand); }
.post-body img { height: auto; margin: 28px auto; border-radius: var(--radius); border: 1px solid var(--line); }
.post-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand); color: var(--ink); font-size: 19px;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body th, .post-body tr:first-child td { background: var(--surface); font-weight: 600; color: var(--ink); }
.post-body td p, .post-body th p { margin: 0; }

.post-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .post { padding: 36px 0 64px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 24px; }
  .post-body h3 { font-size: 20px; }
}
