/* ════════════════════════════════════════
   BLOG POST — locked light/tusk, abyss ink, editorial typography.
   Generated by _build_posts.py — edit there, not here.
════════════════════════════════════════ */
body.blogpost-light,
body.blogpost-light .body-wrapper,
body.blogpost-light main {
  background: var(--jxm-tusk) !important;
  color: var(--jxm-abyss) !important;
}

/* V5 nav clearance — fixed nav is ~7.5rem tall, leave breathing room */
body.blogpost-light .post-area { padding-top: 11rem; }
@media (max-width: 1023px) { body.blogpost-light .post-area { padding-top: 7rem; } }

/* ── Article header ──────────────────────────── */
.post-header {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34, 31, 50, 0.65);
  margin-bottom: 1.75rem;
}
.post-eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--jxm-kermit);
  border-radius: 50%;
  flex-shrink: 0;
}
.post-eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 31, 50, 0.25);
  padding-bottom: 1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.post-eyebrow a:hover { color: var(--jxm-abyss); border-color: var(--jxm-abyss); }

.post-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--jxm-abyss);
  margin: 0 0 1.5rem;
}
.post-dek {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.125rem, 1.75vw, 1.5rem);
  line-height: 1.45;
  color: rgba(34, 31, 50, 0.78);
  margin: 0 0 2rem;
  max-width: 38rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(34, 31, 50, 0.65);
}
.post-meta .post-meta-byline { color: var(--jxm-abyss); }
.post-meta .post-meta-date { white-space: nowrap; }
.post-meta .sep {
  width: 0.25rem;
  height: 0.25rem;
  background: rgba(34, 31, 50, 0.4);
  border-radius: 50%;
  display: inline-block;
}

/* ── Hero figure ──────────────────────────── */
.post-hero {
  margin: 3.5rem auto 0;
  max-width: 880px;
  padding: 0 1.5rem;
}
.post-hero img,
.post-hero video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(34, 31, 50, 0.06);
}

/* ── Article body ──────────────────────────── */
.post-body {
  max-width: 38rem;
  margin: 4.5rem auto 0;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--jxm-abyss);
}
.post-body > * + * { margin-top: 1.5rem; }
.post-body p { margin: 0; }
.post-body p strong { font-weight: 600; }
.post-body em { font-family: 'Libre Baskerville', Georgia, serif; font-style: italic; }
.post-body a {
  color: var(--jxm-abyss);
  border-bottom: 1px solid rgba(34, 31, 50, 0.35);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.post-body a:hover { color: var(--jxm-kermit); border-color: var(--jxm-kermit); }

/* Subheads */
.post-body h2.post-h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--jxm-abyss);
  margin: 3.5rem 0 1.25rem;
}
.post-body h2.post-h2:first-child { margin-top: 0; }

/* Lists */
.post-body ul.post-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
}
.post-body ul.post-list > li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.6rem;
}
.post-body ul.post-list > li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--jxm-kermit);
}
.post-body ul.post-list > li:last-child { margin-bottom: 0; }

/* Inline figure (image + adjacent caption text) */
.post-figure {
  margin: 3.5rem -2rem;
}
@media (max-width: 767px) { .post-figure { margin: 3rem 0; } }
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  background: rgba(34, 31, 50, 0.06);
}
.post-figure figcaption {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(34, 31, 50, 0.55);
  margin-top: 0.75rem;
  max-width: 28rem;
}

/* Pullquote */
.post-pullquote {
  margin: 3rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--jxm-kermit);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  color: var(--jxm-abyss);
}
.post-pullquote p { margin: 0; }

/* ── Cheat Code Payoff (optional block) ────────── */
.post-payoff {
  margin: 5rem auto 0;
  max-width: 38rem;
  padding: 3rem;
  background: var(--jxm-abyss);
  color: var(--jxm-tusk);
  border-radius: 1rem;
  position: relative;
}
@media (max-width: 575px) { .post-payoff { padding: 2.25rem 1.75rem; border-radius: 0.75rem; } }
.post-payoff .payoff-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jxm-kermit);
  margin-bottom: 1.25rem;
}
.post-payoff .payoff-label::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--jxm-kermit);
  border-radius: 50%;
}
.post-payoff h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--jxm-tusk) !important;
  -webkit-text-fill-color: var(--jxm-tusk) !important;
  margin: 0 0 1.25rem;
}
.post-payoff p { color: rgba(243, 241, 236, 0.85) !important; margin: 0 0 1rem; }
.post-payoff p:last-child { margin-bottom: 0; }
.post-payoff a { color: var(--jxm-kermit); border-color: rgba(73, 227, 133, 0.4); }
.post-payoff a:hover { color: var(--jxm-tusk); border-color: var(--jxm-tusk); }

/* ── Author bio ──────────────────────────── */
.post-bio {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(34, 31, 50, 0.15);
}
.post-bio .bio-label {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(34, 31, 50, 0.6);
  display: block;
  margin-bottom: 1rem;
}
.post-bio p { font-size: 1rem; line-height: 1.65; }

/* ── Tags ──────────────────────────── */
.post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 31, 50, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.post-tags .tags-heading {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(34, 31, 50, 0.6);
  margin-right: 0.5rem;
}
.post-tags .tag {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--jxm-abyss);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(34, 31, 50, 0.2);
  border-radius: 999px;
}

/* ── More from JXM (post tail) ──────────────── */
.post-tail { padding: 7rem 0 6rem; }
@media (max-width: 767px) { .post-tail { padding: 5rem 0 4rem; } }
.post-tail .post-tail-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 767px) {
  .post-tail .post-tail-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
.post-tail .post-tail-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(34, 31, 50, 0.55);
  display: block;
  margin-bottom: 1rem;
}
.post-tail .post-tail-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--jxm-abyss);
  margin: 0;
}
.post-tail .post-tail-link {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--jxm-abyss);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 31, 50, 0.3);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.post-tail .post-tail-link:hover { color: var(--jxm-kermit); border-color: var(--jxm-kermit); }

.post-tail-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 991px) { .post-tail-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.post-tail-grid > a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.post-tail-grid .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.75rem;
  background: rgba(34, 31, 50, 0.06);
}
.post-tail-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.post-tail-grid > a:hover .thumb img { transform: scale(1.04); }
.post-tail-grid .title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--jxm-abyss);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.post-tail-grid .arrow {
  flex-shrink: 0;
  margin-top: 0.4rem;
  color: var(--jxm-abyss);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.post-tail-grid > a:hover .arrow { transform: translate(2px, -2px); }
.post-tail-grid .arrow svg { width: 12px; height: 13px; }
.post-tail-grid .meta {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(34, 31, 50, 0.6);
}
