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

@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

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

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

.card {
  background-color: var(--white);
  max-width: 24rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 8px 8px 0px 0px;
  border: 1px solid;
}

.card__illustration {
  border-radius: 0.6rem;
  object-fit: cover;
}

.card-text {
  margin: 1.5rem 0;
}

.card-text__tag {
  background-color: var(--yellow);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  color: var(--gray-950);
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.card-text__date {
  color: var(--gray-950);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.card-text__title {
  color: var(--gray-950);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.card-text__title:hover {
  cursor: pointer;
  color: var(--yellow);
}

.card-text__description {
  color: var(--gray-500);
  line-height: 150%;
}

.card-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 1.5rem;
}

.card-author__avatar {
  width: 2rem;
  height: 2rem;
}

.card-author__name {
  color: var(--gray-950);
  font-size: 0.875rem;
  font-weight: 800;
  padding-left: 0.75rem;
}

@media (min-width: 320px) {
  .card {
    margin: 1rem;
  }

  .card-text__title {
    font-size: 1.4rem;
  }
}
