:root {
  color-scheme: light;
  --ink: #20272e;
  --paper: #f2efe6;
  --sky: #bfe8e2;
  --warm: #d9a441;
  --red: #b03a30;
  --shade: #8fa8a5;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--sky);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 214, 0.22), rgba(191, 232, 226, 0) 34%),
    var(--sky);
}

#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(32, 39, 46, 0.38), rgba(32, 39, 46, 0.06) 34%, rgba(32, 39, 46, 0.04) 66%, rgba(32, 39, 46, 0.22)),
    linear-gradient(180deg, rgba(32, 39, 46, 0.16), transparent 24%, transparent 68%, rgba(32, 39, 46, 0.22));
  mix-blend-mode: multiply;
}

.story {
  position: fixed;
  left: clamp(18px, 4vw, 56px);
  bottom: clamp(70px, 9vh, 96px);
  width: min(560px, calc(100vw - 36px));
  text-shadow: 0 1px 18px rgba(242, 239, 230, 0.62);
  pointer-events: none;
}

.kicker {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--red);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 88px);
  line-height: 0.9;
  letter-spacing: 0;
  max-width: 9ch;
}

#caption {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.36;
  font-weight: 650;
}

.shot-nav {
  position: fixed;
  left: clamp(18px, 4vw, 56px);
  bottom: clamp(22px, 4vh, 40px);
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 10px;
}

.shot-nav button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(32, 39, 46, 0.36);
  cursor: pointer;
}

.shot-nav button.active {
  background: var(--red);
}

#status {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  min-width: 128px;
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px 12px;
  border: 1px solid rgba(32, 39, 46, 0.16);
  border-radius: 4px;
  background: rgba(242, 239, 230, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  backdrop-filter: blur(10px);
}

#app.ready #status {
  display: none;
}

#app.error #status {
  display: block;
  color: var(--red);
}

@media (max-width: 720px) {
  .story {
    bottom: 78px;
  }

  h1 {
    max-width: 8ch;
  }

  #caption {
    max-width: 24rem;
  }

  .shot-nav {
    grid-template-columns: repeat(4, 28px);
  }

  .shot-nav button {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vignette {
    mix-blend-mode: normal;
  }
}
