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

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

:root {
  --Yellow: hsl(47, 88%, 63%);
  --White: hsl(0, 0%, 100%);
  --Grey500: hsl(0, 0%, 42%);
  --Grey950: hsl(0, 0%, 7%);

  --font: "Figtree", sans-serif;
}

body {
  font-family: var(--font);
  background-color: var(--Yellow);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.card {
  width: 23rem;
  height: auto;
  border: 1px solid black;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 15px;
  box-shadow: 8px 7px 0px rgb(0 0 0);
  background-color: var(--White);
}

.tag-container {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

img.illustration {
  border-radius: 15px;
}

.tag {
  display: inline-block;
  background-color: var(--Yellow);
  width: fit-content;
  padding: 0.625rem 1.25rem;
  border-radius: 5px;
  font-weight: 800;
}

span.published-date {
  color: var(--Grey950);
}

h1.title {
  font-size: 1.5rem;
}

h1.title:hover {
  color: var(--Yellow);
  cursor: pointer;
}

p.description {
  color: var(--Grey500);
}

.user-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

img.user-avatar {
  width: 10%;
  height: auto;
}

span.user-name {
  font-weight: 800;
}

@media screen and (max-width: 700px) {
  .card {
    width: 90%;
  }

  img {
    width: 100%;
  }
}
