/* ============================================================
   Souki Lodges & Spa — Base
   Reset léger, typographie, grain de papier, styles globaux.
   Dépend de tokens.css (chargé avant).
   ============================================================ */

/* Polices hébergées avec le site : même dessin, sans requête vers Google. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/jost-normal-latin.woff2') format('woff2');
}

/* Mulish — caractère de labeur depuis le 8 août 2026 (la prose seulement ;
   les accroches restent en Instrument Serif, l'interface en Jost).
   Fichier VARIABLE : l'axe wght couvre 200-1000, les graisses employées
   sont 300 et 400. Sous-ensemble latin, servi par le site — aucune
   requête vers Google.
   ⚠ Mulish n'a PAS de chiffres elzéviriens (pas d'`onum` dans sa GSUB) —
   Instrument Serif n'en avait pas non plus : les chiffres de la prose
   sont linéaux, avant comme après. */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/mulish-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Mulish';
  font-style: italic;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/mulish-italic-latin.woff2') format('woff2');
}

/* --- Reset léger --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Corps --- */
body {
  background: var(--calcaire);
  color: var(--ink);
  font-family: var(--font-interface);
  font-weight: 300;
  line-height: var(--interligne);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "clig" 1, "kern" 1;
  overflow-x: clip;
}

img,
video { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--laiton);
  outline-offset: 4px;
}

/* --- Grain de papier (overlay fixe, imperceptible) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Titres --- */
h1,
h2,
h3 {
  font-family: var(--font-editorial);
  font-weight: 400;
  line-height: 1.1;
  color: var(--foret);
  font-feature-settings: "liga" 1, "dlig" 1, "onum" 1, "kern" 1;
}

/* --- Surtitre --- */
.eyebrow {
  font-family: var(--font-interface);
  font-weight: 400;
  font-size: var(--t-surtitre);
  letter-spacing: .42em;
  text-transform: uppercase;
  /* Le laiton pur ne tenait que 2,91:1 sur le calcaire — le surtitre s'y
     effaçait. Assombri de moitié d'encre, il passe à 4,77:1 et franchit le
     seuil, sans quitter la famille laiton. Les sections sur fond sombre le
     repassent en --argile, plus clair, et ne sont pas concernées. */
  color: color-mix(in srgb, var(--laiton) 50%, var(--ink));
}
/* Sous 400 px, l'interlettre de .42em sur un surtitre agrandi faisait
   déborder le menu superposé de 8 px. */
@media (max-width: 400px) {
  .eyebrow { letter-spacing: .26em; }
}

/* --- Sélection --- */
::selection {
  background: var(--argile);
  color: var(--nuit);
}
