/* Two curved light sheets drift just inside the frame. The middle of the page
   has no graphic, and the original artwork, body and headings are unchanged.
   Static pre-rendered alpha textures: only these two small planes move. */
.miva-ambient-tide {display:none}
.miva-tide-preferences {margin-block:1.25rem}
.miva-tide-preferences button {
  min-height:44px;background:none;color:#dbe0ed;border:0;padding:.5rem 0;
  text-decoration:underline;text-underline-offset:.2em;font:inherit;cursor:pointer;
}
@media screen and (prefers-reduced-motion:no-preference) {
  body.motion-on > .miva-ambient-tide,
  body[data-tide-motion="on"] > .miva-ambient-tide {
    display:block;position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:3;
  }
  .miva-ambient-tide::before,.miva-ambient-tide::after {
    content:"";position:absolute;pointer-events:none;
    width:clamp(100px,18vw,290px);height:90%;left:0;top:-11%;transform-origin:left center;
    background:transparent url("assets/miva-light-west-v221.webp") no-repeat center/100% 100%;
    animation:miva-light-west-v221 12.8s cubic-bezier(.42,0,.58,1) -2.65s infinite;
  }
  .miva-ambient-tide::after {
    left:auto;right:0;top:0;height:83%;transform-origin:right center;background-image:url("assets/miva-light-east-v221.webp");
    animation:miva-light-east-v221 15.6s cubic-bezier(.42,0,.58,1) -3.25s infinite;
  }
  body.motion-paused > .miva-ambient-tide::before,body.motion-paused > .miva-ambient-tide::after,
  body[data-tide-hidden] > .miva-ambient-tide::before,body[data-tide-hidden] > .miva-ambient-tide::after {
    animation-play-state:paused;
  }
}
@media screen and (max-width:700px) {
  .miva-ambient-tide::before,.miva-ambient-tide::after {width:clamp(64px,23vw,136px)}
}
@keyframes miva-light-west-v221 {
  0%,100% {transform:translateY(-20%) scaleX(.87);opacity:.78}
  50% {transform:translateY(22%) scaleX(1);opacity:.98}
}
@keyframes miva-light-east-v221 {
  0%,100% {transform:translateY(20%) scaleX(1);opacity:.96}
  50% {transform:translateY(-22%) scaleX(.88);opacity:.76}
}
@media (forced-colors:active), print {
  body > .miva-ambient-tide {display:none !important}
}
