.articles-page {
  min-height: 100vh;

  color: var(--color-text-primary);
  background: var(--color-bg-light);
}


/* =========================
   HERO
========================= */

.articles-hero {
  position: relative;
  overflow: hidden;

  min-height: 720px;

  padding:
    clamp(140px, 14vw, 220px)
    clamp(24px, 5vw, 96px)
    clamp(96px, 10vw, 160px);

  background-color: var(--color-bg-light);
}

.articles-hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(247, 248, 247, 0.96) 0%,
      rgba(247, 248, 247, 0.88) 28%,
      rgba(247, 248, 247, 0.56) 58%,
      rgba(247, 248, 247, 0.30) 100%
    ),
    url("../../assets/images/study.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.025);

  animation: articlesHeroImage 650ms ease-out forwards;
}


@keyframes articlesHeroImage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.articles-hero__inner {
  width: min(100%, 1200px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.articles-hero__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.articles-hero__eyebrow,
.articles-hero__title,
.articles-hero__description {
  opacity: 0;
  transform: translateY(22px);

  animation: articlesHeroText 1200ms
    cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}

.articles-hero__eyebrow {
  animation-delay: 300ms;
}


.articles-hero__title {
  animation-delay: 450ms;
}


.articles-hero__description {
  animation-delay: 550ms;
}

@keyframes articlesHeroText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .articles-hero::before,
  .articles-hero__eyebrow,
  .articles-hero__title,
  .articles-hero__description {
    animation: none;
    opacity: 1;
    transform: none;
  }

}


.articles-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-bottom: 24px;

  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--color-accent);
}

.articles-hero__eyebrow-line {
  display: block;

  width: 64px;
  height: 1px;

  background: currentColor;
}


.articles-hero__title {
  margin: 0;

  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 600;

  line-height: 0.9;
  letter-spacing: -0.035em;

  color: var(--color-text-primary);
}


.articles-hero__description {
  max-width: 620px;

  margin: 42px 0 0;

  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 22px);

  line-height: 1.6;

  color: var(--color-text-secondary);
}


/* =========================
   HERO IMAGE
========================= */

.articles-hero__visual {
  position: relative;

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


.articles-hero__image {
  display: block;

  width: 100%;
  max-width: 540px;
  height: auto;

  object-fit: contain;
}


/* =========================
   CONTENT
========================= */

.articles-content {
  position: relative;

  padding:
    56px
    clamp(24px, 5vw, 96px)
    clamp(96px, 10vw, 160px);

  background: var(--color-bg-light);
}

.articles-content::before {
  content: "";

  position: absolute;
  top: 1px;
  left: 0;

  width: 100%;
  height: 1px;

  background: rgba(23, 32, 29, 0.16);
}


.articles-content__inner {
  width: min(100%, 1200px);
  margin-inline: auto;
}


/* =========================
   FILTERS
========================= */

.articles-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  padding-bottom: 32px;

  border-bottom: 1px solid var(--color-border);
}


.articles-filter {
  appearance: none;

  padding: 9px 16px;

  border: 1px solid transparent;
  border-radius: 999px;

  background: transparent;

  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;

  color: var(--color-text-secondary);

  cursor: pointer;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}


.articles-filter:hover {
  color: var(--color-text-primary);

  background: rgba(0, 0, 0, 0.035);
}


.articles-filter.is-active {
  color: var(--color-text-on-dark);
  background: var(--color-accent);
}


.articles-filter:active {
  transform: scale(0.97);
}


.articles-filters__divider {
  width: 1px;
  height: 22px;

  margin-inline: 8px;

  background: var(--color-border);
}


/* =========================
   SECTION
========================= */

.writing-section {
  margin-top: 56px;
}


.writing-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 32px;

  margin-bottom: 20px;
}


.writing-section__title {
  margin: 0;

  font-family: var(--font-body);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;

  color: var(--color-text-primary);
}


.writing-section__description {
  max-width: 420px;

  margin: 0;

  font-family: var(--font-body);
  font-size: 14px;

  color: var(--color-text-secondary);
}


.writing-section__count {
  font-family: var(--font-body);
  font-size: 13px;

  color: var(--color-text-secondary);
}


/* =========================
   ARTICLE ROW
========================= */

.articles-list {
  border-top: 1px solid var(--color-border);
}


.article-row {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(150px, 0.8fr)
    minmax(0, 2.4fr)
    auto;

  gap: 48px;

    cursor: pointer;

  transition:
    background-color 220ms ease,
    transform 220ms ease;

  align-items: start;

  padding-block: 36px;

  border-bottom: 1px solid var(--color-border);

  transition:
    background-color 220ms ease,
    padding-left 220ms ease,
    padding-right 220ms ease;
}


.article-row:hover {
  padding-left: 12px;
  padding-right: 12px;

  background: rgba(0, 0, 0, 0.018);
}

.article-row__arrow {
  transition:
    transform 220ms ease,
    color 220ms ease;
}

.article-row:hover .article-row__arrow {
  transform: translateX(6px);
  color: var(--color-accent);
}


/* META */

.article-row__meta {
  display: flex;
  flex-direction: column;

  gap: 7px;
}


.article-row__category {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--color-accent);
}


.article-row__date {
  font-family: var(--font-body);
  font-size: 12px;

  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: var(--color-text-secondary);
}


/* CONTENT */

.article-row__title {
  max-width: 680px;

  margin: 0;

  font-family: var(--font-body);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;

  line-height: 1.1;
  letter-spacing: -0.02em;
}


.article-row__title a {
  color: inherit;
  text-decoration: none;
}


.article-row__excerpt {
  max-width: 650px;

  margin: 12px 0 0;

  font-family: var(--font-body);
  font-size: 15px;

  line-height: 1.6;

  color: var(--color-text-secondary);
}


/* ACTION */

.article-row__action {
  display: flex;
  align-items: center;

  gap: 24px;

  padding-top: 4px;
}


.article-row__read-time {
  white-space: nowrap;

  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;

  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--color-text-secondary);
}


.article-row__arrow {
  display: inline-block;

  font-size: 22px;

  transition: transform 200ms ease;
}


.article-row:hover .article-row__arrow {
  transform: translateX(7px);
}


/* =========================
   PUBLICATIONS
========================= */

.publications-section {
  margin-top: 120px;
}


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

  gap: 16px;
}


.publication-card {
  display: flex;
  flex-direction: column;

  min-height: 220px;

  padding: 28px;

  border: 1px solid var(--color-border);
  border-radius: 10px;

  color: inherit;
  text-decoration: none;

  background: transparent;

  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}


.publication-card:hover {
  transform: translateY(-3px);

  background: rgba(0, 0, 0, 0.018);

  border-color: var(--color-accent);
}


.publication-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}


.publication-card__type {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--color-accent);
}


.publication-card__external {
  font-size: 20px;

  transition: transform 200ms ease;
}


.publication-card:hover .publication-card__external {
  transform: translate(3px, -3px);
}


.publication-card__title {
  max-width: 480px;

  margin: 32px 0;

  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;

  line-height: 1.15;

  letter-spacing: -0.015em;
}


.publication-card__footer {
  display: flex;
  justify-content: space-between;

  gap: 24px;

  margin-top: auto;

  font-family: var(--font-body);
  font-size: 12px;

  color: var(--color-text-secondary);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .article-row {
    grid-template-columns: 140px 1fr;
    gap: 32px;
  }


  .article-row__action {
    grid-column: 2;

    justify-content: space-between;

    padding-top: 0;
  }


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

}


@media (max-width: 640px) {

  .articles-hero {
    padding-top: 120px;
    padding-bottom: 64px;
  }


  .articles-hero__title {
    font-size: clamp(54px, 16vw, 76px);
  }


  .articles-hero__description {
    margin-top: 32px;
  }


  .articles-filters {
    gap: 6px;
  }


  .articles-filters__divider {
    display: none;
  }


  .article-row {
    grid-template-columns: 1fr;

    gap: 20px;

    padding-block: 28px;
  }


  .article-row:hover {
    padding-left: 0;
    padding-right: 0;
  }


  .article-row__meta {
    flex-direction: row;
    align-items: center;

    gap: 12px;
  }


  .article-row__action {
    grid-column: auto;

    justify-content: space-between;
  }


  .writing-section__header {
    align-items: flex-start;
    flex-direction: column;

    gap: 10px;
  }


  .publications-section {
    margin-top: 88px;
  }


  .publication-card {
    min-height: 200px;

    padding: 24px;
  }

}