/*
 * Font di progetto ivg.it (bozza "ivg-typo-fullgoogle").
 *
 * Tre famiglie, tre ruoli distinti:
 *
 *   - Source Serif 4  titoli / headline        -> slot "secondary" della piattaforma
 *   - Inter           testo, occhielli, UI     -> slot "primary" della piattaforma
 *   - DM Mono         occhielli ed etichette   -> --ivg-font-family--mono-font
 *
 * Gli slot primary/secondary sono assegnati in inc/hooks/fonts.php, che a sua
 * volta punta ai token --ivg-font-family--* definiti in
 * assets/sass/variables/_variables.scss.
 *
 * I percorsi sono ASSOLUTI di proposito: questo foglio viene stampato inline
 * ("embed") dentro l'head, quindi gli URL relativi verrebbero risolti rispetto
 * alla pagina e non rispetto alla directory dei font.
 *
 * Sono disponibili solo i tagli qui elencati: i range di font-weight servono a
 * mappare sul file più vicino i pesi usati nel CSS storico (700/800/900) ed
 * evitare il finto grassetto sintetizzato dal browser.
 */

/* ---------------------------------------------------------------- INTER --- */

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/edi3_child/assets/fonts/Inter24pt-Regular.woff2') format('woff2'),
        url('/wp-content/themes/edi3_child/assets/fonts/Inter24pt-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/edi3_child/assets/fonts/Inter24pt-Italic.woff2') format('woff2'),
        url('/wp-content/themes/edi3_child/assets/fonts/Inter24pt-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Il SemiBold copre anche 700/800/900: sono i pesi usati dal CSS esistente. */
@font-face {
    font-family: 'Inter';
    src: url('/wp-content/themes/edi3_child/assets/fonts/Inter24pt-SemiBold.woff2') format('woff2'),
        url('/wp-content/themes/edi3_child/assets/fonts/Inter24pt-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------- SOURCE SERIF 4 --- */

/*
 * Del serif esiste solo il Bold: i titoli sono sempre a 700 (vedi
 * --ivg-font-weight--bold), il range più ampio serve a coprire i 800/900
 * ereditati da regole storiche senza ricadere sul serif di sistema.
 */
@font-face {
    font-family: 'Source Serif 4';
    src: url('/wp-content/themes/edi3_child/assets/fonts/SourceSerif4-Bold.woff2') format('woff2'),
        url('/wp-content/themes/edi3_child/assets/fonts/SourceSerif4-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -------------------------------------------------------------- DM MONO --- */

/*
 * Range esteso a tutti i pesi: del mono esiste il solo Regular e diverse regole
 * storiche chiedono 700 sugli occhielli. Dichiarandolo su 100-900 il browser usa
 * comunque questo file, invece di sintetizzare un finto grassetto.
 */
@font-face {
    font-family: 'DM Mono';
    src: url('/wp-content/themes/edi3_child/assets/fonts/DMMono-Regular.woff2') format('woff2'),
        url('/wp-content/themes/edi3_child/assets/fonts/DMMono-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
