/* Kept out of the bundler so animation-timeline is not rewritten. */
@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@supports (animation-timeline: scroll()) {
  html:not(.reduced):not(.sky-js) {
    animation-name: sky-progress;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root);
  }
}

@keyframes sky-progress {
  from { --p: 0; }
  to { --p: 1; }
}

html.reduced {
  --p: 0.5;
  animation: none !important;
}
