:root {
  --page: min(1180px, calc(100% - 56px));
}

.study-posts-head {
  padding: clamp(58px, 8vw, 104px) 0 38px;
  background: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.study-posts-head-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.study-posts-head .eyebrow {
  margin: 0 0 13px;
  color: var(--red);
}

.study-posts-head h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.35rem);
  font-weight: 500;
  line-height: .95;
}

.study-posts-head p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.45;
}

.study-posts-index {
  padding: clamp(54px, 7vw, 84px) 0;
  background: var(--canvas);
}

.study-posts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--navy);
}

.study-posts-list>li {
  border-bottom: 1px solid var(--line-dark);
}

.study-post {
  display: grid;
  grid-template-columns: 90px 176px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  min-height: 210px;
  padding: 24px 0;
  scroll-margin-top: 24px;
}

.study-post-meta {
  align-self: start;
  padding-top: 3px;
}

.study-post-meta .number {
  display: block;
  color: var(--gold);
}

.study-post-meta p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.study-post .post-image {
  width: 100%;
  aspect-ratio: 1.2;
  border: 1px solid var(--line-dark);
  transition: filter 180ms ease, transform 220ms ease;
}

.study-post-copy {
  max-width: 680px;
}

.study-post-copy .meta {
  margin: 0;
  color: var(--red);
}

.study-post-copy h2 {
  margin: 10px 0 11px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  font-weight: 500;
  line-height: 1;
}

.study-post:hover .post-image {
  filter: saturate(1.06) contrast(1.02);
  transform: translateX(5px);
}

.study-post:hover h2 {
  color: var(--navy);
}

.study-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: .78rem;
  font-weight: 800;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-link,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  color: var(--navy);
}

.pagination-link:hover,
.pagination-page:hover,
.pagination-page.is-current {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--paper);
}

.pagination-link.is-disabled {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

@media (max-width: 720px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .study-posts-head-inner {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .study-post {
    grid-template-columns: 42px 112px minmax(0, 1fr);
    gap: 14px;
    min-height: 142px;
    padding: 17px 0;
  }

  .study-post-meta p {
    display: none;
  }

  .study-post-copy h2 {
    margin: 7px 0 8px;
    font-size: 1.5rem;
  }

  .study-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-pages {
    order: -1;
  }

  .pagination-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .study-post .post-image {
    transition: none;
  }

  .study-post:hover .post-image {
    transform: none;
  }
}
