/* =========================================================
   TOKENS · Portfolio Marina Dimitrova
   Basado en el sistema de diseño del portfolio PDF (papel, tinta,
   Josefin Sans). La atmósfera cromática (--bg / --fg / --accent)
   cambia en vivo según el proyecto activo.
   ========================================================= */

@font-face { font-family: "Josefin Sans"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../assets/fonts/josefin-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../assets/fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../assets/fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); }


/* Segunda tipografía (textos editoriales): Newsreader, licencia OFL (assets/fonts/OFL-Newsreader.txt) */
@font-face { font-family: "Newsreader"; font-weight: 300 700; font-style: normal; font-display: swap;
  src: url("../assets/fonts/newsreader-latin-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 300 700; font-style: italic; font-display: swap;
  src: url("../assets/fonts/newsreader-latin-italic.woff2") format("woff2"); }
/* Cirílico (búlgaro): Josefin Sans y Newsreader no incluyen cirílico. Solo se descargan para texto cirílico
   (unicode-range) y solo actúan como alternativa de la misma familia; el latín no cambia.
   Jost (OFL) ≈ Josefin Sans · Source Serif 4 (OFL) ≈ Newsreader */
@font-face { font-family: "Jost"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../assets/fonts/jost-cyrillic-variable.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-style: normal; font-display: swap;
  src: url("../assets/fonts/source-serif-4-cyrillic-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-style: italic; font-display: swap;
  src: url("../assets/fonts/source-serif-4-cyrillic-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root {
  /* Atmósfera (se sobrescribe desde JS) */
  --bg: #F5F3EE;
  --fg: #111111;
  --accent: #777777;

  --font: "Josefin Sans", "Jost", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;

  --margin: clamp(20px, 4.2vw, 64px);
  --gutter: clamp(12px, 1.6vw, 24px);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --t-theme: .8s;

  --header-h: 64px;
}

/* Búlgaro (cirílico): Source Serif 4 aplicaría con lang="bg" formas locales (locl) pensadas para cursiva
   también a la redonda (la «т» se vería como «m»). Se desactiva para que la redonda use las formas estándar.
   Va sobre * porque el atajo font: de muchas reglas restablece font-feature-settings. */
html:lang(bg) *, html:lang(bg) *::before, html:lang(bg) *::after { font-feature-settings: "locl" 0; }
