* {
  box-sizing: border-box;
}

:root {
  --paper-yellow: #efff00;
  --paper-yellow-hot: #f7ff5c;
  --paper-magenta: #ff2bd6;
  --paper-magenta-deep: #d100a9;
  --ink: #050505;
  --ink-soft: #242424;
  --ink-muted: #4b4b4b;
  --max-width: 760px;
  --hero-width: 860px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(
      135deg,
      var(--paper-yellow-hot) 0%,
      var(--paper-yellow) 36%,
      #f0ff00 52%,
      #ffd42e 66%,
      #ff8be8 82%,
      var(--paper-magenta) 100%
    );
  background-attachment: fixed;
}

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

.title-block {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 34px 20px 0;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(4.4rem, 10vw, 7.75rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--paper-magenta);
  text-transform: none;
}

.cast {
  margin: 24px auto 0;
  max-width: 520px;
}

.cast h2 {
  margin: 0 0 12px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.cast p {
  margin: 0.22rem 0;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
}

.hero {
  width: min(calc(100% - 40px), var(--hero-width));
  margin: 34px auto 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid #000000;
}

.play-text {
  width: min(100%, var(--max-width));
  margin: 54px auto 0;
  padding: 0 20px;
}

.speech {
  margin: 0.78rem 0 0.46rem;
}

.speech.continuation {
  margin: 0.24rem 0 0.26rem;
}

.speaker {
  margin: 0 0 0.08rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-magenta-deep);
}

.qualifier {
  display: inline;
  font-weight: 600;
  font-size: 0.88em;
  letter-spacing: 0.01em;
  text-transform: none !important;
  color: var(--ink-soft);
}

.line {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.72;
  color: var(--ink);
}

.no-speaker {
  padding-left: 0;
}

.stage-direction {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.46;
}

.speech + .stage-direction {
  margin-top: 0;
}

.stage-direction + .stage-direction {
  margin-top: 0.2rem;
}

.stage-direction + .speech {
  margin-top: 0.92rem;
}

.opening-break + .speech {
  margin-top: 1.9rem;
}

.stage-direction + .speech.continuation {
  margin-top: 0.22rem;
}

.site-signature {
  width: min(100%, var(--max-width));
  margin: 98px auto 0;
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signature-name {
  color: var(--ink-soft);
  text-decoration: none;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.8;
  text-transform: lowercase;
}

.signature-work {
  margin-top: 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.signature-name:hover,
.signature-name:focus-visible,
.signature-work:hover,
.signature-work:focus-visible {
  color: var(--paper-magenta-deep);
}

@media (max-width: 760px) {
  .page {
    padding: 0 0 56px;
  }

  .title-block {
    padding-top: 20px;
  }

  .hero {
    width: calc(100% - 28px);
    margin-top: 28px;
  }

  .play-text,
  .site-signature {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cast {
    max-width: none;
  }

  .speech {
    margin: 0.72rem 0 0.42rem;
  }

  .speech.continuation {
    margin: 0.22rem 0 0.24rem;
  }

  .line {
    font-size: 1.12rem;
  }

  .stage-direction {
    padding-left: 0.8rem;
    font-size: 1rem;
    line-height: 1.42;
  }

  .speech + .stage-direction {
    margin-top: 0;
  }

  .stage-direction + .stage-direction {
    margin-top: 0.18rem;
  }

  .stage-direction + .speech {
    margin-top: 0.82rem;
  }

  .opening-break + .speech {
    margin-top: 1.55rem;
  }

  .stage-direction + .speech.continuation {
    margin-top: 0.2rem;
  }
}
