/* ===== SIMPLE MODERN CSS RESET ===== */
/* Focused on common issues without breaking normal development */

/* Universal box-sizing (essential) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margins on common elements (not everything) */
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote {
    margin: 0;
}

/* Set sensible defaults for body */
body {
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove list bullets only when explicitly using class */
ul[class],
ol[class] {
    list-style: none;
    padding: 0;
}

/* Make images responsive by default */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove most button styling but keep functionality */
button {
    font: inherit;
    background: none;
    border: 1px solid transparent; /* Keep border structure */
    cursor: pointer;
}

/* Form elements inherit fonts */
input,
textarea,
select {
    font: inherit;
}

/* Improve focus visibility */
:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}