/* Story page — loaded after styles.css */

.story-hero { padding: clamp(3rem, 6vw, 6rem) var(--gutter) 0; }
.story-hero__title {
  max-width: 14ch;
  margin: 1.5rem 0 1.25rem;
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.story-hero__title em { color: var(--accent); }
.story-hero__lede { max-width: 48ch; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--ink-2); }

.story-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.story-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.story-facts dt { font-size: var(--text-sm); color: var(--muted); }
.story-facts dd {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}
.story-facts div:nth-child(1) dd { color: var(--accent); }

.chapters-wrap { padding: var(--space-section) var(--gutter) 0; }
.chapters { position: relative; max-width: 68rem; }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.chapter__year {
  position: sticky;
  top: 6rem;
  align-self: start;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.8rem);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color var(--duration-normal);
}
.chapter.is-in .chapter__year { color: var(--ink); }
.chapter--now .chapter__year { color: var(--accent) !important; }

.chapter__body {
  position: relative;
  padding: 0 0 clamp(3rem, 6vw, 5rem) 2rem;
  border-left: 1px solid var(--line);
}
.chapter__body::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--muted);
  transition: background-color var(--duration-normal), border-color var(--duration-normal);
}
.chapter.is-in .chapter__body::before { background: var(--accent); border-color: var(--accent); }
.chapter:last-child .chapter__body { border-left-color: transparent; }

.chapter__title {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.chapter__title em { color: var(--accent); }
.chapter__body p { max-width: 58ch; color: var(--ink-2); }
.chapter__body p + p { margin-top: 0.85rem; }
.chapter__body strong { color: var(--ink); font-weight: 600; }

.chapter__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.25rem; }
.chapter__tags li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-2);
}

.launches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.launches li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal);
}
.launches li:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.launches b { font-weight: 600; letter-spacing: -0.02em; }
.launches span { font-size: var(--text-sm); color: var(--muted); }

.story-quote { padding: var(--space-section) var(--gutter) 0; }
.story-quote blockquote {
  margin: 0;
  max-width: 60rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.story-quote p {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.1;
}
.story-quote footer { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.75rem; font-size: var(--text-sm); color: var(--muted); }
.story-quote footer b { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .story-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter { grid-template-columns: 1fr; gap: 0.75rem; }
  .chapter__year { position: static; padding-left: 2rem; }
}
.chapter__year--date { white-space: normal; }
.quote__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.chapter__body a,
.launches a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 90, 31, 0.5); text-underline-offset: 3px; }
.chapter__body a:hover,
.launches a:hover { color: var(--accent); }
.chapter__note { width: fit-content; margin: 0.35rem 0 1rem; font-size: 1.5rem; rotate: -2deg; transform-origin: left; }
