@import url("/assets/vda-brand-tokens.css");

.news-page {
  background: var(--brand-paper);
  color: var(--brand-ink);
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 28px;
  align-items: stretch;
  padding: 64px 0 54px;
}

.news-hero > div {
  align-self: center;
}

.news-hero h1 {
  max-width: 13ch;
  margin: 18px 0 24px;
  font-size: clamp(42px, 6vw, 76px);
}

.news-telegram {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--brand-radius-card);
  background: var(--brand-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.news-tg-mark {
  position: absolute;
  top: -28px;
  right: -8px;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 24%);
  font: 850 150px/1 var(--brand-font-display);
  letter-spacing: -.12em;
  user-select: none;
}

.news-telegram .eyebrow {
  position: relative;
  color: #a8c9bf;
}

.news-telegram h2 {
  position: relative;
  margin: 10px 0 14px;
  font-size: 31px;
}

.news-telegram p:not(.eyebrow) {
  position: relative;
  max-width: 29ch;
  color: #d7e0e4;
  line-height: 1.6;
}

.news-telegram-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.news-page .news-telegram a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 48px;
  margin-top: 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-weight: 700;
  text-decoration: none;
}

.news-page .news-telegram a + a {
  border: 1px solid rgb(255 255 255 / 35%);
  background: transparent;
  color: #fff;
}

.news-library {
  padding: 44px 0 66px;
  border-top: 1px solid var(--brand-line);
}

.news-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.news-library-heading h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 44px);
}

.news-page .news-rss {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 12px var(--brand-font-utility);
}

.news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-channel-gate {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
  gap: 46px;
  align-items: center;
  padding: 34px;
  border: 1px solid #cfdadd;
  border-radius: var(--brand-radius-card);
  background: var(--brand-mint);
}

.news-channel-gate h2 {
  margin-top: 9px;
  font-size: 29px;
}

.news-channel-gate > p {
  color: var(--brand-muted);
  line-height: 1.7;
}

.news-channel-gate > p a {
  font-weight: 700;
}

.news-channel-gate code {
  font-family: var(--brand-font-utility);
}

@media (max-width: 800px) {
  .news-hero,
  .news-channel-gate {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .news-hero {
    padding-top: 40px;
  }

  .news-telegram {
    min-height: 310px;
    padding: 25px;
  }

  .news-library-heading {
    display: block;
  }

  .news-rss {
    margin-top: 12px;
  }

  .news-channel-gate {
    gap: 20px;
    padding: 24px;
  }
}
