header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1.5rem 1.1rem;

    z-index: 1600;

    margin: 0.6em auto;
    border-radius: 1.4em;
    width: 90%;
    border: 2px solid rgba(205, 214, 244, 0.1);
}

.left-bar,
.right-bar {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    flex: 0 1 auto;
    gap: 1em;
}

.subtitle {
    display: flex;
    flex-direction: row-reverse;
    gap: 1em;
}

.right-bar {
    align-items: end;
}

header .branding {
    display: flex;
    align-items: center;
}

header nav,
header .social {
    display: flex;
    align-items: center;
    gap: 1em;
    font-size: 1.3em;
    font-variant-caps: all-petite-caps;
}

header .logo,
header.title {
    display: inline-block;
    margin: 0;
}

header .logo {
    margin-right: 1rem;
}

header .title {
    font-size: 3em;
    font-variant-caps: all-petite-caps;
}

.pre-title {
    margin-right: 0.4em;
}

header .social a,
header nav a {
    color: inherit;
    text-decoration: none;
}

header .social a:hover,
header nav a:hover {
    text-decoration: underline;
}

@media (max-width: 1280px) {
    header .title {
        font-size: 2.2em;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em;
        width: 95%;
    }

    .left-bar,
    .right-bar {
        width: 100%;
    }
    
    .left-bar {
        flex-direction: row;
        justify-content: space-between;
    }

    .branding .logo {
        display: none;
    }

    .right-bar {
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
        gap: 1em;
        margin-top: 1em;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75em;
    }

    header .social {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75em;
    }

    .pre-title,
    .subtitle {
        display: none;
    }

    .burger-line {
        display: block;
        height: 3px;
        width: 100%;
        background-color: currentColor;
        border-radius: 2px;
    }

    .right-bar.scroll-hidden {
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
    }
}