/* 1. Universal Box Sizing & Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  /*min-height: 100vh;*/
  text-rendering: optimizeSpeed;
}

/* 3. Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block; /* Removes the tiny space below inline images */
  max-width: 100%; /* Prevents horizontal scrolling */
}

/* 4. Form element inheritance */
/* Inputs/buttons don't inherit font styles by default. This fixes that. */
input,
button,
textarea,
select {
  font: inherit;
}

/* 5. Link Styling */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* 6. Accessibility */
[hidden] {
  display: none !important;
}

/* Remove animations for people who prefer 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;
  }
}
