/* Страница статей. */

.articles__head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: clamp(28px, 3.4vw, 67px);
  border-radius: clamp(28px, 2.6vw, 48px);
  border: 5px solid var(--ink);
  background: var(--wine);
  overflow: hidden;
  animation: pop-in 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: auto;
}

.articles__title {
  font-size: clamp(48px, 7vw, 123px);
  line-height: 1;
  color: var(--cream);
}

.articles__lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: var(--text);
  color: var(--cream);
}

.articles__art {
  position: relative;
  min-height: 180px;
}

.articles__art img {
  position: absolute;
  right: 8%;
  top: -12%;
  width: 46%;
  animation: drift-right 1.1s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

.grid--articles {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.2vw, 36px);
  border-radius: var(--radius-card-sm);
  border: 2px solid var(--ink);
  background: var(--cream);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: zoom-in 0.7s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 45%;
}

.article:hover {
  transform: translateY(-8px) scale(1.02) rotate(-0.6deg);
  box-shadow: 10px 10px 0 var(--blue);
}

.article__title {
  font-size: var(--title-sm);
  line-height: 1.15;
}

.article__text {
  font-size: var(--text-sm);
  line-height: 1.35;
  color: var(--gray);
}

.article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.article__read {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--wine);
}
