.next-chapter {
  background-color: var(--offwhite);
  color: var(--black);
}

.next-chapter__wrapper {
  padding-left: 20px;
  padding-right: 20px;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .next-chapter__wrapper {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .next-chapter__wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.next-chapter__link {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
  border-top: 1px solid rgba(13, 22, 17, 0.14);
  color: inherit;
  text-decoration: none;
}

/* Phone Only - Max 599px */
@media (max-width: 599px) {
  .next-chapter__link {
    gap: 1rem;
  }
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .next-chapter__link {
    padding-top: 5rem;
    padding-bottom: 7rem;
  }
}

/* ============================================ */
/* TEXT */
/* ============================================ */

.next-chapter__text {
  display: block;
  max-width: 1000px;
}

.next-chapter__label {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--secondary-color-darkened);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

/* 52px on phones keeps one-word names like Capabilities within a 320px screen */
.next-chapter__title {
  display: block;
  font-family: var(--header-font-family);
  font-size: 52px;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.045em;
  transition: color 400ms ease;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .next-chapter__title {
    font-size: 88px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .next-chapter__title {
    font-size: 128px;
  }
}

.next-chapter__link:hover .next-chapter__title {
  color: var(--primary-color);
}

.next-chapter__description {
  display: block;
  max-width: 520px;
  margin-top: 1.25rem;
  color: var(--dark-gray);
  font-size: 17px;
  line-height: 1.55;
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .next-chapter__description {
    font-size: 19px;
  }
}

/* The arrow gives way before the one-word title does, so long names like Capabilities never push the page wide */
.next-chapter__arrow {
  flex-shrink: 1;
  min-width: 32px;
  width: 84px;
  height: 18px;
  margin-bottom: 0.4rem;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .next-chapter__arrow {
    width: 112px;
    height: 24px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .next-chapter__arrow {
    width: 140px;
    height: 30px;
  }
}

.next-chapter__arrow path {
  stroke-width: 1.5px;
}

@media (prefers-reduced-motion: no-preference) {
  .next-chapter__link:hover .next-chapter__arrow g {
    animation: arrow-convey 900ms cubic-bezier(0.7, 0, 0.2, 1);
  }
}
