* {
  --yellow: #f4d04e;
  --gray-950: #111;
  --gray-500: #6b6b6b;

  box-sizing: border-box;
  font-family: "Figtree", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow);
  line-height: 150%;
  letter-spacing: 0px;
  color: var(--gray-950);
}

.main-panel {
  width: 26.67vw;
  max-width: 384px;
  min-width: 327px;
  height: 54.38vh;
  max-height: 522px;
  min-height: 501px;
  background-color: white;
  border: 1px solid var(--gray-950);
  border-radius: 20px;
  box-shadow: 8px 8px black;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-panel > *:last-child {
  align-self: flex-start;
}

.article-illustration {
  width: calc(100% - 48px);
  height: auto;
  border-radius: 10px;
  margin-top: 24px;
}

.main-panel-contents {
  width: calc(100% - 48px);
  height: 194px;
  margin-top: 24px;
}

.article-category {
  background-color: var(--yellow);
  width: 82px;
  height: 29px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  @media (max-width: 1280px) {
    font-size: 12px;
  }
}

.publish-date {
  width: 143px;
  height: 21px;
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;

  @media (max-width: 1280px) {
    font-size: 12px;
  }
}

.article-title {
  width: 100%;
  height: 36px;
  margin-top: 12px;
  font-weight: 800;
  font-size: 24px;
  color: var(--gray-950);

  @media (max-width: 1280px) {
    font-size: 20px;
  }
}

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

.article-description {
  width: 100%;
  height: 72px;
  margin-top: 12px;
  font-weight: 500;
  font-size: 16px;
  color: var(--gray-500);

  @media (max-width: 1280px) {
    font-size: 14px;
  }
}

.author-info {
  width: 129px;
  height: 32px;
  margin-top: 24px;
  margin-left: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.author-avatar {
  width: 32px;
  height: 32px;
}

.author-name {
  display: inline-flex;
  align-items: center;
  width: 85px;
  height: 21px;
  margin-left: 12px;
  font-weight: 800;
  font-size: 14px;
  color: var(--gray-950);
}
