/* ==========================================================================
   AURELLE — Reset
   A lean, modern reset. No framework, just the handful of resets every
   production site actually needs.
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis owns smooth scrolling, not native CSS */
}

html, body { height: 100%; }

body {
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--dur-base) var(--ease-out-soft),
              color var(--dur-base) var(--ease-out-soft);
}

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

img, svg { height: auto; }

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

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: inherit;
}

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

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

table { border-collapse: collapse; border-spacing: 0; }

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

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

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

:focus-visible {
  outline: 1.5px solid var(--c-gold);
  outline-offset: 3px;
}

/* Respect motion preferences: this alone must never fully break layout,
   only remove the *decorative* animation layer. Component files add
   their own reduced-motion overrides for anything scroll-scrubbed. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
