/* Chapter 00–07: one type scale on Final 2.1's Helvetica / Geist Mono ground.
   These role-scoped declarations outrank the older room-specific selectors. */
:root{
  --chapter-title-size:clamp(62px,8.7vw,124px);
  --chapter-description-size:clamp(18px,1.46vw,21px);
  --chapter-number-size:12px;
  --chapter-number-gap:16px;
  --chapter-number-top:8px;
}
[data-chapter-hero="timeline"]{--chapter-hero-ink:var(--mhc-chapter-timeline-ink)}
[data-chapter-hero="frames"]{--chapter-hero-ink:var(--mhc-chapter-frames-ink)}
[data-chapter-hero="measurement"]{--chapter-hero-ink:var(--mhc-chapter-measurement-ink)}
[data-chapter-hero="claims-makers"]{--chapter-hero-ink:var(--mhc-chapter-claims-ink)}
[data-chapter-hero="money"]{--chapter-hero-ink:var(--mhc-chapter-money-ink)}
[data-chapter-hero="summary"]{--chapter-hero-ink:var(--mhc-chapter-summary-ink)}
[data-chapter-hero="sources"]{--chapter-hero-ink:var(--mhc-chapter-sources-ink)}
[data-chapter-hero="about"]{--chapter-hero-ink:var(--mhc-chapter-about-ink)}
[data-chapter-hero] [data-hero-type-title]{
  position:relative;width:fit-content;max-width:100%!important;margin:0;
  font:400 var(--chapter-title-size)/.94 Helvetica,'Helvetica Neue',Arial,sans-serif!important;
  letter-spacing:-.04em!important;color:var(--mhc-on-paper)!important;
  text-transform:none;text-wrap:balance;
}
[data-hero-type-title] em{font:inherit!important;color:inherit!important}
[data-hero-type-heading],.sum-hero-title{position:relative;width:fit-content;max-width:100%}
[data-chapter-hero] [data-hero-type-number]{
  position:absolute;top:var(--chapter-number-top)!important;right:calc(100% + var(--chapter-number-gap))!important;
  margin:0!important;transform:none!important;
  font:500 var(--chapter-number-size)/1.2 'Geist Mono',ui-monospace,monospace!important;
  letter-spacing:.02em!important;font-variant-numeric:tabular-nums;
  color:var(--chapter-hero-ink)!important;
}
[data-chapter-hero] [data-hero-type-description]{
  font:400 var(--chapter-description-size)/1.5 Helvetica,'Helvetica Neue',Arial,sans-serif!important;
  letter-spacing:-.015em!important;color:var(--chapter-hero-ink)!important;
  text-wrap:pretty;
}
.chapter-title-hover-ready{perspective:900px;transform-style:preserve-3d}
.chapter-title-word{display:inline-block;white-space:nowrap;transform:translate3d(0,0,12px);transform-style:preserve-3d}
.chapter-title-letter{display:inline-block;transform-origin:50% 58%;transform-style:preserve-3d;backface-visibility:hidden}
.chapter-title-hover-ready.is-disturbed .chapter-title-letter{will-change:transform}
@media(max-width:759px){
  :root{
    /* The longest chapter name clears the same rail and gutter as every other
       title. Short names use this same size rather than a larger local scale. */
    --chapter-title-size:clamp(34px,calc((100vw - 112px)/5.9),54px);
    --chapter-description-size:18px;--chapter-number-size:10px;
    --chapter-number-gap:10px;--chapter-number-top:4px;
  }
}
@media(prefers-reduced-motion:reduce){
  .chapter-title-word,.chapter-title-letter{transform:none!important;will-change:auto!important}
}
@media print{
  .chapter-title-word,.chapter-title-letter{transform:none!important;will-change:auto!important}
}
