/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

/* Box Sizing Reset */
*, 
*::before, 
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML & Body Reset */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    color: var(--color-text);
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* List Reset */
ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Typography Reset */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

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

/* Hidden Elements */
[hidden] {
    display: none !important;
}

/* Focus Outline */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

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