/**
 * Base Reset & Global Element Styling
 * 
 * Mobile-first modern CSS reset, fluid typography base, accessible focus,
 * and semantic HTML element normalization.
 */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-charcoal);
    background-color: var(--color-cream);
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-evergreen);
    line-height: 1.25;
    font-weight: 600;
}

p {
    font-family: var(--font-sans);
    margin-bottom: var(--space-4);
    color: var(--color-text-charcoal);
}

p:last-child {
    margin-bottom: 0;
}

a {
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea, optgroup {
    font-family: var(--font-sans);
    font-size: inherit;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

/* Accessible Focus States */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced Motion Override */
@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;
    }
}
