/* Full Cast Studio — playbill direction.
   Two inks on paper. Type does the work: no cards, no icons, no gradients. */

:root {
  --paper: #efeadd;
  --ink: #15120f;
  --red: #c4281b;        /* on paper: 4.8:1 */
  --red-on-ink: #f0563f; /* on ink: 5.4:1 */
  --gutter: clamp(16px, 4vw, 48px);
  --sheet: min(1200px, 100% - 2 * var(--gutter));
  --gothic: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --fat: "Abril Fatface", "Bodoni 72", "Didot", Georgia, serif;
  --text: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--text);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { list-style: none; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
em { font-style: italic; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
}
.skip:focus { top: .5rem; z-index: 2; }

.gothic { font-family: var(--gothic); text-transform: uppercase; }
.fat { font-family: var(--fat); text-transform: uppercase; }
.red { color: var(--red); }

/* ---------- Poster lines that span the column ---------- */
.lockup { container-type: inline-size; display: block; }
.lockup > * + * { margin-top: 2.4cqi; }
.fit {
  display: block;
  white-space: nowrap;
  text-align: center;
  /* --s is tuned per line so it sits just inside the column with no script */
  font-size: calc(var(--s) * 1cqi * var(--k, 1));
  line-height: .86;
  text-box: trim-both cap alphabetic;
}
@supports (text-fit: grow per-line-all) {
  .fit { text-fit: grow per-line-all 130%; }
}
@supports not (text-fit: grow per-line-all) {
  .fit { width: fit-content; margin-inline: auto; }
}

/* ---------- Masthead ---------- */
.masthead {
  width: var(--sheet); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .4rem 2rem;
  padding: 1.1rem 0 .9rem;
  border-bottom: 6px double var(--ink);
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .09em;
  font-size: .95rem;
}
.masthead a { text-decoration: none; padding: .35rem 0; display: inline-block; }
.masthead a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .25em; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.imprint { font-size: 1.15rem; }

/* ---------- The bill (hero) ---------- */
.bill { width: var(--sheet); margin: 0 auto; padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 6rem); }

.presents, .aside {
  display: flex; align-items: center; gap: 1.2em;
  font-style: italic;
}
.presents::before, .presents::after,
.aside::before, .aside::after { content: ""; flex: 1; border-top: 2px solid var(--ink); }
.presents { font-size: clamp(1rem, 1.6vw, 1.35rem); margin-bottom: clamp(1.2rem, 3vw, 2.4rem); }
.aside { font-family: var(--text); font-size: clamp(1.15rem, 3.4cqi, 2.6rem); line-height: 1.1; text-transform: none; }
.aside em { padding-bottom: .12em; }

.bill-foot {
  margin-top: clamp(2rem, 4.5vw, 3.6rem);
  border-top: 6px double var(--ink);
  display: grid; grid-template-columns: 5fr 6fr;
}
.pitch { padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3.5vw, 3rem) 0 0; border-right: 2px solid var(--ink); }
.players { padding: clamp(1.5rem, 3vw, 2.4rem) 0 0 clamp(1.5rem, 3.5vw, 3rem); }
.lede { font-size: clamp(1.125rem, 1.55vw, 1.35rem); line-height: 1.55; }
.lede::first-letter {
  font-family: var(--fat); font-size: 3.5em; line-height: .8;
  float: left; padding: .08em .1em 0 0; color: var(--red);
}
.actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }

.ticket {
  position: relative; display: inline-block;
  background: var(--ink); color: var(--paper);
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .07em;
  font-size: 1.1rem; line-height: 1.2;
  padding: 1rem 1.9rem; text-decoration: none;
}
.ticket::before, .ticket::after {          /* punched ticket notches */
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); transform: translateY(-50%);
}
.ticket::before { left: -8px; }
.ticket::after { right: -8px; }
.ticket:hover { background: var(--red); }
.plain { font-style: italic; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.plain::after { content: " \2193"; font-style: normal; }
.plain:hover { color: var(--red); }

.players-title {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .09em;
  font-size: .95rem; margin-bottom: .7rem;
}
.players dl > div {
  display: flex; align-items: baseline; gap: .6em;
  padding: .5rem 0;
}
.players dl > div::before {               /* dot leader */
  content: ""; order: 1; flex: 1; min-width: 1.2em;
  border-bottom: 2px dotted var(--ink); transform: translateY(-.25em);
}
.players dt {
  order: 0; flex: none;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.15;
}
.players dd { order: 2; font-style: italic; text-align: right; max-width: 58%; line-height: 1.3; }

/* ---------- Section banners ---------- */
.banner {
  width: var(--sheet); margin: 0 auto;
  border-block: 6px double var(--ink);
  padding: clamp(1.1rem, 2.4vw, 1.8rem) 0 clamp(1rem, 2.2vw, 1.6rem);
  text-align: center;
}
.banner h2 {
  font-family: var(--gothic); text-transform: uppercase;
  font-size: clamp(2.1rem, 6.2vw, 5rem); line-height: 1; letter-spacing: .005em;
  text-wrap: balance;
}
.banner h2 em {
  display: block; margin-top: .45em;
  font-family: var(--text); text-transform: none; letter-spacing: 0;
  font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.25;
}

/* ---------- Now showing ---------- */
.showing { padding-bottom: clamp(3rem, 7vw, 6rem); }
.screen { width: var(--sheet); margin: clamp(1.6rem, 4vw, 3rem) auto 0; }
.screen video {
  display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink);
  border: 2px solid var(--ink); outline: 2px solid var(--ink); outline-offset: 5px;
}
.screen .placeholder {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden;
  border: 2px solid var(--ink); outline: 2px solid var(--ink); outline-offset: 5px;
}
.screen .placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.7); }
.screen .soon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg);
  background: var(--paper); color: var(--red); border: 3px solid var(--red);
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(1.4rem, 5vw, 3.2rem); line-height: 1; padding: .35em .7em; white-space: nowrap;
}
.screen figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: .7rem; border-top: 2px solid var(--ink);
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .09em; font-size: .9rem;
}
/* The sister-site line: a billing line under the colophon, italic aside plus a red gothic call. */
.colophon .elsewhere {
  flex-basis: 100%; margin-top: .5rem; padding-top: .8rem;
  border-top: 1px solid var(--ink);
  text-align: center;
}
.colophon .elsewhere em {
  font-family: var(--text); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.05rem;
}
.colophon .elsewhere a {
  color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .22em;
}
.colophon .elsewhere a:hover { color: var(--ink); }
.screen figcaption b { font-family: var(--fat); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; color: var(--red); }

/* ---------- The five acts ---------- */
.acts ol { width: var(--sheet); margin: 0 auto; }
.acts li {
  display: grid; grid-template-columns: minmax(150px, 2fr) 5fr 5fr;
  column-gap: clamp(1.5rem, 3vw, 3rem); align-items: start;
  padding: clamp(1.6rem, 3.4vw, 2.8rem) 0;
  border-bottom: 2px solid var(--ink);
}
.acts li:last-child { border-bottom: 0; }
.act { display: flex; flex-direction: column; line-height: 1; }
.act span {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem;
}
.act b {
  font-family: var(--fat); font-weight: 400; color: var(--red);
  font-size: clamp(4rem, 8vw, 7rem); line-height: .95; margin-top: .08em;
}
.acts h3 {
  font-family: var(--gothic); text-transform: uppercase;
  font-size: clamp(1.9rem, 3.7vw, 3.3rem); line-height: 1.04; text-wrap: balance;
  padding-top: .1em;
}
.acts li > p:last-child { font-size: 1.125rem; padding-top: .55rem; max-width: 34em; }

/* ---------- Extras ---------- */
.extras { padding-top: clamp(3rem, 7vw, 6rem); }
.standfirst {
  width: var(--sheet); max-width: 40em; margin: clamp(1.4rem, 3vw, 2.2rem) auto 0;
  text-align: center; font-style: italic; font-size: 1.15rem;
}
.attractions { width: var(--sheet); margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 4rem); text-align: center; }
.attractions li { padding: clamp(1.6rem, 3.5vw, 2.8rem) 0; }
.attractions li + li::before {
  content: ""; display: block; width: 7rem; margin: 0 auto clamp(3.2rem, 7vw, 5.6rem);
  border-top: 6px double var(--ink);
}
.attractions h3 { font-size: clamp(2.5rem, 8.2vw, 6.6rem); line-height: .98; text-wrap: balance; }
.attractions h3.fat { font-size: clamp(3.4rem, 12vw, 9.5rem); color: var(--red); line-height: .9; }
.attractions p { max-width: 33em; margin: 1.1rem auto 0; font-size: 1.125rem; }

/* ---------- Is my book a fit ---------- */
.casting { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 6rem); }
.verdicts { width: var(--sheet); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.verdict { padding: clamp(1.8rem, 4vw, 3.2rem) 0; }
.verdict.yes { padding-right: clamp(1.5rem, 4vw, 3.5rem); border-right: 2px solid var(--ink); }
.verdict.no { padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.verdict h3 {
  font-family: var(--gothic); text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.9rem); line-height: 1.02; margin-bottom: 1.2rem; text-wrap: balance;
}
@supports (-webkit-text-stroke: 1px black) {
  .verdict.no h3 { color: var(--paper); -webkit-text-stroke: clamp(2px, .28vw, 3.5px) var(--ink); paint-order: stroke fill; letter-spacing: .07em; }
}
.verdict li {
  position: relative; padding: .7rem 0 .7rem 2.4rem; font-size: 1.125rem;
  border-top: 1px solid var(--ink);
}
.verdict li::before {
  position: absolute; left: 0; top: .2rem;
  font-family: var(--gothic); font-size: 2.6rem; line-height: 1;
}
.verdict.yes li::before { content: "+"; color: var(--red); }
.verdict.no li::before { content: "\2013"; }
.verdict.no li.possible::before { content: "+"; color: var(--red); }

.fit-note { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- Contact ---------- */
.door {
  width: var(--sheet); margin: 0 auto; text-align: center;
  border-top: 6px double var(--ink);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.door h2 { font-family: var(--fat); font-size: clamp(2.3rem, 6vw, 5rem); line-height: 1.02; text-wrap: balance; }
.door > p { max-width: 34em; margin: 1.4rem auto 0; font-size: 1.15rem; }

/* ---------- Colophon ---------- */
.colophon {
  width: var(--sheet); margin: 0 auto; padding: 1.2rem 0 2.4rem;
  border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 2rem;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .09em; font-size: .9rem;
}

/* ---------- Narrow sheets ---------- */
@media (max-width: 760px) {
  .masthead { justify-content: center; text-align: center; }
  .masthead nav { justify-content: center; gap: 0 1.1rem; font-size: .85rem; }
  .imprint { width: 100%; }

  .bill-foot { grid-template-columns: 1fr; }
  .pitch { padding-right: 0; border-right: 0; padding-bottom: 2rem; border-bottom: 2px solid var(--ink); }
  .players { padding-left: 0; }
  .ticket { width: 100%; text-align: center; }

  .acts li { grid-template-columns: 1fr; row-gap: .5rem; }
  .act { flex-direction: row; align-items: baseline; gap: .6rem; }
  .act b { font-size: 3.2rem; margin-top: 0; }
  .acts li > p:last-child { padding-top: .2rem; }


  .verdicts { grid-template-columns: 1fr; }
  .verdict.yes { padding-right: 0; border-right: 0; border-bottom: 6px double var(--ink); }
  .verdict.no { padding-left: 0; }

  .colophon { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .players dl > div { display: block; padding: .6rem 0; border-top: 1px solid var(--ink); }
  .players dl > div::before { content: none; }
  .players dd { text-align: left; max-width: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .ticket { transition: color .15s, background-color .15s, border-color .15s; }
}

/* ---------- Enquiry form ---------- */
.enquiry {
  max-width: 46rem; margin: clamp(2rem, 5vw, 3.2rem) auto 0; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 2rem;
  border: 2px solid var(--ink); outline: 2px solid var(--ink); outline-offset: 5px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.enquiry .wide, .enquiry .send { grid-column: 1 / -1; }
.enquiry label {
  display: block; margin-bottom: .35rem;
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem;
}
.enquiry label span { font-family: var(--text); text-transform: none; letter-spacing: 0; font-style: italic; font-size: .95rem; }
.enquiry input, .enquiry textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: .4rem 0;
}
.enquiry textarea { border: 2px solid var(--ink); padding: .5rem .6rem; resize: vertical; }
.enquiry input::placeholder { color: #6b6358; font-style: italic; }
.enquiry input[type="file"] { border-bottom: 0; padding: .3rem 0; }
.enquiry input[type="file"]::file-selector-button {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .07em;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: .45rem .9rem; margin-right: 1rem; cursor: pointer;
}
.enquiry input:focus-visible, .enquiry textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.enquiry .note { margin-top: .4rem; font-style: italic; font-size: .95rem; }
.enquiry select {
  width: 100%; font: inherit; color: var(--ink); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: .4rem 1.6rem .4rem 0; appearance: none; cursor: pointer;
  background: transparent no-repeat;                         /* a drawn caret, so every browser matches the rules */
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 11px) 55%, calc(100% - 5px) 55%; background-size: 6px 6px;
}
.enquiry select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
/* Where readers can buy it: the link and the month stack in one cell, which keeps the height of the taller,
   so ticking "Not published yet" swaps them with no layout shift. The hidden one is out of the tab order
   and the accessibility tree (visibility), and disabled, so the browser doesn't validate it. */
.enquiry .swap { display: grid; }
.enquiry .swap > .pane { grid-area: 1 / 1; min-width: 0; }
.enquiry .swap > .pane[hidden] { display: block; visibility: hidden; }
.enquiry .tick {
  display: inline-flex; align-items: center; gap: .6rem; margin: .8rem 0 0; cursor: pointer;
  font-family: var(--text); text-transform: none; letter-spacing: 0; font-size: 1rem;
}
.enquiry .tick input {
  width: 1.15rem; height: 1.15rem; margin: 0; flex: none; padding: 0; border: 0; accent-color: var(--red); cursor: pointer;
}
.enquiry .send { text-align: center; margin-top: .4rem; }
.enquiry button { border: 0; cursor: pointer; font-size: 1.1rem; }
@media (max-width: 640px) { .enquiry { grid-template-columns: 1fr; } }

/* Form states (enquiry.js) and honeypot */
.enquiry .hp {                              /* honeypot: off-screen, not announced */
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
.enquiry > noscript { grid-column: 1 / -1; }  /* the JavaScript note spans the form */
.enquiry .status { grid-column: 1 / -1; text-align: center; font-size: 1.05rem; }
.enquiry .status:empty { display: none; }
.enquiry .status[data-state="sending"] { font-style: italic; }
.enquiry .status[data-state="error"] {
  color: var(--red); font-weight: 700;
  border-block: 2px solid var(--red); padding: .7rem .4rem;
}
.enquiry .status[data-state="success"] {
  font-family: var(--fat); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25;
  border-block: 6px double var(--ink); padding: 1rem .4rem;
}
.enquiry .status[data-state="info"] { font-style: italic; }
.enquiry .status .suggest {
  font-family: var(--gothic); text-transform: uppercase; letter-spacing: .07em; font-size: .95rem; font-weight: 400;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: .35rem .8rem; margin-left: .4rem; cursor: pointer;
}
.enquiry .status .suggest:hover, .enquiry .status .suggest:focus-visible { background: var(--ink); color: var(--paper); }
.enquiry [aria-invalid="true"] { border-color: var(--red); }
.enquiry input[type="file"][aria-invalid="true"]::file-selector-button { border-color: var(--red); color: var(--red); }
.enquiry button:disabled { cursor: progress; background: #4a433b; }
.enquiry button:disabled:hover { background: #4a433b; }
.enquiry[aria-busy="true"] input, .enquiry[aria-busy="true"] textarea, .enquiry[aria-busy="true"] select { opacity: .7; }

/* Pages the Worker renders: confirm, confirmed, link expired, needs JavaScript */
.notice { border-top: 0; }
.notice p { max-width: 34em; margin: 1.4rem auto 0; font-size: 1.15rem; }
.notice p[role="alert"] { color: var(--red); font-weight: 700; }
.notice .actions-center { margin-top: 2.2rem; }
.notice .confirm button { border: 0; cursor: pointer; font-size: 1.1rem; }

/* ---------- Plain pages (the privacy notice) ---------- */
.policy { width: min(40em, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 2.4rem 0 3.2rem; }
.policy h1 { font-family: var(--fat); text-transform: uppercase; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; margin-bottom: 1.4rem; }
.policy h2 { font-family: var(--gothic); text-transform: uppercase; letter-spacing: .06em; font-size: 1.25rem; margin: 2rem 0 .6rem; }
.policy p + p { margin-top: .9rem; }
.policy a { color: var(--red); text-underline-offset: .2em; }
.colophon .legal a { text-decoration: none; }
.colophon .legal a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .25em; }
