:root {
  --speaker-accent: #773e2b;
  --paper: #eee5d5;
  --red: var(--speaker-accent);
  --ink-point: 0;
  --voice-pressure: 0.4;
  --chapter-progress: 0;
  --accent-wash: color-mix(in oklab, var(--speaker-accent) 9%, var(--paper));
  --line: color-mix(in oklab, var(--speaker-accent) 19%, var(--paper));
}
.masthead {
  height: 92px;
  padding: 0 40px 0 36px;
  background: var(--paper);
  border-bottom-color: var(--line);
  transition:
    background 1.4s,
    color 1.2s,
    border-color 1.2s;
}
.signature {
  position: relative;
  display: flex;
  align-items: baseline;
  isolation: isolate;
  min-width: 183px;
  height: 77px;
  align-self: flex-end;
  padding-top: 2px;
  color: var(--ink);
}
.signature-prefix {
  position: absolute;
  left: 3px;
  top: 0;
  font-size: 7px;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}
.signature-word {
  font: 500 63px/0.95 var(--serif);
  letter-spacing: -0.065em;
  transform: rotate(-2deg);
  display: flex;
  align-items: baseline;
}
.signature-word span {
  display: inline-block;
  transition: transform 1.2s var(--ease);
}
.signature-word .signature-o {
  transform: translateY(calc(var(--voice-pressure) * 1.4px)) rotate(-5deg);
}
.signature-word .signature-u {
  transform: translateY(calc(var(--voice-pressure) * -1.6px));
}
.signature-word .signature-t {
  transform: rotate(-5deg) translateX(-2px);
}
.signature-dot {
  display: block;
  background: var(--red);
  width: 6px;
  height: 9px;
  border-radius: 45% 55% 60% 40%;
  transform: rotate(19deg) translate(4px, -1px);
  transition:
    background 1.2s,
    transform 1.2s;
}
.signature-swipe {
  position: absolute;
  width: 177px;
  height: 21px;
  bottom: 4px;
  left: -4px;
  overflow: visible;
  stroke: var(--red);
  stroke-width: 0.85;
  stroke-dasharray: 240;
  stroke-dashoffset: calc(202 - var(--chapter-progress) * 145);
  transition:
    stroke-dashoffset 1.5s var(--ease),
    stroke 1.2s;
  pointer-events: none;
}
.signature:hover .signature-swipe {
  stroke-dashoffset: 0;
}
.signature:hover .signature-dot {
  transform: rotate(70deg) translate(4px, -3px);
}
.signature:hover .signature-o {
  transform: translateY(2px) rotate(-12deg);
}
.edition {
  margin-left: auto;
  margin-right: 8vw;
  gap: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.edition-number {
  font: 400 31px/0.8 var(--serif);
  letter-spacing: -0.07em;
  color: var(--red);
  align-self: flex-start;
  position: relative;
  top: -5px;
}
.edition .edition-line {
  width: 50px;
  transform: rotate(-12deg);
  background: var(--gold);
}
.masthead nav {
  gap: 33px;
}
.nav-link {
  font-size: 10px;
  letter-spacing: 0.04em;
}
.theatre {
  min-height: calc(100svh - 194px);
}
.editorial {
  background: var(--paper);
  transition:
    background 1.4s,
    border-color 1.2s;
}
.intro-copy h1 {
  font-size: clamp(85px, 7.5vw, 134px);
  line-height: 0.84;
  letter-spacing: -0.059em;
  transform: rotate(-1deg);
  margin-top: 39px;
  margin-bottom: 32px;
}
.intro-copy h1 em {
  position: relative;
  display: inline-block;
  transition: color 1.2s;
}
.intro-copy h1 em:after {
  content: "";
  position: absolute;
  left: -3%;
  right: -7%;
  height: 1px;
  bottom: 3px;
  background: var(--red);
  transform: rotate(-5deg);
  opacity: 0.5;
  transform-origin: left;
}
.intro-copy .eyebrow {
  letter-spacing: 0.14em;
}
.fine-diamond {
  width: 3px;
  height: 11px;
  transform: rotate(22deg);
  border-radius: 40%;
  transition: background 1.2s;
}
.speaker {
  transition: color 1.2s;
}
.english-line {
  font-size: clamp(31px, 3vw, 47px);
  line-height: 1.13;
  letter-spacing: -0.025em;
}
.moment-rule {
  height: 1px;
  transform: rotate(-8deg);
  background: var(--gold);
  max-width: 48px;
}
.score {
  background: var(--paper);
  border-color: var(--line);
  transition:
    background 1.4s,
    border-color 1.2s;
}
.play-button {
  border: 0;
  outline: 1px solid var(--line);
  outline-offset: 5px;
  width: 30px;
  height: 30px;
  transform: rotate(-3deg);
}
.play-button svg {
  transform: rotate(3deg);
}
.play-button:hover {
  outline-color: var(--red);
}
.chapter-button {
  transition: color 1.1s;
}
.score-ticks {
  background: repeating-linear-gradient(
    to right,
    var(--gold) 0 1px,
    transparent 1px calc(100% / 37)
  );
  opacity: 0.25;
}
.time {
  letter-spacing: 0.07em;
}
.title-rule > span:first-child {
  transform: rotate(-5deg);
  width: 57px;
}
.entry-detail {
  margin-top: 20px;
}
.loading:before {
  content: "d.";
  font: 400 112px/0.9 var(--serif);
  letter-spacing: -0.1em;
  color: var(--red);
  transform: rotate(-7deg);
  animation: ink-wait 3s ease-in-out infinite;
}
.loading-line {
  width: 100px;
  transform: rotate(-3deg);
}
.loading {
  background: var(--paper);
}
.load-error {
  background: var(--paper);
}
.dialog-header .eyebrow {
  letter-spacing: 0.2em;
}
.frame-signature {
  font: 400 19px/1 var(--serif);
  letter-spacing: -0.06em;
  opacity: 0.85;
}
.enter-button {
  transition:
    color 1.2s,
    border-color 1.2s;
}
.stage-top .stage-location {
  font-family: var(--sans);
}
@keyframes ink-wait {
  50% {
    opacity: 0.52;
    transform: rotate(-3deg) translateY(2px);
  }
}
@media (min-width: 1800px) {
  .masthead {
    height: 103px;
  }
  .theatre {
    min-height: calc(100svh - 215px);
  }
}
@media (max-width: 980px) {
  .masthead {
    height: 83px;
    padding-inline: 25px;
  }
  .signature {
    height: 69px;
    min-width: 148px;
  }
  .signature-word {
    font-size: 56px;
  }
  .signature-prefix {
    font-size: 6px;
  }
  .signature-swipe {
    width: 155px;
    bottom: 4px;
  }
  .theatre {
    min-height: 0;
  }
  .intro-copy h1 {
    font-size: 84px;
    margin-top: 20px;
  }
  .english-line {
    font-size: 35px;
  }
  .edition {
    display: none;
  }
  .play-button {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 650px) {
  .masthead {
    height: 77px;
    padding-inline: 22px;
  }
  .signature {
    height: 65px;
    min-width: 134px;
  }
  .signature-word {
    font-size: 51px;
  }
  .signature-swipe {
    width: 140px;
  }
  .signature-prefix {
    font-size: 6px;
  }
  .masthead nav {
    gap: 20px;
  }
  .nav-link {
    font-size: 9px;
  }
  .intro-copy h1 {
    font-size: 65px;
    margin-top: 20px;
  }
  .english-line {
    font-size: 33px;
  }
  .fine-diamond {
    height: 9px;
  }
}
@media (max-width: 400px) {
  .signature-word {
    font-size: 46px;
  }
  .signature {
    min-width: 118px;
    height: 62px;
  }
  .signature-swipe {
    width: 129px;
  }
  .masthead nav {
    gap: 13px;
  }
  .nav-link {
    font-size: 8px;
  }
  .intro-copy h1 {
    font-size: 53px;
  }
}
@media (max-width: 650px) {
  .is-started {
    padding-bottom: calc(142px + env(safe-area-inset-bottom));
  }
  .is-started .theatre {
    display: flex;
    flex-direction: column;
  }
  .is-started .stage {
    order: -1;
    height: 37svh;
    min-height: 280px;
    max-height: 400px;
    flex: none;
  }
  .is-started .editorial {
    min-height: 0;
    padding: 22px 23px 28px;
  }
  .is-started .dialogue-content {
    margin-top: 13px;
    gap: 10px;
  }
  .is-started .english-line {
    font-size: clamp(25px, 6.65vw, 31px);
    line-height: 1.16;
  }
  .is-started .score {
    position: fixed;
    inset: auto 0 0;
    z-index: 8;
    height: calc(142px + env(safe-area-inset-bottom));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    gap: 10px 20px;
  }
  .is-started .chapter-button {
    padding-block: 5px;
  }
  .is-started .chapters {
    padding-bottom: 0;
  }
  .is-started #progress {
    height: 22px;
    background-size: 100% 2px;
    background-position: center;
    background-repeat: no-repeat;
  }
  .is-started .score-ticks {
    margin-top: -4px;
  }
  .is-started .icon-button,
  .is-started .language-button,
  .is-started .sound-button {
    min-height: 40px;
  }
}
@media (max-width: 380px) {
  .score {
    padding-inline: 17px;
    column-gap: 8px;
  }
  .transport {
    gap: 9px;
  }
  .time {
    font-size: 8px;
    margin-left: 1px;
  }
  .time-divider {
    margin-inline: 5px;
  }
  .preferences {
    gap: 9px;
  }
  .sound-button > span {
    display: none;
  }
}
