/* ========================================
   MODERN CSS RESET
   ======================================== */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default margin */
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dd {
    margin: 0;
}

/* Remove list styles */
ul, ol {
    list-style: none;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Make images easier to work with */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Inherit fonts for inputs and buttons */
input, button, textarea, select {
    font: inherit;
}

/* Remove tap highlight on mobile */
input, button, textarea, select,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Remove all animations and transitions for reduced motion preference */
@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;
    }
}

/* Remove button defaults */
button {
    border: none;
    background: none;
    cursor: pointer;
}

/* Remove link defaults */
a {
    text-decoration: none;
    color: inherit;
}

/* Remove fieldset border */
fieldset {
    border: none;
}

/* Better table defaults */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reset headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

/* Better focus styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
