/*
 * Tipografías autoalojadas — Inter y JetBrains Mono.
 *
 * Antes se cargaban desde fonts.googleapis.com, lo que enviaba la IP, el
 * user-agent y el referer del navegador a un tercero en cada carga de página,
 * sin consentimiento (auditoría 2026-07-30). Al servirlas desde el propio
 * dominio no sale ninguna petición externa, y la CSP puede prescindir de
 * fonts.googleapis.com y fonts.gstatic.com.
 *
 * Son las FUENTES VARIABLES: un único fichero por alfabeto cubre todos los
 * pesos, de ahí `font-weight: 100 900`. Google servía el mismo archivo
 * repetido para cada peso — 12 descargas de 606 KB para 4 ficheros distintos
 * de 172 KB en total.
 *
 * Los `unicode-range` son los de Google: el navegador solo descarga
 * latin-ext si la página realmente usa esos caracteres.
 *
 * Ambas son SIL Open Font License 1.1 (ver LICENSE en esta carpeta), que
 * permite expresamente el autoalojamiento y la redistribución.
 */

/* Inter — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations'),
       url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2-variations'),
       url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2-variations'),
       url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2-variations'),
       url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Lato — usada por la plantilla de factura ──────────────────────────
 * El PDF la lleva embebida como data:URI en server/services/invoiceRenderer.js
 * (pdfService bloquea la red externa). Estos ficheros son para la
 * previsualización en el navegador, que antes la pedía a Google.
 * Copias de server/assets/fonts/: la ruta del PDF y la del navegador se
 * mantienen independientes a propósito.
 * Lato: Copyright (c) 2010-2014 Łukasz Dziedzic, SIL OFL 1.1.
 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/lato-900.woff2') format('woff2');
}
