@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: var(--bg);
    color: var(--primary);
}

body {
    margin: 0
}

header {
    background: oklch(0.1683 0.0779 269.19);
    color: var(--bg)
}
.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

nav {
    ul{
        padding: 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-wrap: wrap;
    }

    a {
        display: inline-block;
        padding-block: 1rem;
        padding-inline:2rem;
        color: inherit;
        text-decoration: none;
    }
}

nav ul {
    margin-left: -2rem;
}

.row {
    display: flex;
    gap: 2rem;

    > * {
        border-style: dashed;
        border-width: 1px;
        border-color: oklch(0.67 0.1796 161.83);
        padding: 1rem;
        flex-grow: 1
    }

    > *:first-child {
        flex-grow: 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);
    }

    nav a {
        color: var(--text);
        background-color: var(--bg);
        transition: color .2s ease-in-out, background-color .1s ease-in-out;

        &:hover,
        &:focus-visible {
            background-color: oklch(1 0 161.83);
            color: var(--bg)
        }
    }

    nav li:first-child {
        margin-inline-end: auto;
    }

    nav li:first-child a {
        background-color: var(--text);
        color: oklch(0 0 0);
        font-weight: bold
    }
}

main ul.cards{
    display: flex;
    padding: 0;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    flex-grow: 1;
    margin: 0 15% 0 0;


    li {
        flex-direction: column;
        flex-basis: 18rem;
        list-style: none;
        display: flex;
        border: 1px solid oklch(0.4956 0 338);
        border-radius: 25px;
        overflow: hidden;
        position: relative;

        @media (max-width: 599px) {
            flex-basis: 36rem;
        }

        picture {
            order: -1;

            img{
                width: 100%;
                height: 100px;
                border: 1rem;
            }
        }
    }

    .content {
        padding: 1rem;

        & > h3 {
            font-weight: bolder;
            color: oklch(0 0 0);
        }
    }

    .overlay-link {
        position: absolute;
        inset: 0;

        text-indent: 100%;
        white-space: nowrap;
        overflow: hidden;
    }

    li a:not(.overlay-link) {
        z-index: 1;
    }
}

.mylink {

    a{
        color: oklch(0.6133 0.2763 31.76)
    }
}

.mybutton {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background-color: oklch(0.5933 0.1773 117.53);
    color: oklch(1 0 360);
    border-radius: 3px;
}