@font-face {
  font-family: "Opener Serif";
  src: url("./assets/opener-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  background: #bdaa8f;
  color: #443d35;
}
html[data-intro] { scrollbar-width: none; }
html[data-intro]::-webkit-scrollbar { display: none; }
body { margin: 0; }
#stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #bdaa8f;
}
html[data-intro] #sequence { height: 420vh; height: 420svh; }
html[data-intro] #stage { position: sticky; top: 0; }
.art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #bdaa8f;
}
html:not([data-intro]) .art {
  background: #bdaa8f url("./assets/poison-wash-wide.webp") center/cover no-repeat;
}
.poster, #artwork { position: absolute; inset: 0; width: 100%; height: 100%; }
html[data-intro] .poster { background: #e9ddc5 url("./assets/poison-scroll-wide.webp") center/cover no-repeat; opacity: var(--poster, 1); }
#artwork { display: block; opacity: 0; }
html[data-intro] #stage[data-ready] #artwork { opacity: 1; }
#stage[data-ready] .poster { visibility: hidden; }
#artist {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: .2em .16em .04em;
  overflow: hidden;
  color: #392e28;
  font: italic 400 clamp(4rem, min(31vw, 46vh), 24rem)/1 "Opener Serif", Georgia, serif;
  font-kerning: normal;
  letter-spacing: -.018em;
}
#artist span { display: block; }
html[data-intro] #artist span { opacity: var(--title-opacity, 0); transform: translateY(var(--title-offset, 50%)); }
#stage[data-moving] #artist span { will-change: transform, opacity; }
@media (orientation: portrait) {
  html[data-intro] .poster { background-image: url("./assets/poison-scroll-portrait.webp"); }
  html:not([data-intro]) .art { background-image: url("./assets/poison-wash-portrait.webp"); }
  #artist { font-size: clamp(4rem, 42vw, 20rem); }
}
@media (forced-colors: active) {
  html[data-intro] { scrollbar-width: auto; }
  html[data-intro]::-webkit-scrollbar { display: initial; }
  #stage { background: Canvas; }
  .art { forced-color-adjust: none; }
  #artist span { background: Canvas; color: CanvasText; }
}
