header {
    position: sticky;
    top: 0;
    padding: 0.5rem;
    background-color: var(--background-color-page);
    box-shadow: 0 0 3px 3px rgba(119, 119, 119, 0.3);
    z-index: 10;

    .container {
        width: var(--container-size);
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        @media (max-width: 1279.98px) {
            width: 98%;
        }
    }

    h1 {
        font-weight: normal;
        font-size: 1.3rem;
        align-self: center;

        a:hover {
            text-decoration: underline;
        }
    }

    ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            margin-left: var(--margin-left-right);
        }
    }

    .logo {
        width: 3rem;
        height: 3rem;
    }

    .profile, .logo {
        @media (max-width: 991.98px) {
            display: none;
        }
    }

    .search {
        position: relative;

        button {
            position: absolute;
            top: 0;
            left: 0;
            background: transparent;
            border: none;
            padding-left: var(--margin-left-right);
            padding-right: var(--margin-left-right);

            /* Native nesting turns "button, .button { &:hover }" into the more specific ":is(button, .button):hover" */
            &:hover {
                background: transparent;
            }
        }

        label {
            display: none;
        }

        input[type="search"] {
            padding-left: 2.5rem;
        }
    }

    #menu-mobile {
        display: none;

        @media (max-width: 991.98px) {
            display: flex;
            font-size: 2rem;
        }
    }
}
