/* ============================================
   Modern CSS Reset
   ============================================ */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* NOTE: we deliberately do NOT use a wildcard *, *::before, *::after
     animation/transition kill here — that blanket nuke fights with our
     targeted reduce-motion overrides for decorative marquees & photo strips
     (we want those to keep moving gently, not snap-freeze).
     Specific reduce-motion handling lives in cinematic.css and animations.css. */
  *:not(.marquee-track):not(.photo-strip-track):not(.cursor-dot):not(.cursor-ring),
  *:not(.marquee-track):not(.photo-strip-track):not(.cursor-dot):not(.cursor-ring)::before,
  *:not(.marquee-track):not(.photo-strip-track):not(.cursor-dot):not(.cursor-ring)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}
