/* ==========================================================================
   Modern CSS Reset
   ========================================================================== */

/*
 * Box sizing rules — border-box on everything
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

/*
 * Smooth scrolling for the whole document (respects prefers-reduced-motion)
 */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/*
 * Sensible body defaults
 */
body {
    min-height: 100vh;
    line-height: 1.5;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/*
 * Remove built-in form typography styles
 */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/*
 * Avoid text overflows
 */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/*
 * Headings — no default font-size/weight overrides, let the design system handle it
 */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

/*
 * Remove list styles on ul/ol with role="list" or class
 */
ul,
ol {
    list-style: none;
}

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

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

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

/*
 * Remove textarea resize handle (let components decide)
 */
textarea {
    resize: vertical;
}

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

/*
 * Focus visible — keyboard-only focus ring
 */
:focus:not(:focus-visible) {
    outline: none;
}

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