* {
    font-family: 'Figtree', sans-serif;
    --yellow: hsl(47, 88%, 63%);
    --white: hsl(0, 0%, 100%);
    --gray-500: hsl(0, 0%, 42%);
    --gray-950: hsl(0, 0%, 7%);
}

body {
    background-color: var(--yellow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.card {
    width: 18rem;
    height: fit-content;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid var(--gray-950);
    box-shadow: 8px 8px 0px var(--gray-950);
}

@media screen and (min-width: 480px) {
  .card {
    width: 20rem;
  }
}

.card > img {
    height: 200px;
    width: auto;
    border-radius: 10px;
    object-fit: cover;
}

.card > h1 {
    font-weight: 800;
    margin-bottom: -2px;
}

.card > h1:active,
.card > h1:hover {
    color: var(--yellow);
    cursor: pointer;
}

.card > p {
    color: var(--gray-500);
}

.tag {
    background-color: var(--yellow);
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 20px;
    width: fit-content;
    font-weight: 800;
    margin-bottom: 16px;
}

.date {
    font-weight: 500;
    font-size: 0.9rem;
}

.author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-weight: 800;
    margin: 8px 0;
}

.author > img {
    height: 30px;
    width: 30px;
}