/**
 * Level 99 — blog ("Strategy Guides") styles.
 * Loaded after styles-hud.css; only blog-specific rules live here.
 * All colors/type come from the :root tokens in styles-hud.css.
 */

/* ---------- Shared: kicker + meta strip ---------- */
.blog-kicker {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-paper);
}
.section--dark .blog-kicker { color: var(--lime); }
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim);
}
.post-meta .post-meta__new { color: var(--accent-paper); font-weight: 700; }
.post-meta .post-meta__tag {
  border: 1px solid var(--paper-line); padding: 3px 9px; border-radius: var(--r);
  color: var(--paper-dim); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.post-meta__tag:hover { border-color: var(--accent-paper); color: var(--accent-paper); }

/* ---------- Blog index head ---------- */
.blog-head { padding: clamp(48px, 7vw, 72px) 0 40px; border-bottom: 1px solid var(--paper-line); }
.blog-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em;
  margin-top: var(--space-3); max-width: 16em; text-wrap: balance;
}
.blog-head .blog-head__lede { margin-top: var(--space-3); font-size: 17.5px; color: var(--paper-dim); max-width: 38em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-5); }
.tag-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border: 1px solid var(--paper-line); border-radius: var(--r);
  color: var(--paper-dim); background: transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tag-chip:hover { border-color: var(--accent-paper); color: var(--accent-paper); }
.tag-chip.is-active { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }

/* ---------- Post cards (index + related) ---------- */
.post-list { padding: 40px 0 clamp(48px, 7vw, 72px); }
.post-list .container { display: grid; gap: 20px; }
.post-card {
  display: block; background: var(--paper-2); border: 1px solid var(--paper-line);
  border-radius: var(--r); padding: 26px 28px;
  transition: border-color var(--dur) var(--ease);
}
.post-card:hover { border-color: var(--accent-paper); }
.post-card--featured { border-top: 2px solid var(--accent-paper); padding: 32px 28px; }
.post-card h2, .post-card h3 {
  margin-top: 12px; font-family: var(--font-display); font-weight: 600;
  font-size: 24px; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance;
}
.post-card--featured h2 { font-size: clamp(24px, 3vw, 30px); }
.post-card .post-card__desc { margin-top: 10px; font-size: 15.5px; color: var(--paper-dim); max-width: 46em; }
.post-card .post-card__read {
  display: inline-block; margin-top: var(--space-3);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-paper);
}

/* ---------- Post page ---------- */
.breadcrumbs {
  padding: 26px 0 0; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim);
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent-paper); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--paper-line); }
.post-head { padding: 36px 0 8px; }
.post-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em;
  margin-top: var(--space-3); max-width: 22em; text-wrap: balance;
}
.post-head .post-meta {
  margin-top: 20px; padding: 14px 0;
  border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line);
}

/* ---------- Article prose ---------- */
.post-body { padding: 40px 0 56px; }
.post-body .prose { max-width: 720px; }
.prose p { margin: 0 0 20px; font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; margin: 40px 0 16px; }
.prose h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; font-size: 16.5px; line-height: 1.7; }
.prose a { color: var(--accent-paper); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--paper-ink); }
.prose blockquote {
  border-left: 2px solid var(--accent-paper); padding: 4px 0 4px 20px; margin: 28px 0;
  font-size: 18px; font-weight: 500; color: var(--paper-ink); max-width: 34em;
}
.prose blockquote p { margin: 0; font-size: inherit; }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--paper-2); border: 1px solid var(--paper-line);
  border-radius: var(--r); padding: 1px 5px;
}
.prose pre {
  background: var(--bg); color: var(--ink); border-radius: var(--r);
  padding: 18px 20px; margin: 0 0 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose img { border: 1px solid var(--paper-line); border-radius: var(--r); margin: 0 0 20px; }
.prose hr { border: 0; border-top: 1px solid var(--paper-line); margin: 32px 0; }
.prose table { border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--paper-line); padding: 8px 12px; text-align: left; }
.prose th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }

/* FAQ — same authoring as prose h2/h3; generator wraps it for details styling */
.post-faq { max-width: 720px; margin-top: 48px; }
.post-faq h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.post-faq details { border-bottom: 1px solid var(--paper-line); padding: 18px 0; }
.post-faq summary {
  font-size: 17px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-paper); flex: none; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq details p { margin: 12px 0 0; color: var(--paper-dim); font-size: 15.5px; line-height: 1.7; }

/* ---------- CTA band ---------- */
.post-cta { padding: clamp(48px, 7vw, 64px) 0; }
.post-cta h2 {
  margin-top: var(--space-3); font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.02em; max-width: 20em; text-wrap: balance;
}
.post-cta p { margin-top: var(--space-3); color: var(--ink-dim); font-size: 16.5px; max-width: 36em; }
.post-cta .btn { margin-top: var(--space-5); }

/* ---------- Related ("Next up") ---------- */
.post-related { padding: clamp(40px, 6vw, 56px) 0 clamp(48px, 7vw, 72px); }
.post-related > .container > h2 {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim);
  margin-bottom: 22px;
}
.post-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.post-related__grid .post-card { padding: 22px; }
.post-related__grid .post-card h3 { font-size: 17.5px; letter-spacing: -0.01em; margin-top: 10px; }

/* ---------- Footer a11y fixes, scoped to blog pages ---------- */
/* Blog templates use h3 for footer column titles (valid h2→h3 order; the
   homepage's h4 pattern fails heading-order after the post's h2 sections).
   Mirror of the .site-footer h4 style in styles-hud.css. */
.site-footer .footer-grid h3 {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: var(--space-3);
}
/* #6f7a63 on --bg is 4.3:1; ink-dim clears WCAG AA at this size. */
.site-footer .footer-legal { color: var(--ink-dim); }

@media (max-width: 720px) {
  .post-card, .post-card--featured { padding: 22px 20px; }
  .post-meta .post-meta__tag { margin-left: 0; }
}
