:root {
    interpolate-size: allow-keywords;
}

nav {
    font-variant: small-caps slashed-zero;
    position: fixed;

    padding: 1em 5em;
    text-align: center;
    z-index: 2000;
    background-color: white;
    max-width: 30vw;
    width: 30vw;
    text-transform: lowercase;
}


li.active a {
    color: var(--site-color);

}

section.years-list {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-bottom: 1em;

    text-align: center;
    font-family: "FF Ultra", sans-serif;
    font-weight: 900;
    font-feature-settings: "onum";
}

details {
    overflow: hidden;


}

details::details-content {
    color: var(--grey);
    font-size: 1rem;
    block-size: 0;
    transition: block-size .2s var(--easing), content-visibility .2s ease-in;
    transition-behavior: allow-discrete;

    display: block;
    block-size: 0;
    overflow: hidden;
    transition-property: block-size, content-visibility;
    transition-duration: 0.5s;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto;


    /* calc-size() function allows transition to height: auto; */
    block-size: calc-size(auto, size);

}


details>summary {
    list-style: none;

}

details>summary::-webkit-details-marker {
    display: none;
}

span.date {
    font-family: "FF Ultra", sans-serif;
    font-weight: 900;
    font-feature-settings: "onum";
}

ul.more {
    display: flex;
    text-transform: lowercase;
    margin-top: 1em;
    gap: 1em;
    width: 100%;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

details .events {
    padding-block: 1em;
}

details .events ul {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;


}



details .events ul li {
    outline: 1px solid var(--grey);
    padding: .5em;
    flex: 0 4 40%;
    background-color: white;

}

details .events ul li:hover {
    outline: dotted 1px var(--site-color);
}

details .events ul li a {
    display: block;
}

details .events ul li span.event-type {
    font-family: "Walbaum", sans-serif !important;
    font-variant: small-caps;
    font-weight: normal;
    font-feature-settings: "onum";

}

nav>button.menu-mobile {
    display: none;
}

@media (width <=1250px) {}

@media (1250px >=width) {
    nav {
        max-width: 100%;
        width: calc(100% - 2em);
        background: rgb(255, 255, 255);
        box-sizing: border-box;
        position: sticky;
        padding: 1em;

        transform: translateY(-89%);
        transition: transform .3s var(--easing);
        padding-bottom: 2em;
        position: absolute;
    }

    nav.open {
        transform: translateY(0);
        transition: transform .3s var(--easing);

    }

    summary {
        white-space: nowrap;
    }

    nav.open:after {}

    nav>button.menu-mobile {
        display: block;
        font-family: "Walbaum", serif;
        font-variant: small-caps;
        font-feature-settings: "onum";
        text-transform: lowercase;
        text-align: center;
        font-size: 1em;
        width: 100%;
        position: relative;
        top: 1em;
        margin-top: 1em;
        right: 0;
        height: 100%;
        background-color: white;
        border: none;
        z-index: -1;
        color: inherit;
    }

    nav>button.menu-mobile>span.open,
    nav.open>button.menu-mobile>span.close {
        display: block;
    }

    nav>button.menu-mobile>span.close,
    nav.open>button.menu-mobile>span.open {
        display: none;

    }

    nav ul {
        line-height: 1.3;
    }
}