/* Smooth scrolling, unless the visitor has asked for less motion. index.css covers CSS scrolling; this is for scrollIntoView and scrollTo calls, which don't read that setting themselves. */ export const scrollBehavior = (): ScrollBehavior => window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth'