/* The lettering is one fixed cut of Fraunces (opsz 144, wght 600, SOFT 100, WONK 1),
   made from the variable font. Safari ignores variation settings given in
   @font-face, and text drawn on a canvas cannot ask for them, so with the variable
   file the word came out in a different cut on iPhones. */
@font-face {
  font-family: DraftLettering;
  src: url('/assets/fonts/fraunces-lettering.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
.first-drafts {
  --scene-height: 100vh;
  --scene-height: 100svh;
  margin-top: calc(-1 * var(--navigation-height));
  position: relative;
}
.reel-stage {
  height: var(--scene-height);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper) var(--paper-grain) repeat;
}
.reel-underprint, .reel-paint, .reel-gold, .reel-cover, .reel-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.reel-paint {
  background: #182260 url('/assets/reel/silk.webp') center / cover no-repeat;
  mask-image: linear-gradient(to top, transparent calc(var(--dissolve, 0%) - 30%), #000 var(--dissolve, 0%));
}
.reel-gold {
  background: #e2ae52 url('/assets/reel/gold.webp') center / cover no-repeat;
  mask: url('/assets/reel/shape-lettering.webp') center 47% / min(72vw, 158svh) auto no-repeat;
}
.reel-silk-canvas, .reel-cover, .reel-pencils { visibility: hidden; }
.reel-stage.has-paint .reel-silk-canvas,
.reel-stage.has-drawings .reel-pencils { visibility: visible; }
.reel-cover {
  display:grid; place-items:center;
  background: var(--paper) var(--paper-grain) repeat;
}
.reel-cover img { width: min(72vw,158svh); height:auto; }
/* The plain way of the opener, for a machine that cannot keep up (see pace.js):
   three sheets of paper as three layers that the browser slides by itself. */
.reel-sheets { position: absolute; inset: 0; pointer-events: none; isolation: isolate; }
.reel-sheets canvas { will-change: transform; box-shadow: 0 0 34px rgb(8 6 14 / .34); }
.reel-continue {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%); display:grid; place-items:center;
  color: #fff4d6; width:44px; height:44px; border-radius:100%;
}
.reel-continue svg { width:17px; height:23px; stroke:currentColor; stroke-width:1.4; }
.reel-continue:hover svg { transform:translateY(2px); }
@media (prefers-reduced-motion: no-preference) {
  .reel-running { height: calc(var(--scene-height) * 2.55); }
  .reel-running .reel-stage { position:sticky; top:0; }
  .reel-running .reel-stage:not(.has-drawings) .reel-cover { visibility:visible; }
  .reel-running .reel-continue { color:var(--ink); }
  .reel-running .reel-continue.on-silk { color:#fff4d6; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-stage .reel-pencils { visibility:hidden; }
}
/* On phones the uncovered painting occupies its original full screen. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .first-drafts { --scene-height: 100vh; --scene-height: 100lvh; }
  .reel-cover, .reel-pencils, .reel-continue { display: none; }
}
@media print { .first-drafts { display:none; } }
