@font-face {
    font-family: Figtree;
    font-style: normal;
    src: url(assets/fonts/Figtree-VariableFont_wght.ttf);
}

* {
    margin: 0px;
}

main {
    background-color: hsl(47, 88%, 63%);
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background-color: hsl(0, 0%, 100%);
    width: 384px;
    height: 522px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    border-radius: 20px;

    outline: solid 1px hsl(0, 0%, 7%);

    filter: drop-shadow(9px 9px hsl(0, 0%, 7%));
}

.card > * {
    margin-left: 24px;
    margin-right: 24px;
}

.card p, h1 {
    font-family: Figtree;
    font-weight: 500;
    font-size: 16px;
}

.card > img {
    width: 336px;
    height: 200px;

    margin-top: 24px;

    border-radius: 10px;
}

.card .category {
    font-weight: 800;
    background-color: hsl(47, 88%, 63%);
    padding: 6px 12px 6px 12px;
    margin-top: 24px;
    border-radius: 5px;
}

.card .date {
    color: hsl(0, 0%, 42%);
    margin-top: 13px;
}

.card .title {
    font-weight: 800;
    font-size: 24px;

    transition: color 0.18s;

    margin-top: 17px;

    &:hover {
        color: hsl(47, 88%, 63%);
    }
}

.card .description {
    color: hsl(0, 0%, 42%);
    line-height: 24px;

    margin-top: 16px;
}

.card .author-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;

    margin-top: 16px;

    & img {
        width: 32px;
        height: 32px;

        border-radius: 100%;
    }

    & p {
        margin-left: 11px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .card {
        width: 86.6vw;
        height: 133vw;

        filter: drop-shadow(9px 9px hsl(0, 0%, 7%));
    }

    .card > * {
        margin-left: 6.1vw;
        margin-right: 6.1vw;
    }

    .card > img {
        width: 74.4vw;
        height: 53.3vw;
        object-fit: cover;

        margin-top: 6.1vw;
    }

    .card p,
    h1 {
        font-size: 3.2vw;
    }

    .card .category {
        padding: 1.6vw 3.2vw 1.6vw 3.2vw;
        margin-top: 6.4vw;
    }

    .card .date {
        margin-top: 3.2vw;
    }

    .card .title {
        font-size: 5.3vw;

        margin-top: 4.5vw;
    }

    .card .description {
        line-height: 5.6vw;

        margin-top: 4vw;
    }

    .card .author-wrapper {
        margin-top: 6.4vw;

        & p {
            margin-left: 3.2vw;
            font-size: 3.7vw;
        }
    }
}