header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media not all and (min-width: 40rem) {
    header nav,
    footer nav {
        flex-direction: column;
    }
}

nav a {
    color: inherit;
    text-decoration: none;
    text-align: center;
}

nav a.active,
nav a:hover {
    text-decoration: underline;
    color: var(--color-accent);
}

nav div,
nav ul {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li,
nav li a {
    display: flex;
    align-items: center;
    height: 100%;
}

header nav .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

header nav .logo svg {
    fill: var(--color-text);
    width: 30px;
    height: 30px;
    padding: 15px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    color: var(--color-text);
}
