:root {
    --color-primary: #1D89E4;
    --color-hover: #48A1EA;
    --color-dark: #222222;
    --color-light: #f2f2f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-v31-latin-ext-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-v31-latin-ext-regular.woff2') format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    padding-inline: 1.5rem;

    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--color-dark);
    z-index: 100;
}

.site-logo {
    font-weight: 400;
    text-decoration: none;
    color: var(--color-light);
}

.site-toggle {
    width: 48px;
    height: 48px;

    outline: none;
    border: none;
    background: transparent;
    cursor: pointer;
    display: none;
}

.site-nav-link {
    font-weight: 400;
    text-decoration: none;
    color: var(--color-light);
    padding: 16px 24px;
}

.toggle-open {
    display: block;
}

.toggle-close {
    display: none;
}

.toggle.active .toggle-open {
    display: none;
}

.toggle.active .toggle-close {
    display: block;
}

@media (width < 891px) {
    .site-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 80px;
        right: 0;
        width: 100%;
        height: calc(100vh - 80px);
        padding: 16px 0;
        background-color: var(--color-dark);

        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        transform: translateX(100%);
    }

    .site-nav.active {
        transform: translateX(0);
    }

}