/* Self-hosted Roboto Serif (opsz + wght) + Roboto (wght) — latin variable, matches Google Fonts CDN */

@font-face {
    font-family: "Roboto Serif";
    src: url("/fonts/roboto-serif.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto Serif";
    src: url("/fonts/roboto-serif-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/fonts/roboto.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("/fonts/roboto-italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Metric-matched fallbacks to reduce CLS during font swap */
@font-face {
    font-family: "Roboto Serif Fallback";
    src: local("Times New Roman");
    size-adjust: 106%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Roboto Fallback";
    src: local("Arial");
    size-adjust: 100%;
    ascent-override: 92%;
    descent-override: 24%;
    line-gap-override: 0%;
}
