/**
 * ClearSpring Reset & Base Normalization
 * Standard modern reset with accessible focus states & smooth scroll
 */

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

html {
  font-size: 16px; /* Base 1rem = 16px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--cs-color-obsidian);
  color: var(--cs-color-pearl);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--cs-font-serif);
  font-size: var(--cs-text-16);
  line-height: 1.6;
  background-color: var(--cs-color-obsidian);
  color: var(--cs-color-pearl);
  overflow-x: hidden;
  position: relative;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--cs-color-gold-light);
  outline-offset: 4px;
}

/* Reduced motion preference respect */
@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;
  }
}
