/* ============================================
   MODERN CSS RESET
   ============================================ */

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

html {
  color-scheme: dark;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: var(--leading-relaxed);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Hide native cursor only when custom cursor is confirmed active */
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select,
body.has-custom-cursor [role="button"] {
  cursor: none !important;
}

/* Remove default list styles */
ul, ol { list-style: none; }

/* Reset links */
a {
  color: inherit;
  text-decoration: none;
}

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

/* Form reset */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
}

textarea {
  resize: vertical;
}

/* Remove animations for people who've turned them off */
@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;
  }
}

/* Focus visible for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

[data-theme="light"] :focus-visible {
  outline-color: var(--accent-orange);
}

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

/* Selection color */
::selection {
  background: var(--accent-lime);
  color: #101010;
}

[data-theme="light"] ::selection {
  background: var(--accent-orange);
  color: #FAF8F2;
}

/* Touch devices: restore default cursor */
@media (pointer: coarse) {
  body, a, button, input, textarea, select {
    cursor: auto;
  }
}
