/* ============================================================
   RESET.CSS — Modern CSS Reset (based on Andy Bell 2024+)
   aventium.ai static rebuild
   ============================================================ */

/* 1. Box sizing for all elements, including pseudo-elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* 3. Prevent font size inflation on iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 4. Set core body defaults */
body {
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Remove built-in text styles from form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* 8. Improve line-wrapping for headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* 9. Improve line-wrapping for body text */
p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 75ch;
}

/* 10. Remove list styles on ul, ol with a class
   (won't break native list semantics) */
ul[class],
ol[class] {
  list-style: none;
}

/* 11. Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 12. Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
}

/* 13. Make sure textareas without a rows attribute don't overflow */
textarea:not([rows]) {
  min-height: 10em;
}

/* 14. Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* 15. Remove animations for people who've turned them off */
@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;
  }
}
