/* Shared navigation, focus, and progressive enhancement. */
:root { --rule: #b9a58a; --muted: #644f41; }
#main-content:focus { outline: none; }
.skip { top: 0; transform: translateY(-160%); }
.skip:focus { top: 1rem; transform: none; }
:where(a, button, summary, textarea):focus-visible {
  outline: 3px solid #245fa0;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff7e3;
}
.masthead :focus-visible, .cast :focus-visible, footer :focus-visible, .stage :focus-visible {
  outline-color: #fff1a3;
  box-shadow: 0 0 0 2px #302024;
}
.nav-main .in-section, .mobile-nav .in-section {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.footer-shell { flex-wrap: wrap; padding-block: 25px; }
.footer-links { flex-wrap: wrap; gap: 8px 20px; }
.footer-links a, .program-link { min-height: 32px; }
.footer-links a { font-size: 13px; }
.cue-tabs .scene-tab { display: inline-flex; align-items: center; min-height: 38px; }
.replay-button, .apron .program-link { min-height: 32px; }
.scene summary { min-height: 44px; }
.scene details .ink-link { margin-top: 14px; }
.crumbs { border-bottom: 1px solid #cab99c; color: #634d40; background: #eee3d0; }
.crumbs ol, .interior-shell {
  width: min(1168px, calc(100% - clamp(48px, 9vw, 156px)));
  margin-inline: auto;
}
.crumbs ol { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; list-style: none; padding: 7px 0; margin-block: 0; }
.crumbs li { display: flex; align-items: center; color: #48362e; font-size: .82rem; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-block-start: 1px solid; border-inline-end: 1px solid; transform: rotate(45deg); margin: 0 10px 0 5px; }
.crumbs a { display: inline-flex; align-items: center; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { font-weight: 600; }
.interior-shell { padding: 38px 0 clamp(42px, 6vw, 85px); }
.interior-shell > .folio { margin-bottom: clamp(30px,4vw,56px); }
.interior-shell > .folio, .author-bill .folio { font-size: .67rem; }
.lead-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(36px, 6vw, 100px); }
.lead-grid > *, .script-grid > *, .two-notes > * { min-width: 0; }
.display-title { font: 400 clamp(58px, 6.4vw, 103px)/.98 var(--serif); letter-spacing: -.04em; margin: 15px 0 18px; }
.display-title em, .program-note h2 em, .director-notes h2 em { color: var(--red); font-weight: 400; }
.author-bill .display-title em { color: var(--gold); }
.deck { font: 400 clamp(24px, 2.4vw, 39px)/1.2 var(--serif); color: var(--wine); }
.reading-copy > p:not(.section-id):not(.deck), .index-intro > p:not(.section-id):not(.deck),
.program-note > p:not(.section-id), .director-notes > p:not(.section-id):not(.field-note):not(.printed-line),
.guide-body p, .questions { font-size: 1rem; line-height: 1.7; color: #514237; max-width: 62ch; }
.reading-copy > p + p, .index-intro > p + p { margin-top: 14px; }
.author-bill .reading-copy > p:not(.section-id):not(.deck), .author-bill .deck { color: #f5e5d2; }
.author-bill .lead-grid { grid-template-columns: 1.05fr .95fr; }
.author-bill .production-still { justify-self: center; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 23px; margin-top: 22px; }
.solid-link, .ink-link { min-height: 32px; }
.solid-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 11px 17px; background: var(--wine); color: var(--cream); border: 1px solid var(--wine); border-radius: 2px; font: 600 .9rem/1.35 var(--sans); }
.solid-link:hover { background: #762b35; }
.solid-link svg, .page-tail svg { width: 16px; height: 16px; }
.page-actions .ink-link { margin-top: 0; }
.edition { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-block: 3px double var(--rule); padding: 20px 0; margin: 38px 0 0; }
.edition dt, .sheet-rule span, .scene-num, .script-role { font: 600 .72rem/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.edition dt { color: var(--muted); }
.edition dd { font: 400 clamp(23px, 2.15vw, 34px)/1.3 var(--serif); margin: 4px 0 0; }
.two-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,80px); padding-top: 34px; }
.program-note { border-top: 1px solid var(--rule); padding: 23px 0 0; }
.edition + .two-notes .program-note, .author-bill + .interior-shell .program-note { border-top: 0; }
.author-bill + .interior-shell .two-notes { padding-top: 0; }
.program-note h2, .director-notes h2, .guide-body h2 { font: 400 clamp(34px,3.5vw,55px)/1.04 var(--serif); letter-spacing: -.024em; margin: 10px 0 15px; }
.page-tail { margin-top: 44px; padding: 20px 0 0; border-top: 3px double var(--rule); display: flex; align-items: center; flex-wrap: wrap; gap: 9px 24px; }
.page-tail span { font-size: .82rem; color: var(--muted); }
.page-tail a, .source-note a { color: var(--wine); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.page-tail a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.index-intro { max-width: 840px; padding: 2px 0 30px; }
.index-intro .solid-link { margin-top: 6px; }
.scene-list { border-block: 3px double var(--rule); margin: 8px 0 15px; }
.scene-row { display: grid; grid-template-columns: clamp(70px,11vw,150px) 1fr 46px; gap: 20px; align-items: center; padding: 24px 12px; }
.scene-row + .scene-row { border-top: 1px solid var(--rule); }
.scene-row:hover { background: #eadeca; }
.scene-row h2 { font: 400 clamp(33px,3.1vw,48px)/1.05 var(--serif); letter-spacing: -.02em; }
.scene-row p { line-height: 1.5; color: #574237; margin-top: 6px; font-size: .95rem; }
.scene-num { color: var(--red); }
.scene-arrow { display: grid; place-items: center; border: 1px solid #9b7c64; border-radius: 50%; width: 39px; height: 39px; color: var(--wine); }
.source-note { color: var(--muted); font-size: .88rem; line-height: 1.6; border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 35px; }
.script-heading { max-width: 870px; }
.scene-setting { font: 400 clamp(18px,1.75vw,26px)/1.4 var(--serif); color: #4f3b33; max-width: 62ch; }
.scene-setting span { display: inline-block; margin-right: 8px; }
.script-grid { display: grid; grid-template-columns: 1.18fr .82fr; align-items: start; gap: clamp(30px,5vw,86px); margin-top: 30px; }
.script-sheet { background: #fff9ed; padding: clamp(20px,3.3vw,52px); border: 1px solid #b79d7c; box-shadow: 3px 3px 0 #d5bea0, 6px 6px 0 #eee1cb; }
.sheet-rule { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px double var(--rule); padding-bottom: 14px; }
.sheet-rule h2 { font: 400 clamp(25px,2.4vw,34px)/1.1 var(--serif); }
.sheet-rule span { color: #6a5140; }
.script-role { color: var(--wine); margin-block: 24px 8px; }
.dialogue, .direction, .reply p { font: 400 clamp(23px,2.1vw,33px)/1.23 var(--serif); }
.direction { font-style: italic; color: #6c584b; }
.reply { margin-top: 13px; border-top: 1px dashed #ad9377; }
.reply summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; min-height: 44px; font-weight: 600; color: var(--wine); }
.reply summary::-webkit-details-marker { display: none; }
.reply summary span { font-size: 22px; }
.reply[open] summary span { transform: rotate(45deg); }
.reply p { color: #52252d; padding: 2px 0 9px; }
.director-notes { padding: 12px 0; }
.director-notes label { display: block; font: 600 1rem/1.5 var(--sans); margin-top: 26px; color: var(--ink); }
.director-notes label span { font-weight: 400; color: var(--muted); }
.director-notes #line-prompt { font-size: .9rem; margin: 4px 0 10px; }
textarea { display: block; resize: vertical; width: 100%; font: 400 1rem/1.55 var(--sans); background: #fffaef; color: var(--ink); border: 1px solid #8c745f; border-radius: 2px; padding: 10px 12px; }
.field-note { font-size: .8rem; line-height: 1.5; color: var(--muted); margin-top: 7px; }
.printed-line { display: none; }
.print-action { border: 0; border-bottom: 1px solid currentColor; background: none; border-radius: 0; }
.guide { max-width: 960px; }
.guide-body { padding-top: 0; }
.guide-body section { border-top: 1px solid var(--rule); padding: 20px 0 27px; }
.questions { padding-left: 1.8rem; margin: 0; }
.questions li { padding-bottom: 9px; padding-left: .45rem; }
.questions li::marker { color: var(--wine); font-weight: 700; }
@media(max-width: 850px) {
  .lead-grid, .author-bill .lead-grid { gap: 30px; }
  .footer-shell { gap: 15px 24px; }
}
@media(max-width: 740px) {
  .crumbs ol, .interior-shell { width: calc(100% - 40px); }
  .interior-shell { padding-top: 25px; }
  .lead-grid, .author-bill .lead-grid, .two-notes, .script-grid { grid-template-columns: 1fr; }
  .book-bill .reading-copy { grid-row: 1; }
  .author-bill .production-still { justify-self: start; }
  .lead-grid .production-still, .lead-grid .book-display { width: 100%; max-width: 530px; }
  .edition { grid-template-columns: 1fr 1fr; margin-top: 25px; }
  .index-intro { padding-bottom: 25px; }
  .scene-row { grid-template-columns: 1fr 36px; gap: 4px 12px; padding: 19px 3px; }
  .scene-num { grid-column: 1; }
  .scene-row > div { grid-column: 1; }.scene-arrow { grid-area: 1/2/3/3; align-self: center; width: 33px; height: 33px; }
  .script-grid { gap: 22px; }
  .menu-toggle { width: 40px; min-height: 44px; }
  .box-office { min-height: 37px; }
  .footer-shell { align-items: flex-start; padding-block: 24px; }
  html:not(.menu-ready) .nav-shell { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 4px 12px; }
  html:not(.menu-ready) .nav-main { display: flex; order: 3; flex-basis: 100%; gap: 16px; flex-wrap: wrap; }
}
@media(max-width: 460px) {
  .interior-shell, .crumbs ol { width: calc(100% - 32px); }
  .display-title { font-size: clamp(47px, 13vw, 65px); }
  .script-sheet { padding: 16px; }
  .page-tail { flex-direction: column; align-items: flex-start; gap: 0; }
  .box-office { padding-inline: 8px; }
  .nav-shell { gap: 5px; }
}
@media(forced-colors: active) {
  .ticket-button, .solid-link, .replay-button, .scene-tab { border: 2px solid ButtonText; mask: none; }
  .ticket-button:focus-visible { outline: 3px solid Highlight; }
  .scene-tab[aria-selected="true"], .nav-main .in-section { border-bottom: 3px solid Highlight; }
}
@media print {
  @page { margin: 14mm; }
  html, body, .paper, .cast { background: white !important; color: black !important; }
  .masthead, footer, .skip, .crumbs, [data-print], .page-actions, .source-note, .page-tail, .guide .ink-link, .field-note, .script-page textarea, .reply summary span { display: none !important; }
  .interior-shell { width: 100%; margin: 0; padding: 0; }
  .display-title { font-size: 38pt; margin: 8pt 0; }
  .director-notes h2, .guide-body h2 { font-size: 22pt; }
  .guide .deck, .dialogue, .direction, .reply p { font-size: 15pt; }
  .guide .index-intro { padding-bottom: 10pt; }
  .guide-body section { padding: 6pt 0 8pt; }
  .guide p, .guide ol, .director-notes p { font-size: 10.5pt !important; line-height: 1.4 !important; }
  .script-grid { grid-template-columns: 1fr; gap: 12pt; }
  .script-sheet { box-shadow: none; background: white; padding: 12pt; }
  .script-role { margin-top: 10pt; }
  .printed-line { display: block; min-height: 2.6em; border-bottom: 1px solid black; white-space: pre-wrap; overflow-wrap: anywhere; }
  .guide-body section, .reply, .director-notes { break-inside: avoid; }
  .interior-shell > .folio { margin-bottom: 15pt; }
}

/* The playbill insert and the three-stage feature share the printed program's rules and type. */
.vision-insert {
  margin-top: clamp(36px, 5vw, 74px);
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  background: #fcf6e8 url(assets/paper-grain.png);
  border-block: 3px double #94795f;
}
.insert-story, .insert-index { padding: clamp(23px, 3.5vw, 48px); }
.insert-story h2, .vision-close h2, .theater-layout h2 {
  margin: 14px 0;
  font: 400 clamp(41px, 4.2vw, 66px)/1.02 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.insert-story > p:not(.section-id), .vision-close p, .vision-intro p, .vision-stage > p:last-child {
  color: #514237;
  font-size: 1rem;
  line-height: 1.68;
  max-width: 60ch;
}
.insert-story .ink-link { margin-top: 14px; }
.insert-index { border-inline-start: 1px dashed #ab9070; align-self: stretch; align-content: center; }
.insert-index h3 { font: italic 400 1.55rem/1.25 var(--serif); color: var(--wine); margin: 0 0 10px; }
.insert-index ol { list-style: none; margin: 0; padding: 0; }
.insert-index li { border-block-start: 1px solid #c8b698; }
.insert-index a { display: grid; grid-template-columns: 25px 1fr 15px; align-items: center; gap: 10px; padding-block: 12px; min-height: 46px; font-size: .94rem; font-weight: 600; }
.insert-index a span { font: 400 1.1rem var(--serif); color: var(--wine); }
.insert-index svg { width: 15px; height: 15px; }
.insert-index a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.vision-opening, .theater-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 95px); align-items: center; }
.vision-opening { padding-bottom: clamp(27px, 4vw, 60px); }
.vision-opening .display-title { max-width: 10ch; margin-block: 16px 23px; }
.vision-opening .display-title em { display: block; }
.vision-quote blockquote { margin: 0; }
.vision-quote figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }
.vision-lead, .theater-deck { font: 400 clamp(23px, 2.3vw, 34px)/1.22 var(--serif); max-width: 30ch; }
.vision-lead { color: var(--wine); }
.vision-intro p + p, .theater-story p + p { margin-top: .8em; }
.vision-stages { border-block: 3px double #94795f; }
.vision-stage { display: grid; grid-template-columns: 70px .86fr 1.14fr; align-items: start; gap: clamp(18px, 3.6vw, 55px); padding-block: clamp(25px, 3.4vw, 47px); }
.vision-stage + .vision-stage { border-block-start: 1px solid var(--rule); }
.stage-number { font: 600 .68rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--red); }
.stage-number span { display: block; font: 400 clamp(36px, 4.4vw, 66px)/1.05 var(--serif); letter-spacing: -.04em; }
.vision-stage h2 { font: 400 clamp(33px, 3.3vw, 53px)/1.03 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.theater-vision .interior-shell { padding-bottom: clamp(38px, 5vw, 78px); }
.theater-layout { align-items: start; }
.theater-layout h2 { font-size: clamp(50px, 5.8vw, 88px); margin: 0 0 18px; }
.theater-layout em { color: var(--gold); }
.theater-deck { color: #f7e9d4; }
.theater-story p { color: #f3e6d8; line-height: 1.7; font-size: 1rem; max-width: 58ch; }
.theater-story h3 { color: var(--gold); border-top: 1px solid #88684f; padding-top: 20px; margin: 20px 0 9px; font: 400 clamp(26px, 2.4vw, 38px)/1.1 var(--serif); }
.vision-close h2 { margin-top: 0; }
.weekly-questions { margin-top: 12px; }
:is(.vision-stage, .theater-vision, #three-stages) { scroll-margin-top: 20px; }
@media (min-width: 741px) and (max-width: 900px) {
  .nav-main { gap: 14px; }
  .nav-shell { gap: 12px; }
}
@media (max-width: 740px) {
  .vision-insert, .vision-opening, .theater-layout { grid-template-columns: 1fr; }
  .insert-index { border-inline-start: 0; border-block-start: 1px dashed #ab9070; }
  .vision-opening .display-title { max-width: none; }
  .vision-stage { grid-template-columns: 42px 1fr; column-gap: 16px; row-gap: 14px; }
  .vision-stage > p:last-child { grid-column: 2; }
  .stage-number span { font-size: 31px; }
  .vision-page .folio, .theater-vision .folio { font-size: .6rem; }
}
@media print {
  .vision-insert, .vision-stages, .theater-vision { background: white; }
  .vision-stage, .theater-layout { break-inside: avoid; }
  .vision-stage { padding-block: 12pt; }
  .theater-vision :is(p, h2, h3, em) { color: black; }
  .vision-close { display: none; }
}
