/* ==========================================================================
   CSS Reset - Modern reset for consistent styling
   ========================================================================== */

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

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

/* Set core root defaults */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: var(--line-height-normal);
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Inherit fonts for form elements */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Button reset */
button {
    background: none;
    border: none;
    cursor: pointer;
}

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

/* Remove animations for 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;
    }
}
