/* ==========================================================================
   ARC SITE - ACCESSIBLE CSS RESET (reset.css)
   ========================================================================== */

/* 1. Box-sizing reset across all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Document & HTML defaults */
html {
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: var(--color-background);
  color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* 3. Body & Page Wrappers */
body {
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-charcoal);
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip !important;
  position: relative !important;
  box-sizing: border-box !important;
}

#page,
.site,
.site-content,
main,
header,
footer,
section {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 4. Responsive media elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* 7. Accessible anchor defaults */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* 8. Accessible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* 9. Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
