/* ==========================================================================
   MODERN CSS RESET
   Normalizes browser defaults while preserving accessibility.
   ========================================================================== */

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

/* -- Remove Default Margins & Padding ------------------------------------ */
* {
  margin: 0;
  padding: 0;
}

/* -- Document ------------------------------------------------------------ */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  tab-size: 4;
}

/* Disable smooth scroll for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* -- Body ---------------------------------------------------------------- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: var(--lh-normal);
}

/* -- Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

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

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

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

/* -- Form Elements ------------------------------------------------------- */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Remove inner focus ring on Firefox */
button::-moz-focus-inner {
  border: 0;
}

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

/* -- Misc ---------------------------------------------------------------- */
[hidden] {
  display: none !important;
}

/* Remove all animations, transitions and smooth scroll for reduced motion */
@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;
  }
}
