/* The ink sky: a faint graphite sky above the horizon on the front door. It is decoration
   laid over the existing scene and replaces nothing. The still picture paints first as a CSS
   background, so it is never fetched where .scene is hidden (/letter/, and after entering the
   letter). The looping video is added by /assets/ink-sky.js after load and fades in over it.
   There is no pause or play control, by design: the video is silent, faint and the same kind of
   motion as the ocean below it, which has never had one. */
.ink-sky{
  position:absolute;inset:0 0 auto;
  height:var(--horizon);
  overflow:hidden;pointer-events:none;z-index:0;
  opacity:.6;mix-blend-mode:darken;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 80%,transparent);
          mask-image:linear-gradient(to bottom,transparent,#000 12%,#000 80%,transparent);
}
.ink-sky-still,.ink-sky video{
  position:absolute;top:0;left:0;
  width:100%;height:100vh;height:100svh;
}
.ink-sky-still{background:url("/assets/ink-sky/sky.webp") 0 0/100% 100% no-repeat;}
.ink-sky video{object-fit:fill;opacity:0;transition:opacity 700ms ease-out;}
.ink-sky.is-playing video{opacity:1;}
html.se-reading .ink-sky,html.direct-landing .ink-sky{display:none;}
@media (max-width:600px){
  /* Higher on a phone, keeping the whole shape of the clouds above the lower title lockup. */
  .ink-sky-still,.ink-sky video{width:155%;left:-55%;height:70svh;}
  .ink-sky{height:calc(var(--horizon) - 120px);}
}
@media (prefers-reduced-motion:reduce){
  .ink-sky video{display:none;transition:none;}
}
