@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@600;800&display=swap');

:root {
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --grey: hsl(0, 0%, 50%);
    --black: hsl(0, 0%, 7%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--yellow);
    font-family: 'Figtree', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    max-width: 384px;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--black);
    box-shadow: 8px 8px 0 var(--black);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 16px 16px 0 var(--black);
}

.card__image {
    width: 100%;
    border-radius: 0.625rem;
    margin-bottom: 1.5rem;
}

.card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card__tag {
    display: inline-block;
    background-color: var(--yellow);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 800;
    font-size: 0.875rem;
    width: fit-content;
}

.card__date {
    font-size: 0.875rem;
    color: var(--black);
}

.card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    cursor: pointer;
    transition: color 0.3s ease;
}

.card__title:hover {
    color: var(--yellow);
}

.card__description {
    color: var(--grey);
    line-height: 1.5;
}

.card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.author__avatar {
    width: 2rem;
    height: 2rem;
}

.author__name {
    font-weight: 800;
    font-size: 0.875rem;
}

@media (max-width: 375px) {
    .card {
        max-width: 327px;
    }

    .card__title {
        font-size: 1.25rem;
    }
}