/**
 * base.css - Base Styles
 *
 * CSS reset and default element styles.
 * Uses design tokens from variables.css.
 */

/* ========================================
   CSS RESET
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* ========================================
   BODY DEFAULTS
   ======================================== */

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   ELEMENT RESETS
   ======================================== */

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ========================================
   TYPOGRAPHY DEFAULTS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-tight);
    font-weight: bold;
}

p {
    line-height: var(--line-height-base);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Ensure focus is visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary-2);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
