/**
 * Modern CSS Reset
 * Provides consistent baseline across browsers
 */

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

/* Remove default margin and padding */
* {
    margin: 0;
    padding: 0;
}

/* HTML and Body */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.5;
    text-rendering: optimizeSpeed;
}

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

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

/* Remove button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Remove list styles */
ul, ol {
    list-style: none;
}

/* Table styles */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Anchor styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Remove default fieldset styles */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

/* Accessible hiding */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Remove animations for users who prefer reduced motion */
@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;
    }
}
