/* Academy Fonts - wwwroot/css/academy-fonts.css */

/* Indivisible Font Family. Fonts are served from the app root (/fonts). Only the four
   upright weights the UI actually uses are declared; the browser synthesizes italics,
   which keeps first-load font bytes small on constrained conference wifi. */
@font-face {
    font-family: "Indivisible";
    src: url("/fonts/Indivisible-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Indivisible";
    src: url("/fonts/Indivisible-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Indivisible";
    src: url("/fonts/Indivisible-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Indivisible";
    src: url("/fonts/Indivisible-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Font loading optimization */
.academy-font-loading {
    font-family: "Arial", sans-serif; /* Fallback while fonts load */
}

.academy-fonts-loaded {
    font-family: "Indivisible", "Arial", sans-serif;
}

/* Preload critical font variants for better performance */
/* Add these as <link> tags in your index.html head:

<link rel="preload" href="fonts/Indivisible-Regular.otf" as="font" type="font/otf" crossorigin>
<link rel="preload" href="fonts/Indivisible-Bold.otf" as="font" type="font/otf" crossorigin>
<link rel="preload" href="fonts/Indivisible-Medium.otf" as="font" type="font/otf" crossorigin>

*/
