/* =============================================================================
 * Self-hosted replacements for the Google Fonts @import URLs that upstream
 * loads inside `extensions/odoo_theme/static/scss/_typography.scss`.
 *
 * `scripts/build_offline.sh` strips those @import lines before compiling
 * the SCSS, so the browser never hits fonts.googleapis.com. The @font-face
 * declarations below give the browser local fallbacks for the same family
 * names that the theme uses (`Inter`, `Roboto Slab`).
 *
 * Inter:        upstream already ships `Inter-roman.var.woff2` and
 *               `Inter-italic.var.woff2` inside the theme's fonts/ dir, so
 *               we just reference them by relative path. No vendoring needed.
 *
 * Roboto Slab:  not shipped upstream. Run `scripts/fetch_vendor.sh` once to
 *               download the woff2 (weight 500) into `custom/static/vendor/`.
 * ============================================================================= */

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-roman.var.woff2') format('woff2-variations'),
         url('fonts/Inter-roman.var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-italic.var.woff2') format('woff2-variations'),
         url('fonts/Inter-italic.var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Slab';
    src: url('vendor/RobotoSlab-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
