@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400..700&display=swap");

@font-face {
    font-family: "Formula1";
    src: url("/fonts/formula1/Formula1-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Formula1";
    src: url("/fonts/formula1/Formula1-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
}

@font-face {
    font-family: "Formula1";
    src: url("/fonts/formula1/Formula1-Black.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Formula1";
    src: url("/fonts/formula1/Formula1-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

:root {
    --reading-font: Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
    --site-font: "Formula1", var(--reading-font);
    font-family: var(--site-font);
}

:where(button, input, select, textarea) {
    font-family: inherit;
}
