/* css_reset_base.css
   Base reset for predictable cross-browser rendering.
   Scope: normalize box sizing, remove default spacing, improve media behavior,
   preserve accessible defaults where possible.
*/

/* 1. Box model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Root scrolling behavior */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 3. Base body reset */
body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4. Remove default margins from common block elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* 5. List reset for semantic lists that opt into class-based styling */
ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 6. Media elements */
img,
picture,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
picture,
svg,
video,
canvas {
  height: auto;
}

/* 7. Form controls inherit typography */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 8. Textareas */
textarea {
  resize: vertical;
}

/* 9. Buttons and clickable inputs */
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

/* 10. Links */
a {
  color: inherit;
  text-decoration: none;
}

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

/* 12. Improve wrapping for text content */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}


/* 14. Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}