@import url("/base-stage.css");

@font-face {
  font-family: "Pinyon Script";
  src: url("/type/4bf65668f8b1-pinyon-script-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --stage: min(60vw, 96dvh);
  --gate-width: calc(var(--stage) / .54);
  --gate-aspect: 16 / 9;
  --plate-offset: calc(var(--stage) * .26427469132);
  --desk: var(--desk-desktop, url("/film/linen-desktop.webp"));
  font-synthesis: none;
  --surround: var(--surround-desktop, #0c0b0a);
  background: var(--surround);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: var(--desk) center / var(--gate-width) auto no-repeat;
}
.motion .track { height: calc(100dvh + var(--travel)); }
.preparing .stills { display: none; }
.plate, .stills img {
  width: var(--stage); height: var(--stage);
  transform: translateX(var(--plate-offset));
}
.plate { position: relative; }
.plate > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.stills img, #poster { display: block; object-fit: contain; }
.write {
  position: fixed; z-index: 3; right: max(4vw, env(safe-area-inset-right));
  bottom: max(5dvh, env(safe-area-inset-bottom));
  display: inline-flex; gap: .45em; align-items: center;
  min-height: 44px; padding: .2em .72em;
  border: 1px solid var(--rule); background: #19140feb;
  color: var(--ivory); font: 400 clamp(18px,1.65vw,26px)/1.2 "EB Garamond",serif;
  text-decoration: none;
  transition: opacity 120ms linear, visibility 0s;
}
.write[inert] { opacity: 0; visibility: hidden; transition-delay: 0s, 120ms; }
.write img {
  width: 1.05em; height: 1.05em; object-fit: contain;
  transition: transform 240ms cubic-bezier(.333333,1,.666667,1);
}
.write[inert] img {
  transform: scale(1.25);
  transition-timing-function: cubic-bezier(.333333,0,.666667,0);
}
@media (prefers-reduced-motion: reduce) {
  .write, .write img { transition: none; }
  .write[inert] img { transform: none; }
}
.write:is(:hover,:focus-visible) { border-color: var(--gold); }
.write:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 700px) {
  :root {
    --stage: 100vw; --plate-offset: 0px; --gate-width: calc(var(--stage) * 1.2173076923);
    --gate-aspect: 9 / 16;
    --surround: var(--surround-phone, #0c0b0a);
    --desk: var(--desk-phone, url("/film/linen-phone.webp"));
  }
  .write { right: max(5vw,env(safe-area-inset-right)); bottom: max(3dvh,env(safe-area-inset-bottom)); }
}
