*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { font-family: inherit; line-height: inherit; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body { 
  min-height: 100vh; 
  text-rendering: optimizeSpeed; 
  line-height: 1.6; 
  background-color: var(--color-bg); 
  color: var(--color-text); 
  display: flex; 
  flex-direction: column; 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale; 
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
button { cursor: pointer; background: none; border: none; }
::selection { background: var(--color-primary); color: #ffffff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation-duration: 0.01ms !important; 
    transition-duration: 0.01ms !important; 
    scroll-behavior: auto !important; 
  }
}