/* ================================================================
   CSS Reset — Based on Josh Comeau's Modern CSS Reset
   https://www.joshwcomeau.com/css/custom-css-reset/

   Adaptaciones para Rocket Academy:
   - Smooth scroll con prefers-reduced-motion completo
   - Listas NO reseteadas globalmente (accesibilidad Safari/iOS)
   - Form elements heredan font para consistencia con Inter
   - text-rendering optimizeLegibility para tipografia premium
   ================================================================ */

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

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

/* 3. Body defaults */
body {
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 4. Smooth scroll + reduced motion */
html {
    scroll-behavior: smooth;
}
@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;
    }
}

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

/* 6. Form elements inherit font */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

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

/* 8. Anchor reset */
a {
    color: inherit;
    text-decoration: none;
}

/* 9. Button reset */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* 10. Table reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}
