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

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

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

*:not(dialog) {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  font-family: "Figtree";
  line-height: 1.5;
  font-weight: 500;
  background-color: hsl(47, 88%, 63%);
}

.card {
    max-width: 327px;
    background-color: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid hsl(0, 0%, 7%);
    box-shadow: 8px 8px;
}

.card__header img {
    border-radius: 10px;
}

.card__content {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__content .tag {
    background-color: hsl(47, 88%, 63%);
    width: fit-content;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 800;
}

.card__content .tag, .card__content .publish-date {
    font-size: 12px;
}

.card__content .title {
    font-size: 20px;
}

.card__content .description, .author .author__name {
    font-size: 14px;
}

.author {
    display: flex;
    gap: 5.5px;
    align-items: center;
}

.author__avatar {
    width: 32px;
    height: 32px;
}

.author .author__name {
    margin-left: 12px;
    font-weight: 800;
}

@media (min-width: 1024px) {
    .card {
        max-width: 384px;
    }

    .card__content .title, .author .author__name {
        transition: color .15s ease;
    }

    .card__content .title:hover, .author .author__name:hover {
        color: hsl(47, 88%, 63%);
    }

    .card__content .title:hover, .author .author__name:hover, .card__content .tag {
        cursor: pointer;
    }

}