html {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

    background: #000;
    color: white;
    font-family: Overpass, monospace;
    font-size: 15px;

    scrollbar-width: thin;
    scrollbar-color: white black;
}

body {
    display: grid;
    grid-template-columns: min-content 1fr; /* Navbar and main content */
    grid-template-rows: 100%;
    gap: 14px;
    width: 90vw;
    height: 80vh;
    max-height: 575px;
    max-width: 900px;
}

body > nav {
    padding: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body > nav::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #fff;
}

nav a,
nav span {
    color: white;
    text-decoration: none;
    word-break: normal;
    overflow-wrap: normal;
    min-width: auto;
}

nav a:hover {
    text-decoration: underline;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: Doto;
}

main {
    display: flex;
    padding: 14px;
    position: relative;
    max-width: 100%;
}

footer {
    display: flex;
    justify-content: center;
    grid-column: 1 / -1;
    gap: 0.5em;
}

small {
    font-size: 0.75rem;
}

ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h1 {
    font-size: 4rem;
    font-family: Doto;
    font-weight: 800;
}

h2 {
    font-size: 1.9rem;
    text-align: justify;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    max-width: 100%;
}

p {
    text-align: justify;
    line-height: 1.5rem;
}

p,
h1,
h2,
a {
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

@font-face {
    font-family: Doto;
    src: url(../fonts/Doto/Doto-VariableFont_ROND\,wght.ttf);
}

@font-face {
    font-family: Overpass;
    src: url(../fonts/Overpass_Mono/OverpassMono-VariableFont_wght.ttf);
}

/* This should prefetch Noto for when it's needed */
@font-face {
    font-family: Noto;
    src: url(../../static/fonts/Noto/NotoSansSymbols-VariableFont_wght.ttf);
}

/* This should prefetch FA for when it's needed */
@font-face {
    font-family: "FontAwesome Brands";
    src: url(../../static/fonts/FontAwesome/fa-brands-400.woff2);
}

@media screen and (max-width: 768px) {
    html {
        display: block;
        padding: 1rem 0;
        margin: 0 1rem;
        overflow-x: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: unset;
        width: unset;
        max-width: unset;
        gap: 3px;
        overflow: hidden;
    }

    body > nav {
        display: flex;
        flex-direction: row;
        margin-top: 0.4rem;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: initial;
        font-size: 0.8em;
    }

    body > nav > ul {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    body > nav > .logo {
        width: 100%;
        display: block;
    }

    main {
        overflow-x: hidden;
        height: auto;
        max-height: 100%;
    }

    h1 {
        font-size: 3.25rem;
    }
}
