/* =========================
   CSS RESET (modern & simpel)
   ========================= */

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

/* 2) Remove default margin */
* { margin: 0; }

/* 3) Base body */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 4) Media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 5) Form defaults */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

/* 6) Buttons */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* 7) Links */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 8) Lists */
ul, ol { padding: 0; list-style: none; }

/* 9) Text overflow handling */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* 10) Make root stacking context */
#root, #__next { isolation: isolate; }

/* 11) Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}