/* Les couleurs, les polices et les matières du jeu, recopiées de ../Stonehive (jamais liées) :
   couleurs : data/couleurs.json, section « Interface » (UI_*) ; polices : le texte courant vient de web/style/00-polices.css et web/polices/, les titres sont propres au site depuis SITE11 ;
   matières « Bois et fer forgé » : data/dessins/interface/ (passées en WebP sans perte), kit web/style/00-kit.css.
   Polices sous licence SIL Open Font License 1.1 (libres d'être redistribuées) : licences dans polices/. */

/* SITE11 : les titres en Metamorphous (gravée, anguleuse, « plus runique mais lisible » : choix dans docs/etapes/SITE11_police-animations.md).
   Elle n'existe qu'en une graisse : on la déclare pour toutes, le navigateur ne la grossit donc pas lui-même. Le jeu, lui, a gardé Cinzel. */
@font-face { font-family: 'Stonehive Titres'; src: url('../polices/metamorphous-latin-400-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Stonehive Texte'; src: url('../polices/source-sans-3-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Stonehive Texte'; src: url('../polices/source-sans-3-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Metamorphous : titres, enseignes, chiffres et boutons seulement, jamais un texte courant */
  --police-titres: 'Stonehive Titres', Georgia, 'Times New Roman', serif;
  --police-texte: 'Stonehive Texte', system-ui, sans-serif;

  /* couleurs de l'interface du jeu */
  --bg: #0d0b0a;            /* UI_BG */
  --panel: #181411eb;       /* UI_PANEL */
  --panel-top: #251d17f0;   /* UI_PANEL_TOP */
  --text: #e8dcc8;          /* UI_TEXT */
  --muted: #a8977e;         /* UI_MUTED */
  --accent: #e0a040;        /* UI_ACCENT */
  --or: #f0c36a;            /* UI_OR */
  --button: #6b4a27;        /* UI_BUTTON */
  --button-hover: #74532f;  /* UI_BUTTON_HOVER */
  --input: #1a1512;         /* UI_INPUT */
  --bois: #4a3019;          /* UI_BOIS */
  --bois-sombre: #432c15;   /* UI_BOIS_SOMBRE */
  --voile-bois: #00000059;  /* UI_VOILE_BOIS */
  --fer: #3a3d42;           /* UI_FER */
  --fer-clair: #8a8f97;     /* UI_FER_CLAIR */
  --fer-sombre: #1a1b1e;    /* UI_FER_SOMBRE */
  --parchemin: #ecd9ae;     /* UI_PARCHEMIN */
  --parchemin-sombre: #cdb27c; /* UI_PARCHEMIN_SOMBRE */
  --encre: #2c1c0b;         /* UI_ENCRE */
  --reflet-bois: #ffdca04d; /* UI_REFLET_BOIS */
  --tache-parchemin: #78501e80; /* UI_TACHE_PARCHEMIN */
  --shadow: #00000080;      /* UI_SHADOW */
  --bord-ext: #0d0905ff;    /* UI_BORD_EXT */
  --bord-lumiere: #ffe8c81f;/* UI_BORD_LUMIERE */
  --voile-titre: #0d0b0a66; /* UI_TITLE_VEIL */
  --voile-titre-bord: #0d0b0ae0; /* UI_TITLE_VEIL_EDGE */
  --encre-pale: color-mix(in srgb, var(--encre) 85%, var(--parchemin)); /* (85 % : contraste 5,5 sur le bas du parchemin ; 78 % n’y faisait que 4,4) */

  /* le kit « Bois et fer forgé » (00-kit.css) */
  --arrondi-1: 2px; --arrondi-2: 4px;
  --ombre-1: 0 2px 3px var(--shadow);
  --ombre-2: 0 4px 14px var(--shadow);
  --ombre-3: 0 8px 22px var(--shadow);
  --ombre-creux: inset 0 2px 4px var(--shadow);
  --img-bois: url('../images/matieres/bois.webp');
  --img-parchemin: url('../images/matieres/parchemin.webp');
  --img-cadre: url('../images/matieres/cadre.webp');
  --img-clou: url('../images/matieres/clou.webp');
  --img-ferrure: url('../images/matieres/ferrure.webp');
  --img-maillon: url('../images/matieres/maillon.webp');
  --bois-fond: linear-gradient(var(--voile-bois), var(--voile-bois)), var(--img-bois) 0 0 / 256px 256px, var(--bois);
  --parchemin-fond: var(--img-parchemin) 0 0 / 128px 128px, linear-gradient(var(--parchemin), var(--parchemin-sombre));
  --plaque-fond: linear-gradient(var(--button), var(--bois-sombre));
  --plaque-relief: inset 0 1px 0 var(--reflet-bois), inset 0 -2px 0 var(--voile-bois), var(--ombre-1);
}
