@font-face {
    font-family: "Fredoka";
    src: url("./fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2")
}

*, *::before, *::after {
    box-sizing: border-box;
}

: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);

    background-color: var(--bg);
    color: var(--primary);
}

body {
    margin: 0;
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;

    a {
        display: inline-block;
        padding: 1rem 2rem;
        color: inherit;
        text-decoration: none;
        margin-inline-start: -2rem;
    }
}

.row {
    display: flex;
    flex-direction: row;
    gap: 2rem;

    div {
        border: 1px dashed oklch(0.6603 0.2738 7.94);
        padding: 1rem;
        flex-grow: 1;
    }

    div:nth-child(1) {
        flex-grow: 2;
    }
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

main {
    nav {
        --text: oklch(0.99 0.003 325);
        --bg: oklch(0.45 0.32 40);
    }

    nav a {
        color: var(--text);
        background-color: var(--bg);
        transition: color .2s ease-in-out, background-color .2s ease-in-out;
        margin-inline-start: 0;

        &:hover,
        &:focus-visible {
            color: var(--bg);
            background-color: var(--text);
        }
    }

    nav li:first-child {
        margin-inline-end: auto;

        a {
            color: oklch(0 0 22.76);
            background-color: var(--text);
        }
    }

    .cards {
        display: flex;
        flex-direction: row;
        list-style: none;
        flex-wrap: wrap;
        gap: 2rem;

        li {
            position: relative;
            display: flex;
            flex-direction: column;

            img {
                order: -1;
                border-radius: 5% 5% 0 0;
            }

            border-radius: 5%;
            box-shadow: 0 1rem 2rem oklch(0 0 0 / 15%);
        }
    }

    .content {
        padding: 1rem;

        a{
            position: absolute;
            inset:0;
            z-index: 10;
            text-indent: -10000%;
            text-wrap: nowrap;
        }
    }
}