/* ============================================================
   JAUNT — EDITORIAL (Journal post template)
   Generous typography, full-bleed hero, side-anchored TOC,
   pull-quotes, editorial figures.
   ============================================================ */

.post-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg-deep);
  display: flex;
  align-items: flex-end;
}

.post-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-hero__media img,
.post-hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(15, 22, 18, 0.30) 0%,
    rgba(15, 22, 18, 0.05) 35%,
    rgba(15, 22, 18, 0.20) 60%,
    rgba(15, 22, 18, 0.92) 100%);
}

.post-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s9);
  color: #fff;
}

.post-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: var(--s5);
}

.post-hero__title {
  font-family: var(--font-serif);
  font-size: var(--t1);
  font-weight: 400;
  line-height: var(--leading-tight);
  max-width: 24ch;
  margin-bottom: var(--s7);
  color: #fff;
}

.post-hero__title em { font-style: italic; color: var(--accent-glow); }

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.post-hero__meta-divider {
  width: 4px; height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.post-hero__byline {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.post-hero__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  object-fit: cover;
}

.post-hero__scroll {
  position: absolute;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2.4s var(--ease-in-out) infinite;
}

/* ---------- POST BODY LAYOUT ---------- */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--s10) var(--gutter);
  position: relative;
}

@media (min-width: 1100px) {
  .post-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--s9);
  }
}

/* TOC */
.post-toc {
  display: none;
}

@media (min-width: 1100px) {
  .post-toc {
    display: block;
    position: sticky;
    top: calc(var(--nav-height) + var(--s7));
    align-self: start;
    max-height: calc(100vh - var(--nav-height) - var(--s9));
    overflow-y: auto;
    padding-right: var(--s4);
  }
}

.post-toc__title {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--hairline);
}

.post-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.post-toc__link {
  font-size: 13px;
  color: var(--text-dim);
  line-height: var(--leading-snug);
  transition: color var(--dur-base) var(--ease-out-soft);
  padding-left: var(--s3);
  border-left: 1px solid transparent;
  display: block;
}

.post-toc__link:hover { color: var(--text); }
.post-toc__link.is-active {
  color: var(--accent-deep);
  border-left-color: var(--accent);
}

/* Body */
.post-body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: var(--leading-loose);
  color: var(--text);
  max-width: var(--max-reading);
}

.post-body__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: var(--leading-snug);
  color: var(--text);
  margin-bottom: var(--s7);
  max-width: 36ch;
}

.post-body p {
  margin-bottom: var(--s5);
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: var(--t3);
  font-weight: 400;
  line-height: var(--leading-tight);
  margin-top: var(--s9);
  margin-bottom: var(--s4);
  scroll-margin-top: calc(var(--nav-height) + var(--s5));
}

.post-body h2 em { font-style: italic; color: var(--accent-deep); }

.post-body h3 {
  font-family: var(--font-serif);
  font-size: var(--t4);
  font-weight: 400;
  margin-top: var(--s7);
  margin-bottom: var(--s3);
}

.post-body strong { font-weight: 600; color: var(--text); }
.post-body em { font-style: italic; }

.post-body a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-light);
  transition: border-color var(--dur-base) var(--ease-out-soft);
}

.post-body a:hover { border-bottom-color: var(--accent-deep); }

.post-body ul, .post-body ol {
  margin: 0 0 var(--s5) var(--s5);
}

.post-body li { margin-bottom: var(--s3); }

.post-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: var(--s5);
  margin: var(--s7) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  line-height: var(--leading-snug);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-warm);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Pull quote — breaks out of reading column */
.pull-quote {
  margin: var(--s9) calc(-1 * var(--s7));
  padding: var(--s7) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: var(--leading-snug);
  color: var(--accent-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  max-width: none;
}

.pull-quote__attr {
  display: block;
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 720px) {
  .pull-quote { margin: var(--s8) 0; padding: var(--s5) 0; }
}

/* Editorial figures step out of reading column */
.figure-editorial {
  margin: var(--s8) calc(-1 * var(--s7));
}

.figure-editorial img,
.figure-editorial video {
  width: 100%;
  border-radius: var(--radius);
}

.figure-editorial__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  margin-top: var(--s3);
  padding: 0 var(--s2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.figure-editorial__credit { text-align: right; }

@media (max-width: 720px) {
  .figure-editorial { margin: var(--s6) 0; }
}

/* Inline data callout */
.data-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: center;
  margin: var(--s7) 0;
  padding: var(--s5) var(--s6);
  background: var(--bg-cream);
  border-radius: var(--radius);
  border-left: 2px solid var(--accent);
}

.data-callout__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: var(--accent-deep);
  line-height: 1;
}

.data-callout__label {
  font-size: 14px;
  color: var(--text-mid);
  line-height: var(--leading-body);
}

/* Section divider */
.post-divider {
  margin: var(--s9) auto;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
}

/* End of article block */
.post-end {
  max-width: var(--max-reading);
  margin: var(--s10) 0 0 0;
  padding-top: var(--s7);
  border-top: 1px solid var(--hairline);
}

.post-end__byline {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-bottom: var(--s7);
}

.post-end__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-cream);
  object-fit: cover;
  flex-shrink: 0;
}

.post-end__author-name {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: var(--s2);
}

.post-end__author-bio {
  font-size: 14px;
  color: var(--text-mid);
  line-height: var(--leading-body);
}

.post-end__share {
  display: flex;
  gap: var(--s4);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.post-end__share-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  transition: color var(--dur-base) var(--ease-out-soft),
              border-color var(--dur-base) var(--ease-out-soft);
}

.post-end__share-btn:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

/* Related posts */
.related-posts {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--section-pad-y) 0;
}

.related-posts__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.related-posts__heading {
  font-family: var(--font-serif);
  font-size: var(--t3);
  color: #fff;
  margin-bottom: var(--s7);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

@media (max-width: 900px) { .related-posts__grid { grid-template-columns: 1fr; gap: var(--s6); } }

.related-posts .card--story .card__kicker { color: var(--accent-glow); }
.related-posts .card--story .card__headline { color: #fff; }
.related-posts .card--story .card__excerpt { color: var(--text-on-dark-mid); }
.related-posts .card--story .card__meta { color: var(--text-on-dark-dim); }

/* Journal listing layout */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s8) var(--s7);
}

.journal-grid > .card--story.card--feature {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .journal-grid { grid-template-columns: 1fr; }
  .journal-grid > .card--story.card--feature { grid-column: span 1; }
}

.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
  margin-bottom: var(--s8);
}

.journal-filter {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out-soft),
              color var(--dur-base) var(--ease-out-soft),
              border-color var(--dur-base) var(--ease-out-soft);
}

.journal-filter:hover {
  border-color: var(--text);
  color: var(--text);
}

.journal-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
