@font-face {
  font-family: Figtree;
  src: url(../assets/fonts/static/Figtree-Medium.ttf) format("truetype");
}
* {
  margin: 0;
}
body {
  background-color: hsl(47, 88%, 63%);
  font-family: "Figtree";
}
.page {
  max-width: 1440px;
  height: 100vh;
}
.cards {
  height: 100vh;
  align-content: center;
  padding: 0 24px;
}
.card {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 340px);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "image"
    "texts"
    "author";

  row-gap: 1.5rem;
  place-self: center;
  background-color: white;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #000000;
}

.card-content {
  grid-area: texts;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto auto auto;
  row-gap: 0.75rem;
}

.card__category {
  background-color: hsl(47, 88%, 63%);
  padding: 4px 12px;
  max-width: max-content;
  border-radius: 4px;
  font-size: clamp(12px, 2vw, 16px);
}

.card__publish-date {
  font-weight: 500;
  font-size: clamp(12px, 2vw, 16px);
}

.card__image {
  width: 100%;
  border-radius: 10px;
  grid-area: image;
}

.card__title {
  font-size: clamp(18px, 5vw, 26px);
}

.card__title:hover {
  color: hsl(47, 88%, 63%);
  cursor: pointer;
  transition: 0.3s;
}

.card__paragraph {
  font-weight: 500;
  font-size: clamp(12px, 2vw, 16px);
}

.card__author {
  grid-area: author;
  display: flex;
  align-items: center;
}
.card__author-image {
  width: 32px;
  height: 32px;
}
.card__author-name {
  margin-inline-start: 12px;
  font-size: clamp(12px, 2vw, 16px);
}

.text-gray_bold {
  color: hsl(0, 0%, 7%);
  font-weight: 800;
}

.text-gray_light {
  color: hsl(0, 0%, 42%);
  font-weight: 500;
}
