/* B · 70 let: the timeline (an ordered list) */
.timeline { --rail: .9rem; --yearcol: 0px; list-style: none; margin: 2rem 0; padding: 0; position: relative; }
/* Rail: static track (border, so forced colors keep it) */
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rail) - 2px); border-left: 4px solid var(--rule); opacity: .35; }
/* Progress line: drawn in full by default; scroll-driven only when supported and motion is allowed */
.timeline::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rail) - 2px); border-left: 4px solid var(--accent); transform-origin: top; }
.timeline > li { position: relative; max-width: none; margin: 0; padding: 0 0 2.25rem calc(var(--rail) + 2.25rem); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: var(--rail); top: .9rem; width: 1.25rem; height: 1.25rem;
  transform: translateX(-50%); background: var(--paper); border: 4px solid var(--ink); border-radius: 50%; z-index: 1;
}
.timeline > li.is-now::before { background: var(--accent); width: 1.6rem; height: 1.6rem; top: .75rem; }
.timeline h3 { font: 800 clamp(2rem, 6vw, 2.75rem)/1 var(--font-display); margin: 0 0 .4rem; font-variant-numeric: lining-nums; }
.timeline .tl-text { font-size: 1.25rem; margin: 0; max-width: 56ch; }
.timeline .tl-extra { margin: .75rem 0 0; }
.timeline .is-now .tl-text { font-weight: 600; }
.timeline .is-now h3 { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 0 .3em; border: 2px solid var(--ink); }
html[data-contrast="high"] .timeline .is-now h3 { border-color: #FFF; }
html[data-contrast="high"] .timeline::before { opacity: 1; }
@media (min-width: 48rem) {
  .timeline { --yearcol: 8.5rem; --rail: calc(var(--yearcol) + 1.5rem); }
  .timeline > li { display: grid; grid-template-columns: var(--yearcol) 1fr; column-gap: 3rem; padding-left: 0; padding-bottom: 2.5rem; align-items: start; }
  .timeline > li > h3 { grid-column: 1; text-align: right; margin: 0; }
  .timeline > li > .tl-body { grid-column: 2; padding-left: .75rem; }
  .timeline .is-now h3 { text-align: center; }
}
.timeline > li > .tl-body { min-width: 0; }
@media (max-width: 47.99rem) { .timeline > li > .tl-body { display: block; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-motion="off"]) .timeline::after {
      transform: scaleY(0); animation: tl-draw linear both;
      animation-timeline: view(); animation-range: entry 10% cover 70%;
    }
    @keyframes tl-draw { to { transform: scaleY(1); } }
  }
}
@media (forced-colors: active) {
  .timeline::before { border-left-color: CanvasText; opacity: 1; }
  .timeline::after { border-left-color: Highlight; }
  .timeline > li::before { border-color: CanvasText; background: Canvas; }
  .timeline > li.is-now::before { background: Highlight; }
}
/* Reveal for photo plates: short fade, only when scripts and motion are on */
@media (prefers-reduced-motion: no-preference) {
  html.js:not([data-motion="off"]) .reveal { opacity: 0; translate: 0 .75rem; }
  html.js:not([data-motion="off"]) .reveal.in { opacity: 1; translate: 0 0; transition: opacity .25s ease-out, translate .25s ease-out; }
}
