*, *::before, *::after {
    box-sizing: border-box;
}
@font-face {
    font-family: "Fredoka";
    src: url("../../../fonts/Fredoka-VariableFont_wdth\,wght[1].woff2") format("woff2");
}
: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);
}

body {
    margin: 0;
}
.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
nav {
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-inline-start: -2rem;
        display: flex;
        flex-wrap: wrap;
        li {
            flex: 0 0 auto;
        }
    }
    a {
        display: block;
        padding: 1rem 2rem;
        color: inherit;
        text-decoration: none;
        &:hover,
        &:focus-visible {
        background-color: oklch(0.6667 0.0469 24.88 / 65.78%);
        }
    }
}


.row {
    display: flex;
    gap: 2rem;
    > * {
        padding: 1rem;
        border-style: dashed;
        border-color: oklch(0.6667 0.0469 24.88 / 65.78%);
        border-width: 1px;
        flex: 1;
    }
    > *:first-child {
        flex: 2;
    }
}
.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
main {
    nav {
        --text: oklch(0.99 0.003 325);
        --bg: oklch(0.45 0.32 40);
        ul li:first-child {
            margin-inline-end: auto;
        }
        a {
            color: var(--text);
            background-color: var(--bg);
            transition: color .2s ease-in-out, background-color .2s ease-in-out;
            &:hover,
            &:focus-visible {
                color: var(--bg);
                background-color: var(--text);
            }
        }
        li:first-child {
            margin-inline-start: 0% ;
            a {
                color: inherit;
                background-color: inherit;
                font-weight: bold;
            }
        }
    }
}

.cards {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    li {
        padding: 1rem;
        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);
        display: flex;
        flex-direction: column;
        flex-basis: 18rem;

        position: relative;
        border-radius: .5em;
        overflow: hidden;
        transition: box-shadow .25s ease-in-out;     
        &:hover,
        &:has(a:focus-visible) {
            box-shadow: 0 0 0.2rem oklch(0 0 0 / 0.4), 0 0 2rem oklch(0 0 0 / 0.3);

        }
    }
    img {
        width: auto;
        margin: -1rem -1rem 0;
        height: auto;
        order: -1;
    }
    h3 {
        margin-block-start: 0;
        font-size: 1.25rem;
    }
    a::after {
        content: "";
        position: absolute;
        inset: 0;
    }
}

