@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: rgb(24, 24, 27);
        --bg-color-2: rgb(50, 50, 55);
        --fg-color: rgb(240, 240, 240);
        --fg-color-2: rgb(145, 145, 145);
        --primary: rgb(252, 165, 165);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: rgb(250, 250, 250);
        --bg-color-2: rgb(200, 200, 200);
        --fg-color: rgb(24, 24, 27);
        --fg-color-2: rgb(75, 75, 90);
        --primary: rgba(239, 68, 68);
    }
}

@font-face {
    font-family: "Spline Sans";
    src: url('/fonts/SplineSans-Regular.woff2');
}

@font-face {
    font-family: "Spline Sans";
    src: url('/fonts/SplineSans-Bold.woff2');
    font-weight: bold;
}

body {
    background: var(--bg-color);
    color: var(--fg-color);
    font-family: "Spline Sans", ui-sans-serif, sans-serif;
    font-size: 16pt;
    height: min-content;
}

main {
    margin: 5em auto;
    width: min(100ch, 95vw);
}

.logo {
    height: 1em;
    vertical-align: sub;
    padding-left: 5px;
}

a.button {
    display: block;
    text-decoration: none;
    border: 2px solid var(--primary);
    padding: 1ch 2ch;
    border-radius: 8px;
    margin: 0 1ch;
}

a {
    color: inherit;
}
a:visited {
    color: inherit;
}
a:hover {
    color: var(--fg-color-2);
}

footer {
    position: absolute;
    bottom: 1em;
    left: 0;
    width: 100%;
    text-align: center;
}

.header {
    font-weight: normal;
}

h2 {
    font-size: larger;
}

code {
    background: var(--bg-color-2);
    margin: 0 0.5ch;
    padding: 0 0.5ch;
    border-radius: 3px;
}

.flex-responsive {
    display: flex;
}

@media only screen and (max-width: 600px) {
    main {
        margin: 2em auto;
    }
    .header {
        text-align: center;
    }
    .flex-responsive {
        flex-direction: column;
    }
    a.button {
        margin: 1ch;
        text-align: center;
    }
    footer {
        margin-top: 3em;
        position: relative;
    }
}

@media only screen and (max-width: 900px) {
    footer > .long-text {
        display: none;
    }
}

.warn {
    color: #ff8c39;
}
