/** ===================== precompute ====================== */
@font-face {
  font-family: "Figtree";
  src: url(./assets/fonts/Figtree-VariableFont_wght.ttf);
}

/** ===================== common ====================== */
body {
  margin: 0;
  padding: 0;
  background-color: hsl(47, 88%, 63%);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  box-sizing: border-box;
}

.container {
  max-width: 350px;
  min-height: 400px;
  padding: 20px;
  background-color: white;
  border-radius: 15px;
  border: solid 0.5px black;
  font-family: "Figtree";
  box-shadow: 5px 5px black;
}

/** ===================== heading ====================== */

.heading img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 15px;
}

.heading img:hover {
  cursor: pointer;
}

.tags {
  background-color: hsl(47, 88%, 63%);
  display: inline-block;
  padding: 5px 10px;
  font-weight: 1000;
  border-radius: 3px;
  font-size: 15px;
  margin-bottom: 15px;
}

.publish_day {
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 14px;
}

/** ===================== content ====================== */
.top-content {
  font-weight: 1000;
  font-size: 24px;
  margin-bottom: 20px;
}

.top-content:hover {
  color: hsl(47, 88%, 63%);
  cursor: pointer;
}

.desc {
  margin-top: 10px;
  font-weight: 300;
}

/** ===================== author ====================== */

.author {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-top: 30px;
}

.author img {
  width: 40px;
  margin-right: 15px;
}

.author_name {
  font-weight: 800;
}

/** ===================== reponsive ====================== */

@media (max-width: 375px) {
  .container {
    max-width: 250px;
    min-height: 230px;
    padding: 10px;
  }

  .tags {
    background-color: hsl(47, 88%, 63%);
    display: inline-block;
    padding: 3px 7px;
    font-weight: 700;
    border-radius: 3px;
    font-size: 10px;
    margin-bottom: 13px;
  }
  .publish_day {
    font-weight: 400;
    margin-bottom: 14px;
    font-size: 12px;
  }
  .top-content {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 15px;
  }

  .desc {
    margin-top: 8px;
    font-weight: 300;
    font-size: 14px;
  }

  .author {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-top: 20px;
  }

  .author img {
    width: 25px;
    margin-right: 12px;
  }

  .author_name {
    font-weight: 600;
    font-size: 14px;
  }
}
