:root {
  --bg: #050505;
  --panel: #0c0c0c;
  --rule: #1e1e1e;

  /* tonal hierarchy */
  --title: #d9d3c8;
  --text: #868077;
  --speaker: #a39d94;
  --muted: #7d776e;
  --signature: #6f695f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Serif", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 64px 22px 72px;
}

/* MASTHEAD */

.masthead {
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--title);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.3rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1;
}

.subtitle {
  margin-top: 10px;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--muted);
}

/* CAST */

.cast {
  margin: 44px auto 0;
  max-width: 400px;
}

.cast-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--speaker);
  margin-bottom: 14px;
}

.cast-list,
.cast-list div {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* IMAGE */

.image-wrap {
  margin: 48px auto 0;
}

.pyramid {
  display: block;
  width: min(100%, 540px);
  margin: 0 auto;
}

/* PLAY */

.play {
  margin-top: 56px;
  padding: 26px 28px 30px;
  background: var(--panel);
  border: 1px solid var(--rule);
}

/* STAGE DIRECTIONS — VERY TIGHT */

.stage {
  margin: 6px 0 8px 28px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  font-style: italic;
}

/* SPEECH BLOCKS — COMPRESSED */

.speech + .speech {
  margin-top: 12px;
}

.speech + .stage {
  margin-top: 6px;
}

.stage + .speech {
  margin-top: 12px;
}

/* SPEAKERS */

.speaker {
  color: var(--speaker);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1.2;
}

/* DIALOGUE */

.line {
  margin-top: 4px;
  margin-left: 20px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.78;
  max-width: 32em;
}

/* FOOTER */

.footer {
  text-align: center;
  margin-top: 54px;
}

.signature {
  color: var(--signature);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-decoration: none;
}

.signature:hover,
.signature:focus-visible {
  color: var(--title);
}

/* MOBILE */

@media (max-width: 640px) {
  .page {
    padding: 44px 16px 60px;
  }

  .play {
    margin-top: 44px;
    padding: 20px 16px 22px;
  }

  .stage {
    margin: 4px 0 6px 18px;
    font-size: 0.95rem;
  }

  .line {
    margin-left: 14px;
    font-size: 0.98rem;
    line-height: 1.78;
    max-width: none;
  }

  .speech + .speech {
    margin-top: 10px;
  }
}
