:root {
    --nav-gap: 0;
    --nav-margin: 1rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    margin: var(--nav-margin);
}

.nav__wrapper,
.nav__listed {
    display: flex;
}

.nav__listed {
    flex: 1;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 1.2rem;  
}

.nav__group {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.nav__wrapper--home{
    padding-bottom: 0;
}

/* mobile */
@media (max-width: 720px) {
    .nav {
        padding: 0.6rem;
        flex-direction: column;
        gap: 1.5rem;
        background-color: var(--white);
    }

    .nav__wrapper{
        padding: 1rem;
        flex-wrap: wrap;
    }

    .logo {
        max-width: 35vw;
    }

    .nav__info-button {
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
    }
    
    .nav__listed {
        display: flex;
        width: 100%;
        flex: none;
        justify-content: center;
        align-items: baseline;
        flex-wrap: wrap;
        line-height: 1;
        column-gap: 0.4rem;
    }

    .nav__group {
        display: contents;
    }
}

/* desktop */
@media (min-width: 721px) {
    .logo {
        max-width: 13vw;
    }

    .nav {
        flex-direction: column;
        padding: var(--nav-margin);
        gap: var(--nav-gap);
    }

    .nav__wrapper {
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .nav__listed {
        line-height: 0.9;
    }

    .nav__group {
        white-space: nowrap;    
    }
}