/**
 * EVENTRIPPLE DESIGN SYSTEM V2
 * Modern CSS Reset with Logical Properties
 * File: 02-reset.css
 */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-block-size: 100vh;
  min-block-size: 100dvh; /* Dynamic viewport height */
  line-height: 1.5;
}

/* Remove default list styles */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Make media easier to work with */
img, picture, video, canvas, svg {
  display: block;
  max-inline-size: 100%;
}

/* Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

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

/* 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;
  }
}
