@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

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

:root {
  --yellow: #f4d04e;
  --gray-950: #111111;
  --gray-500: #6b6b6b;
  --white: #ffffff;
}

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

.card {
  max-width: 24rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--color-gray-950, #111);
  box-shadow: 8px 8px 0 0 #000;
}

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

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

.card__tag {
  background-color: var(--yellow);
  color: var(--gray-950);
  font-weight: 800;
  line-height: 150%;
  padding: 0.5rem;
}

.card__date {
  color: var(--gray-950);
  font-weight: 500;
  line-height: 150%;
  font-style: normal;
  font-size: 0.875rem;
}

.card__title {
  color: var(--gray-950);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 150%;
  transition: color 0.2s;
}

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

.card__description {
  color: var(--gray-500);
  font-size: 1rem;
  font-weight: 500;
  line-height: 150%;
}

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

.card__author img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
}

.card__author-name {
  color: var(--gray-950);
  font-weight: 800;
  line-height: 150%;
  font-style: normal;
  font-size: 0.875rem;
  transition: color 0.2s;
}

/* Responsividade para telas menores de 375px */
@media (max-width: 375px) {
  body {
    padding: 1rem;
    min-height: 100vh;
    align-items: flex-start;
  }
  .container {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .card {
    max-width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 4px 4px 0 0 #000;
    gap: 1rem;
  }
  .card__image {
    border-radius: 0.5rem;
  }
  .card__title {
    font-size: 1.25rem;
  }
  .card__description {
    font-size: 0.95rem;
  }
  .card__author img {
    width: 1.75rem;
    height: 1.75rem;
  }
  .card__author-name {
    font-size: 0.8rem;
  }
}
