/* =========================================================
   TYPOGRAPHY SYSTEM — SINGLE SOURCE OF TRUTH
   ---------------------------------------------------------
   Pour changer la typo :
   modifier uniquement ce fichier.
   Ne pas modifier style.css pour les polices.
========================================================= */

/* Font loading is managed in index.html via Google Fonts.
   Fallbacks are included for full browser compatibility. */

:root{
  --font-display:
    "Cormorant Garamond",
    "Times New Roman",
    Georgia,
    serif;

  --font-body:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  --font-ui:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

/* Base */

html,
body{
  font-family:var(--font-body) !important;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

/* Display typography — real elements and all known classes */

.hero h1,
.hero h1 *,
.hero-line,
.panel-title,
.content-panel h2,
.book-title-page,
.book-page h1,
.editorial-big-text,
.book-scroll-content h1,
.book-scroll-content h2{
  font-family:var(--font-display) !important;
  font-weight:500 !important;
  font-style:normal !important;
  text-transform:none !important;
  letter-spacing:-0.052em !important;
  line-height:.92 !important;
}

/* Hero title sizing */

.hero h1{
  font-size:clamp(4.2rem, 8.3vw, 8.4rem) !important;
  line-height:.92 !important;
  max-width:min(980px, 72vw) !important;
}

/* Hero animated lines inherit display font */

.hero-line{
  font-family:var(--font-display) !important;
  font-size:inherit !important;
  line-height:inherit !important;
}

/* Panel title */

.panel-title,
.content-panel h2{
  font-size:clamp(2.8rem, 4.2vw, 4.9rem) !important;
  line-height:.94 !important;
}

/* Book title */

.book-title-page,
.book-page h1{
  font-size:clamp(4rem, 8vw, 8.8rem) !important;
  line-height:.9 !important;
}

/* Editorial giant text */

.editorial-big-text{
  font-size:clamp(2.8rem, 5.4vw, 6.5rem) !important;
  line-height:.98 !important;
}

/* Body copy */

.hero p,
.panel-text,
.book-quote-page,
.book-scroll-content p,
.editorial-final p,
.editorial-emotion p,
.book-summary-page,
.book-mood-page{
  font-family:var(--font-body) !important;
  font-weight:400 !important;
  letter-spacing:-.012em !important;
  line-height:1.82 !important;
}

/* Hero paragraph */

.hero p{
  font-size:clamp(.98rem, 1.08vw, 1.18rem) !important;
  max-width:640px !important;
  color:rgba(255,245,235,.66) !important;
}

/* UI */

.nav,
.logo,
.menu-toggle,
.sound-toggle,
.safe-audio-toggle,
.hud,
.hint,
.contact-chip,
button,
.book-link-page,
.panel-meta,
.panel-kicker,
.editorial-label,
.book-kicker,
.loader-text{
  font-family:var(--font-ui) !important;
  font-weight:600 !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
}

/* Floating editorial quote */

.editorial-floating-quote,
.editorial-floating-quote span{
  font-family:var(--font-display) !important;
  font-style:italic !important;
  font-weight:400 !important;
  letter-spacing:.015em !important;
}

/* Mobile */

@media(max-width:900px){
  .hero h1{
    font-size:clamp(3.3rem, 15vw, 5.8rem) !important;
    max-width:100% !important;
    line-height:.96 !important;
  }

  .book-title-page,
  .book-page h1{
    font-size:clamp(3.2rem, 14vw, 6rem) !important;
  }
}


