:root {
  --yellow: hsl(47, 88%, 63%);
  --white: hsl(0, 0%, 100%);
  --grey-500: hsl(0, 0%, 50%);
  --grey-950: hsl(0, 0%, 7%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Figtree", sans-serif;
  background-color: var(--yellow);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background-color: var(--white);
  max-width: 384px;
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--grey-950);
  box-shadow: 8px 8px 0 var(--grey-950);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 var(--grey-950);
}

.card__image {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.category {
  display: inline-block;
  background-color: var(--yellow);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 800;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.publish-date {
  display: block;
  font-size: 0.875rem;
  color: var(--grey-950);
  margin-bottom: 1rem;
}

.title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.title:hover {
  color: var(--yellow);
  cursor: pointer;
}

.description {
  color: var(--grey-500);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author__avatar {
  width: 2rem;
  height: 2rem;
}

.author__name {
  font-weight: 800;
  font-size: 0.875rem;
}
@media (min-width: 376px) {
  .card {
    padding: 1.5rem;
  }

  .category {
    font-size: 1rem;
  }

  .publish-date {
    font-size: 1rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .description {
    font-size: 1rem;
  }
}
