@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/space-grotesk.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/jetbrains-mono.woff2") format("woff2");
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/caveat-latin-700.woff2") format("woff2");
}

:root {
    color-scheme: light dark;

    --papier: #f6f1e7;
    --papier-2: #efe8da;
    --carte: #fffdf8;
    --encre: #1c1917;
    --encre-douce: #57514a;
    --trait: #1c1917;
    --trait-doux: #d8cfbd;
    --rouille: #b7410e;
    --rouille-vive: #d9531a;
    --sur-rouille: #fffdf8;
    --ok: #2f6f4e;
    --erreur: #b3261e;

    --titre: "Space Grotesk", system-ui, sans-serif;
    --texte: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --largeur: 68rem;
    --ombre: 5px 5px 0 var(--trait);
}

@media (prefers-color-scheme: dark) {
    :root {
        --papier: #171411;
        --papier-2: #1f1b17;
        --carte: #211d19;
        --encre: #f3ece0;
        --encre-douce: #b3a998;
        --trait: #f3ece0;
        --trait-doux: #3b342c;
        --rouille: #f0793a;
        --rouille-vive: #ff9257;
        --sur-rouille: #171411;
        --ok: #7fc8a0;
        --erreur: #ff8a80;
    }
}
