/* Modern CSS Reset — based on Andy Bell's reset */

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

/* Reset margins and padding */
* {
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation on mobile */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Remove default heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

/* Inherit fonts for inputs, buttons, and textareas */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Images are block-level and responsive by default */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* Anchor tags inherit color (no blue by default) */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove built-in form typography styles */
input,
textarea,
select {
  background: none;
  border: none;
  outline: none;
}

/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Smooth scrolling when reduced motion is not preferred */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Hidden elements */
[hidden] {
  display: none !important;
}
