/* ============================================================
   BLOG STYLES
   Extends css/style.css — do not import separately.
   Used by blog.html (the list) and every page under blog/ (posts).
   ============================================================ */

/* ── Back link — same control as the case-study back link ──── */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--text-3);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.post-back:hover {
  color: var(--text);
  border-color: var(--text-3);
  background: var(--accent-dim);
}

/* ── Blog index header ────────────────────────────────────── */
.blog-header {
  padding: calc(var(--nav-h) + 56px) 0 32px;
}

.blog-header__row {
  margin-bottom: 16px;
}

.blog-header__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Subtitle + Go back share one row, same position as the Experience
   page: description left, action pill right, centred against it
   rather than pinned to the title above. */
.blog-header__subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Go back reuses .post-back — the same "Go back" pill used
   throughout the site — so it reads as the same component,
   not a one-off. */
.blog-header__subtitle-row .post-back {
  flex-shrink: 0;
}

.blog-header__subtitle {
  font-size: var(--text-md);
  color: var(--text-3);
  line-height: 1.6;
  max-width: 620px;
}

.blog-header__subtitle a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.blog-header__subtitle a:hover { color: var(--accent); }

/* ── Article list ─────────────────────────────────────────
   Reuses .archive-card / .other-card__link from style.css so
   list entries match the Speaking list on the homepage. */
.blog-list {
  padding-bottom: 96px;
}

/* ── Individual post header ──────────────────────────────── */
.post-header {
  padding: calc(var(--nav-h) + 40px) 0 40px;
}

.post-header .post-back { margin-bottom: 32px; }

.post-meta {
  font-family: var(--mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  display: block;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5.5vw, var(--text-4xl));
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.12;
  max-width: 900px;
}

/* ── Post body — prose typography for synced/authored HTML ── */
.post-content {
  max-width: 680px;
  padding-bottom: 96px;
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--text-2);
}

.post-content > *:first-child { margin-top: 0; }

.post-content p {
  margin-bottom: 24px;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text);
  margin: 48px 0 20px;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  margin: 36px 0 16px;
  line-height: 1.35;
}

/* One step lighter than h3 — a subsection inside a section, not a new
   one, so it reads smaller and doesn't reset the article's rhythm. */
.post-content h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  line-height: 1.4;
}

/* A kicker/label, not a headline — for the finest-grained separation
   (a short aside, a callout before a list) without competing with the
   display headings above it. */
.post-content h5 {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 24px 0 10px;
}

.post-content strong { color: var(--text); font-weight: 600; }

.post-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-2);
}

.post-content a:hover { text-decoration-color: var(--text-3); }

.post-content ul,
.post-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.post-content li { margin-bottom: 8px; }

.post-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 8px 0 32px;
  display: block;
}

.post-content figure { margin: 0 0 32px; }
.post-content figcaption {
  font-size: var(--text-sm);
  color: var(--text-4);
  margin-top: 8px;
}

.post-content blockquote {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 2px solid var(--border-2);
  color: var(--text-3);
  font-style: italic;
}

/* Substack's own subscribe-widget markup is stripped by the sync
   script, but this is a fallback in case any slips through. */
.post-content .subscription-widget-wrap-editor { display: none; }

@media (max-width: 768px) {
  .blog-header { padding: calc(var(--nav-h) + 32px) 0 24px; }
  .post-header { padding: calc(var(--nav-h) + 24px) 0 28px; }
  .blog-header__subtitle-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
