/* ============================================================
   blog-article.css — single blog article pages (editorial).
   Requires: fonts.css + tokens.css + base.css + site.css first.
   Tokens-only, 0 hardcode. White 60 / blue 30 / yellow 10.
   Layout: banner (container--narrow) → title → meta → body (container--narrow).
   ============================================================ */

.post {
  padding-block: var(--section-pad);
}

/* ── Banner (cover) — wider than the reading column for presence ── */
.post__cover {
  margin: 0 0 var(--sp-8);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1280 / 720;
  background: var(--c-surface);
}
.post__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Title + byline/date (reading column) ── */
.post__title {
  margin: 0 0 var(--sp-4);
  font-size: var(--text-4xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.post__meta {
  margin: 0 0 var(--sp-10);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

/* ── Body prose ── */
.post__body {
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--c-text);
}
.post__body > :first-child { margin-top: 0; }

.post__body p { margin: 0 0 var(--sp-5); }

.post__body h2 {
  font-size: var(--text-2xl);
  line-height: var(--lh-snug);
  margin: var(--sp-10) 0 var(--sp-4);
}
.post__body h3 {
  font-size: var(--text-xl);
  line-height: var(--lh-snug);
  margin: var(--sp-8) 0 var(--sp-3);
}

.post__body ul,
.post__body ol {
  margin: 0 0 var(--sp-5);
  padding-left: var(--sp-6);
}
.post__body li { margin-bottom: var(--sp-2); }
.post__body li::marker { color: var(--c-primary); }

.post__body a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.post__body a:hover { color: var(--c-primary-dark); }

.post__body strong { font-weight: var(--fw-bold); }
.post__body em { font-style: italic; }

.post__body blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 3px solid var(--c-accent);
  font-style: italic;
  color: var(--c-text-2);
}
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body blockquote cite {
  display: block;
  margin-top: var(--sp-2);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

/* Dialogue — em-dash turns, hanging indent, tight spacing between turns */
.post__body .post__dialogue { margin: 0 0 var(--sp-5); }
.post__body .post__dialogue p {
  margin: 0 0 var(--sp-2);
  padding-left: var(--sp-5);
  text-indent: calc(-1 * var(--sp-5));
}

.post__body img {
  border-radius: var(--r-md);
  margin-block: var(--sp-6);
}

/* ── Video figure (16:9 responsive embed) ── */
.post__video {
  position: relative;
  margin: var(--sp-8) 0;
  aspect-ratio: 16 / 9;
}
.post__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--r-lg);
}

/* ── Back link ── */
.post__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--sp-12);
  font-weight: var(--fw-semibold);
  color: var(--c-primary);
  text-decoration: none;
}
.post__back:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .post { padding-block: var(--section-pad-mobile); }
}
@media (max-width: 480px) {
  .post__title { font-size: var(--text-3xl); }
}
