/* ==========================================================================
   RESET — minimal, modern
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis owns smoothing; avoid double-smoothing */
}

body {
  min-height: 100svh;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

ul, ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* Respect reduced motion as a baseline; components layer on specifics */
@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;
  }
}

/* Visible keyboard focus, always — even with the custom cursor active */
:focus-visible {
  outline: 2px solid var(--cp-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 10000;
  background: var(--cp-ink);
  color: var(--cream-100);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Hidden SVG symbol sprite (registration mark, referenced via <use>) */
.sr-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.registration-dot {
  mix-blend-mode: multiply;
}

.text-muted {
  color: var(--color-text-muted);
}
