/* The homepage sheet, reused at a fixed CSS scale. The two scans also form the CSS fallback. */
/* Until the lit sheet is drawn, the page shows the flat paper colour. The raw scans with blend modes look dark and grainy, so they appear only when no renderer works. */
:root{--paper-image:none;--paper-size:auto;--dock-height:0px}
.paper-css{--paper-image:url(assets/papier-tand.webp),url(assets/papier-vezel.webp);--paper-size:652.8px 382.5px,819.2px 819.2px}
body:before{background-color:var(--paper);background-image:var(--paper-image);background-size:var(--paper-size);background-position:0 0;background-repeat:repeat;background-blend-mode:soft-light,multiply}
.paper-ready body:before{background-blend-mode:normal}
.player,.proof-bed,.transport,.caption-menu,.start-button,.subtitle-question,.loading,.error,.end-screen,.preview,#moment-url,.sound-control input,.player:fullscreen,.player.theatre{
 background-color:var(--paper);background-image:var(--paper-image);background-size:var(--paper-size);background-position:0 0;background-repeat:repeat;background-blend-mode:soft-light,multiply
}
.paper-ready :is(.player,.proof-bed,.transport,.caption-menu,.start-button,.subtitle-question,.loading,.error,.end-screen,.preview,#moment-url,.sound-control input){background-blend-mode:normal}
.transport select{background-color:transparent}
.player-slot{position:relative}
.film-links{display:flex;gap:28px;margin:18px 0 8px;flex-wrap:wrap}
.episode-details{border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);margin-top:8px}
.episode-details>summary{font-weight:650}
.episode-details .summary-row{margin:16px 0 20px}
.episode-details #share{padding-left:0;text-decoration:underline}
.below-player{display:block;margin-top:14px;border:0;padding:0}
.below-player .material-note{margin-top:6px}
.episode-notes{display:grid;grid-template-columns:1fr 2fr;gap:48px;margin:56px 0 48px;padding:24px 0;border-top:2px solid var(--ink)}
#notes-body{max-width:72ch}
#notes-body>*+*{margin-top:18px}
#notes-body h3{font-size:16px;line-height:1.4}
#notes-body h4{font-size:16px;margin-bottom:0}
#notes-body p,#notes-body li{line-height:1.4}
#notes-body blockquote{margin-left:0;margin-right:0;padding:16px 0;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink)}
#notes-body a{display:inline-flex;min-height:44px;align-items:center}
#notes-body .note-time{display:inline-flex;align-items:center;min-width:44px;min-height:44px;font-variant-numeric:tabular-nums}
#notes-body ul,#notes-body ol{padding-left:24px}
#notes-body figure{margin-left:0;margin-right:0}
#notes-body img{display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain}
#notes-body figcaption{margin-top:12px}
#notes-body .material-label{display:block;margin-top:8px;padding:8px 10px;border:1px solid var(--ink)}
.notes-missing-image{border:1px solid var(--ink);padding:20px}
.undock{display:none}
button:active,a:active,summary:active{opacity:.7}
@media(hover:none){
 a:hover,button:hover{text-decoration:inherit}
 .transcript-line:hover{border-bottom-color:transparent;text-decoration:none}
 .subtitle-answers button:hover{background:none;color:inherit}
 .subtitle-answers button:active,.subtitle-answers button:focus-visible{background:var(--ink);color:var(--paper)}
 .sound-control:hover input{display:none}
 .sound-control:focus-within input{display:block}
 .transcript-line:active{background:var(--ink);color:var(--paper);opacity:1}
 .keyboard-help{display:none}
}
@media(max-width:760px){
 :root{--pad:20px}
 html{scroll-padding-top:calc(var(--dock-height) + 16px)}
 .page{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 .site-header{flex-wrap:nowrap;padding:4px 0;gap:12px}
 .site-header nav{display:none}
 .site-header h1{font-size:16px}
 .site-header .home-link{font-weight:650}
 .masthead{display:flex;align-items:center;padding:14px 0 12px}
 .series-title{font-size:24px;gap:4px}
 .printed-stop{width:6px;height:6px}
 .masthead p{display:none}
 .episode-heading{margin-bottom:12px}
 .episode-heading h2{font-size:24px;line-height:1.1}
 .episode-heading p{display:flex;justify-content:space-between;gap:10px;font-size:16px;margin-top:8px}
 .player-slot{margin-inline:-20px}
 .player{margin:0;max-width:none}
 .screen{aspect-ratio:16/9;height:auto}
 .start-button{font-size:16px;min-height:48px;padding:8px 12px;gap:10px;bottom:18%;right:4%;max-width:80%}
 .start-button small{display:none}
 .proof-bed{padding:8px 14px 6px}
 .scrub{height:68px}
 .proof-heading{font-size:16px;gap:8px}
 .proof-legend{gap:8px;font-size:16px}
 .proof-legend .kind{gap:4px}
 .moment{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:8px 14px;align-items:center}
 .moment #scene-counter{grid-column:1;font-size:16px}
 .moment #scene-name{grid-column:1;grid-row:2;white-space:nowrap}
 .moment #scene-kind{grid-column:2;grid-row:1;min-height:22px;justify-self:end}
 .moment #source-toggle{grid-column:2;grid-row:2;margin:0;min-height:44px;justify-self:end;padding:6px 0}
 .below-player{font-size:16px;margin-top:12px}
 .below-player p{max-width:none}
 .below-player .material-note{margin-top:8px}
 .film-links{gap:0;justify-content:space-between;margin:10px 0 0;font-size:16px}
 .film-links a{min-height:48px}
 .episode-details{margin-top:0}
 .episode-details>summary{min-height:48px}
 .summary-row{margin:12px 0}
 .episode-notes{display:block;margin:32px 0;padding:20px 0 0;border-top:2px solid var(--ink)}
 .episode-notes h2{font-size:24px;margin-bottom:18px}
 #notes-body h3{font-size:16px;font-weight:650}
 #notes-body>*+*{margin-top:12px}
 #notes-body blockquote{padding:12px 0}
 .transcript{margin-top:32px;margin-bottom:36px}
 .reading-heading{margin-bottom:20px}
 .reading-heading h2{font-size:24px}
 .reading-heading p{margin:10px 0}
 .reading-heading p br{display:none}
 .reading-heading p br:after{content:' '}
 .reading-heading button{min-height:44px}
 .transcript-section{padding:16px 0}
 .transcript-section header{margin-bottom:12px}
 .transcript-section header time{margin-left:10px;white-space:nowrap}
 .transcript-section h3{line-height:1.4}
 .transcript-line{padding:0;min-height:44px;line-height:22px;border:0;display:block;text-align:left;width:100%;border-radius:0}
 .cue-paragraph{margin-bottom:12px}
 .cue-paragraph:last-child{margin-bottom:0}
 .transcript-line:focus-visible{outline-offset:1px}
 .transcript-line[aria-current=true]{box-shadow:none}
 .transcript-download{margin-top:12px}
 .series{margin-top:28px}
 .editions li{gap:8px;padding:16px 0}
 .section-heading{margin-bottom:18px}
 footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}
 /* Same element, kept in view while its narration and notes scroll below. */
 .player.is-docked{position:fixed;top:0;left:0;right:0;z-index:25;padding-top:env(safe-area-inset-top);border-bottom:2px solid var(--ink);width:100%;margin:0}
 .is-docked .screen{aspect-ratio:16/9;height:auto}
 .is-docked .proof-bed{padding:0 80px 0 12px;border-bottom:0}
 .is-docked .scrub{height:44px}
 .is-docked .proof-heading,.is-docked .proof-legend,.is-docked .moment{display:none}
 .is-docked .undock{display:block;position:absolute;bottom:0;right:max(4px,env(safe-area-inset-right));font-size:16px;padding:4px 8px;width:72px;min-height:44px;text-decoration:underline}
 .is-docked .moment-source{display:none}
 .is-docked .end-screen{padding:10px;gap:8px}
 .is-docked .end-screen h3{font-size:16px}
 .is-docked .end-screen>p{display:none}
 .is-docked .screen:has(.end-screen:not([hidden])){min-height:0}
 .player:fullscreen,.player.theatre{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);height:100dvh}
 .player:fullscreen .screen,.player.theatre .screen{height:auto;aspect-ratio:auto}
 .player:fullscreen .proof-bed,.player.theatre .proof-bed{padding:0 max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))}
 .player:fullscreen .undock,.player.theatre .undock{display:none}
}
@media(pointer:coarse) and (orientation:landscape) and (max-height:500px){
 :root{--pad:20px}
 .page{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 .site-header{height:56px;padding:4px 0;border:0;width:125px;gap:0}
 .site-header nav,.home-link span,.masthead{display:none}
 .site-header h1{position:absolute;display:block;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 .home-link{min-width:0;font-size:16px}
 .episode-heading{margin:-56px 0 0 145px;height:56px;display:flex;align-items:center;gap:12px}
 .episode-heading h2{font-size:16px;line-height:1.2;max-width:none;flex:1}
 .episode-heading p{font-size:16px;white-space:nowrap;margin:0}
 .episode-heading p span+span{display:none}
 .player-slot{margin-inline:-20px}
 .player{max-width:none;margin:0}
 .screen{height:calc(100dvh - 56px - env(safe-area-inset-top));aspect-ratio:auto}
 .start-button{font-size:16px;padding:8px 12px;gap:12px;min-height:48px;bottom:18%;right:18%}
 .start-button small{display:none}
 .start-button svg{width:24px;height:24px}
 .proof-bed{padding:0 18px 6px}
 .proof-heading{display:none}
 .scrub{height:56px}
 .moment{padding-inline:18px}
 .transport{padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))}
 .film-links{margin-top:8px}
 .episode-notes{margin-block:24px}
 .player:fullscreen,.player.theatre{height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 .player:fullscreen .screen,.player.theatre .screen{height:auto;flex:1;min-height:0}
 .player:fullscreen .scrub,.player.theatre .scrub{height:44px}
}
/* Episodes: one switch under the masthead, the current episode printed in ink. */
.episode-switch{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 28px;border:2px solid var(--ink)}
.episode-switch a{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px 20px;font-weight:700;text-decoration:none;min-height:72px}
.episode-switch a+a{border-left:2px solid var(--ink)}
.episode-switch span{font-weight:450;font-size:14px}
.episode-switch small{font-weight:450;font-size:14px;font-variant-numeric:tabular-nums}
.episode-switch a[aria-current=page]{background:var(--ink);color:var(--paper)}
.episode-switch a:not([aria-current]):hover{text-decoration:underline}
[data-episode="2"] .preview-frame{background-image:url(assets/scenes-episode-2.jpg);background-size:1100px 496px}
@media(max-width:760px){.episode-switch{grid-template-columns:1fr;margin-bottom:20px}.episode-switch a{padding:12px 16px;min-height:64px}.episode-switch a+a{border-left:0;border-top:2px solid var(--ink)}[data-episode="2"] .preview-frame{background-size:960px 432px}}
/* Fullscreen: the film fills the whole screen. The proof strip lies over its bottom edge and fades with the controls. */
.player:fullscreen,.player.theatre{display:block;padding:0;height:100dvh;overflow:hidden}
.player:fullscreen .screen,.player.theatre .screen{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
.player:fullscreen .transport,.player.theatre .transport{padding-top:max(8px,env(safe-area-inset-top));padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
.player:fullscreen .proof-bed,.player.theatre .proof-bed{position:absolute;left:0;right:0;bottom:0;z-index:5;border-bottom:0;border-top:2px solid var(--ink);padding:6px max(24px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));transition:opacity .16s}
.player:fullscreen.controls-hidden .proof-bed,.player.theatre.controls-hidden .proof-bed{opacity:0;pointer-events:none;transition-duration:var(--hide-fade,100ms)}
.player:fullscreen .proof-heading,.player:fullscreen .proof-legend,.player:fullscreen .moment,.player:fullscreen .moment-source,.player.theatre .proof-heading,.player.theatre .proof-legend,.player.theatre .moment,.player.theatre .moment-source{display:none}
.player:fullscreen .captions,.player.theatre .captions{transition:translate .16s}
.player:fullscreen:not(.controls-hidden) .captions,.player.theatre:not(.controls-hidden) .captions{translate:0 -84px}
@media(max-width:760px),(pointer:coarse) and (orientation:landscape) and (max-height:500px){.player:fullscreen .scrub,.player.theatre .scrub{height:56px}.player:fullscreen:not(.controls-hidden) .captions,.player.theatre:not(.controls-hidden) .captions{translate:0 -60px}}
@media(prefers-reduced-motion:reduce){.player:fullscreen .proof-bed,.player.theatre .proof-bed,.player:fullscreen .captions,.player.theatre .captions{transition:none}}
/* The reading proof as a book page. Three sizes: the heading of the page, one reading size, one size for the side labels.
   One cue stays one line of the proof, so a reader can still choose a sentence. The lines of a part stand as one block,
   as lines of verse do, and a wrapped cue hangs its second line by 1em. Space and the side label separate the parts. */
.transcript{--r-body:clamp(18px,calc(17.31px + .1783vw),20px);--r-caption:16px;--r-line:calc(var(--r-body)*1.5)}
.reading-heading{grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:48px;row-gap:8px;margin-bottom:calc(var(--r-line)*2)}
.reading-heading h2{grid-row:span 2}
.reading-heading p,.reading-heading button{font-size:var(--r-caption)}
.reading-heading button{grid-column:2;justify-self:start}
.transcript-section{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:48px;align-items:first baseline;padding:0 0 calc(var(--r-line)*1.5);border-top:0}
.transcript-section header{font-size:var(--r-caption);line-height:1.35}
.transcript-section h3{font-size:var(--r-caption);font-weight:650;line-height:1.35}
.transcript-section header time{display:block;margin-top:2px;font-variant-numeric:normal}
.transcript-paragraph{max-width:32em;font-size:var(--r-body);line-height:1.5}
.cue-paragraph+.cue-paragraph{margin-top:0}
.transcript-line{display:block;width:fit-content;max-width:100%;min-height:0;margin-left:-.2em;padding:0 .2em 0 1.2em;text-indent:-1em;border:0;font-size:inherit;line-height:inherit;text-align:left}
.transcript-line:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.transcript-line[aria-current=true]{background:var(--ink);color:var(--paper);text-decoration:none}
.transcript-line:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.transcript-download{margin-top:var(--r-line);font-size:var(--r-caption)}
@media(max-width:1000px){.reading-heading,.transcript-section{column-gap:24px}}
@media(max-width:760px){
 .reading-heading{margin-bottom:var(--r-line)}
 .transcript-section{display:block;padding:0 0 var(--r-line)}
 .transcript-section header{display:block;margin-bottom:4px}
 .transcript-section h3{display:inline}
 .transcript-section header time{display:inline;margin:0 0 0 10px}
 .transcript-paragraph{font-size:var(--r-body);line-height:1.5}
 .transcript-line{min-height:0;line-height:inherit;display:block;width:fit-content}
 .cue-paragraph{margin-bottom:0}
}
@media(hover:none){.transcript-line:hover{text-decoration:none}}
