/* Plain motion preset "lively" (lib/motion.js): a little more travel, a stagger and a slight swell on the front page. Linked because site.config.json sets "theme": { "motion": "lively" }. */
@media screen and (prefers-reduced-motion: no-preference) {
@keyframes plain-motion-fade { from { opacity: 0; } }
@keyframes plain-motion-rise { from { opacity: 0; translate: 0 1.25rem; } }
@keyframes plain-motion-drop { from { opacity: 0; translate: 0 -0.5rem; } }
@keyframes plain-motion-swell { from { opacity: 0; scale: 0.97; } }
@supports (animation-timeline: view()) {
main :is(h2, h3, li, figure, blockquote, pre, article article, p > img):not(:is(li, figure, blockquote, article article) *) { animation: plain-motion-rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry min(100%, 8rem); }
main tr:not(thead tr) { animation: plain-motion-fade linear backwards; animation-timeline: view(); animation-range: entry 0% entry min(100%, 8rem); }
main li:nth-child(3n+2), main article article:nth-child(3n+2) { animation-range: entry min(10%, 1rem) entry min(100%, 8rem); }
main li:nth-child(3n), main article article:nth-child(3n) { animation-range: entry min(20%, 2rem) entry min(100%, 8rem); }
}
[data-home] > header { animation: plain-motion-drop 0.6s ease-out backwards; }
[data-home] main > h1, [data-home] main :has(> h1) { animation: plain-motion-swell 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
[data-home] main :has(> h1) > * { animation: plain-motion-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards; }
[data-home] main :has(> h1) > :nth-child(2) { animation-delay: 0.18s; }
[data-home] main :has(> h1) > :nth-child(3) { animation-delay: 0.26s; }
[data-home] main :has(> h1) > :nth-child(4) { animation-delay: 0.34s; }
[data-home] main :has(> h1) > :nth-child(n+5) { animation-delay: 0.42s; }
}
