:root {
    font-family: "Fredoka", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
    color: var(--primary);
    background-color: var(--bg);
}

*, *:before, *:after {
    box-sizing: border-box;
}


body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

nav > ul {
    list-style: none;
    display: flex;
}

nav > ul > li > a {
    text-decoration: none;
    color: inherit;
    padding-left: 1rem; padding-right: 1rem;
    padding-top: 1rem; padding-bottom: 1rem;
}


.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

    > *{
        flex: 1 1 15rem;
        padding: 1rem;
        border: crimson 1px dashed;
    }

    > *:nth-child(2) {
        flex: 0 1 15rem;
    }

}


.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

main > nav {
    display: flex;
    flex-wrap: wrap;

}

nav[aria-labelledby="nav_id"] ul {
    display: flex;
    flex-wrap: wrap;
}


nav[aria-labelledby="nav_id"] li:not(:first-child) {
    background-color: blue;
    color: white;
}

nav[aria-labelledby="nav_id"] li:not(:first-child):hover {
    background-color: transparent;
    color: inherit;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

nav[aria-labelledby="nav_id"] li:first-child {
    font-weight: bold;
    color: inherit;
    margin-right: auto;
}

nav[aria-labelledby="nav_id"] li:first-child:hover {
    background-color: blue;
    color: white;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cards > li {
    flex: 1 1 18rem;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.2rem oklch(0 0 0 / 0.2), 0 0 2rem oklch(0 0 0 / 0.1);
    overflow: hidden;
}

.cards a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.cards > li > img {
    order: -1;
    width: 100%;
    object-fit: cover;
}

.content {
    padding: 1rem;
}

.cards > li:hover {
    box-shadow: 0 0 0.2rem oklch(0 0 0 / 0.5), 0 0 2rem oklch(0 0 0 / 0.5);
    transition: box-shadow 0.2s ease-in-out;
}