:root {
  --paper: #efe3c8; --paper2: #e6d6b4; --ink: #1d1612; --ink2: #4a3d33; --red: #a4241b; --gold: #a9853b;
  --night: #070404; --prog-w: 430px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--ink); }
body { font-family: 'Libre Caslon Text', Georgia, serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html, body { height: 100%; }
#app { display: grid; grid-template-columns: minmax(0, 1fr) var(--prog-w); height: 100%; }

/* ---------------------------------------------------------------- the television picture */
#tvwrap { position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 45%, #1a0d0a 0%, #070404 70%); overflow: hidden; }
#tv { position: relative; aspect-ratio: 3 / 2; max-width: 100%; width: min(100%, calc((100dvh - 24px) * 1.5)); background: #050303; box-shadow: 0 0 0 1px rgba(255, 220, 170, .05), 0 30px 80px rgba(0, 0, 0, .6); cursor: default; }
body[data-view="bill"] #tv { cursor: pointer; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#tv .fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
body.no-gl #tv .fallback { display: block; }
body.no-gl #gl { display: none; }

#snd { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 236, 200, .35); background: rgba(20, 10, 6, .55); color: #f6e7c8; display: grid; place-items: center; cursor: pointer; z-index: 3; backdrop-filter: blur(3px); transition: background .2s, transform .2s; }
#snd:hover { background: rgba(60, 24, 14, .75); transform: scale(1.06); }
#snd:focus-visible { outline: 2px solid #f3c64b; outline-offset: 2px; }
#snd svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#snd .spk { fill: currentColor; stroke: none; }
#snd .w1, #snd .w2 { display: none; }
#snd.on .w1, #snd.on .w2 { display: block; }
#snd.on .x { display: none; }

#screen-slot { position: absolute; z-index: 2; }
#screen-slot .fit { position: absolute; inset: 0; margin: auto; aspect-ratio: var(--ar, 1.777); max-width: 100%; max-height: 100%; background: #000; }
#screen-slot .fit iframe, #screen-slot .fit img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #000; }
#screen-slot .close { position: absolute; right: -14px; top: -14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .4); background: #efe3c8; color: #1d1612; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
#screen-slot .close:focus-visible { outline: 2px solid #f3c64b; outline-offset: 2px; }

/* ---------------------------------------------------------------- the program */
#prog { position: relative; overflow-y: auto; overscroll-behavior: contain; background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .17 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(140% 80% at 50% 0%, rgba(255, 250, 235, .55), rgba(0, 0, 0, 0) 60%),
    linear-gradient(90deg, rgba(90, 60, 20, .16), rgba(0, 0, 0, 0) 14px);
  box-shadow: inset 12px 0 18px -14px rgba(0, 0, 0, .7); scrollbar-color: var(--gold) var(--paper2); }
#bill, #page { padding: 30px 30px 60px; }

.cover { text-align: center; padding: 10px 0 20px; border-bottom: 3px double var(--ink); margin-bottom: 18px; position: relative; }
.cover::before, .cover::after { content: '✶'; position: absolute; top: 50%; color: var(--red); font-size: 16px; }
.cover::before { left: 0; } .cover::after { right: 0; }
.name { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: clamp(44px, 4.6vw, 62px); line-height: .86; letter-spacing: .01em; color: var(--ink); text-shadow: 2px 2px 0 rgba(164, 36, 27, .55); }
.name span { display: block; }

#acts { list-style: none; margin: 0; padding: 0; }
#acts li + li { border-top: 1px solid rgba(29, 22, 18, .22); }
.act { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 2px; text-decoration: none; border-radius: 3px; transition: background .15s; }
.act:hover, .act:focus-visible { background: rgba(164, 36, 27, .08); outline: none; }
.act:focus-visible .t { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.act .ph { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #2a1712; border: 1px solid rgba(29, 22, 18, .6); box-shadow: 0 1px 0 rgba(255, 255, 255, .5); position: relative; }
.act .ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92) contrast(1.02) sepia(.08); }
.act .ph::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(0,0,0,0) 55%, rgba(40, 20, 5, .25)); mix-blend-mode: multiply; }
.act .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.act .t { font-family: 'Fraunces', Georgia, serif; font-weight: 700; font-variation-settings: 'SOFT' 50, 'opsz' 36; font-size: 21px; line-height: 1.05; }
.act .c { font-family: 'Archivo', system-ui, sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: .16em; color: var(--red); }

#about { margin-top: 26px; padding-top: 20px; border-top: 3px double var(--ink); font-size: 14px; line-height: 1.5; color: var(--ink2); }
.about-name { margin: 0; font-family: 'Fraunces', serif; font-weight: 800; font-size: 26px; color: var(--ink); font-variation-settings: 'SOFT' 100, 'opsz' 72; }
.about-title { margin: 2px 0 10px; font-family: 'Archivo', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.about-bio { margin: 0 0 10px; }
.about-contact { margin: 0 0 12px; font-size: 13px; }
.about-contact a { color: var(--ink); text-decoration-color: rgba(164, 36, 27, .5); }
.about-roles { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.about-roles li { padding: 3px 0; border-top: 1px dotted rgba(29, 22, 18, .3); }
.about-roles b { font-weight: 700; color: var(--ink); }

/* the act's page of the program */
.pnav { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(29, 22, 18, .3); }
.pnav .home { font-family: 'Fraunces', serif; font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: 17px; letter-spacing: .04em; text-decoration: none; color: var(--ink); }
.pnav .home::before { content: '‹ '; color: var(--red); }
.pnav .home:hover, .pnav .home:focus-visible { color: var(--red); }
.phead { margin-bottom: 14px; }
.pphoto { display: none; }
.ptitle { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: 42px; line-height: .95; text-shadow: 2px 2px 0 rgba(164, 36, 27, .45); }
.pclient { margin: 8px 0 0; font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .18em; color: var(--red); }
.pdesc { font-size: 15.5px; line-height: 1.55; margin: 0 0 12px; }
.pcredits { font-family: 'Archivo', sans-serif; font-size: 11.5px; line-height: 1.6; color: var(--ink2); margin: 0 0 18px; letter-spacing: .02em; }
.psec { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(29, 22, 18, .25); }
.ph2 { margin: 0 0 8px; font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.pp { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; }
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.films:has(> .film:only-child) { grid-template-columns: 1fr; }
.film { display: flex; flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.film .frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #140b08; overflow: hidden; border: 1px solid rgba(29, 22, 18, .7); }
.film .frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.film:hover .frame img { transform: scale(1.04); }
.film .glyph { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(239, 227, 200, .88); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.film .glyph::after { content: ''; position: absolute; left: 14px; top: 11px; border-left: 11px solid var(--red); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.film .cap { display: flex; justify-content: space-between; gap: 8px; font-family: 'Archivo', sans-serif; font-size: 12px; }
.film .cap b { font-weight: 600; }
.film .dur { color: var(--ink2); font-variant-numeric: tabular-nums; }
.prints { columns: 2; column-gap: 10px; }
.prints.full, .prints.hero { columns: 1; }
.print { display: block; width: 100%; padding: 0; margin: 0 0 10px; border: 1px solid rgba(29, 22, 18, .6); background: #fff; cursor: zoom-in; break-inside: avoid; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.print img { display: block; width: 100%; height: auto; }
.print:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.radio { list-style: none; margin: 0; padding: 0; }
.track { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto 3px; column-gap: 10px; row-gap: 4px; align-items: center; padding: 8px 0; border-bottom: 1px dotted rgba(29, 22, 18, .35); }
.track .play { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; position: relative; }
.track .play::after { content: ''; position: absolute; left: 12px; top: 9px; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.track.is-on .play { background: var(--red); border-color: var(--red); }
.track.is-on .play::after { left: 11px; top: 10px; width: 10px; height: 12px; border: 0; border-left: 3px solid var(--paper); border-right: 3px solid var(--paper); box-sizing: border-box; }
.track .play:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.track .tt { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; }
.track .dur { font-family: 'Archivo', sans-serif; font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.track .bar { grid-column: 2 / 4; height: 3px; background: rgba(29, 22, 18, .15); }
.track .bar i { display: block; height: 100%; width: 0; background: var(--red); }
.pnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 14px; border-top: 3px double var(--ink); font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px; }
.pnext a { text-decoration: none; }
.pnext a:hover, .pnext a:focus-visible { color: var(--red); }
.pnext .next { text-align: right; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 899px) {
  html, body { height: auto; }
  #app { display: block; height: auto; }
  #tvwrap { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: block; background: #050303; }
  #tv { width: 100%; box-shadow: 0 6px 16px rgba(0, 0, 0, .55); }
  #snd { width: 34px; height: 34px; right: 8px; top: 8px; }
  #prog { overflow: visible; min-height: 60vh; }
  #bill, #page { padding: 20px 16px 48px; }
  .name { font-size: 46px; }
  .act { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .act .t { font-size: 19px; }
  .ptitle { font-size: 36px; }
  #screen-slot .close { right: 4px; top: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
