/* TDSL — tokens complémentaires du site.
   Échelle typographique reprise de brand/tokens.json (groupe "type"),
   tailles réduites sur mobile, et dimensions de mise en page (brand/site-web.md).
   Les couleurs restent exclusivement dans tokens.css. */

:root {
  /* Titres (Manrope) — valeurs mobiles par défaut */
  --text-display-size: 36px;
  --text-display-lh: 40px;
  --text-display-ls: -0.015em;

  --text-h1-size: 30px;
  --text-h1-lh: 36px;
  --text-h1-ls: -0.01em;

  --text-h2-size: 24px;
  --text-h2-lh: 30px;

  --text-h3-size: 20px;
  --text-h3-lh: 28px;

  /* Texte */
  --text-body-size: 17px;
  --text-body-lh: 28px;
  --text-small-size: 14px;
  --text-small-lh: 22px;

  /* Données (IBM Plex Mono) */
  --text-label-size: 12px;
  --text-label-lh: 16px;
  --text-label-ls: 0.08em;
  --text-figure-size: 32px;
  --text-figure-lh: 36px;

  /* Mise en page */
  --content-max: 1120px;
  --prose-max: 680px;
  --gutter: var(--space-4);
  --section-gap: 48px; /* 48px sur mobile (site-web.md) */

  /* Composants */
  --control-height: 48px;
  --focus-ring: 3px;
}

/* Fond sable un peu plus marqué que dans le brand kit (#FAF7F1),
   pour qu'il se distingue du blanc à l'écran. Thème clair uniquement.
   Contrastes vérifiés : terracotta 4,6:1 · ink-muted 5,7:1 · ink 15:1. */
@media not all and (prefers-color-scheme: dark) {
  :root {
    --surface: #F5EFE4;
  }
}

@media (min-width: 768px) {
  :root {
    --text-display-size: 56px;
    --text-display-lh: 60px;
    --text-h1-size: 40px;
    --text-h1-lh: 46px;
    --text-h2-size: 28px;
    --text-h2-lh: 34px;
    --gutter: var(--space-6);
    --section-gap: var(--space-20);
  }
}
