:root {
  --bg: #221f1f;
  --bg-deep: #1a1818;
  --text: #ddd2c5;
  --speaker: #c8ad94;
  --muted: #b2a596;
  --stage: #93877c;
  --rule: rgba(221, 210, 197, 0.14);
  --accent: #cf7a44;
  --signature: #887f78;
  --max-width: 860px;
  --body-width: 760px;
  --speech-indent: 2.7rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(207, 122, 68, 0.06), transparent 28%),
    linear-gradient(to bottom, var(--bg-deep) 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.68;
}

.page {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 90px 28px 74px;
}

.play {
  width: 100%;
}

.play-header {
  text-align: center;
  margin-bottom: 34px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.55rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.06;
  text-wrap: balance;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-style: italic;
}

.cast-block {
  margin: 34px auto 0;
  max-width: 420px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.cast-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cast-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cast-list li {
  margin: 0.32rem 0;
  color: var(--text);
  font-size: 1.03rem;
}

.window-strip {
  width: min(100%, 780px);
  margin: 0 auto 44px;
  border: 1px solid rgba(221, 210, 197, 0.11);
  background: #111;
  box-shadow:
    0 0 0 1px rgba(207, 122, 68, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.window-strip img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center 64%;
  filter: saturate(0.84) brightness(0.78) contrast(0.94);
}

.play-body {
  width: min(100%, var(--body-width));
  margin: 0 auto;
  font-size: 1.08rem;
}

.stage-direction {
  margin: 0 0 1.2em 0;
  color: var(--stage);
  font-style: italic;
}

.stage-direction.tight {
  margin-top: -0.05em;
  margin-bottom: 0.9em;
}

.stage-direction.indented {
  margin-left: var(--speech-indent);
}

.speech {
  margin: 0;
}

.speaker-line {
  margin-bottom: 0.08em;
}

.spoken-line {
  margin: 0 0 1.15em var(--speech-indent);
  color: var(--text);
}

.speaker {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--speaker);
}

.signature {
  margin-top: 58px;
  text-align: center;
  font-size: 0.84rem;
  letter-spacing: 0.42em;
  text-transform: lowercase;
}

.signature a {
  color: var(--signature);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.signature a:hover {
  color: var(--accent);
  opacity: 0.92;
}

@media (max-width: 700px) {
  :root {
    --speech-indent: 1.75rem;
  }

  .page {
    padding: 72px 18px 56px;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: 0.13em;
  }

  .subtitle {
    margin-top: 10px;
    font-size: 1.02rem;
  }

  .cast-block {
    margin-top: 28px;
    padding-top: 20px;
  }

  .cast-label {
    font-size: 0.78rem;
    letter-spacing: 0.13em;
  }

  .cast-list li {
    font-size: 0.98rem;
  }

  .window-strip {
    margin-bottom: 34px;
  }

  .window-strip img {
    height: 132px;
    object-position: center 66%;
  }

  .play-body {
    font-size: 1.01rem;
  }

  .stage-direction {
    margin-bottom: 1.08em;
  }

  .stage-direction.tight {
    margin-bottom: 0.72em;
  }

  .speaker-line {
    margin-bottom: 0.06em;
  }

  .spoken-line {
    margin-bottom: 1.02em;
  }

  .signature {
    margin-top: 48px;
    letter-spacing: 0.32em;
    font-size: 0.78rem;
  }
}
