header {
    display: flex;
    justify-content: space-between;
    padding: 24px;
    margin: 0 auto;
}

header h1 {
    text-align: left;
}

h1 a:hover,
h1 a:active {
    color: var(--neutral);
}

header nav {
    max-width: 600px;
}

header nav ul {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: nowrap;
}

nav ul li {
    list-style: none;
}

@media only screen and (max-width: 767px) {
    header {
        flex-wrap: wrap;
        padding: 10px;
    }

    header h1 {
        white-space: nowrap;
    }

    header nav {
        position: absolute;
        right: 0;
    }

    header nav ul {
        width: fit-content;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
}

@media only screen and (max-width: 500px) {
    header nav {
        top: 90px;
    }

    header nav ul {
        flex-direction: row;
    }
}
