.brand .brand-mark {
  width: 49px;
  height: auto;
  margin-right: 3px;
}
.brand .brand-wordmark {
  display: block;
  width: clamp(106px, 10vw, 145px);
  height: auto;
}
.book-shell[data-entry] #cover,
.book-shell[data-entry] #intro,
.book-shell[data-entry="splash"] :is(header, footer) {
  visibility: hidden;
}
.book-shell[data-entry="presenting"] :is(#cover, #intro) {
  visibility: visible;
}
.book-shell[data-entry]:not([data-entry="presenting"]) #intro { display: none; }
.book-shell[data-entry] :is(header, footer) {
  position: relative;
  z-index: 11;
}
#volume-picker {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
#volume-picker[hidden] { display: none; }
#volume-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f3f0e5;
  z-index: -1;
  transition: opacity 500ms ease;
}
.book-shell[data-entry="choosing"] #volume-picker::before { opacity: 0; }
.volume-display {
  position: relative;
}
#volume-prompt {
  position: absolute;
  inset: 100% 0 auto;
  margin: clamp(14px, 2.6svh, 28px) 0 0;
  color: var(--ink);
  font: normal clamp(16px, 1.4vw, 20px)/1.4 var(--serif);
  letter-spacing: .06em;
  text-align: center;
  pointer-events: none;
}
.book-shell[data-entry="splash"] #volume-prompt { visibility: hidden; }
.volume-row {
  --book-width: min(23vw, 21.4svh, 218px);
  --lift: clamp(9px, 2.3svh, 23px);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.volume-choice {
  position: relative;
  display: block;
  flex: none;
  width: var(--book-width);
  aspect-ratio: 497 / 878;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.volume-choice + .volume-choice { margin-left: calc(-.55 * var(--book-width)); }
.volume-face {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 440ms cubic-bezier(.22,.72,.21,1), box-shadow 440ms ease;
  box-shadow: 1px 3px 0 #9d967d, 3px 6px 9px #292b241a;
}
/* Frame the whole painting when a narrow planning map becomes a title card. */
:host([data-departing]) .map { min-width: 0; }
.volume-face img { display: block; width: 100%; height: 100%; }
@media (hover: hover) {
  .volume-choice:hover .volume-face { transform: translateY(calc(-1 * var(--lift))); }
}
.volume-choice:focus-visible { outline: none; }
.volume-choice:focus-visible .volume-face {
  transform: translateY(calc(-1 * var(--lift)));
  outline: 2px solid #865235;
  outline-offset: 3px;
}
.book-shell[data-entry="choosing"] .volume-choice { pointer-events: none; }
@media (max-width: 680px) {
  .brand .brand-mark { width: 36px; }
  .brand .brand-wordmark { width: clamp(83px, 22vw, 105px); }
  .volume-row { --book-width: min(34vw, 13svh, 133px); }
}
@media (prefers-reduced-motion: reduce) {
  .volume-face, #volume-picker::before { transition: none; }
}
