/* PlayHearsal — site stylesheet
   Stage (dark, gold light) sections alternate with Script (paper, courier) sections.
   Stage palette + gold accent + Fraunces display come from the app's design
   tokens (lib/ui/theme.dart), so site and app read as one brand. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --stage: #16121a;
  --stage-2: #221b28;
  --velvet: #6b2320;
  --velvet-deep: #451512;
  --tungsten: #e9b44c;
  --tungsten-soft: #f2cc85;
  --paper: #f4eee1;
  --paper-2: #ece3d0;
  --ink: #2b241c;
  --ink-soft: #6f6455;
  --go: #57b47f;
  --standby: #e4504f;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stage);
}

img { max-width: 100%; }
a { color: inherit; }

.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
}
/* The app wordmark: "PlayHearsal" in Fraunces 600 + trailing gold dot sitting low
   (ratios from lib/ui/wordmark.dart: r=6.5/46, gap=3/46, dy=0.20em). */
.wordmark { font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.wordmark .dot {
  display: inline-block;
  width: 0.283em; height: 0.283em;
  border-radius: 50%;
  background: var(--tungsten);
  margin-left: 0.065em;
  transform: translateY(0.06em);
}
.courier { font-family: "Courier Prime", "Courier New", monospace; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 18, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(233, 180, 76, 0.18);
}
.nav .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: #f3ede3;
  text-decoration: none;
  white-space: nowrap; /* the gold dot is part of the wordmark — never wraps */
}
.brand .dot {
  display: inline-block;
  width: 0.283em; height: 0.283em;
  border-radius: 50%;
  background: var(--tungsten);
  margin-left: 0.065em;
  transform: translateY(0.06em);
}
.nav-menu { display: flex; align-items: center; margin-left: auto; }
.nav-links { display: flex; gap: 22px; }
/* Burger (mobile only): three lines that fold into an X. */
.nav-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 10px 2px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--paper);
  margin: 4px 0;
  border-radius: 1px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-links a {
  font-family: "Courier Prime", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  text-decoration: none;
  opacity: 0.85;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; border-bottom-color: var(--tungsten); }
/* The page you're on keeps the gold rule lit. */
.nav-links a.on { opacity: 1; border-bottom-color: var(--tungsten); }
/* Narrow screens: the menu folds behind the burger — a dropdown panel with
   the links stacked and the language row beneath. 880px, not 640: the full
   row (the longer "PlayHearsal" wordmark + French/German labels + languages)
   needs ~880px and used to run off the right edge on tablets. */
@media (max-width: 880px) {
  .nav-burger { display: block; }
  .nav-menu { display: none; }
  .nav.open .nav-menu {
    display: block;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--stage);
    border-bottom: 1px solid rgba(233, 180, 76, 0.18);
    padding: 4px 24px 16px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
  }
  .nav.open .nav-links { display: block; }
  .nav.open .nav-links a {
    display: block;
    font-size: 0.9rem;
    padding: 13px 0;
    border-bottom: 1px solid rgba(244, 238, 225, 0.08);
  }
  .nav.open .nav-lang { display: flex; gap: 18px; margin: 14px 0 0; }
  .nav.open .nav-lang a { font-size: 0.85rem; }
}

/* ---------- language switcher ---------- */
.nav-lang { display: flex; gap: 10px; margin-left: 18px; flex: 0 0 auto; }
@media (max-width: 880px) { .nav-lang { margin-left: 0; } }
.nav-lang a {
  font-family: "Courier Prime", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  opacity: 0.5;
  text-decoration: none;
  padding: 4px 0;
}
.nav-lang a:hover, .nav-lang a:focus-visible { opacity: 1; }
.nav-lang a.on { opacity: 1; color: var(--tungsten); }
/* Tiny flags: the tricolours are pure gradients; the Union Jack is an inline
   SVG (emoji flags don't render on Windows). */
.flag {
  display: inline-block;
  width: 15px; height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.flag-ro { background: linear-gradient(90deg, #002b7f 0 33.4%, #fcd116 33.4% 66.7%, #ce1126 66.7%); }
.flag-de { background: linear-gradient(180deg, #000 0 33.4%, #d00 33.4% 66.7%, #ffce00 66.7%); }
.flag-fr { background: linear-gradient(90deg, #002395 0 33.4%, #fff 33.4% 66.7%, #ed2939 66.7%); }
.flag-en { background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23012169"/%3E%3Cpath d="M0,0 60,30 M60,0 0,30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M0,0 60,30 M60,0 0,30" stroke="%23C8102E" stroke-width="2.4"/%3E%3Cpath d="M30,0 V30 M0,15 H60" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M30,0 V30 M0,15 H60" stroke="%23C8102E" stroke-width="6"/%3E%3C/svg%3E') center/cover; }
@media (max-width: 880px) {
  .nav-lang { gap: 7px; margin-left: 10px; }
}

/* ---------- stage sections ---------- */
.stage {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(233, 180, 76, 0.26), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(110, 80, 140, 0.14), transparent 65%),
    var(--stage);
  color: var(--paper);
}
.stage--flat { background: var(--stage-2); color: var(--paper); }
/* Play/repertoire pages are short: without this the footer floats mid-screen
   with page background below it. (They already carry min-height:100vh.) */
body.stage { display: flex; flex-direction: column; }
body.stage > main { flex: 1 0 auto; }

/* ---------- hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 96px;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
}
.eyebrow {
  font-family: "Courier Prime", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tungsten);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--paper);
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--tungsten); }
.hero .lead {
  font-size: 1.2rem;
  max-width: 34em;
  color: rgba(244, 238, 225, 0.85);
  margin-bottom: 34px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-block;
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 4px;
  border: 2px solid var(--tungsten);
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:focus-visible { outline: 3px solid var(--go); outline-offset: 2px; }
.btn-primary { background: var(--tungsten); color: var(--stage); }
.btn-primary:hover { background: var(--tungsten-soft); border-color: var(--tungsten-soft); transform: translateY(-1px); }
.btn-ghost { color: var(--tungsten); background: transparent; }
.btn-ghost:hover { background: rgba(233, 169, 78, 0.12); transform: translateY(-1px); }

/* On an iPhone/iPad (class set in inc/header.php) the pair of platform buttons
   trades places: iOS goes first and takes the solid gold, Android steps back to
   the outline. Same markup everywhere — the hrefs are what identify them. */
.is-ios .cta-row a[href*="ios.html"],
.is-ios .cta-row a[href*="download/ios"] {
  order: -1;
  background: var(--tungsten);
  color: var(--stage);
}
.is-ios .cta-row a[href*="ios.html"]:hover,
.is-ios .cta-row a[href*="download/ios"]:hover {
  background: var(--tungsten-soft);
  border-color: var(--tungsten-soft);
}
.is-ios .cta-row a[href*="oncue.apk"] {
  order: 0;
  background: transparent;
  color: var(--tungsten);
}
.is-ios .cta-row a[href*="oncue.apk"]:hover {
  background: rgba(233, 169, 78, 0.12);
  border-color: var(--tungsten);
}
.cta-note {
  font-family: "Courier Prime", monospace;
  font-size: 0.8rem;
  color: rgba(244, 238, 225, 0.55);
  margin-top: 14px;
}

/* ---------- script card (hero demo) ---------- */
.script-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 90px rgba(233, 169, 78, 0.14);
  overflow: hidden;
  font-family: "Courier Prime", "Courier New", monospace;
}
.script-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--velvet-deep);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  /* The title never breaks ("Actul I" stays whole); when space runs out the
     role is the span that gives way, with an ellipsis. */
  white-space: nowrap;
}
.script-head .role { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
a.script-head:hover, a.script-head:focus-visible { background: #571b18; }
@media (max-width: 480px) {
  .script-head { white-space: nowrap; }
  .script-head .role { display: none; } /* keeps the tappable header one line */
  .script-head .go-play { margin-left: auto; }
}
.script-head .go-play {
  margin-left: 4px;
  color: var(--tungsten-soft);
  font-size: 0.95rem;
  line-height: 1;
}
.script-head .role { margin-left: auto; color: var(--tungsten-soft); }
.cue-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--standby);
  box-shadow: 0 0 8px rgba(228, 80, 79, 0.9);
  flex: 0 0 auto;
  transition: background 300ms ease, box-shadow 300ms ease;
}
.cue-dot.go { background: var(--go); box-shadow: 0 0 10px rgba(87, 180, 127, 0.95); }
.script-body { padding: 22px 24px 18px; }
.line { padding: 10px 12px; border-radius: 6px; opacity: 0.45; transition: opacity 300ms ease, background 300ms ease; }
.line + .line { margin-top: 6px; }
.line .who { display: block; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--ink-soft); }
.line p { font-size: 0.95rem; }
.line.playing { opacity: 1; background: rgba(233, 169, 78, 0.16); }
.line.done { opacity: 0.65; }
.line.yours.playing { background: rgba(87, 180, 127, 0.16); }
.line.yours .who { color: var(--velvet); }
.yours-tag {
  display: none;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--go);
  float: right;
}
.line.yours.playing .yours-tag { display: inline; }
.wave { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-left: 8px; vertical-align: baseline; }
.wave i { width: 3px; height: 4px; background: var(--velvet); border-radius: 1px; }
.line.playing:not(.yours) .wave i { animation: wave 700ms ease-in-out infinite alternate; }
.line.playing:not(.yours) .wave i:nth-child(2) { animation-delay: 120ms; }
.line.playing:not(.yours) .wave i:nth-child(3) { animation-delay: 240ms; }
.line.playing:not(.yours) .wave i:nth-child(4) { animation-delay: 360ms; }
@keyframes wave { from { height: 3px; } to { height: 12px; } }
.souffle {
  margin: 10px 12px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--go);
  background: rgba(87, 180, 127, 0.1);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink);
  opacity: 0;
  transition: opacity 400ms ease;
}
.souffle.show { opacity: 1; }
.souffle .s-label { font-style: normal; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--go); display: block; }
.transport {
  display: flex; justify-content: center; gap: 26px;
  padding: 12px 0 16px;
  border-top: 1px dashed rgba(43, 36, 28, 0.25);
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.transport span { cursor: default; }
.transport .play-big { color: var(--velvet); font-size: 1.2rem; }

/* ---------- paper sections ---------- */
.paper { background: var(--paper); color: var(--ink); }
.paper--2 { background: var(--paper-2); }
.section { padding: 84px 0; }
@media (max-width: 640px) { .section { padding: 56px 0; } }
.section-head { margin-bottom: 46px; }
.section-head .eyebrow { color: var(--velvet); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.stage .section-head h2, .stage--flat .section-head h2 { color: var(--paper); }

/* scenes (how it works) */
.scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 980px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .scenes { grid-template-columns: 1fr; } }
.scene {
  border-top: 3px solid var(--velvet);
  padding-top: 16px;
}
.scene .sc-num {
  font-family: "Courier Prime", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--velvet);
  display: block;
  margin-bottom: 8px;
}
.scene h3 { font-size: 1.35rem; margin-bottom: 8px; }
.scene p { color: var(--ink-soft); font-size: 0.98rem; }

/* feature cards as script pages */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--paper);
  border: 1px solid rgba(43, 36, 28, 0.14);
  border-radius: 6px;
  padding: 22px 22px 24px;
  box-shadow: 0 2px 0 rgba(43, 36, 28, 0.06);
}
.feature .f-tag {
  font-family: "Courier Prime", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--velvet);
  display: block;
  margin-bottom: 10px;
}
.feature h3 { font-size: 1.18rem; margin-bottom: 6px; }
.feature p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- tutorial steps ---------- */
.steps { max-width: 760px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px dashed rgba(43, 36, 28, 0.25);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--velvet);
  line-height: 1;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p, .step li { color: var(--ink-soft); }
.step ul { padding-left: 20px; margin-top: 8px; }
.step .tip {
  margin-top: 12px;
  padding: 10px 16px;
  border-left: 3px solid var(--tungsten);
  background: rgba(233, 169, 78, 0.13);
  font-size: 0.92rem;
  color: var(--ink);
}
.step .tip strong { font-family: "Courier Prime", monospace; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; }

/* ---------- legal prose (privacy policy) ---------- */
.legal { max-width: 700px; }
.legal h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px dashed rgba(43, 36, 28, 0.25);
}
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin-top: 10px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--velvet); text-underline-offset: 3px; }
.legal-meta {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

/* ---------- download band ---------- */
.dl-band { text-align: center; }
.dl-band .section-head { margin-bottom: 30px; }
.dl-band .cta-row { justify-content: center; }
.cast-note {
  margin-top: 36px;
  font-family: "Courier Prime", monospace;
  font-size: 0.85rem;
  color: rgba(244, 238, 225, 0.6);
}
.cast-note a { color: var(--tungsten); }
.dl-band .cast-note { text-align: center; }

/* ---------- forms (iOS page) ---------- */
.form-card {
  background: var(--paper);
  border-radius: 8px;
  padding: 30px;
  max-width: 520px;
  border: 1px solid rgba(43, 36, 28, 0.14);
}
.form-card label {
  display: block;
  font-family: "Courier Prime", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--velvet);
  margin-bottom: 8px;
}
.form-card input[type="text"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 2px solid rgba(43, 36, 28, 0.3);
  border-radius: 4px;
  background: #fff;
  margin-bottom: 18px;
}
.form-card input[type="text"]:focus-visible { outline: 3px solid var(--tungsten); outline-offset: 1px; }
.form-card .btn { border-width: 2px; cursor: pointer; font-size: 0.95rem; }
.callout {
  margin: 26px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--standby);
  background: rgba(196, 69, 60, 0.09);
  max-width: 640px;
}
.callout.ok { border-left-color: var(--go); background: rgba(87, 180, 127, 0.1); }
.callout strong { font-family: "Courier Prime", monospace; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- playbill (play page) ---------- */
.playbill {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 52px 36px 44px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 90px rgba(233, 169, 78, 0.12);
}
.playbill .pb-rule {
  border: none; height: 3px; background: var(--velvet);
  width: 120px; margin: 18px auto;
}
.playbill .pb-author { font-family: "Courier Prime", monospace; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.9rem; color: var(--ink-soft); }
.playbill h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--velvet); margin-top: 14px; }
.playbill .pb-meta { font-size: 0.95rem; color: var(--ink-soft); margin: 12px 0 28px; }
.playbill .cast {
  font-family: "Courier Prime", monospace;
  font-size: 0.9rem;
  columns: 2;
  column-gap: 40px;
  text-align: left;
  max-width: 460px;
  margin: 0 auto 30px;
  color: var(--ink);
}
@media (max-width: 520px) { .playbill .cast { columns: 1; } }
.playbill .cast li { list-style: none; padding: 6px 0; border-bottom: 1px dotted rgba(43, 36, 28, 0.25); break-inside: avoid; }
.playbill .cast .actor {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--velvet);
  margin-top: 2px;
}
.pb-musical {
  font-family: "Courier Prime", monospace;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: #8a6b2e; /* the app's goldDim — gold-on-paper needs the dim variant for contrast */
  margin-top: 2px;
}
.pb-steps { text-align: left; max-width: 460px; margin: 26px auto 0; font-size: 0.95rem; color: var(--ink-soft); }
.pb-steps li { margin-bottom: 6px; }

/* ---------- repertoire (plays index) ---------- */
/* Each play is a small playbill: the same author/title/rule stack as the full
   page, shrunk to a card, so the index and the play page read as one object. */
.plays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .plays { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plays { grid-template-columns: 1fr; } }
.play-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 26px 24px 22px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.play-card:hover, .play-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.46), 0 0 60px rgba(233, 169, 78, 0.14);
}
.play-card .pc-author {
  font-family: "Courier Prime", monospace;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.76rem; color: var(--ink-soft);
}
.play-card h3 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.5rem; line-height: 1.15; color: var(--velvet); margin-top: 8px;
}
.play-card .pc-sub {
  font-family: "Courier Prime", monospace; font-style: italic;
  font-size: 0.86rem; letter-spacing: 0.16em; text-transform: lowercase;
  color: #8a6b2e; margin-top: 4px;
}
.play-card .pc-rule {
  border: none; height: 2px; background: var(--velvet);
  width: 64px; margin: 14px auto;
}
.play-card .pc-meta {
  font-family: "Courier Prime", monospace;
  font-size: 0.8rem; color: var(--ink-soft); line-height: 1.7;
  margin-bottom: 18px;
}
.play-card .pc-status {
  margin-top: auto;
  font-family: "Courier Prime", monospace;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.play-card .pc-status::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; transform: translateY(-1px);
  background: currentColor;
}
.pc-status.is-ready { color: #2f7d55; }        /* --go, darkened for paper */
.pc-status.is-soon { color: var(--ink-soft); }

/* a play page with nothing to download yet */
.pb-soon {
  font-family: "Courier Prime", monospace;
  font-size: 0.9rem; color: var(--ink-soft);
  border: 1px dashed rgba(43, 36, 28, 0.3);
  border-radius: 6px; padding: 16px 18px;
  max-width: 460px; margin: 0 auto;
}

/* ---------- public-domain repertoire: poster grid + play detail ---------- */
.stage--flat .section-head .eyebrow { color: var(--tungsten); }
.pd-lede { max-width: 40em; margin-top: 14px; font-size: 1.1rem; color: rgba(244, 238, 225, 0.82); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Courier Prime", monospace; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(233, 180, 76, 0.45); color: var(--paper);
  background: rgba(233, 180, 76, 0.06);
}
.chip b { color: var(--tungsten); font-weight: 700; letter-spacing: 0.08em; }
.chip-lang { border-color: var(--tungsten); background: rgba(233, 180, 76, 0.14); }

.pd-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -18px 0 30px; }
.pd-filter button { cursor: pointer; text-transform: capitalize; }
.pd-filter button.is-on { background: var(--tungsten); color: var(--stage); border-color: var(--tungsten); }
.pd-filter button:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }

.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; }
@media (max-width: 520px) { .pd-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
.pd-card { display: flex; flex-direction: column; text-decoration: none; color: var(--paper); }
.pd-card[hidden] { display: none; }
.pd-card img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 3;
  border-radius: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pd-card:hover img, .pd-card:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55), 0 0 50px rgba(233, 169, 78, 0.18);
}
.pd-card:focus-visible { outline: none; }
.pd-card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.pd-card-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.pd-card-author { font-size: 0.9rem; color: rgba(244, 238, 225, 0.7); }
.pd-card-meta { font-family: "Courier Prime", monospace; font-size: 0.76rem; color: rgba(244, 238, 225, 0.6); margin-top: 4px; }
.pd-card-meta b { color: var(--tungsten); }

.pd-back { display: inline-block; margin-bottom: 22px; font-family: "Courier Prime", monospace; font-size: 0.9rem; color: var(--tungsten); text-decoration: none; }
.pd-back:hover { text-decoration: underline; }
.pd-hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 44px; align-items: start; }
@media (max-width: 760px) { .pd-hero { grid-template-columns: 1fr; gap: 28px; } .pd-poster { max-width: 300px; margin: 0 auto; } }
.pd-poster { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 90px rgba(233, 169, 78, 0.12); }
.pd-author { font-family: "Courier Prime", monospace; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.9rem; color: var(--tungsten); }
.pd-author span { letter-spacing: 0.06em; color: rgba(244, 238, 225, 0.55); }
.pd-info h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--paper); margin: 10px 0 6px; }
.pd-sub { color: rgba(244, 238, 225, 0.72); font-size: 1.02rem; }
.pd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.pd-synopsis { font-size: 1.1rem; line-height: 1.65; color: rgba(244, 238, 225, 0.9); max-width: 36em; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 26px 0 8px; }
.pd-dl { font-family: "Courier Prime", monospace; font-size: 0.9rem; color: var(--tungsten); }
.pd-preview { margin-top: 24px; padding: 16px 18px; border-radius: 8px; background: rgba(244, 238, 225, 0.05); border: 1px solid rgba(244, 238, 225, 0.1); max-width: 520px; }
.pd-preview audio { width: 100%; margin: 8px 0 4px; }
.pd-label { font-family: "Courier Prime", monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--tungsten); }
.pd-note { font-size: 0.85rem; color: rgba(244, 238, 225, 0.6); }

.pd-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; margin-top: 56px; align-items: start; }
@media (max-width: 860px) { .pd-body { grid-template-columns: 1fr; } }
.pd-cast, .pd-side > section { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 26px 26px 22px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38); }
.pd-side { display: flex; flex-direction: column; gap: 22px; }
.pd-h { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.4rem; color: var(--velvet); margin-bottom: 12px; }
.pd-cast ul { list-style: none; }
.pd-cast li { padding: 10px 0; border-bottom: 1px dotted rgba(43, 36, 28, 0.25); }
.pd-cast li:last-child { border-bottom: none; }
.pd-cast b { display: block; font-family: "Courier Prime", monospace; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; }
.pd-cast li span { display: block; color: var(--ink-soft); font-size: 0.98rem; margin-top: 2px; }
.pd-side p { font-size: 0.98rem; }
.pd-steps { padding-left: 20px; font-size: 0.95rem; color: var(--ink-soft); }
.pd-steps li { margin-bottom: 6px; }
.pd-steps a, .pd-side a { color: var(--velvet); }
.pd-source { font-size: 0.85rem; color: rgba(244, 238, 225, 0.6); padding: 0 4px; }
.pd-source a { color: var(--tungsten) !important; }

/* ---------- footer ---------- */
.footer {
  background: var(--stage);
  color: rgba(244, 238, 225, 0.55);
  padding: 34px 0;
  font-size: 0.88rem;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; }
.footer a { color: var(--tungsten); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .foot-brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: #f3ede3; white-space: nowrap; }
.footer .foot-brand .dot {
  display: inline-block;
  width: 0.283em; height: 0.283em;
  border-radius: 50%;
  background: var(--tungsten);
  margin-left: 0.065em;
  transform: translateY(0.06em);
}
