/* White paper, dark stage. The performance carries the colour. */
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #141414;
  --stage: #101010;
  --panel: #f2f2f2;
  --muted: #575757;
  --line: #d7d7d7;
  --control-line: #777;
  --link: #191919;
  --red: #e42b20;
  --blue: #173fc2;
  --yellow: #f2d514;
}
body { background: var(--paper); color: var(--ink); }
.mast { border-color: #c9c9c9; }
.mast img { filter: none; }
h1 { color: var(--ink); }
.hero h1 em { color: #262626; }
.poster { border: 1px solid var(--line); background: white; padding: clamp(6px,1.5vw,16px); }
.skip:focus { color: #fff; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px; box-shadow: 0 0 0 2px white;
}
.journal-intro, footer {
  background: var(--stage);
  color: white;
}
.journal-intro .light-link { color: #f1f1f1; }
.journal-intro .favorite-link { color: var(--yellow); }
.journal-intro .intro-links { margin-top: 1rem; }
.intro-inner.with-photograph {
  grid-template-columns: minmax(180px,.8fr) minmax(0,1.6fr);
  gap: clamp(20px,5vw,60px);
  padding-block: clamp(26px,4vw,44px);
}
.with-photograph .journal { margin-top: .9rem; max-width: 42ch; }
.with-photograph h2 { font-size: clamp(23px,2.5vw,32px); }
.stage-panorama { min-width: 0; }
.stage-panorama a { display: block; background: #000; cursor: zoom-in; }
.stage-panorama img { width: 100%; height: auto; display: block; }
.stage-panorama figcaption { margin-top: .38rem; color: #c7c7c7; text-align: right; font-size: .78rem; }
.vocabulary-bar { margin: 1.1rem 0 .4rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: space-between; }
.vocabulary-bar h3 { font-size: 1rem; font-weight: 690; }
.vocabulary-bar [lang="en"], .word-entry .word-en, .word-entry .meaning-en { color: #5f5f5f; font-weight: 350; }
.vocabulary-bar [lang="en"] { font-size: .82rem; margin-left: .45rem; }
.vocabulary-toggle { border: 1px solid #898989; background: white; color: #222; font-size: .82rem; padding: .4rem .9rem; border-radius: 100px; }
.vocabulary-toggle:hover, .vocabulary-toggle[aria-expanded="true"] { color: #fff; background: #171717; border-color: #171717; }
.act-copy { min-width: 0; }
.act-info { min-width: 0; }
.season-photos { display: grid; gap: clamp(8px,1.2vw,14px); align-items: start; margin-top: .9rem; }
.season-photos.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.portrait-still { width: min(100%, 11.75rem); margin: 0; }
.portrait-still a { display: block; background: #080808; cursor: zoom-in; }
.portrait-still>a { position: relative; }
.enlarge-hint { position: absolute; bottom: .42rem; right: .42rem; color: white; background: rgb(0 0 0 / .78); font-size: .75rem; font-weight: 550; padding: .1rem .42rem; opacity: 0; }
.portrait-still>a:hover .enlarge-hint,.portrait-still>a:focus-visible .enlarge-hint { opacity: 1; }
@media (hover: none) { .enlarge-hint { opacity: 1; } }
.portrait-still img {
  width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover;
  object-position: var(--focal-x,50%) 50%; display: block;
}
.shot-jinyeon { --focal-x: 48%; }
.shot-bara { --focal-x: 49%; }
.shot-janggu { --focal-x: 44.3%; }
.shot-ogomu { --focal-x: 38%; }
.shot-finale { --focal-x: 49.5%; }
.portrait-still figcaption,.detail-still figcaption { margin-top: .4rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.portrait-still figcaption a { display: inline; background: none; color: var(--ink); font-weight: 620; cursor: pointer; }
.detail-still { max-width: 18rem; margin-top: .75rem; }
.detail-still a { display: block; line-height: 0; background: #060616; cursor: zoom-in; }
.detail-still img { display: block; width: 100%; height: auto; }
.detail-still.shot-seonbi>a { aspect-ratio: 1528 / 1163; overflow: hidden; }
.detail-still.shot-seonbi img { height: 100%; object-fit: cover; object-position: center top; }
.scene-image-link { white-space: nowrap; }
.photo-link { font-size: .78rem; }
.act .listening { border-color: #a4a4a4; }
.scenes .favorite-scene {
  background: #f5f5f5; color: var(--ink); border-left-color: var(--yellow);
}
.favorite-scene h4 { color: var(--ink); }
.favorite-scene .frame-credit { color: var(--muted); }
.ogomu-archive { margin-top: .7rem; }
.ogomu-archive summary { font-size: .84rem; color: var(--ink); cursor: pointer; }
.ogomu-archive figure>a { display: block; cursor: zoom-in; }
.ogomu-archive .favorite-photos img { aspect-ratio: 2.2; }
.edition-compare h3 { margin-bottom: .7rem; }
.edition-compare dl { margin: .85rem 0 0; }
.edition-compare dl>div { border-top: 1px solid var(--line); padding: .55rem 0; display: grid; grid-template-columns: 4.4em 1fr; gap: .7rem; }
.edition-compare dt { font-weight: 700; }
.edition-compare dd { margin: 0; }
.edition-compare .compare-sources { font-size: .81rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.history-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.history-scroll .history { min-width: max-content; width: 100%; }
.history-scroll .history :is(th,td) { white-space: nowrap; max-width: none; padding-block: .56rem; }
.history-scroll .histnote, .history-scroll .status, .history-scroll .visit-date { display: inline; white-space: nowrap; }
.history-scroll .histnote { margin-left: .62rem; font-size: .77rem; color: #626262; font-weight: 410; }
.history-scroll .visit-date { margin-left: .38rem; }
#history-filters button[aria-pressed=true] { background: #171717; color: white; }
.modanote { background: #f5f5f5; }
#photo-dialog { color: #111; background: #fff; border-color: #888; }
#photo-dialog::backdrop { background: rgb(0 0 0 / .86); }
.close-dialog { color: #171717; background: #fff; }
.lightbox-frame img { display: block; max-width: 100%; max-height: 73vh; height: auto; width: auto; margin-inline: auto; }
#photo-dialog[data-framing="blue"] .lightbox-frame { width: min(87vw,94vh,1120px); aspect-ratio: 1528 / 1163; overflow: hidden; }
#photo-dialog[data-framing="blue"] .lightbox-frame img { max-height: none; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.foot p { color: #eee; }
.foot img { filter: invert(1); }
@media(max-width:690px) {
  .intro-inner.with-photograph { grid-template-columns: 1fr; gap: 16px; }
  .with-photograph .journal { max-width: none; }
  .with-photograph h2 br { display: none; }
  .act-info:has(.season-photos) { display: grid; grid-template-columns: minmax(6.25rem,8.5rem) minmax(0,1fr); align-content: start; align-items: start; gap: .35rem 1.05rem; }
  .act-info:has(.season-photos) .season-photos { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .act-info:has(.season-photos) .act-title, .act-info:has(.season-photos)>.photo-link, .act-info:has(.season-photos)>.stage-terms { grid-column: 2; }
  .act-info:has(.season-photos.two) { display: block; }
  .act-info .season-photos.two { margin-top: .75rem; grid-template-columns: repeat(2,minmax(0,8.5rem)); }
  .act-info:has(.season-photos) .act-title { display: block; }
  .act-info:has(.season-photos) .act-title h3 small { display: block; margin: 0; }
  .history-scroll .history td, .history-scroll .history th { padding-inline: .48rem; }
  .detail-still { max-width: 15rem; }
}
@media print {
  .vocabulary-toggle { display: none; }
  .journal-intro,footer,.modanote { background: #fff; color: #111; }
  .foot p,.journal-intro .light-link,.journal-intro .favorite-link { color: #222; }
  .foot img { filter: none; }
  .history-scroll { overflow: visible; }
  .history-scroll .history { min-width: 0; }
  .history-scroll .histnote { font-size: .65rem; }
}
