/* ==========================================================================
   Homepage scroll behaviour — every section is a "page" the scroll locks onto.

   Same behaviour as timsteel.pt: vertical scroll-snap, mandatory, and the
   browser may not skip a section (snap-stop: always). Disabled on phones
   (≤ 500px), where sections are taller than the screen.
   Loaded only on the homepage (config/assets.php).
   ========================================================================== */

@media (min-width: 501px) {
	html {
		scroll-snap-type: y mandatory;
		scroll-padding-top: var(--wp-admin--admin-bar--height, 0px);
	}

	.fp-section,
	.site-footer {
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-snap-type: y proximity;
	}
}
