@import url(https://fonts.googleapis.com/css2?family=REM:wght@100;200;400;500;600;700;800&display=swap);

*,
::after,
::before {
    box-sizing: border-box;
    border: 0 solid #e5e7eb;
    --text-color: #121212;
    --header-text-color: #374151;
    --highlight: #2749c9;
    --bg-color: #fff;
    --header-bg-color: lightgray;
}

/* @media (prefers-color-scheme: dark) {
    * {
        --text-color: #dadada;
        --header-text-color: #afb8d8;
        --bg-color: #141414;
        --header-bg-color: rgb(46, 46, 46);
        --highlight: #ffc400;
    }
} */

h1 {
    color: var(--header-text-color);
    font-weight: 600;
}

html {
    line-height: 1.5;
    font-family: REM, sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: inherit;
    place-content: center;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 0;
    background-color: var(--header-bg-color);
    width: 100%;
}

nav {
    display: flex;
    gap: 16px;
}

nav a:hover {
    color: var(--highlight);
}

.nav-wrapper {
    display: flex;
    gap: 16px;
    width: 800px;
    max-width: 90%;
}

.nav-desktop {
    display: flex;
    gap: 16px;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 55px;
    right: 20px;
    width: fit-content;
    border: 2px solid var(--text-color);
    background-color: var(--bg-color);
    padding: 16px;
    gap: 8px;
}

.nav-mobile ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-mobile li:not(:last-child) {
    padding-bottom: 16px;
}

.hamburger {
    display: none;
    background-color: transparent;
    font-size: 28px;
    width: 23px;
    height: 23px;
    line-height: 0.7;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
}

.hamburger:hover {
    color: var(--highlight);
}

main {
    display: flex;
    justify-content: center;
}

main>section {
    width: 800px;
    max-width: 90%;
    padding: 2vh 0;
}

a {
    color: inherit;
}

header a {
    text-align: center;
    text-decoration: inherit;
}

pre {
    margin: 0;
}

.row {
    display: flex;
    gap: 24px;
}

@media (max-width: 450px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-wrapper {
        justify-content: space-between;
    }
}