/* A quieter scale for the homepage name and portrait. */
.hero {
  width: 100%;
  max-width: 1760px;
  min-width: 0;
  margin-inline: auto;
}

.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(54px, 7.2vw, 112px); }

.portrait-wrap {
  min-width: 0;
  width: min(82%, calc(100svh - 250px));
  max-width: 500px;
}

.portrait-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(68svh, 680px);
  margin-left: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 850px) {
  .hero-copy h1 { font-size: clamp(42px, 12vw, 76px); }
  .portrait-wrap { max-width: 72%; }
  .portrait-wrap img { max-height: 56svh; }
}

/* Content-sized rows prevent the portrait's height from widening a narrow grid. */
@media (min-width: 521px) and (max-width: 850px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .portrait-wrap {
    width: min(72%, 500px);
    height: auto;
    max-width: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
}

@media (max-width: 850px) and (max-height: 600px) and (orientation: landscape) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); grid-template-rows: auto; }
  .hero-copy h1 { font-size: clamp(38px, 7vw, 58px); }
  .portrait-wrap { width: 88%; max-width: 88%; }
}

@media (max-width: 520px) and (orientation: portrait) {
  .hero,
  body.has-book-support-banner .hero {
    grid-template-columns: minmax(0, 1fr) clamp(124px, 35vw, 165px);
  }

  .hero-copy h1 { font-size: clamp(34px, 10vw, 48px); }
  .portrait-wrap { max-width: none; transform: none; }
  .portrait-wrap img { width: auto; max-width: 100%; height: auto; max-height: 48svh; margin-left: auto; aspect-ratio: auto; object-fit: contain; }
}
/* Media discloses its existing pages without changing deep links. */
.nav-group { position: relative; display: flex; align-items: stretch; }
.nav-group-toggle { white-space: nowrap; }
.nav-submenu { position: absolute; top: 100%; left: -20px; min-width: 170px; padding: 10px; display: grid; gap: 2px; background: #10100f; border: 1px solid #30302d; box-shadow: 0 12px 28px #0006; }
.nav-submenu[hidden] { display: none; }
.nav-submenu .tab { min-height: 42px; padding: 10px 12px; text-align: left; }
.nav-submenu .tab::after { display: none; }
.nav-submenu .tab:hover, .nav-submenu .tab:focus-visible { background: #20201c; }
@media (max-width: 1180px) {
  .tab-list { width: 100%; justify-self: stretch; }
  .nav-group { display: block; }
  .nav-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .nav-submenu { position: static; min-width: 0; padding: 0 0 12px 20px; border: 0; background: transparent; box-shadow: none; }
  .tab-list .nav-submenu .tab { min-height: 46px; font-size: 18px; }
}
