.topic-page {
  --topic-dark: #274437;
  --topic-soft: #e7ede2;
  --topic-warm: #f3eadb;
  min-height: 100vh;
  background: var(--paper);
}

.topic-header {
  width: min(1344px, calc(100% - 80px));
  min-height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.topic-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.topic-header nav a:hover,
.topic-breadcrumb a:hover,
.topic-footer a:hover {
  color: #a45936;
}

.topic-header .header-download {
  white-space: nowrap;
}

.topic-main {
  padding-bottom: 96px;
}

.topic-breadcrumb {
  padding-top: 30px;
  color: #738071;
  font-size: 10px;
  letter-spacing: .08em;
}

.topic-breadcrumb span {
  margin-inline: 9px;
  color: #acb5a6;
}

.topic-hero {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 78px;
  padding-block: 56px 82px;
}

.topic-kicker {
  color: #63785f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .18em;
}

.topic-hero h1 {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(38px, 5vw, 65px);
  line-height: 1.48;
}

.topic-hero h1 span {
  color: #587b66;
}

.topic-lead {
  max-width: 470px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.15;
}

.topic-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.topic-cta-row .text-link {
  padding-block: 14px;
}

.topic-visual {
  position: relative;
  min-height: 525px;
  padding: 32px;
  display: grid;
  place-items: center;
  isolation: isolate;
  border-radius: 9px;
  overflow: hidden;
}

.topic-visual::before,
.topic-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.topic-visual::before {
  width: 360px;
  height: 360px;
  top: -112px;
  right: -40px;
  background: #f4e6bd88;
}

.topic-visual::after {
  width: 440px;
  height: 260px;
  bottom: -166px;
  left: -85px;
  background: #b9d0bb99;
}

.topic-weather-visual {
  background: #e3ebe5;
}

.topic-stations-visual {
  background: #eee3d2;
}

.topic-visual-label {
  position: absolute;
  top: 23px;
  left: 25px;
  color: #667a67;
  font-size: 9px;
  letter-spacing: .13em;
}

.topic-visual-caption {
  position: absolute;
  right: 24px;
  bottom: 21px;
  color: #718073;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .12em;
}

.topic-weather-visual .weather-preview {
  width: min(100%, 455px);
  transform: rotate(2deg);
}

.topic-weather-visual .weather-landscape {
  height: 212px;
}

.topic-weather-visual .weather-message {
  min-height: 172px;
}

.topic-station-phone {
  width: 247px;
  transform: rotate(5deg);
}

.topic-station-ticket {
  position: absolute;
  left: 23px;
  bottom: 69px;
  width: 252px;
  padding: 20px 18px;
  background: #fffdf5;
  border: 1px solid #ded7c8;
  border-radius: 5px;
  box-shadow: 0 12px 23px #664d3218;
  transform: rotate(-7deg);
}

.topic-station-ticket::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 100%;
  border-left: 1px dashed #c6bfae;
}

.topic-station-ticket small {
  color: #8b7b68;
  font-size: 8px;
  letter-spacing: .12em;
}

.topic-station-ticket strong {
  display: block;
  margin-block: 9px 6px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .06em;
}

.topic-station-ticket p {
  color: #7b7a6d;
  font-size: 9px;
  line-height: 1.8;
}

.topic-route-badge {
  position: absolute;
  top: 43px;
  right: 23px;
  display: grid;
  place-items: center;
  width: 97px;
  height: 97px;
  border: 3px double #a9674c;
  border-radius: 50%;
  color: #a9674c;
  background: #f8f4e9e8;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  transform: rotate(11deg);
}

.topic-route-badge small {
  display: block;
  font-family: sans-serif;
  font-size: 7px;
  letter-spacing: .1em;
}

.topic-section {
  padding-block: 18px 94px;
}

.topic-section-heading {
  max-width: 650px;
}

.topic-section-heading h2 {
  margin-top: 14px;
}

.topic-section-heading p:last-child {
  max-width: 490px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2.1;
}

.topic-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 37px;
}

.topic-story-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid #d8ded1;
  border-radius: 6px;
  background: #fbfaf2;
  overflow: hidden;
}

.topic-story-card::after {
  content: "";
  position: absolute;
  width: 135px;
  height: 135px;
  right: -41px;
  bottom: -60px;
  border-radius: 50%;
  background: #e8efdf;
}

.topic-story-card:nth-child(2)::after {
  background: #dce8eb;
}

.topic-story-card:nth-child(3)::after {
  background: #e7e0d1;
}

.topic-story-icon {
  position: relative;
  display: block;
  color: #68836d;
  font-size: 25px;
}

.topic-story-card:nth-child(2) .topic-story-icon {
  color: #688796;
}

.topic-story-card:nth-child(3) .topic-story-icon {
  color: #aa8051;
}

.topic-story-card h3 {
  position: relative;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .05em;
}

.topic-story-card p {
  position: relative;
  max-width: 220px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}

.topic-feature-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 65px;
  padding: 45px 50px;
  border-radius: 8px;
  background: var(--topic-dark);
  color: #f2f1df;
}

.topic-feature-band .eyebrow {
  color: #b9c9ad;
}

.topic-feature-band h2 {
  margin-top: 14px;
  color: #f4f1df;
}

.topic-feature-band p:last-child {
  max-width: 490px;
  margin-top: 21px;
  color: #d5ddce;
  font-size: 12px;
  line-height: 2.1;
}

.topic-feature-shot {
  width: min(100%, 286px);
  margin-inline: auto;
  transform: rotate(4deg);
}

.topic-route-map {
  position: relative;
  min-height: 260px;
  margin-top: 36px;
  padding: 44px 45px;
  border: 1px solid #ded8c8;
  border-radius: 7px;
  background: #f7f2e8;
  overflow: hidden;
}

.topic-route-map::before,
.topic-route-map::after {
  content: "";
  position: absolute;
  left: 55px;
  right: 55px;
  height: 3px;
  border-radius: 999px;
  transform: rotate(-7deg);
}

.topic-route-map::before {
  top: 104px;
  background: #66836d;
}

.topic-route-map::after {
  top: 150px;
  background: #c2774d;
  transform: rotate(8deg);
}

.topic-route-stops {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.topic-route-stop {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #5e6d5a;
  font-family: var(--serif);
  font-size: 14px;
  text-align: center;
}

.topic-route-stop::before {
  content: "";
  width: 19px;
  height: 19px;
  border: 5px solid #f7f2e8;
  border-radius: 50%;
  background: #66836d;
  box-shadow: 0 0 0 2px #66836d;
}

.topic-route-stop:nth-child(2)::before,
.topic-route-stop:nth-child(4)::before {
  background: #c2774d;
  box-shadow: 0 0 0 2px #c2774d;
}

.topic-route-stop small {
  font-family: sans-serif;
  color: #929180;
  font-size: 7px;
  letter-spacing: .1em;
}

.topic-step-list {
  display: grid;
  gap: 0;
  margin-top: 35px;
  border-top: 1px solid var(--line);
}

.topic-step {
  display: grid;
  grid-template-columns: 67px 1fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
}

.topic-step-number {
  color: #a2694b;
  font-family: Georgia, serif;
  font-size: 18px;
}

.topic-step h3 {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .05em;
}

.topic-step p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.topic-stamp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 35px;
  padding: 32px;
  border: 1px solid #d8decf;
  border-radius: 7px;
  background: #f1f3e8;
}

.topic-stamp {
  display: grid;
  place-items: center;
  width: 105px;
  height: 105px;
  border: 3px double #a1674c;
  border-radius: 50%;
  color: #a1674c;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-8deg);
}

.topic-stamp:nth-child(2) {
  color: #5f7e83;
  border-color: #5f7e83;
  transform: rotate(7deg);
}

.topic-stamp:nth-child(3) {
  color: #6f855e;
  border-color: #6f855e;
  transform: rotate(-4deg);
}

.topic-stamp small {
  display: block;
  font-family: sans-serif;
  font-size: 7px;
  letter-spacing: .1em;
}

.topic-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 15px;
  padding: 35px 40px;
  border-radius: 7px;
  background: #e7ede1;
}

.topic-bottom-cta h2 {
  margin-top: 8px;
  font-size: 27px;
}

.topic-bottom-cta p:last-child {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.topic-footer {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  color: #6c7867;
  font-size: 10px;
}

.topic-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
}

@media (max-width: 900px) {
  .topic-hero {
    gap: 45px;
  }

  .topic-feature-band {
    gap: 35px;
    padding-inline: 32px;
  }

  .topic-step {
    grid-template-columns: 55px 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topic-header,
  .topic-footer {
    width: calc(100% - 40px);
  }

  .topic-header {
    min-height: 80px;
  }

  .topic-header nav {
    display: none;
  }

  .topic-hero,
  .topic-feature-band {
    grid-template-columns: 1fr;
  }

  .topic-hero {
    gap: 35px;
    padding-block: 42px 65px;
  }

  .topic-hero h1 {
    font-size: clamp(37px, 9vw, 53px);
  }

  .topic-visual {
    min-height: 480px;
  }

  .topic-story-grid {
    grid-template-columns: 1fr;
  }

  .topic-story-card {
    min-height: 175px;
  }

  .topic-feature-band {
    gap: 32px;
    padding: 34px 25px;
  }

  .topic-step {
    grid-template-columns: 45px 1fr;
    gap: 11px;
    padding-block: 21px;
  }

  .topic-step p {
    grid-column: 2;
  }

  .topic-route-map {
    padding-inline: 20px;
  }

  .topic-route-map::before,
  .topic-route-map::after {
    left: 31px;
    right: 31px;
  }

  .topic-route-stop {
    font-size: 11px;
  }

  .topic-route-stop small {
    font-size: 6px;
  }

  .topic-bottom-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 29px 23px;
  }

  .topic-bottom-cta .store-button {
    width: 100%;
  }

  .topic-footer {
    flex-wrap: wrap;
    padding-bottom: 112px;
  }
}

@media (max-width: 420px) {
  .topic-visual {
    min-height: 425px;
    padding: 21px;
  }

  .topic-weather-visual .weather-preview {
    transform: none;
  }

  .topic-weather-visual .weather-landscape {
    height: 160px;
  }

  .topic-weather-visual .weather-message {
    min-height: 151px;
    padding: 20px;
  }

  .topic-station-phone {
    width: 210px;
  }

  .topic-station-ticket {
    left: 7px;
    bottom: 34px;
    width: 212px;
  }

  .topic-route-badge {
    top: 35px;
    right: 8px;
    transform: rotate(11deg) scale(.78);
  }

  .topic-stamp-row {
    gap: 12px;
    padding-inline: 13px;
  }

  .topic-stamp {
    width: 83px;
    height: 83px;
    font-size: 15px;
  }
}
