@font-face {
    font-family: 'Sansita';
    src: url(../../../fonts/Sansita-Regular.woff2) format(woff2);
}

:root {
    font-family: "Sansita", sans-serif;
    line-height: 1.6;
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
    background-color: var(--bg);
    color: var(--primary);
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

header {
    nav a {
        color: inherit;
    }
}

body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

nav {
    > ul {
        padding: 0;
        list-style: none;
        display: flex;
    }

    a {
        padding: 1rem 1rem;
        display: block;
        text-decoration: none;
    }
}

.row {
    display: flex;
    gap: 2rem;
    flex-wrap:wrap;
    * {
        border: dashed 1px;
        padding: 1rem;
        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;
}

#Nav nav{
    flex-wrap: wrap;
        li:not(:first-child) a {
            background-color: oklch(0.76 .23 45);
            color: white;
            transition: color 0.2s ease-in-out,
            background-color 0.2s ease-in-out;

            &:hover,
            &:focus-visible {
                background-color: white;
                color: oklch(0.76 .23 45);
            }}
            :first-child {
                    margin-inline-end: auto;
                }

                li:first-child a {
                    background-color: revert;
                    color: black;
                    font-weight: bold;
                }
            }
.cards{
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;

    li {
        display: flex;
        flex-direction: column;
        position: relative;
        flex-basis: 18rem;
        border-radius: .5rem;
        overflow: hidden;
        transition: box-shadow .3s ease-in-out;

        background-color: oklch(0.99 0 0);
        box-shadow: 0 0 0.2rem oklch(0 0 0 / 0.2), 0 0 2rem oklch(0 0 0 / 0.1);
    }
    img {
        order: -1;

        width: 100%;
        height: auto;
    }
    a::after {
        content: "";
        position: absolute;
        inset: 0;
    }
    h2 {
        margin-block-start: 0;
        font-size: 1.25rem;
    }
    .content {
        padding: 1rem;
    }
    li:hover {
        box-shadow: 0 0 .5rem oklch(0 0 0 / .7), 0 0 2rem oklch(0 0 0 / .1);
    }
    a.overlay-link {
        position: relative;
        z-index: 1;
    }
}