/* Each field opens as a printed spread. The diagram itself is the control. */
.frontispiece {
  background: var(--stock);
  color: var(--inkstock);
  overflow: hidden;
  isolation: isolate;
}
.spread-wrap {
  width: min(100%, 1650px);
  margin: auto;
  padding: 21px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: auto minmax(270px, 1fr) auto auto;
  position: relative;
  min-height: clamp(540px, 72svh, 850px);
  column-gap: 12px;
}
.folio-line {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 500 13px/1.2 var(--sans);
  letter-spacing: 0.015em;
}
.folio-line span {
  font: 12px var(--mono);
  letter-spacing: 0.02em;
}
.folio-line b {
  font-weight: 500;
}
.folio-line a:hover,
.read-spread:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.spread-title {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  z-index: 1;
  pointer-events: none;
}
.spread-title h1 {
  font: 500 clamp(62px, 7.8vw, 130px)/0.87 var(--sans);
  letter-spacing: -0.085em;
  max-width: 9ch;
  text-wrap: pretty;
  overflow-wrap: normal;
}
.atlas-cover .spread-title h1 {
  font-size: clamp(75px, 9vw, 157px);
  letter-spacing: -0.085em;
  white-space: nowrap;
  max-width: none;
}
.spread-title h1 span {
  color: #ff8965;
}
.edition-sub {
  margin: 18px 0 0 3px;
  font: 400 clamp(24px, 2.4vw, 40px)/1.07 var(--serif);
  letter-spacing: -0.02em;
}
.front-art {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  width: calc(100% + var(--gutter) * 0.6);
  margin-left: calc(-1 * var(--gutter) * 0.25);
  height: clamp(310px, 37vw, 555px);
  touch-action: pan-y pinch-zoom;
  position: relative;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.front-art img,
.front-art svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  overflow: visible;
}
.frontispiece[data-field="bookbinding"] .front-art img,
.frontispiece[data-field="bookbinding"] .front-art svg {
  filter: drop-shadow(1px 5px 4px rgba(8, 28, 34, 0.1));
}
.front-art:active {
  cursor: grabbing;
}
.js .front-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 2;
  grid-row: 3;
  min-height: 44px;
  margin: 0 0 18px;
}
.grip {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 14px;
  min-height: 44px;
  user-select: none;
}
.grip-symbol {
  font-size: 21px;
  line-height: 1;
}
.grip output {
  font: 11px var(--mono);
  min-width: 3ch;
}
.grip input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  accent-color: currentColor;
  width: 70px;
  min-height: 42px;
  color: inherit;
  cursor: ew-resize;
}
.grip input::-webkit-slider-runnable-track {
  height: 11px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 5px
  );
  opacity: 0.85;
}
.grip input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 6px;
  height: 20px;
  margin-top: -4px;
  background: currentColor;
  border: 1px solid var(--stock);
  border-radius: 0;
}
.grip input::-moz-range-track {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 1px,
    transparent 1px 5px
  );
}
.grip input::-moz-range-thumb {
  height: 18px;
  width: 5px;
  border: 0;
  border-radius: 0;
  background: currentColor;
}
.spread-baseline {
  grid-column: 1/-1;
  grid-row: 4;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  padding: 16px 0 20px;
}
.cover-subject {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.cover-subject > span {
  font-size: 13px;
}
.cover-subject a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 400 clamp(25px, 2.4vw, 38px)/1.1 var(--serif);
}
.cover-subject a svg {
  display: inline-block;
}
.js .leaf-turn {
  display: flex;
  align-items: center;
  gap: 4px;
}
.leaf-turn button {
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.leaf-turn button:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.spread-baseline > p {
  max-width: 58ch;
  line-height: 1.35;
  font-size: clamp(17px, 1.5vw, 24px);
}
.read-spread {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  min-height: 44px;
}
.read-spread span {
  font-size: 22px;
}
.cover-page .mast,
.study-page .mast {
  background: var(--mast-ground);
  color: var(--mast-ink);
  border-color: color-mix(in srgb, var(--mast-ink) 25%, var(--mast-ground));
}
.cover-page .mast .sign,
.study-page .mast .sign {
  color: inherit;
}
.cover-page .mast .sign svg *,
.study-page .mast .sign svg * {
  stroke: currentColor;
}
.cover-page .volume-nav {
  padding-block: 7px;
  gap: 20px;
}
.home-shelf {
  padding-top: 32px;
}
.home-shelf .section-head {
  border-top: 0;
}
.home-shelf .section-head .eyebrow {
  margin-bottom: 10px;
}
.home-shelf .section-head h2,
.inside-label h2 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.067em;
}
.inside {
  padding-top: clamp(24px, 5vw, 75px);
  scroll-margin-top: 12px;
}
.inside-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 25px;
}
.inside-label h2 {
  font-size: clamp(32px, 3.8vw, 58px);
}
.inside-label > a {
  margin-left: auto;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.gallery .specimen,
.field-cover {
  border: 0;
}
.entry-meta {
  letter-spacing: 0.03em;
}
.entry h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.055em;
  font-size: clamp(27px, 2.85vw, 45px);
}
.entry p {
  max-width: 38ch;
}
@media (min-width: 1200px) {
  .atlas-cover .front-art {
    width: calc(100% + var(--gutter));
    margin-left: calc(-1 * var(--gutter) * 0.35);
  }
}
@media (max-width: 740px) {
  .spread-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 16px var(--gutter) 0;
  }
  .folio-line {
    font-size: 13px;
  }
  .folio-line span {
    font-size: 11px;
  }
  .spread-title {
    align-self: stretch;
    margin-top: clamp(23px, 5.5vw, 40px);
  }
  .spread-title h1 {
    font-size: clamp(53px, 14.5vw, 92px);
    max-width: 12ch;
    line-height: 0.91;
  }
  .atlas-cover .spread-title h1 {
    font-size: clamp(72px, 19vw, 108px);
    line-height: 0.82;
  }
  .edition-sub {
    font-size: 25px;
    margin: 13px 0 0;
  }
  .front-art,
  .atlas-cover .front-art {
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    height: clamp(245px, 70vw, 410px);
    flex-shrink: 0;
  }
  .frontispiece[data-field="bookbinding"] .front-art {
    height: clamp(243px, 68vw, 385px);
  }
  .js .front-controls {
    justify-content: flex-start;
    margin: 0;
    min-height: 44px;
  }
  .grip {
    gap: 9px;
    font-size: 14px;
  }
  .grip input {
    width: 72px;
    margin-left: 4px;
  }
  .spread-baseline {
    padding: 14px 0 18px;
    gap: 10px;
    align-items: flex-end;
  }
  .spread-baseline > p {
    font-size: 17px;
    max-width: 35ch;
  }
  .plate-cover .spread-baseline {
    flex-wrap: wrap;
    align-items: center;
  }
  .read-spread {
    gap: 10px;
    font-size: 14px;
    min-height: 30px;
  }
  .cover-subject {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .cover-subject > span {
    font-size: 12px;
  }
  .cover-subject a {
    font-size: 26px;
  }
  .leaf-turn button {
    width: 43px;
    height: 43px;
  }
  .cover-page .volume-nav {
    padding-block: 2px;
    gap: 21px;
  }
  .home-shelf {
    padding-top: 14px;
  }
  .inside-label {
    gap: 9px;
    flex-wrap: wrap;
  }
  .inside-label .eyebrow {
    width: 100%;
  }
  .inside-label h2 {
    max-width: 72%;
    font-size: 32px;
  }
  .inside-label > a {
    font-size: 13px;
  }
}
.field-interior {
  padding-top: clamp(28px, 5vw, 75px);
}
.entry .specimen {
  background: var(--shelf-stock);
}
.volume-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--hair);
  line-height: 2.6;
  white-space: nowrap;
}
.volume-nav a:hover,
.volume-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.frontispiece :focus-visible,
.cover-page .mast :focus-visible,
.study-page .mast :focus-visible {
  outline-color: currentColor;
}
.front-art svg {
  font-family: Helvetica, Arial, sans-serif;
}
.inside-label h2 {
  line-height: 1;
}
@media (max-width: 740px) {
  .inside-label {
    justify-content: space-between;
  }
  .inside-label h2 {
    max-width: none;
  }
  .inside-label > a {
    margin-left: 0;
  }
}
.volume-shelf {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 22px);
}
.volume {
  grid-column: span 4;
  background: var(--shelf-stock);
  color: var(--shelf-ink);
  padding: clamp(18px, 2.1vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.volume:nth-child(7n + 1),
.volume:nth-child(7n) {
  grid-column: span 7;
}
.volume:nth-child(7n + 2),
.volume:nth-child(7n + 6) {
  grid-column: span 5;
}
.volume:last-child:nth-child(7n + 6) {
  grid-column: 1/-1;
}
.volume-head,
.volume-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.volume .volume-head h3 {
  line-height: 0.98;
  font-size: clamp(28px, 3.8vw, 64px);
  letter-spacing: -0.07em;
}
.volume-head > span {
  white-space: nowrap;
  font-size: 13px;
}
.volume .specimen {
  height: clamp(170px, 19vw, 300px);
  aspect-ratio: auto;
  margin: 18px 0;
}
.volume .specimen img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.volume .volume-foot {
  align-items: flex-end;
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  padding-top: 12px;
}
.volume .volume-foot p {
  color: inherit;
  font-size: 15px;
  line-height: 1.28;
  margin: 0;
  max-width: 38ch;
}
.volume-foot svg {
  flex-shrink: 0;
}
.cover-page .mast .sign svg *,
.study-page .mast .sign svg * {
  stroke: revert-layer;
}
.inside-label h2 {
  font: 400 clamp(38px, 5vw, 81px)/1 var(--serif);
  letter-spacing: -0.045em;
  max-width: 18ch;
}
.inside {
  padding-top: clamp(33px, 4.5vw, 75px);
}
.inside .plot-frame {
  border: 0;
}
.inside .apparatus {
  background: var(--paper);
}
.inside .plot-frame {
  background: color-mix(in srgb, var(--pigment) 10%, var(--paper));
}
.inside .plot-top span:first-child {
  text-transform: none;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}
.inside .stage-nav {
  gap: 4px;
  position: relative;
}
.inside .stage-nav a {
  min-width: 43px;
  min-height: 44px;
  border: 0;
}
.inside .stage-nav [aria-current] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.inside .reading-rule {
  position: relative;
  display: block;
  margin-left: 12px;
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.reading-rule i {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--deep);
  transform: scaleX(0);
  transform-origin: left center;
}
@media (max-width: 740px) {
  .volume-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .volume:nth-child(n) {
    grid-column: span 1;
    padding: 13px;
  }
  .volume:nth-child(3n + 1) {
    grid-column: 1/-1;
    padding: 20px;
  }
  .volume .volume-head {
    display: block;
  }
  .volume .volume-head h3 {
    font-size: clamp(23px, 6.1vw, 39px);
  }
  .volume:nth-child(3n + 1) .volume-head {
    display: flex;
  }
  .volume:nth-child(3n + 1) .volume-head h3 {
    font-size: 45px;
  }
  .volume-head > span {
    font-size: 12px;
  }
  .volume .specimen {
    height: clamp(108px, 26vw, 175px);
    margin: 14px 0;
  }
  .volume:nth-child(3n + 1) .specimen {
    height: clamp(155px, 49vw, 260px);
  }
  .volume .volume-foot {
    font-size: 13px;
    padding-top: 7px;
  }
  .volume .volume-foot p {
    font-size: 14px;
  }
  .volume-foot svg {
    width: 14px;
  }
  .volume .volume-head,
  .volume .volume-foot {
    gap: 5px;
  }
  .inside-label {
    margin-bottom: 20px;
  }
  .inside-label h2 {
    max-width: 16ch;
  }
  .inside .instrument input {
    accent-color: var(--deep);
  }
}
.sr-only,
.js .stage-nav > a:not(:focus-visible) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
}
.js .stage-nav .scrub-label {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-height: 44px;
  padding-inline: 4px;
}
.stage-nav .scrub-label > span:first-child {
  margin: 0;
  font: 14px var(--sans);
  text-transform: none;
  letter-spacing: 0;
}
.stage-nav .scrub-track {
  flex: 1;
  margin: 0;
  display: grid;
  align-items: center;
  position: relative;
}
.stage-nav .scrub-track .reading-rule {
  position: absolute;
  width: 100%;
  margin: 0;
  display: block;
  pointer-events: none;
}
.scrub-track input {
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  min-height: 40px;
  width: 100%;
  margin: 0;
  cursor: ew-resize;
}
.scrub-track input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 7px;
  height: 13px;
  border: 0;
  background: var(--deep);
  border-radius: 0;
}
.scrub-track input::-moz-range-thumb {
  width: 7px;
  height: 13px;
  border: 0;
  background: var(--deep);
  border-radius: 0;
}
.scrub-track input::-moz-range-track {
  background: transparent;
}
@media print {
  .scrub-label {
    display: none !important;
  }
}
.front-extras:empty {
  display: none;
}
.front-extras {
  grid-column: 2;
  grid-row: 3;
  z-index: 1;
  align-self: start;
  justify-self: center;
}
.frontispiece[data-game] .front-art {
  cursor: pointer;
}
.frontispiece[data-game] .front-art svg {
  pointer-events: auto;
}
.frontispiece[data-game] .front-controls {
  display: none;
}
.frontispiece[data-game] .front-extras {
  width: min(100%, 520px);
  padding-bottom: 18px;
}
.turns,
.chess-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.turns button,
.chess-actions button,
.front-listen,
.chess-actions a {
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
  padding: 7px 10px;
  min-height: 44px;
  font: inherit;
}
.turns button {
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}
.turns button[aria-pressed="true"] {
  color: var(--stock);
  background: var(--inkstock);
  border-color: var(--inkstock);
}
.move-note {
  padding: 10px 0 0;
  font-size: 16px;
}
.chess-actions button,
.chess-actions a,
.front-listen {
  padding-inline: 7px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.chess-actions button:first-child {
  padding-left: 0;
}
.chess-actions button[data-undo] {
  margin-left: auto;
}
.frontispiece[data-music] .front-extras {
  justify-self: end;
}
.front-listen {
  font-size: 15px;
}
@media (max-width: 740px) {
  .front-extras {
    align-self: stretch;
  }
  .frontispiece[data-game] .front-extras {
    padding-bottom: 8px;
  }
  .frontispiece[data-music] .front-extras {
    order: 0;
  }
  .front-listen {
    padding-left: 0;
  }
  .chess-actions {
    gap: 7px;
  }
  .chess-actions button {
    min-width: 36px;
  }
}

.next .entry:only-child {
  display: block !important;
}
