*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    line-height: 1.6;
    font-family: "Fredoka", sans-serif;
    scroll-behavior: smooth;
    --bg: oklch(.99 .003 325);
    --primary: oklch(.25 .01 325);
    background-color: var(--bg);
    color: var(--primary);
}
body {
    margin: 0;
}
.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
nav {
    ul {
        display: flex;
        list-style: none;
    }
    a {
        padding: 1rem 1rem;
        text-decoration: none;
        display: block;
        color: inherit;
    }
}
.row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    > * {
        padding: 1rem;
        border: 1px dashed oklch(.42 .85 23.42);
        min-width: 30rem;
    }
    > *:first-child {
        flex-grow: 2;
    }
    > *:last-child {
        flex-grow: 1;
    }
}
.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
main {
    nav {
        --main-nav-bgc: oklch(0.628 0.258 29.234);
        --main-nav-c: oklch(0.007 0.031 75.219);
        ul {flex-wrap:wrap;
            min-width: 10rem;
            li:first-child {
                font-weight: bold;
                margin-inline-end: auto;}
            li:not(:first-child) a {
                color: var(--main-nav-c);
                background-color: var(--main-nav-bgc);
                transition:
                    background-color 0.3s ease-out,
                    coor 0.3s ease-out;
                &:hover, &:focus-visible {
                    color: var(--main-nav-bgc);
                    background-color: var(--main-nav-c);}
            }
        }
    }
}
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-basis: 18rem;
    li {
        display: flex;
        flex-direction: column;
        position: relative;
        border-radius:.5em;
        box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
        transition: box-shadow .2s ease-in;
        overflow: hidden;
        &:hover {
            box-shadow: 0 0 2rem oklch(0 0 0 / .4), 0 0 3rem oklch(0 0 0 / .3);
        }
        a:not(.overlay-link) {
            position: relative;
            z-index: 1;
        }
    }
    img {
        order:-1;
        width:100%;
    }
    a.overlay-link::after {
        content:"";
        position: absolute;
        inset: 0;
    }
}


