/* ── Fuentes autohospedadas (site/assets/fonts/) ──────────────────────────
   Servidas same-origin: cero peticiones a Google Fonts/Fontshare (privacidad,
   latencia y sin riesgo de que un tercero caiga). Los woff2 del primer render
   se precargan en el <head> de cada plantilla.

   Licencias (ambas permiten redistribución en software libre):
   - Instrument Serif y JetBrains Mono: SIL Open Font License 1.1.
   - General Sans: ITF Free Font License (Fontshare).
   - Material Symbols (Apache 2.0), subset con SOLO los iconos del sitio.

   Mantenimiento:
   - Añadir un icono nuevo → regenerar material-symbols-subset.woff2 con
     https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined&icon_names=<lista>
     (incluye school,search,dark_mode,light_mode,edit_note,menu_book,list,task_alt).
   - Actualizar una fuente → reemplazar el woff2 y borrar el comentario de
     versión; los nombres de fichero son estables por diseño. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin.woff2") format("woff2");
  /* Subconjunto latin de Google: lo que la fuente contiene de verdad. */
  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;
}

@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/general-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/general-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "General Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/general-sans-600.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/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;
}

/* Iconos: display block (como el CSS oficial de Material Symbols) para no ver
   el nombre de la ligadura como texto mientras carga. Es un fichero de 2 KB:
   llega al instante. */
@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/fonts/material-symbols-subset.woff2") format("woff2");
}
