/* ============================================================
   ANCHOR POINT — Journal (blog index + article)
   Extends cinematic.css. Long-form reading layer: a comfortable
   measure, sentence-case Oswald headings (distinct from the
   all-caps marketing display), and post cards for the index.
   ============================================================ */

/* ---------- blog index: post cards ---------- */
.journal { padding: calc(var(--nav-h) + clamp(30px, 6vh, 72px)) 0 clamp(80px, 13vh, 150px); }
.journal__head { max-width: 40rem; }
/* above-the-fold header animates in on load (auto-play, not scroll-observer) */
.journal__head > * { opacity: 0; transform: translateY(24px); animation: rise 0.9s var(--ease) forwards; }
.journal__head > *:nth-child(2) { animation-delay: 0.08s; }
.journal__head > *:nth-child(3) { animation-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) { .journal__head > * { opacity: 1; transform: none; animation: none; } }
.journal__h { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 0.98; letter-spacing: -0.01em; margin: 16px 0 0; }
.journal__lede { color: var(--fog); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; margin-top: 20px; }
.postgrid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 40px); margin-top: clamp(36px, 6vh, 64px);
}
@media (max-width: 820px) { .postgrid { grid-template-columns: 1fr; } }

.postcard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(9, 16, 25, 0.5);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.postcard:hover { transform: translateY(-6px); border-color: var(--line-2); }
.postcard__media { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.postcard__body { padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; flex: 1; }
.postcard__meta { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.postcard__cat { color: var(--sonar); }
.postcard__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fog-2); }
.postcard__time { color: var(--fog-2); }
.postcard__h {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.005em;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.1;
}
.postcard__excerpt { color: var(--fog); font-size: 1rem; line-height: 1.6; margin-top: 12px; }
.postcard__go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral);
}
.postcard__go i { transition: transform 0.25s var(--ease); }
.postcard:hover .postcard__go i { transform: translateX(6px); }

/* ---------- article hero (reuses .hero__media / .hero__kb from cinematic.css) ---------- */
.arthero { position: relative; min-height: clamp(540px, 78svh, 860px); display: flex; align-items: flex-end; overflow: clip; }
.arthero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,7,12,0.62) 0%, rgba(4,7,12,0.2) 28%, rgba(4,7,12,0.5) 60%, rgba(4,7,12,0.97) 100%),
    linear-gradient(72deg, rgba(4,7,12,0.66) 0%, rgba(4,7,12,0.2) 46%, transparent 74%);
}
.arthero__inner { padding-bottom: clamp(46px, 8vh, 84px); padding-top: calc(var(--nav-h) + 40px); }
.arthero__cat { color: var(--coral); }
.arthero__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.03; margin-top: 18px; max-width: 20ch;
  text-shadow: 0 14px 60px rgba(0, 0, 0, 0.5);
}
.arthero__meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 24px; }
.arthero__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fog-2); }

/* ---------- article ---------- */
.article { padding-block: clamp(50px, 9vh, 110px); }
.article__wrap { max-width: 46rem; margin-inline: auto; }

.article__meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
}
.article__meta .eyebrow { color: var(--fog); }
.article__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fog-2); }
.article__cat { color: var(--sonar) !important; }

/* prose */
.prose { margin-top: clamp(36px, 6vh, 60px); }
.prose > * { max-width: 46rem; }
.prose p { color: var(--fog); font-size: 1.12rem; line-height: 1.78; margin-bottom: 1.4em; }
.prose p strong, .prose li strong { color: var(--snow); font-weight: 600; }
.prose .lead { color: var(--snow); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.6; margin-bottom: 1.3em; }
.prose h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.005em;
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; color: var(--snow);
  margin: 2.1em 0 0.7em; scroll-margin-top: calc(var(--nav-h) + 12px);
}
.prose h2::before {
  content: ""; display: block; width: 44px; height: 2px; margin-bottom: 22px;
  background: linear-gradient(90deg, var(--coral), transparent);
}
.prose h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; color: var(--snow); margin: 1.7em 0 0.5em;
}
.prose a { color: var(--sonar); text-decoration: none; border-bottom: 1px solid rgba(70, 214, 222, 0.35); transition: border-color 0.2s, color 0.2s; }
.prose a:hover { color: var(--snow); border-bottom-color: var(--snow); }
.prose ul, .prose ol { margin: 0 0 1.4em 0; padding-left: 1.4em; color: var(--fog); }
.prose li { font-size: 1.1rem; line-height: 1.72; margin-bottom: 0.55em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: "▸"; position: absolute; left: -1.4em; color: var(--coral); font-size: 0.9em; top: 0.05em; }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--sonar); font-family: var(--mono); font-size: 0.85em; }

.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--coral);
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.4; color: var(--snow); max-width: 46rem;
}

/* pull-stat callout */
.pullstat {
  display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: center;
  margin: 2em 0; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line-2);
  border-radius: 12px; background: rgba(9, 16, 25, 0.5); max-width: 46rem;
}
.pullstat__n { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.9; color: var(--snow); font-variant-numeric: tabular-nums; }
.pullstat__l { color: var(--fog); font-size: 1rem; line-height: 1.5; }

/* figure */
.prose figure { margin: 2.2em 0; max-width: none; }
.prose figure img, .figure__img {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; display: block;
  background-size: cover; background-position: center; aspect-ratio: 16 / 9;
}
.prose figcaption { margin-top: 12px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--fog-2); text-align: center; }

/* article footer / share-back */
.article__foot {
  max-width: 46rem; margin: clamp(48px, 8vh, 80px) auto 0; padding-top: clamp(30px, 5vh, 44px);
  border-top: 1px solid var(--line);
}
.article__foot h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.article__foot p { color: var(--fog); margin: 12px 0 22px; }
.article__foot .btnrow { display: flex; gap: 14px; flex-wrap: wrap; }

/* related links */
.related { max-width: 46rem; margin: clamp(40px, 6vh, 60px) auto 0; }
.related__head { color: var(--sonar); margin-bottom: 18px; }
.related__links { display: grid; gap: 10px; }
.related__links a {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--snow);
  font-family: var(--display); font-weight: 500; letter-spacing: 0.01em; font-size: 1.05rem;
  transition: border-color 0.25s, background 0.25s, padding-left 0.25s var(--ease);
}
.related__links a:hover { border-color: var(--line-2); background: rgba(9, 16, 25, 0.5); padding-left: 26px; }
.related__links a i { color: var(--coral); font-style: normal; }
