/* ==========================================================================
   product-story — scroll chapters like a magazine article. Each chapter is a
   large photo and a text block; on desktop the text stays in view (sticky)
   while the photo scrolls past, and the sides alternate. Mobile: stacked.
   ========================================================================== */
.product-story {
  padding-block: var(--space-xl) var(--space-2xl);
  border-top: var(--border-hairline);
}

.product-story__header {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.product-story__page {
  font-variant-numeric: tabular-nums;
  text-transform: none; /* keep the lowercase "p." */
}

.product-story__chapters {
  display: grid;
  gap: var(--space-2xl);
  padding: 0;
}

.story-chapter {
  display: grid;
  gap: var(--space-md);
}

.story-chapter__figure {
  margin: 0;
}

.story-chapter__figure .image {
  --image-ratio: var(--chapter-ratio, 4 / 5);
}

.story-chapter__body {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
}

.story-chapter__num {
  padding-bottom: var(--space-2xs);
  border-bottom: var(--border-hairline);
}

.story-chapter__text {
  display: grid;
  gap: var(--space-sm);
  max-width: 44ch;
  font-size: var(--text-lg);
  line-height: 1.45;
}

.story-chapter__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  padding: 0;
}

@media (min-width: 64em) {
  .story-chapter {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--grid-gutter);
    align-items: start;
  }

  .story-chapter__figure {
    grid-column: 1 / span 7;
    grid-row: 1;
  }

  .story-chapter__body {
    position: sticky;
    top: 7rem;
    grid-column: 9 / span 4;
    grid-row: 1;
    padding-top: var(--space-lg);
  }

  .story-chapter:nth-child(even) .story-chapter__figure {
    grid-column: 6 / span 7;
  }

  .story-chapter:nth-child(even) .story-chapter__body {
    grid-column: 1 / span 4;
  }
}
