/* ============================================================
   Story of US - story detail: magazine layout
   ============================================================ */

/* --- Reading progress line (left edge, desktop) --- */

.story-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100vh;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top center;
  z-index: var(--z-header);
  pointer-events: none;
}

@media (max-width: 1023px) {
  .story-progress {
    display: none;
  }
}

/* --- Header --- */

.story-article {
  padding-top: 3.5rem;
}

.story-header {
  text-align: center;
  margin-bottom: 3rem;
}

.story-number-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.story-number-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.story-number-caption {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.story-number-mark .brand-mark {
  width: 64px;
  height: 64px;
}

.story-title {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  margin-bottom: 1.1rem;
}

.story-byline {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-inline: auto;
}

.story-header-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  max-width: none;
}

.story-header-tags a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-body);
  background: var(--ink-wash);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out);
}

.story-header-tags a:hover {
  background: var(--ink);
  color: var(--on-ink);
}

/* --- Portrait --- */

.story-portrait {
  margin-bottom: 3.5rem;
}

.story-portrait img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.story-portrait figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}

/* --- Body --- */

.story-body {
  padding-bottom: 4rem;
}

.story-paragraph {
  font-size: 1.13rem;
  line-height: 1.75;
  max-width: 68ch;
  margin-inline: auto;
  margin-bottom: 1.6em;
}

/* Drop cap: Fraunces, three lines tall, ink navy */
.story-paragraph.has-dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 4.4em;
  line-height: 0.78;
  float: left;
  padding-right: 0.12em;
  padding-top: 0.06em;
  color: var(--ink);
}

/* --- Pull quote: breaks the column, italic Fraunces, red mark --- */

.story-pullquote {
  position: relative;
  width: min(100%, 780px);
  margin: 3.2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.story-pullquote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.4;
  padding-top: 1.6rem;
  color: var(--red);
}

.story-pullquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: none;
  text-wrap: balance;
}

/* --- Video --- */

.story-video {
  margin: 3rem auto;
  max-width: 68ch;
  text-align: center;
}

.story-video video {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* --- Sign-off --- */

.story-signoff {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.story-signoff .dot-divider {
  padding-bottom: 1rem;
}

/* --- Prev / next --- */

.story-siblings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  padding-bottom: 2rem;
}

.sibling-card {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sibling-next {
  text-align: right;
  align-items: flex-end;
}

.sibling-direction {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.sibling-card h3 {
  margin-bottom: 0.1rem;
}

.sibling-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

@media (max-width: 640px) {
  .story-siblings {
    grid-template-columns: 1fr;
  }

  .sibling-next {
    text-align: left;
    align-items: flex-start;
  }
}
