@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@500;800&display=swap");

:root {
  --z_yellow: hsl(47, 88%, 63%);
  --z_gray-950: hsl(0, 0%, 7%);
  --z_gray-500: hsl(0, 0%, 42%);
  --z_white: hsl(0, 0%, 100%);
}

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

body,
h1,
p {
  margin: 0px;
  padding: 0px;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Figtree";
  font-weight: 500;
  font-size: 16px;

  color: var(--z_gray-950);

  background-color: var(--z_yellow);

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.card {
  box-sizing: border-box;

  width: 327px;
  background-color: var(--z_white);

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 22px 23px 23px 23px;
  margin: auto;
  border: 1px solid var(--z_gray-950);
  border-radius: 20px;

  box-shadow: 8px 8px 0px 0px var(--z_gray-950);
}

.card__img {
  overflow: hidden;

  border-radius: 10px;
  height: 201px;

  margin-bottom: 24px;
}

.card__img img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.tag {
  background-color: var(--z_yellow);

  font-weight: 800;
  font-size: 12px;

  padding: 6px 12px;

  border-radius: 4px;
  margin-bottom: 14px;
}

.tag:hover {
  color: var(--z_white);
  background-color: var(--z_gray-500);
  cursor: pointer;
}

.date {
  font-size: 12px;

  margin-bottom: 14px;
}

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

  line-height: 150%;
}

.title:hover {
  color: var(--z_yellow);
  cursor: pointer;
}

.description {
  color: var(--z_gray-500);
  font-size: 14px;
  line-height: 150%;
  margin-bottom: 24px;
}

.author {
  display: flex;
  align-items: center;

  gap: 12px;
}

.author:hover {
  cursor: pointer;
}

.author:hover .author__name {
  color: var(--z_yellow);
}

.author__img {
  border-radius: 100%;
  overflow: hidden;

  width: 32px;
  height: 32px;

  display: inline-block;
}

.author__img img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.author__name {
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
}

@media (min-width: 376px) {
  .card {
    margin-top: 220px;
    width: 384px;
  }

  .tag {
    font-size: 14px;
    padding-right: 13px;
  }

  .date {
    font-size: 14px;
  }

  .title {
    font-size: 24px;
    margin-bottom: 13px;
  }

  .description {
    font-size: 16px;
    margin-bottom: 22px;
  }
}
