/*
 * Inter — chỉ variable (giảm FOUT / hàng chục request font tĩnh khi F5).
 * LICENSE: see ../../fonts/inter/LICENSE.txt
 *
 * Bản cũ khai InterVariable + Inter-VariableFont + 18 file tĩnh cùng family Inter.
 * Trình duyệt hiện đại vẫn tải thêm Thin/Light/Medium/Bold…
 * Chỉ giữ 2 file variable; tĩnh nằm trong @supports not (...) làm đường lùi.
 */

@font-face {
    font-family: InterVariable;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../../fonts/inter/InterVariable.woff2) format("woff2");
}

@font-face {
    font-family: InterVariable;
    font-style: italic;
    font-weight: 100 900;
    font-display: optional;
    src: url(../../fonts/inter/InterVariable-Italic.woff2) format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../../fonts/inter/InterVariable.woff2) format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    font-display: optional;
    src: url(../../fonts/inter/InterVariable-Italic.woff2) format("woff2");
}

@supports not (font-variation-settings: normal) {
    @font-face {
        font-family: "Inter";
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url(../../fonts/inter/Inter-Regular.woff2) format("woff2");
    }

    @font-face {
        font-family: "Inter";
        font-style: normal;
        font-weight: 600;
        font-display: swap;
        src: url(../../fonts/inter/Inter-SemiBold.woff2) format("woff2");
    }

    @font-face {
        font-family: "Inter";
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url(../../fonts/inter/Inter-Bold.woff2) format("woff2");
    }
}

:root {
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

@supports (font-variation-settings: normal) {
    :root {
        --font-sans: "InterVariable", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        font-optical-sizing: auto;
    }
}
