/* ─── RESET ─────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: none;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: none;
  font: inherit;
}

input, textarea, select {
  font: inherit;
}

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

em {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── SMOOTH SCROLL SETUP ──────────────────────────────────────── */

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* ─── ACCESSIBLE FOCUS ─────────────────────────────────────────── */

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

:focus:not(:focus-visible) {
  outline: none;
}

/* ─── SELECTION ────────────────────────────────────────────────── */

::selection {
  background: var(--color-highlight);
  color: var(--color-bg-dark);
}

/* ─── SCROLLBAR ────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

/* ─── POINTER COARSE — MOBILE ──────────────────────────────────── */

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  button {
    cursor: pointer;
  }

  a {
    cursor: pointer;
  }
}
