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

:root {
  --yellow: hsl(47, 88%, 63%);
  --white: hsl(0, 0%, 100%);
  --gray-500: hsl(0, 0%, 42%);
  --gray-950: hsl(0, 0%, 7%);
}

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

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

.card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 10px 10px 0px 0px var(--gray-950);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--gray-950);
}

.card-image {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.tag {
  background-color: var(--yellow);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gray-950);
  width: fit-content;
}

.date {
  font-size: 0.75rem;
  color: var(--gray-950);
  font-weight: 500;
}

.title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-950);
  cursor: pointer;
}

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

.description {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

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

.author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.author span {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--gray-950);
}
