:root {
  --ink: #20262b;
  --muted: #5d666b;
  --paper: #fcfbf8;
  --line: #dcded8;
  --blue: #00688e;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 3px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
.container { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 200; padding: 12px 20px; color: white; background: var(--ink); }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(252,251,248,.95); backdrop-filter: blur(12px); }
.site-nav { display: flex; min-height: 78px; justify-content: space-between; align-items: center; gap: 24px; }
.logo { font-size: 16px; font-weight: 600; letter-spacing: -.4px; text-decoration: none; white-space: nowrap; }
.logo-dot { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 12px; }
.nav-links a { text-decoration: none; padding-block: 12px; }
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-cta { border: 1px solid var(--ink); border-radius: 4px; padding: 9px 16px; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; gap: 72px; align-items: center; padding-block: 76px 70px; }
.eyebrow { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.eyebrow span { margin-left: 12px; color: var(--muted); }
h1 { font: 400 clamp(64px, 6.5vw, 96px)/.95 var(--display); letter-spacing: -.045em; margin: 28px 0; }
h1 em, .next-chapter h2 em { color: var(--blue); font-weight: 400; }
.hero-deck { font-size: 18px; line-height: 1.6; letter-spacing: -.3px; }
.hero-note { color: var(--muted); font-size: 13px; max-width: 370px; margin: 18px 0 26px; }
.text-link { font-size: 12px; font-weight: 500; text-decoration-thickness: 1px; }
.text-link span { display: inline-block; margin-left: 10px; }
.hero-photo { transform: rotate(2deg); padding: 12px; background: #fff; border: 1px solid #e4e2db; box-shadow: 0 12px 35px -24px #26323966; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { display: flex; gap: 12px; justify-content: space-between; padding: 14px 2px 3px; font-size: 9px; color: var(--muted); }
.hero-photo figcaption span { color: var(--ink); font-weight: 600; }
.chapter-nav { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.chapter-nav a { display: flex; gap: 20px; align-items: center; padding: 24px 22px; text-decoration: none; transition: background .2s; }
.chapter-nav a + a { border-left: 1px solid var(--line); }
.chapter-nav a:hover, .chapter-nav a[aria-current] { background: #f0f2eb; }
.chapter-index { color: var(--blue); font: italic 32px/1 var(--display); }
.chapter-nav small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .05em; margin-bottom: 2px; }
.chapter-nav strong { display: block; font-weight: 500; font-size: 14px; }
.chapter-arrow { margin-left: auto; color: var(--blue); }
.story-caption { display: flex; justify-content: space-between; padding-block: 18px; color: var(--muted); font-size: 10px; }
.chapter { padding-block: 76px 70px; border-bottom: 1px solid var(--line); }
.chapter-heading { margin-bottom: 44px; max-width: 680px; }
.chapter h2 { font: 400 clamp(48px, 5vw, 66px)/1.1 var(--display); letter-spacing: -.025em; margin: 14px 0 12px; }
.chapter-title { font-size: 17px; margin-bottom: 12px; }
.chapter-intro { max-width: 570px; font-size: 13px; color: var(--muted); }
/* Keep the library isolated; use its public variables to match the site. */
.chapter .vs-timeline[data-vs-timeline-theme='light'] {
  --vs-timeline-accent: #1980a1;
  --vs-timeline-bg: var(--paper);
  --vs-timeline-ink: var(--ink);
  --vs-timeline-muted: var(--muted);
  --vs-timeline-rail: var(--line);
  --vs-timeline-surface: #fff;
  --vs-timeline-line-ink: var(--blue);
  --vs-timeline-font: var(--body);
  --vs-timeline-display: var(--display);
  --vs-timeline-aside: 132px;
  --vs-timeline-gutter: 64px;
  --vs-timeline-radius: 8px;
  padding: 8px 0 24px;
  row-gap: 28px;
}
.chapter .vs-timeline-body { max-width: 65ch; }
.chapter .vs-timeline-title { font-size: 30px; }
.chapter .vs-timeline-card { padding: 26px 30px; box-shadow: 0 0 0 1px var(--line); }
.chapter .vs-timeline-sub { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.chapter .vs-timeline-date { font-size: 26px; }
/* Always keep text readable, including keyboard focus and scroll jumps.
   The library's moving rail and active node provide the scroll animation. */
.chapter .vs-timeline.is-ready :is(.vs-timeline-card, .vs-timeline-meta, .vs-timeline-card > *) { opacity: 1; transform: none; filter: none; }
.milestone-image { width: 100%; height: auto; max-height: 350px; object-fit: contain; background: #f3f3ef; margin-top: 22px; border-radius: 4px; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.source-links a { color: var(--blue); font-size: 11px; line-height: 1.6; padding-block: 5px; }
.source-links a:hover { color: var(--ink); }
.archive-section { padding-block: 40px; border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 30px; cursor: pointer; list-style: none; font: 400 30px/1.2 var(--display); }
summary::-webkit-details-marker { display: none; }
summary small { display: block; margin-top: 10px; color: var(--muted); font: 12px/1.6 var(--body); }
.expand-icon { font: 300 30px/1 var(--body); color: var(--blue); }
details[open] .expand-icon { transform: rotate(45deg); }
.photo-archive { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding-top: 32px; }
.photo-archive img { width: 100%; height: 220px; object-fit: contain; background: #f0f0eb; }
.photo-archive figcaption { font-size: 11px; margin-top: 10px; }
.archive-link { display: inline-block; margin-top: 30px; }
.next-chapter { padding-block: 80px; text-align: center; }
.next-chapter h2 { font: 400 clamp(50px, 5vw, 72px)/.98 var(--display); letter-spacing: -.035em; margin: 22px 0; }
.next-chapter p:not(.eyebrow) { font-size: 13px; color: var(--muted); max-width: 390px; margin-inline: auto; }
.next-links { display: flex; gap: 28px; justify-content: center; align-items: center; margin-top: 28px; }
.button { display: inline-flex; gap: 30px; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 4px; font-size: 12px; text-decoration: none; }
.button:hover { background: var(--blue); }
footer.container { display: flex; gap: 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 28px; font-size: 10px; color: var(--muted); }
@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .hero { gap: 38px; padding-block: 60px; }
  .hero .eyebrow span { display: block; margin: 6px 0 0; }
  .hero-deck { font-size: 16px; }
  .chapter-nav a { gap: 12px; padding: 20px 14px; }
  .chapter-nav strong { font-size: 12px; }
  .photo-archive { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 90px; }
  .container { width: calc(100% - 40px); }
  .site-nav { min-height: 66px; gap: 12px; }
  .logo { font-size: 14px; }
  .nav-links { gap: 14px; font-size: 11px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { padding: 8px 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 38px 40px; gap: 32px; }
  .hero .eyebrow span { display: inline; margin-left: 8px; }
  .eyebrow { font-size: 8px; }
  h1 { font-size: clamp(60px, 16vw, 82px); margin-block: 24px; }
  .hero-note { max-width: 340px; }
  .hero-photo { transform: none; max-width: 440px; }
  .hero-photo figcaption { font-size: 8px; }
  .chapter-nav { grid-template-columns: 1fr; }
  .chapter-nav a { padding: 16px 12px; gap: 20px; }
  .chapter-nav a + a { border-left: 0; border-top: 1px solid var(--line); }
  .chapter-nav strong { font-size: 14px; }
  .chapter-index { font-size: 28px; }
  .story-caption { flex-direction: column; gap: 8px; }
  .chapter { padding-block: 46px; }
  .chapter-heading { margin-bottom: 30px; }
  .chapter h2 { font-size: 44px; }
  .chapter-title { font-size: 15px; }
  .chapter .vs-timeline-card { padding: 20px; }
  .chapter .vs-timeline-title { font-size: 26px; }
  .chapter .vs-timeline-date { font-size: 23px; }
  .source-links { gap: 6px 16px; }
  .source-links a { padding-block: 8px; }
  .milestone-image { max-height: 280px; }
  .photo-archive { gap: 20px; }
  .photo-archive img { height: 160px; }
  summary { font-size: 26px; }
  .next-chapter { padding-block: 56px; }
  .next-links { flex-direction: column; gap: 20px; }
  footer.container { flex-wrap: wrap; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
