/* ==========================================================================
   reset.css — Modern CSS reset + base body styles
   Mobile-first. Base = 320px.
   ========================================================================== */

/* ---------- Box model reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ---------- Prevent font-size inflation on mobile ---------- */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

/* ---------- Core body ---------- */
body {
  background: var(--bg, #0a0a0f);
  color: var(--text, #f8fafc);
  font-family: var(--font-body, 'VT323', 'Courier New', monospace);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: var(--leading-normal, 1.5);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Selection ---------- */
::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}

/* ---------- 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;
  cursor: pointer;
}

/* ---------- Anchor reset ---------- */
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Remove animations for reduced-motion preference ---------- */
@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;
  }
}

/* ---------- Cursor: hide on pointer:fine devices ----------
   Touch devices keep default cursor. Desktop gets custom cursor via cursor.js. */
@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  .interactive {
    cursor: none;
  }

  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}
