@font-face {
    font-family: "Fredoka";
    src: url("./fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2");
}

*,*::before,*::after {
    box-sizing: border-box;
}

:root {
    line-height: 1.6;
    font-family: "Fredoka", sans-serif;
    scroll-behavior: smooth;

}

body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.cards{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

    list-style: none;
    margin: 0;
    padding: 0;

    > li {
        flex: 1 1 18rem;

        display: flex;
        flex-direction: column-reverse;

        border-radius: .5em;
        overflow: hidden;

        box-shadow:
                0 0 .2rem oklch(0 0 0 / .2),
                0 0 2rem oklch(0 0 0 / .1);

        transition: box-shadow .25s ease;
    }

    > li:hover {
        box-shadow:
                0 0 .3rem oklch(0 0 0 / .35),
                0 0 3rem oklch(0 0 0 / .2);
    }

    img {
        display: block;
        width: 100%;
        height: auto;
    }

    .content {
        padding: 1.25rem;

        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    h3 {
        margin-top: 0;
    }

    a {
        margin-top: auto;
    }
}
