@import url(/css/variables.css);

body > header {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;

    padding-inline: 4rem;

    color: var(--clr-light);
    background-color: var(--clr-secondary);
    border-bottom: 0.5rem solid var(--clr-primary);
}

body > header a {
    color: inherit;
    text-decoration: none;
    outline: none;
}

body > header .title {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--ff-title);

    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    outline: var(--clr-primary) solid 0;

    transition: scale 175ms ease-in-out, outline-width 175ms ease-in-out;
}
body > header .title:is(:hover, :focus, :focus-within, :focus-visible) {
    scale: 0.75;
    outline-width: 0.25rem;
}
body > header .title img {
    height: 3rem;
}

body > header nav ul {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 1rem;

    height: 100%;
    padding: 0;
    margin: 0;

    list-style: none;
}

body > header nav li {
    display: grid;
    place-content: center;
    position: relative;
    z-index: 1;

    height: 100%;
    padding: 0.5rem;
}

body > header nav li::before {
    background-color: var(--clr-primary);
    content: '';
    inset-inline: 0;
    bottom: 0;
    height: 75%;
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: opacity 175ms ease-in-out, height 75ms linear 50ms;
}
body > header nav li:is(:hover, :focus, :focus-within, :focus-visible)::before {
    opacity: 1;
    height: 100%;
}

