/*
 * Optional baseline for demos. Each demo opts in with
 *   <link rel="stylesheet" href="../../shared/demo-base.css">
 * Keep this tiny — demos should own their own look.
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg { display: block; max-width: 100%; }

/*
 * Universal reduced-motion fallback. Triggered by the OS setting, or by the
 * viewer toggle via shared/demo-chrome.js (html[data-motion="reduce"]).
 * Demos can write nicer, specific fallbacks on top of this.
 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
