/* ==========================================================================
   Cartple · Fuentes auto-alojadas (sin Google Fonts: nada sale a terceros)
   DM Serif Display 400 (títulos) · Lato 300 / 400 / 700 (texto)

   Archivos en public/fonts, descargados de Google Fonts (licencia SIL OFL 1.1).
   Cada peso tiene dos archivos: "latin" (español, inglés, alemán, catalán, €)
   y "latin-ext" (ŀ, ő, ł...). El navegador solo descarga latin-ext si la página
   usa alguno de esos caracteres.

   font-display: optional → si la fuente no está lista en ~100 ms, esa página se
   queda con la de reserva y NUNCA la cambia a mitad de lectura (cero saltos).
   Las fuentes que se usan nada más cargar van con <link rel="preload"> en los
   layouts, así que casi siempre llegan a tiempo, y desde la segunda página salen
   de la caché.

   Se carga ANTES de style.css / panel.css en todos los layouts.
   ========================================================================== */

/* ---- DM Serif Display 400 ---- */
@font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("../fonts/dm-serif-display-400-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;
}
@font-face {
    font-family: "DM Serif Display";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("../fonts/dm-serif-display-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Lato 300 ---- */
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 300;
    font-display: optional;
    src: url("../fonts/lato-300-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;
}
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 300;
    font-display: optional;
    src: url("../fonts/lato-300-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Lato 400 ---- */
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("../fonts/lato-400-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;
}
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("../fonts/lato-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Lato 700 ---- */
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url("../fonts/lato-700-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;
}
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url("../fonts/lato-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Fuentes de reserva con las medidas de las de verdad ----
   Si una fuente no llega a tiempo (font-display: optional), el texto se pinta con
   Georgia / Arial escaladas para ocupar EXACTAMENTE lo mismo: mismo ancho de línea,
   mismo alto y mismos saltos. Así nada se mueve tampoco en ese caso.
   Medidas tomadas en el navegador: Lato = Arial al 96,9 %; DM Serif Display = Georgia al 98,6 %.
   ascent/descent = métricas de la fuente web divididas entre size-adjust.
   (Antes estaban al principio de style.css; aquí las usan también el panel y los logins.) */
@font-face {
    font-family: "Lato Fallback";
    src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
    size-adjust: 96.9%;
    ascent-override: 101.86%;
    descent-override: 21.98%;
    line-gap-override: 0%;
}
@font-face {
    font-family: "DM Serif Display Fallback";
    src: local("Georgia"), local("Gelasio");
    size-adjust: 98.6%;
    ascent-override: 105.07%;
    descent-override: 33.98%;
    line-gap-override: 0%;
}
