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

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

:root {
  --yellow-color: hsl(47, 88%, 63%);
  --white-color: hsl(0, 0%, 100%);
  --gray500-color: hsl(0, 0%, 42%);
  --gray950-color: hsl(0, 0%, 7%);
}

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

.card-footer,
.card-main,
body {
  display: flex;
}

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

span,
h1,
p {
  width: fit-content;
  font-size: 12px;
  line-height: 150%;
  color: var(--gray950-color);
}

.card {
  background-color: var(--white-color);
  border-radius: 20px;
  border: 1px solid var(--gray950-color);
  box-shadow: 8px 8px 0 0 #000000;
  width: min(87.2%, 384px);
  padding: 24px;

  .card-main {
    margin-block: 24px;
    flex-direction: column;
    gap: 12px;

    .tag {
      font-weight: 800;
      padding: 4px 12px;
      background-color: var(--yellow-color);
      border-radius: 4px;
    }

    .published {
      font-weight: 500;
    }

    .title {
      font-weight: 800;
      font-size: 20px;

      &:hover, &:active, &:focus {
        color: var(--yellow-color);
        cursor: pointer;
      }
    }

    .paragh {
      font-size: 14px;
      font-weight: 500;
      color: var(--gray500-color);
    }
  }

  .card-footer {
    align-items: center;
    gap: 12px;

    img {
      width: 32px;
      height: 32px;
    }

    span {
      font-size: 14px;
      font-weight: 800;
    }
  }
}

img {
  width: 100%;
  border-radius: 10px;
}

@media screen and (min-width: 425px) {
  .card span {
    font-size: 14px;
  }

  .card .card-main h1.title {
    font-size: 24px;
  }

  .card .card-main p.paragh {
    font-size: 16px;
  }
}
