/* ═══════════════════════════════════════════════════════════════
   VOLTLINE — Article Page Styles
   ═══════════════════════════════════════════════════════════════ */

.article-page {
  background: var(--white);
}

/* ── ARTICLE HERO ────────────────────────────────────────────── */
.article-hero {
  position: relative;
  width: 100%;
  height: 88svh;
  min-height: 520px;
  background: var(--ink);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.15) 0%,
    rgba(10,10,10,0.05) 40%,
    rgba(10,10,10,0.6) 80%,
    rgba(10,10,10,0.9) 100%
  );
}

.article-hero-caption {
  position: absolute;
  bottom: var(--space-6);
  left: calc(32px + var(--space-8));
  right: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: rgba(242, 237, 228, 0.55);
}

.caption-credit {
  color: var(--gold);
  opacity: 0.7;
  white-space: nowrap;
}

/* ── ARTICLE HEADER ──────────────────────────────────────────── */
.article-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-rule);
  padding: var(--space-12) var(--space-16);
}

.article-header-inner {
  max-width: var(--max-prose);
  margin: 0 auto;
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.kicker-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--duration);
}

.kicker-link:hover {
  color: var(--warm-grey);
}

.kicker-sep {
  color: var(--warm-grey);
  font-family: var(--font-mono);
}

.article-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.article-headline em {
  font-style: italic;
  color: var(--warm-grey);
}

.article-dek {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.55;
  color: #3A3A3A;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.article-byline-block {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--light-rule);
}

.byline-avatar {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.byline-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.byline-name-block {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.byline-name-block a {
  text-decoration: underline;
  text-decoration-color: rgba(10,10,10,0.2);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration);
}

.byline-name-block a:hover {
  text-decoration-color: var(--ink);
}

.byline-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.byline-date,
.byline-read,
.byline-venue {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--warm-grey);
}

/* ── ARTICLE BODY LAYOUT ─────────────────────────────────────── */
.article-body-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-16);
  align-items: start;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.article-sidebar {
  padding-right: var(--space-8);
  border-right: 1px solid var(--light-rule);
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.sidebar-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: var(--space-3);
}

.sidebar-share {
  display: flex;
  flex-direction: column;
}

.sidebar-share-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--warm-grey);
  padding: var(--space-2) 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--light-rule);
  transition: color var(--duration);
}

.sidebar-share-btn:last-child {
  border-bottom: none;
}

.sidebar-share-btn:hover {
  color: var(--ink);
}

.toc-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.toc-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--warm-grey);
  transition: color var(--duration);
  padding-left: var(--space-3);
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-links a:hover,
.toc-links a.is-active {
  color: var(--ink);
  border-left-color: var(--gold);
}

.sidebar-issue-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* ── PROSE ───────────────────────────────────────────────────── */
.article-prose {
  padding-left: var(--space-12);
  max-width: var(--max-prose);
}

/* Opener paragraph with drop cap */
.p-opener {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.p-opener::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  font-weight: 900;
  float: left;
  line-height: 0.75;
  margin: 0.08em var(--space-3) 0 0;
  color: var(--ink);
}

.article-prose p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.article-prose p em {
  font-family: var(--font-display);
  font-style: italic;
}

.article-h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--light-rule);
}

/* ── INLINE FIGURES ──────────────────────────────────────────── */
.article-figure {
  margin: var(--space-8) 0;
}

.article-figure--full {
  width: 100%;
}

.article-figure img,
.article-figure--full img {
  width: 100%;
  display: block;
}

.article-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--warm-grey);
  line-height: 1.4;
}

.fig-credit {
  color: var(--gold);
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Float right: photo next to text */
.article-float-right {
  float: right;
  width: 45%;
  margin: 0 0 var(--space-6) var(--space-8);
  clear: right;
}

.float-figure img {
  width: 100%;
  display: block;
}

.float-figure figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--warm-grey);
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  line-height: 1.4;
}

/* Two-column image grid */
.article-figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-8) 0;
  clear: both;
}

/* ── PULL QUOTE ──────────────────────────────────────────────── */
.article-pullquote {
  clear: both;
  margin: var(--space-10) 0;
  padding: var(--space-6) var(--space-8);
  border-left: 3px solid var(--gold);
  background: var(--parchment);
}

.article-pullquote p {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0;
}

/* ── SCORE BLOCK ─────────────────────────────────────────────── */
.article-score {
  clear: both;
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin: var(--space-10) 0;
  padding: var(--space-6) var(--space-8);
  background: var(--ink);
  color: var(--parchment);
}

.score-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  flex: 1;
}

.score-value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1;
  color: var(--parchment);
}

.score-descriptor {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── AUTHOR BIO ──────────────────────────────────────────────── */
.article-author-bio {
  clear: both;
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--light-rule);
  margin-top: var(--space-10);
}

.bio-avatar {
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--parchment);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.bio-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.bio-body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--warm-grey);
  margin-bottom: 0;
}

/* ── RELATED SECTION ─────────────────────────────────────────── */
.related-section {
  background: var(--white);
  border-top: 1px solid var(--light-rule);
  padding: var(--space-12) var(--space-16);
}

.related-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .article-body-wrap {
    grid-template-columns: 1fr;
    padding: var(--space-8);
  }

  .article-sidebar {
    display: none;
  }

  .article-prose {
    padding-left: 0;
    max-width: 100%;
  }

  .article-header {
    padding: var(--space-8);
  }

  .related-section {
    padding: var(--space-10) var(--space-8);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid .card:last-child {
    display: none;
  }
}

@media (max-width: 768px) {
  .article-hero {
    height: 70svh;
  }

  .article-hero-caption {
    left: var(--space-4);
    right: var(--space-4);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }

  .article-body-wrap {
    padding: var(--space-6);
  }

  .article-header {
    padding: var(--space-6);
  }

  .article-float-right {
    float: none;
    width: 100%;
    margin: var(--space-6) 0;
  }

  .article-figure-grid {
    grid-template-columns: 1fr;
  }

  .article-pullquote p {
    font-size: var(--text-xl);
  }

  .related-section {
    padding: var(--space-8) var(--space-6);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-grid .card:nth-child(n+2) {
    display: none;
  }
}
