.stage-head .replay {
  min-height: 44px;
  padding: 4px 0 4px 14px;
  gap: 7px;
  color: #e5d7bf;
  font-size: 12px;
  letter-spacing: .09em;
}
.stage-head .replay span { font-size: 20px; }
.stage-head .replay:is(:hover, :focus-visible) { color: #ffb091; }
.chapter-stack { grid-template: auto auto / minmax(0, 1fr); }
.chapter-stack [data-chapter="1"] h2 {
  font-size: clamp(43px, min(5.3vw, 10vh), 89px);
  white-space: nowrap;
}
.chapter-stack [data-chapter="1"] p { max-width: 25em; }
.cover-menu {
  grid-area: 2 / 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(18px, 2.2vw, 32px);
  width: min(100%, 475px);
}
.cover-menu .cover-choice {
  --foil: #e0ae84;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: normal;
  gap: clamp(7px, .95vw, 15px);
  width: auto;
  min-height: clamp(53px, 7.3vh, 74px);
  padding: 5px clamp(5px, .55vw, 9px);
  border-top: 1px solid #b4c8c051;
  color: #faeed8;
  background: transparent;
  font: 600 clamp(15px, 1.35vw, 21px)/1.3 var(--standard-serif);
  letter-spacing: .09em;
  white-space: nowrap;
}
.cover-choice:nth-last-child(-n+2) { border-bottom: 1px solid #b4c8c051; }
.cover-choice[href="#journey"] { --foil: #a4cfdf; }
.cover-choice[href="#works"] { --foil: #ebc772; }
.cover-choice[href="#guestbook"] { --foil: #efae98; }
.cover-menu .cover-choice::before {
  background: linear-gradient(90deg, color-mix(in srgb, var(--foil) 13%, transparent), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.cover-choice::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--foil);
  opacity: .8;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .32s ease;
}
.cover-choice .arrow {
  width: 13px;
  color: var(--foil);
  opacity: .8;
}
.cover-choice .arrow::after { width: 5px; height: 5px; top: -2px; }
.cover-choice .choice-mark {
  width: 26px;
  height: 26px;
  position: relative;
  justify-self: center;
  color: var(--foil);
  transition: transform .32s ease;
}
.choice-mark::before, .choice-mark::after, .choice-mark i { position: absolute; }
.choice-mark::before, .choice-mark::after { content: ""; }
/* Two leaves joined at the gutter of an open book. */
[href="#profile"] .choice-mark::before, [href="#profile"] .choice-mark::after {
  top: 5px; width: 10px; height: 14px; border: 1px solid; border-radius: 1px;
}
[href="#profile"] .choice-mark::before { left: 3px; transform: skewY(15deg); }
[href="#profile"] .choice-mark::after { right: 4px; transform: skewY(-15deg); }
/* Three stops along the line of the journey. */
[href="#journey"] .choice-mark::before {
  left: 3px; top: 16px; width: 21px; height: 1px;
  background: currentColor; transform: rotate(-23deg); transform-origin: left;
}
[href="#journey"] .choice-mark i {
  left: 2px; top: 15px; width: 3px; height: 3px;
  border-radius: 50%; background: currentColor;
  box-shadow: 9px -4px currentColor, 19px -8px currentColor;
}
/* The loose corner and inked field of a mounted print. */
[href="#works"] .choice-mark::before {
  left: 6px; top: 4px; width: 16px; height: 17px; border: 1px solid;
  background: linear-gradient(145deg, transparent 52%, currentColor 53% 57%, transparent 58%) center / 75% 75% no-repeat;
}
[href="#works"] .choice-mark::after {
  left: 3px; top: 8px; width: 16px; height: 15px;
  border-left: 1px solid; border-bottom: 1px solid; transform: rotate(-5deg);
}
/* The flap folds back into the silhouette of the envelope. */
[href="#guestbook"] .choice-mark::before {
  left: 2px; top: 6px; width: 22px; height: 15px;
  border: 1px solid; border-radius: 1px;
}
[href="#guestbook"] .choice-mark::after {
  top: 7px; left: 5px; width: 15px; height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 50% 51%, 100% 0, 100% 11%, 50% 63%, 0 11%);
}
.cover-choice:focus-visible { outline-offset: 1px; z-index: 1; }
.cover-choice:focus-visible::after, .cover-choice:active::after { transform: scaleX(1); }
.cover-choice:focus-visible .choice-mark { transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) {
  .cover-choice:hover .choice-mark { transform: translateY(-2px); }
  .cover-choice:hover::after { transform: scaleX(1); }
}
.rolling .cover-menu { animation: titles-arrive .8s .7s cubic-bezier(.2,.78,.23,1) backwards; }
@media (max-width: 740px) and (min-height: 501px), (max-width: 549px) {
  .opening { --book-w: clamp(80px, min(51vw, calc(48svh - 130px)), 243px); }
  .stage-main {
    grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
    padding-block: clamp(8px, 2.1svh, 23px) 12px;
  }
  .chapter-stack { display: contents; }
  .chapter-stack .chapter { grid-area: 1 / 1; align-self: start; }
  .chapter-stack [data-chapter="1"] h2 { font-size: clamp(35px, min(10vw, 7.6svh), 63px); }
  .chapter-stack [data-chapter="1"] p { margin: 6px 0 0; }
  .chapter-stack .cover-byline { margin-bottom: 0; }
  .stage-main .exhibit {
    grid-area: 2 / 1;
    align-self: center; justify-self: center;
    height: min(100%, calc(var(--book-w) * 1.84));
    margin: 0;
  }
  .stage-main .cover-menu {
    grid-area: 3 / 1;
    width: 100%;
    gap: 0 clamp(13px, 4vw, 25px);
    margin: 0;
    pointer-events: auto;
  }
  .cover-menu .cover-choice {
    min-height: clamp(45px, 6.4svh, 59px);
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: clamp(5px, 2vw, 12px);
    padding-inline: 3px 5px;
    font-size: clamp(14px, 4vw, 19px);
  }
  .stage-head .brand-edition { display: inline; }
  .stage-head .replay { font-size: 11px; }
}
@media (max-height: 500px) {
  .cover-menu { column-gap: 13px; }
  .cover-menu .cover-choice { min-height: 44px; font-size: 13px; gap: 5px; padding: 3px; }
  .chapter-stack [data-chapter="1"] h2 { font-size: clamp(29px, 8.7svh, 43px); }
}
@media (max-width: 549px) and (max-height: 500px) {
  .opening { --book-w: clamp(59px, calc(41svh - 98px), 110px); }
  .stage-main { padding-block: 4px; }
  .stage-main .object-hint { display: none; }
}
