.he-guide {
  --he-ink: #102033;
  --he-paper: #f6f0e6;
  --he-copper: #b65e26;

  min-height: 100svh;
  padding: clamp(7rem, 10vw, 10rem) clamp(1rem, 4vw, 3rem) 6rem;
  background: var(--he-paper);
  color: var(--he-ink);
  font-family: var(--hv-font-body);
}

.he-guide__opening {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(25rem, 1.18fr);
  min-height: min(45rem, 76svh);
  max-width: 90rem;
  margin: auto;
  overflow: hidden;
  background: #07182d;
  color: #fff;
}

.he-guide__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.he-guide__eyebrow {
  margin: 0 0 1rem;
  color: #dfa77f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.he-guide h1 {
  max-width: 11ch;
  margin: 0;
  color: #fff8ec;
  font-family: var(--hv-font-display);
  font-size: clamp(3.4rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.he-guide__lede {
  max-width: 39rem;
  margin: 1.6rem 0 0;
  color: #d8e0e8;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.he-guide__image {
  position: relative;
  min-height: 28rem;
  margin: 0;
  overflow: hidden;
}

.he-guide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.he-guide__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 17, 31, 0.82));
}

.he-guide__image figcaption {
  position: absolute;
  z-index: 1;
  right: 2rem;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
}

.he-guide__image strong {
  display: block;
  max-width: 22ch;
  font-family: var(--hv-font-display);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}

.he-guide__body {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 8rem);
  max-width: 78rem;
  margin: clamp(5rem, 9vw, 9rem) auto;
}

.he-guide__rail {
  align-self: start;
  position: sticky;
  top: 8rem;
}

.he-guide__rail p {
  max-width: 20rem;
  color: #687486;
  line-height: 1.65;
}

.he-guide__evidence {
  display: grid;
  gap: 0;
}

.he-guide__evidence article,
.he-guide__evidence > a {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(16, 32, 51, 0.14);
  color: inherit;
  text-decoration: none;
}

.he-guide__evidence span {
  color: var(--he-copper);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.he-guide__evidence h2,
.he-guide__evidence h3 {
  margin: 0;
  font-family: var(--hv-font-display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
}

.he-guide__evidence p {
  grid-column: 2;
  margin: 0.7rem 0 0;
  color: #687486;
  line-height: 1.7;
}

.he-guide__doors {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  background: #07182d;
  color: #fff;
}

.he-guide__doors > div,
.he-guide__doors > a {
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: inherit;
  text-decoration: none;
}

.he-guide__doors > a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 180ms ease;
}

.he-guide__doors > a:hover,
.he-guide__doors > a:focus-visible {
  background: #b65e26;
}

.he-guide__doors strong {
  font-family: var(--hv-font-display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.he-guide__doors span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.he-guide__search {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.he-guide__search:focus {
  outline: 2px solid #dfa77f;
  outline-offset: 4px;
}

@media (max-width: 52rem) {
  .he-guide__opening,
  .he-guide__body {
    grid-template-columns: 1fr;
  }

  .he-guide__rail {
    position: static;
  }

  .he-guide__evidence article,
  .he-guide__evidence > a {
    grid-template-columns: 1fr;
  }

  .he-guide__evidence p {
    grid-column: 1;
  }

  .he-guide__doors {
    grid-template-columns: 1fr;
  }

  .he-guide__doors > a {
    min-height: 10rem;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 35rem) {
  .he-guide {
    padding: 0 0 4rem;
  }

  .he-guide__opening {
    min-height: 0;
  }

  .he-guide__body {
    padding-inline: 1.25rem;
  }

  .he-guide__copy {
    padding: 2.5rem 1.25rem 2.75rem;
  }

  .he-guide h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 13.8vw, 3.35rem);
    line-height: 0.94;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .he-guide__lede {
    max-width: 100%;
  }

  .he-guide__image {
    min-height: clamp(22rem, 120vw, 28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .he-guide__doors > a {
    transition: none;
  }
}
