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

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

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

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

.category-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;
}

.category-posts-summary {
  max-width: 480px;
}

.category-description,
.category-description p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.45;
}

.category-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 750;
  text-transform: uppercase;
}

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

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

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

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

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

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

.category-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;
}

.category-post .post-image {
  --art-navy-deep: color-mix(in srgb, var(--navy-deep) 50%, var(--paper));
  --art-navy: color-mix(in srgb, var(--navy) 50%, var(--paper));
  --art-teal: color-mix(in srgb, var(--teal) 50%, var(--paper));
  --art-red: color-mix(in srgb, var(--red) 50%, var(--paper));
  --art-gold: color-mix(in srgb, var(--gold) 50%, var(--paper));
  --art-sky: color-mix(in srgb, var(--sky) 50%, var(--paper));
  --art-sage: color-mix(in srgb, var(--sage) 50%, var(--paper));
  --art-rose: color-mix(in srgb, var(--rose) 50%, var(--paper));
  --art-cream: color-mix(in srgb, var(--cream) 50%, var(--paper));
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.32;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background-color: var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -18px 28px rgba(16, 39, 90, .028);
  transition: filter 180ms ease, transform 220ms ease;
}

.category-post .post-image::before,
.category-post .post-image::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: var(--art-radius, 999px);
  box-shadow:
    0 5px 14px rgba(16, 39, 90, .055),
    inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform 420ms cubic-bezier(.2, .75, .25, 1), opacity 260ms ease;
}

.category-post-copy {
  max-width: 760px;
}

.category-post-copy .meta {
  margin: 0;
  text-transform: capitalize;
}

.category-post.is-publication .meta {
  color: var(--teal);
}

.category-post.is-note .meta {
  color: var(--red);
}

.category-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;
}

.category-post-excerpt {
  max-width: 640px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.5;
}

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

.category-post.is-publication:hover .post-image::before {
  transform: var(--publication-before-hover, none);
}

.category-post.is-publication:hover .post-image::after {
  transform: var(--publication-after-hover, none);
}

.category-post.is-note:hover .post-image::before {
  transform: var(--note-before-hover, none);
}

.category-post.is-note:hover .post-image::after {
  transform: var(--note-after-hover, none);
}

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

.category-empty {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
}

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

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

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

  .category-post-meta p,
  .category-post-excerpt {
    display: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  .category-post .post-image,
  .category-post .post-image::before,
  .category-post .post-image::after {
    transition: none;
  }

  .category-post:hover .post-image,
  .category-post:hover .post-image::before,
  .category-post:hover .post-image::after {
    transform: none;
  }
}
