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

/* Remove default body margin, set base styles */
html, body {
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: #fff;
  color: #222;
}

/* Images and media scale correctly */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove built-in form typography styles */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* Remove animations for users 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;
  }
}

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

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

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

/* Buttons have no extra border/background by default */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Make sure textareas resize nicely */
textarea {
  resize: vertical;
}
