/* Shared values for pages using the Stage design. Load after the base styles. */
:root[data-design="stage"] {
  --paper: #f7f6f4;
  --white: #fff;
  --ink: #27251f;
  --muted: #605d50;
  --red: #96372e;
  --hairline: #d2d2d2;
  --rail-rule: var(--hairline);
  --rule: #d7d3c6;
  --stage-backdrop: #232220;

  --font-display: Alegreya, Georgia, serif;
  --font-body: Inter, Arial, sans-serif;
  --font-meta: Overpass, Arial, sans-serif;
  --text-type: clamp(17px, 1.25vw, 19px);
  --lead-type: clamp(25px, 1.95vw, 34px);
  --section-title: clamp(39px, 3.1vw, 58px);
  --section-space: clamp(38px, 4.6vw, 82px);
  --pad: clamp(26px, 4.4vw, 80px);
  --rail: calc(1.17 * clamp(182px, 15vw, 225px));

  --header-signature: 170px;
  --header-nav-gap: 13px;
  --header-nav-type: clamp(16px, 1.22vw, 19px);
  --header-group-gap: clamp(36px, 5vh, 58px);
  --header-bar-height: 60px;
  --footer-signature: 150px;
  --footer-title-type: clamp(44px, 5.5vw, 86px);
  --footer-link-type: clamp(15px, 1.16vw, 18px);

  --poster-title-type: clamp(52px, 6.9cqi, 104px);
  --poster-image-height: clamp(145px, 18cqi, 250px);
  --ticket-max-width: 1200px;
  --ticket-columns: minmax(0, .76fr) minmax(0, 1.24fr);

}

@media (min-width: 761px) and (max-width: 1100px) {
  :root[data-design="stage"] { --rail: calc(1.17 * 168px); }
}
@media (max-width: 760px) {
  :root[data-design="stage"] {
    --rail: 0px;
    --pad: clamp(18px, 5.2vw, 36px);
  }
}

/* Keep a phrase together whenever it fits within the reading column. */
ks-phrase {
  display: inline-block;
  max-inline-size: 100%;
  overflow-wrap: break-word;
}

:is(h1,h2,h3,h4,h5,h6,.chapter-title,.ticket-title) ks-phrase { overflow-wrap: normal; }

/* Inline type inherits the reading block's lowercase height, including in serif leads.
   The shared rule must survive page styles that set the entire font shorthand. */
:where([data-design="stage"] :is(p, li, dt, dd, figcaption, td, th, blockquote)):has(:where(em, i, cite, dfn, var, .italic)) {
  font-size-adjust: from-font !important;
}

@layer stage-buttons {
  html[data-design="stage"] :is(button, input[type="submit"], input[type="button"], a.btn, a.button, a.action, a.registration-action, a.contact-action, a[role="button"]) {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: var(--white) !important;
    text-decoration: none !important;
  }
  html[data-design="stage"] :is(button, a.btn, a.button, a[role="button"]) :is(span, strong, small) { color: inherit !important; }
  html[data-design="stage"] :is(button, input[type="submit"], input[type="button"], a.btn, a.button, a.action, a.registration-action, a.contact-action, a[role="button"]):is(:hover, :focus-visible):not(:disabled) {
    background: var(--red) !important;
    border-color: var(--red) !important;
    color: var(--white) !important;
  }
}
