body[data-page="characters"] { animation: none; }
.character-book { --shell: 82rem; }
.character-book .document-nav { flex-wrap: wrap; gap: .75rem 1.5rem; }
.character-book .document-nav a:first-child { margin-right: auto; }
.study-intro { padding: clamp(2rem, 6vw, 6rem) var(--pad) 4rem; }
.study-eyebrow { margin: 0 0 1.5rem; font-size: .68rem; color: var(--ink-muted); letter-spacing: .08em; }
.study-intro h1 { margin: 0 0 2rem; font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 400; letter-spacing: -.075em; line-height: 1.02; }
.study-intro > p:not(.study-eyebrow) { max-width: 62ch; }
.study-note { color: var(--ink-muted); font-size: .75rem; line-height: 1.8; }
.cast-identities { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cast-identity + .cast-identity { border-left: 1px solid var(--line); }
.cast-portrait { height: clamp(18rem, 33vw, 31rem); background: #d2cadc; overflow: hidden; }
.cast-portrait img { display: block; width: 100%; height: 110%; object-fit: contain; object-position: center top; padding: 1.5rem 1.2rem 0; }
.cast-portrait--father { background: #e6e1e7; }
.cast-portrait--father img { height: 138%; }
.cast-identity__copy { padding: 2rem var(--pad); }
.cast-identity h2 { margin: 0 0 1rem; font-weight: 400; font-size: 2.5rem; letter-spacing: -.07em; }
.cast-identity p:not(.study-eyebrow) { max-width: 47ch; }
.cast-identity dl { margin: 2rem 0; font-size: .7rem; }
.cast-identity dl > div { border-top: 1px solid var(--line); padding: .75rem 0; }
.cast-identity dt { color: var(--ink-muted); }
.cast-identity dd { margin: .25rem 0 0; }
.cast-identity a { text-decoration: none; font-size: .7rem; padding: .8rem 0; display: inline-block; }
.study-section { padding: 4.5rem var(--pad) 0; scroll-margin-top: 5rem; }
.study-section__head { margin-bottom: 2.5rem; }
.study-section h2 { margin: 0 0 1.5rem; font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -.065em; line-height: 1.1; }
.study-section__head > p:last-child, .study-colophon > p { max-width: 68ch; }
.study-plate { margin: 0 0 3rem; border: 1px solid var(--line); }
.study-plate__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.study-plate__heading h3 { font-size: .8rem; font-weight: 400; margin: 0; }
.study-plate__heading > span { font-size: .6rem; color: var(--ink-muted); letter-spacing: .06em; }
.study-window { overflow: hidden; margin: 0 auto; background: #f4f1eb; }
.study-window img { display: block; width: 100%; height: auto; max-width: none; }
.study-plate[data-view="0"] .study-window, .study-plate[data-view="1"] .study-window, .study-plate[data-view="2"] .study-window { width: min(100%, 25rem); }
.study-plate[data-view="0"] .study-window img, .study-plate[data-view="1"] .study-window img, .study-plate[data-view="2"] .study-window img { width: 300%; }
.study-plate[data-view="1"] .study-window img { transform: translateX(-33.333333%); }
.study-plate[data-view="2"] .study-window img { transform: translateX(-66.666667%); }
.study-labels { display: grid; grid-template-columns: repeat(3, 1fr); padding: .75rem .5rem; gap: .5rem; border-top: 1px solid var(--line); font-size: .62rem; text-align: center; }
.study-plate[data-view="0"] .study-labels, .study-plate[data-view="1"] .study-labels, .study-plate[data-view="2"] .study-labels { display: block; }
.study-plate[data-view="0"] .study-labels span:not(:nth-child(1)), .study-plate[data-view="1"] .study-labels span:not(:nth-child(2)), .study-plate[data-view="2"] .study-labels span:not(:nth-child(3)) { display: none; }
.study-controls { display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--line); gap: .25rem .7rem; padding: .35rem .7rem; }
.study-controls[hidden] { display: none; }
.study-controls button, .study-controls a { display: inline-flex; align-items: center; justify-content: center; appearance: none; min-height: 2.75rem; border: 0; border-radius: 0; padding: .6rem .4rem; background: transparent; color: var(--ink); font: inherit; font-size: .67rem; cursor: pointer; text-decoration: none; }
.study-controls button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .35rem; }
.study-controls button:hover, .study-controls a:hover { background: var(--ink); color: var(--surface); }
.expression-labels { border-top: 1px solid var(--line); padding: .5rem 1rem; font-size: .67rem; }
.study-colophon { padding-bottom: 4rem; }
.study-colophon > p:last-child { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-size: .7rem; margin-top: 2rem; }
@media (max-width: 640px) {
  .character-book .document-nav { font-size: .66rem; gap: .5rem .9rem; }
  .character-book .document-nav a:first-child { flex-basis: 100%; }
  .cast-identities { grid-template-columns: 1fr; }
  .cast-identity + .cast-identity { border-left: 0; border-top: 1px solid var(--line); }
  .cast-portrait { height: 23rem; }
  .study-labels { font-size: .54rem; }
  .study-plate__heading { padding: .8rem; }
  .study-plate__heading h3 { font-size: .72rem; }
  .study-plate__heading > span { font-size: .55rem; }
}
@media print {
  .study-controls { display: none; }
  .study-plate[data-study] .study-window { width: 100%; }
  .study-plate[data-study] .study-window img { width: 100%; transform: none; }
  .study-plate[data-study] .study-labels { display: grid; }
  .study-plate[data-study] .study-labels span { display: block; }
  .study-plate, .cast-identity { break-inside: avoid; }
}
