.related-stacks {
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto clamp(150px, 18vw, 220px);
  text-align: center;
}

.related-stacks h2 {
  margin: 18px 0 clamp(48px, 6vw, 70px);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.related-stack-list {
  border-top: 1px solid var(--line);
}

.related-stack-list a {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  text-decoration: none;
}

.related-stack-list span {
  color: var(--soft);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.related-stack-list strong {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.related-stack-list a:hover strong,
.related-stack-list a:focus-visible strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.all-stacks-link {
  display: inline-block;
  margin-top: 30px;
  color: #242424;
  font-size: 12px;
  text-underline-offset: 4px;
}

.stack-hub {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
}

.hub-head {
  max-width: 980px;
  padding: clamp(110px, 14vw, 180px) 0 clamp(90px, 12vw, 150px);
}

.hub-head h1 {
  margin: 22px 0 0;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -.067em;
  line-height: .94;
  text-wrap: balance;
}

.hub-head > p:last-child {
  max-width: 600px;
  margin: 32px 0 0;
  color: #444;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.5;
}

.hub-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hub-list a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.hub-number,
.hub-arrow {
  color: var(--soft);
  font-size: 12px;
}

.hub-arrow {
  font-size: 18px;
  text-align: right;
  transition: transform 180ms ease;
}

.hub-copy {
  min-width: 0;
}

.hub-copy strong,
.hub-copy small {
  display: block;
}

.hub-copy strong {
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.16;
}

.hub-copy small {
  margin-top: 9px;
  overflow: hidden;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-list a:hover .hub-arrow,
.hub-list a:focus-visible .hub-arrow {
  transform: translate(3px, -3px);
}

.hub-feed {
  max-width: 720px;
  margin: clamp(130px, 18vw, 220px) auto;
  text-align: center;
}

.hub-feed h2 {
  margin: 18px 0 0;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .98;
}

.hub-feed > p:not(.eyebrow) {
  max-width: 520px;
  margin: 27px auto 0;
  color: #555;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .related-stacks {
    width: calc(100% - 40px);
    margin-bottom: 145px;
  }

  .related-stacks h2 {
    font-size: 46px;
  }

  .related-stack-list a {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 23px 0;
  }

  .stack-hub {
    width: calc(100% - 36px);
  }

  .hub-head {
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .hub-head h1 {
    font-size: clamp(50px, 14.5vw, 65px);
  }

  .hub-head > p:last-child {
    font-size: 19px;
  }

  .hub-list a {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 27px 0;
  }

  .hub-copy strong {
    font-size: 25px;
  }

  .hub-copy small {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-arrow {
    transition: none;
  }
}
