.geography {
  padding: 64px 24px;
  background: #f4f5f5;
}

.geography__container {
  display: grid;
  grid-template-columns: minmax(0, 483fr) minmax(0, 957fr);
  grid-template-areas: "map heading" "map cities" "map terms";
  column-gap: 40px;
  max-width: var(--container-width);
  margin-inline: auto;
}

.geography__heading {
  grid-area: heading;
}

.geography__eyebrow {
  margin: 0;
  color: rgba(95, 45, 164, .8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.geography__title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.geography__description {
  margin: 12px 0 0;
  color: rgba(23, 20, 27, .8);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -.03em;
}

.geography__cities {
  grid-area: cities;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.geography__city {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(151, 71, 255, .2);
  color: #9747ff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -.03em;
}

.geography__map {
  grid-area: map;
  display: block;
  align-self: start;
  overflow: hidden;
  border-radius: 12px;
}

/* Temporary map crops from the references; replace with original exports. */
.geography__image {
  width: 100%;
  height: auto;
  aspect-ratio: 483 / 314;
  object-fit: cover;
}

.geography__terms {
  grid-area: terms;
  justify-self: start;
  align-self: start;
  min-height: 62px;
  margin-top: 32px;
  padding: 19px 48px;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .geography__container {
    column-gap: 24px;
  }

  .geography__title {
    font-size: 32px;
  }

  .geography__description,
  .geography__city {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .geography {
    padding: 40px 8px;
  }

  .geography__container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "cities" "map" "terms";
  }

  .geography__eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .geography__title {
    font-size: 24px;
  }

  .geography__description {
    margin-top: 8px;
    font-size: 14px;
  }

  .geography__cities {
    gap: 6px;
    margin-top: 9px;
  }

  .geography__city {
    min-height: 22px;
    padding: 3px 12px;
    font-size: 12px;
  }

  .geography__map {
    margin-top: 20px;
  }

  .geography__image {
    aspect-ratio: 344 / 240;
  }

  .geography__terms {
    justify-self: stretch;
    min-height: 56px;
    margin-top: 24px;
    padding: 17px 24px;
    font-size: 16px;
    white-space: normal;
    text-align: center;
  }
}
