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

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

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

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

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

body {
  background-color: var(--yellow);
  font-family: "Figtree", sans-serif;
}

main {
  display: grid;
  justify-items: center;
  align-items: center;
  height: 100vh;
}

.card {
  background-color: var(--white);
  width: 100%;
  max-width: 280px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--gray-950);
  box-shadow: 8px 8px var(--gray-950);
}

.card > header {
  display: grid;
}

figure {
  display: grid;
  justify-items: center;
  align-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}

.illustration {
  width: 100%;
  height: 200px;
  transform: scale(1.09);
  object-fit: cover;
}

.tag {
  background-color: var(--yellow);
  padding: 6px 16px;
  width: fit-content;
  margin: 16px 0;
  border-radius: 6px;
  font-family: "Figtree", sans-serif;
  font-weight: 800;
  font-size: 12px;
}

.card time {
  font-size: 12px;
  font-weight: 400;
}

h2 {
  font-size: 20px;
}
h2 a {
  text-decoration: none;
  color: var(--gray-950);
}

h2 a:hover {
  color: var(--yellow);
}

p {
  font-size: 13px;
  font-weight: 300;
  margin-top: 0;
  letter-spacing: 0.5px;
  word-spacing: 0.4px;
  line-height: 20px;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.author img {
  width: 32px;
}

.author strong {
  font-size: 14px;
}

@media (min-width: 375px) {
  .card {
    max-width: 320px;
  }
}
