/* -----------------------------
   1. Universal Reset
------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0 solid transparent;
}

/* -----------------------------
   2. Document & Root
------------------------------ */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  tab-size: 4;
}

body {
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
  color: #000;
}

/* -----------------------------
   3. Typography
------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

p {
  line-height: inherit;
}

small {
  font-size: 80%;
}

strong {
  font-weight: bolder;
}

/* -----------------------------
   4. Lists
------------------------------ */
ul,
ol {
  list-style: none;
}

/* -----------------------------
   5. Links
------------------------------ */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:focus {
  outline: none;
}

/* -----------------------------
   6. Media Elements
------------------------------ */
img,
picture,
video,
canvas,
svg,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -----------------------------
   7. Tables
------------------------------ */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  text-align: left;
  vertical-align: middle;
}

/* -----------------------------
   8. Forms & Inputs
------------------------------ */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background-color: transparent;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* -----------------------------
   9. Fieldset & Legend
------------------------------ */
fieldset {
  min-width: 0;
}

legend {
  padding: 0;
}

/* -----------------------------
   10. Buttons & Focus
------------------------------ */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* -----------------------------
   11. Hidden Elements
------------------------------ */
[hidden] {
  display: none;
}

/* -----------------------------
   12. Accessibility Helpers
------------------------------ */
:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* -----------------------------
   13. Scrollbars (optional)
------------------------------ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* -----------------------------
   14. Animations Safety
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

