/*
 * Motion: a little life as the page is read. Quiet by design: fades only, nothing slides or zooms.
 * Everything here sits behind prefers-reduced-motion: no-preference, so a visitor who has asked their device
 * for less motion sees the site exactly as it is. Nothing is hidden unless motion.js is running, and the script
 * only holds back things that are still below the screen.
 */
@media (prefers-reduced-motion: no-preference) {
	@keyframes pf-fade {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	/* Held back until it scrolls into view, then faded in once. Fade only: nothing slides, so scrolling stays smooth. */
	[data-pf-wait] { opacity: 0; }
	[data-pf-in] { animation: pf-fade 0.5s ease backwards; animation-delay: var(--pf-d, 0s); }

	/* The state map: each state fades in after the one before. */
	.pf-st-map[data-pf-wait] { opacity: 1; }
	.pf-st-map[data-pf-wait] .pf-st { opacity: 0; }
	.pf-st-map[data-pf-in] { animation: none; }
	.pf-st-map[data-pf-in] .pf-st { animation: pf-fade 0.7s ease backwards; animation-delay: var(--pf-d, 0s); }

	/* Numbers: steady digits while they count up. */
	.pf-count { font-variant-numeric: tabular-nums; }

	/* Small touches. */
	.wp-block-button__link, .pf-follow__links a { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, translate 0.2s ease; }
	.wp-block-button__link:hover, .pf-follow__links a:hover { translate: 0 -2px; }
	.pf-story-way h3 a::after { display: inline-block; transition: translate 0.2s ease; }
	.pf-story-way h3 a:hover::after, .pf-story-way h3 a:focus-visible::after { translate: 5px 0; }
}

.pf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media print {
	[data-pf-wait] { opacity: 1 !important; }
	.pf-st-map[data-pf-wait] .pf-st { opacity: 1 !important; }
}
