.logo {
    height: var(--logo-height);
}

.logo img {
    width: auto;
    height: 100%;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    font-family: var(--menu-font);
    font-weight: var(--menu-weight);
    font-size: var(--menu-size);
    line-height: var(--menu-height);
    color: var(--menu-color);
}

nav a:hover {
    text-decoration: underline;
}

.mobile-nav-item,
.header-menu-button {
    display: none;
}

.header-button a {
    display: block;
    border: var(--button-border);
    background-color: var(--button-bg);
    border-radius: var(--button-radius);
    padding: 0.75rem 1.6875rem;
    color: #000;
    transition: opacity .3s;
    font-size: 1rem;
    line-height: 100%;
}

.header-button a:hover {
    opacity: .7;
}

@media (max-width: 1280px) {
    header nav a {
        font-size: 2rem;
        line-height: 2rem;
    }

    .header-menu-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        border: 0;
        padding: 0;
        border-radius: 0.5rem;
    }

    .header-menu-button span,
    .header-menu-button span:before,
    .header-menu-button span:after {
        display: block;
        width: 24px;
        height: 4px;
        border-radius: 2px;
        background: #000;
        transition: 0.3s;
    }

    .header-menu-button span {
        position: relative;
    }

    .header-menu-button span:before {
        content: "";
        position: absolute;
        bottom: 8px;
        left: 0;
    }

    .header-menu-button span:after {
        content: "";
        position: absolute;
        top: 8px;
        left: 0;
    }

    .header-menu-button.active span {
        background: transparent;
    }

    .header-menu-button.active span::before {
        bottom: 0;
        transform: rotate(45deg);
    }

    .header-menu-button.active span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    #header-menu {
        position: absolute;
        flex-direction: column;
        top: 100%;
        right: 1rem;
        opacity: 0;
        overflow: hidden;
        height: 0;
        width: auto;
        min-width: 30vw;
        z-index: 9;
        background-color: #fff;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
        padding: 1em;
        border-radius: .5rem;
        transition: opacity .6s, height .3s;
    }

    #header-menu.active {
        opacity: 1;
        height: 23rem;
    }

    .mobile-nav-item {
        display: block;
    }
}

@media (max-width: 420px) {
    .header-button {
        display: none;
    }
}