
body>header {
    height: 4rem;
    display: flex;
    align-items: center;
    background-color: var(--header-background-color);
    filter: drop-shadow(0px 0px 1.5px var(--color-base-border));
    color: var(--color-secondary-text);
}

body>header>* {
    color: var(--color-secondary-text);
}

body>header .avatar img {
    border-color: var(--header-background-color);
}

body>header .avatar img {
    border-width: 0.5rem;
    border-style: solid;
}

body>header .logo {
    height: 100%;
    margin: 0;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}

body>header .logo img {
    max-height: 85%;
    flex-basis: 3rem;
}

body>header nav {
    display: flex;
    align-items: center;
    flex-basis: calc(90% - 5rem);
    position: relative;
    font-size: 0.9rem;
}

body>header nav button.menu {
    display: none;
}

body>header ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}

body>header ul li {
    position: relative;
    
}

body>header ul a {
    color: var(--header-link-color);
    line-height: 1;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem;
    display: block;
    width: 100%;
}

body>header .current a {
    font-weight: bolder;
    color: var(--header-link-active);
}

header ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 10rem;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 10;
    font-size: 0.95em;
    border-radius: 0.25em;
    filter: drop-shadow(0px 0px 1px #fff) drop-shadow(0px 0px 10px #0002) contrast(1.2);
}

header ul ul a,
header .current ul a {
    background-color: hsl(from var(--header-background-color) h s calc(l + 8) / 1);
    color: var(--header-link-color);
}

header ul ul .current a {
    color: var(--header-link-active);
}

header ul ul li:first-child a {
    border-radius: 0.25em 0.25em 0 0;
}

header ul ul li:last-child a {
    border-radius: 0 0 0.25em 0.25em;
}

header ul ul li:first-child a::before {
    background-color: inherit;
    position: absolute;
    top: -0.25em;
    left: 1.5em;
    width: 0.5em;
    height: 0.5em;
    transform: rotate(45deg);
    content: "";
}

@media (max-width: 830px) {
    body>header nav ul.menu {
        display: none;
    }

    body>header nav.open ul.menu {
        display: flex;
        position: absolute;
        top: 3rem;
        left: 0;
        z-index: 1;
        background: hsl(from var(--header-background-color) h s calc(l + 20) / 1);
        flex-flow: column;
        gap: 1px;
    }

    body>header nav button.menu {
        display: flex;
    }
}