/*
 * reset.css — Browser Reset & Normalization
 * Digital Apache v3
 *
 * PURPOSE: Remove inconsistent browser defaults.
 * No project styles here. No colors. No fonts.
 * Only normalization so base.css starts clean.
 *
 * DEPENDENCY: tokens.css must load before this.
 * LOAD ORDER: Second — after tokens.css only.
 */

/* ============================================
   BOX MODEL — Most important reset
============================================ */

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

/* ============================================
   DOCUMENT
============================================ */

html {
    font-size: 100%;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

p,
blockquote,
dl,
dd {
    margin: 0;
}

/* ============================================
   LISTS
   Scoped — do not reset nav lists globally
   List resets applied via utility class only
============================================ */

ul[class],
ol[class] {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
   LINKS
============================================ */

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

a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* ============================================
   MEDIA
============================================ */

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

img {
    border-style: none;
    height: auto;
}

/* ============================================
   FORMS
============================================ */

button,
input,
select,
textarea {
    font: inherit;
    margin: 0;
}

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

textarea {
    resize: vertical;
}

/* ============================================
   TABLES
============================================ */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ============================================
   ACCESSIBILITY
   Never remove focus outline globally.
   Style it — never hide it.
============================================ */

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

/* ============================================
   MISC
============================================ */

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

/* Remove animations for users who prefer
   reduced motion — accessibility requirement */
@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;
    }
}

/* End of reset.css */