/* Chapter index on the home page. */
.history-entry {
  --rule: #d6d4bb66;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(38px, 7vw, 105px);
  margin-block: clamp(38px, 6vw, 80px);
  padding: clamp(35px, 5vw, 72px);
  background-color: #183f40;
  background-image: linear-gradient(100deg, #153c3df7, #234a46ed), url('/assets/pattern-relief.svg');
  background-size: auto, 230px;
  color: var(--ivory);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.history-entry h2 {
  max-width: 9em;
  font-size: clamp(42px, 5.2vw, 77px);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.history-entry-intro p {
  max-width: 42ch;
  margin: 23px 0 27px;
  color: #f1ecdd;
  font-size: 15px;
  line-height: 1.7;
}

.history-entry-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.history-entry-chapters li {
  border-bottom: 1px solid var(--rule);
}

.history-entry-chapters a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 4px 19px 0;
}

.history-entry-chapters small,
.destination-history-copy small {
  display: block;
  font: 500 10px/1.5 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.history-entry-chapters small {
  margin-bottom: 5px;
  color: #dbd6b9;
}

.history-entry-chapters strong {
  display: block;
  color: #fffdf1;
  font: 400 clamp(19px, 2.1vw, 30px)/1.18 var(--serif);
  letter-spacing: -.025em;
}

.history-entry-chapters .icon {
  width: 19px;
  flex-shrink: 0;
  color: #e9dec1;
}

.history-entry-chapters a:is(:hover, :focus-visible) strong,
.destination-history a:is(:hover, :focus-visible) strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.history-entry :focus-visible {
  outline-color: #ffdf95;
}

/* A guide should make its related era and destination explicit. */
.destination-history {
  margin-block: 32px;
}

.immersive-page .destination-history {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  margin-block: clamp(35px, 6vw, 80px);
}

.destination-history a {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  border-block: 1px solid #b6c2b2;
  padding: clamp(20px, 2.6vw, 36px) clamp(17px, 3vw, 43px);
  color: var(--deep-sea);
  background: linear-gradient(90deg, #f3f0e4eb, #f3f0e4b8), url('/assets/pattern-relief.svg') center/210px;
}

.destination-history-copy small {
  margin-bottom: 7px;
  color: #4b625a;
}

.destination-history-copy strong {
  display: block;
  font: 400 clamp(23px, 2.7vw, 37px)/1.17 var(--serif);
  letter-spacing: -.035em;
}

.destination-history-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #8b9a89;
  border-radius: 50%;
}

.destination-history-arrow .icon {
  width: 19px;
  height: 19px;
}

.home-page .opening-map strong {
  line-height: 1.13;
}

.home-page .opening-bottom {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .history-entry {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
    padding: 32px 23px;
  }

  .history-entry-intro p {
    font-size: 14px;
    margin-block: 18px 22px;
  }

  .history-entry-chapters a {
    padding-block: 14px;
  }

  .destination-history a {
    gap: 13px;
  }

  .home-page .opening-topline span:only-child {
    display: inline;
  }
}

@media (max-width: 370px) {
  .history-entry {
    padding-inline: 17px;
  }
}
