/**
 * Pixel Labs - CSS Reset
 *
 * Modern CSS reset for consistent cross-browser styling
 */

/* ==================== BOX SIZING ==================== */

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

/* ==================== RESET MARGINS & PADDING ==================== */

* {
  margin: 0;
  padding: 0;
}

/* ==================== ROOT & BODY ==================== */

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== MEDIA ELEMENTS ==================== */

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

/* ==================== FORM ELEMENTS ==================== */

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

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

/* ==================== TEXT ELEMENTS ==================== */

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ==================== LISTS ==================== */

ul,
ol {
  list-style: none;
}

/* ==================== LINKS ==================== */

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

/* ==================== TABLES ==================== */

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

/* ==================== ACCESSIBILITY ==================== */

/* Improve text rendering */
body {
  text-rendering: optimizeSpeed;
}

/* Remove all animations and transitions for people who prefer not to see them */
@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 STYLES ==================== */

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Provide clear focus for keyboard users */
*:focus-visible {
  outline: 2px solid var(--color-neon-cyan, #00FFFF);
  outline-offset: 4px;
}
