/* Parallax. As the page scrolls, the scenery slides more slowly than the family and the words, so the
   treetop gets depth; on a computer it also leans a little toward the pointer. The family, the branch
   they stand on, the lettering and the button never move. parallax.js sets --scroll (px) and --px/--py
   (-1..1). Off for people who ask their device for less motion (script.js then sets html.still). */
.scene { --scroll: 0px; --px: 0; --py: 0; }
.sky   { --sd: 0.45; --pd: 0px; }
.cloud { --sd: 0.32; --pd: 10px; }
.tree  { --sd: 0.16; --pd: 6px; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.still) .sky, html:not(.still) .cloud, html:not(.still) .tree {
    translate: calc(var(--px) * var(--pd)) calc(var(--scroll) * var(--sd) + var(--py) * var(--pd));
    will-change: translate;
  }
}
