@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
  /* support weights 500 through 800 using the variable font */
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #f4d04e;
  font-family: "Figtree", sans-serif;
}

.card {
  background-color: #fff;
  width: 100%;
  max-width: 384px;
  height: 522px;
  margin: auto;
  border-radius: 20px;
  border: #111111 solid 1px;
  box-shadow: 10px 10px 0 #111111;
  padding: 1.25rem;
}

.content {
  width: 100%;
  max-width: 336px;
  height: 194px;
  margin-top: 24px;
  margin-bottom: 24px;
  letter-spacing: 0;
  line-height: 150%;
}

.category {
  background-color: #f4d04e;
  width: 60px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  color: #111111;
  margin-bottom: 12px;
}

.content span {
  color: #111111;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 12px;
}

.content h2 {
  color: #111111;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.content p {
  font-size: 16px;
  font-weight: 500;
  color: #6b6b6b;
}

.blog-image {
  width: 100%;
  border-radius: 8px;
}

.author {
  display: flex;
  height: 32px;
  color: #111111;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 24px;
}

.author span {
  font-size: 14px;
  letter-spacing: 0;
  line-height: 150%;
  padding: 0.25rem 0 0.25rem 0.75rem;
}

.attribution {
  margin-top: 24px;
  font-size: 11px;
  text-align: center;
}
.attribution a {
  text-decoration: none;
  color: hsl(228, 45%, 44%);
}

/* mobile-specific adjustments */
@media (max-width: 375px) {
  .card {
    max-width: 327px;
    height: 501px;
  }

  .content {
    max-width: 279px;
    height: 173px;
  }

  .category {
    font-size: 12px;
  }

  .content span {
    font-size: 12px;
  }

  .content h2 {
    font-size: 20px;
  }

  .content p {
    font-size: 14px;
  }
}
