/* defaults.css — baseline reset for consistent cross-browser rendering.
   Strips default margins/padding, normalizes box-sizing, and removes
   other wonky default behavior. No visual design lives here. */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    line-height: 1.5;
}

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

/* Headings and other text elements inherit font instead of UA defaults */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

/* Lists: drop default markers/indentation; opt back in where needed */
ul, ol {
    list-style: none;
}

/* Media: block-level and never overflow their container */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form elements inherit typography rather than using UA defaults */
input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: none;
}

button {
    cursor: pointer;
}

/* Links: no default underline/color — design layer decides */
a {
    color: inherit;
    text-decoration: none;
}

/* Tables: collapse borders and remove default spacing */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

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