@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&display=swap");

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.article-card {
  min-height: 160px;
  background: #000;
}

.article-card--feature {
  height: 740px;
  padding: 28px 24px 28px;
  background: #fff;
  color: #4a4a4a;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 4px solid transparent;
  transition: border-color 180ms ease;
}

.article-card--link {
  cursor: pointer;
}

.article-card__number {
  margin: 0;
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 400;
}

.article-card__meta {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #6c6c6c;
}

.article-card__meta a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.08em;
}

.article-card__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 22px;
  aspect-ratio: 1 / 1;
  background: var(--yellow);
  overflow: hidden;
}

.article-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease, transform 180ms ease;
}

.article-card__art img + img {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  width: 78%;
  height: 78%;
}

.article-card__title {
  margin: 24px 0 0;
  font-size: 1.8rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 180ms ease;
}

.article-card__footer {
  margin-top: auto;
  min-height: 24px;
}

.article-card--feature:hover .article-card__art img:first-child {
  opacity: 0;
  transform: scale(0.92);
}

.article-card--feature:hover .article-card__art img + img {
  opacity: 1;
  transform: scale(1);
}

.article-card--feature:hover .article-card__title {
  color: var(--green);
}

.article-card--feature:hover {
  border-color: var(--green);
}

@media (max-width: 799px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}
