/* ==========================================================================
   Proportion: one golden-ratio system for the whole site (approved 1 Dec 2026)
   --------------------------------------------------------------------------
   Type: one scale in steps of the square root of phi (1.272) from the 16.5px
   body size, so every second step is a full golden step (x 1.618):
   16.5 · 21 · 27 · 34 · 43 · 55 · 70 · 89 · 113 px (sizes at 1920px).
   Space: section rhythm on the Fibonacci numbers 21 · 34 · 55 · 89 · 144.
   Split: image and words side by side at 1.618 : 1.
   Loaded last, so this block is the single source for these values; the
   earlier scales in tokens.css, ergonomics.css, components.css and
   night.css no longer take effect for these properties.
   Not applied to: photographs (always shown whole), tap targets (44px
   minimum), maison logos.
   ========================================================================== */
:root, html, body, .hf-page, .folio-page {
  --fs-item:    clamp(17px, 1.094vw, 21px) !important;
  --fs-sub:     clamp(18px, 1.094vw, 21px) !important;
  --fs-h3:      clamp(21px, 1.406vw, 27px) !important;
  --fs-lead:    clamp(27px, 1.771vw, 34px) !important;
  --fs-section: clamp(27px, 1.771vw, 34px) !important;
  --fs-quote:   clamp(34px, 2.24vw, 43px) !important;
  --fs-year:    clamp(43px, 2.865vw, 55px) !important;
  --fs-display: clamp(55px, 3.646vw, 70px) !important;
  --fs-cover:   clamp(89px, 5.885vw, 113px) !important;
  --frame-section: clamp(89px, 7.5vw, 144px) !important;
  --frame-chapter: clamp(55px, 4.6vw, 89px) !important;
  --frame-gap: 34px !important;
  --hf-section: clamp(89px, 7.5vw, 144px) !important;
  --hf-gap: 34px !important;
  --leading-prose: 1.618 !important;
}
.hf-statement__lead { font-size: var(--fs-lead) !important; }
@media (min-width: 761px) {
  :root:root:root:root body section.hf-statement > .hf-grid.hf-wrap { grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr) !important; column-gap: 34px !important; }
  :root:root:root:root body section.hf-statement > .hf-grid > figure { grid-column: 1 / 2 !important; }
  :root:root:root:root body section.hf-statement > .hf-grid > .hf-statement__copy { grid-column: 2 / 3 !important; }
}
@media (max-width: 760px) {
  :root, html, body, .hf-page, .folio-page { --frame-section: 55px !important; --frame-chapter: 55px !important; --hf-section: 55px !important; --frame-gap: 21px !important; --hf-gap: 21px !important; }
}

/* Page titles over the opening photographs, on the same scale (approved 1 Dec 2026):
   main titles 55 to 70px, longer titles 43 to 55px, the line beneath 21px;
   on phone 34 to 43px, 34px and 18px. */
:root:root:root:root .hf-hero__name,
:root:root:root:root .hero-fullbleed__title,
:root:root:root:root :is(.hero__title, .hero-split__title, .sp-cover__title, .pa__title, .tc-conf__title, .sp-chcover__title) { font-size: clamp(55px, 3.646vw, 70px) !important; }
:root:root:root:root section.hero-fullbleed.hero-fullbleed--band .hero-fullbleed__title,
:root:root:root:root .hero-fullbleed__title.hero-fullbleed__title--long,
:root:root:root:root .hero__title.hero__title--long { font-size: clamp(43px, 2.865vw, 55px) !important; }
:root:root:root:root :is(.hero__subheading, .hero-fullbleed__sub, .hf-hero__line) { font-size: 21px !important; }
@media (max-width: 760px) {
  :root:root:root:root .hf-hero__name,
  :root:root:root:root .hero-fullbleed__title,
  :root:root:root:root :is(.hero__title, .hero-split__title, .sp-cover__title, .pa__title, .tc-conf__title, .sp-chcover__title) { font-size: clamp(34px, 9vw, 43px) !important; }
  :root:root:root:root section.hero-fullbleed.hero-fullbleed--band .hero-fullbleed__title,
  :root:root:root:root .hero-fullbleed__title.hero-fullbleed__title--long,
  :root:root:root:root .hero__title.hero__title--long { font-size: 34px !important; }
  :root:root:root:root :is(.hero__subheading, .hero-fullbleed__sub, .hf-hero__line) { font-size: 18px !important; }
}

/* Motion on Fibonacci numbers in milliseconds (approved 1 Dec 2026):
   210 for colour, 340 for small movements and the menu, 550 for rising
   photographs and panels, 890 for larger fades and the scroll reveal.
   Readers who ask for reduced motion keep none (tokens.css and layout.css). */
@media (prefers-reduced-motion: no-preference) {
  :root { --motion-fast: 210ms; --motion-base: 340ms; --motion-slow: 550ms; --motion-cinematic: 890ms; }
  html.reveal-ready [data-reveal] { transition-duration: 890ms, 890ms; }
  .nav-overlay { transition: opacity 340ms var(--ease-aman), visibility 0s linear 340ms; }
}
