/* ============================================
   COMBINED RESET: normalize.css + reset.css 
   + Modern CSS enhancements
   ============================================ */

/* 1. BASE RESETS (from both files + enhancements) */
*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
    background-repeat: no-repeat;
    /* Reset */
}

html {
    line-height: 1.15;
    /* normalize */
    -webkit-text-size-adjust: 100%;
    /* normalize */
    text-size-adjust: 100%;
    /* modern */
    scroll-behavior: smooth;
    /* enhancement */
}

body {
    margin: 0;
    /* normalize */
    padding: 0;
    /* normalize */
    min-height: 100vh;
    /* enhancement */
    text-rendering: optimizeLegibility;
    /* enhancement */
    -webkit-font-smoothing: antialiased;
    /* enhancement */
}

/* 2. SEMANTIC ELEMENTS (from both) */
main,
aside,
nav,
footer,
header,
section {
    display: block;
    /* normalize + reset */
}

/* 3. TYPOGRAPHY (normalize + reset + enhancements) */
h1 {
    font-size: 2em;
    /* normalize */
    margin: 0.67em 0;
    /* normalize */
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: inherit;
    /* reset */
    font-weight: inherit;
    /* reset */
    margin: 0;
    /* reset + normalize (p) */
    padding: 0;
    /* reset */
    overflow-wrap: break-word;
    /* enhancement */
}

small {
    font-size: 80%;
    /* normalize */
}

blockquote,
q {
    quotes: none;
    /* reset */
}

/* 4. LINKS & INTERACTIVE (both + enhancements) */
a {
    background-color: transparent;
    /* normalize */
    cursor: pointer;
    /* normalize */
    text-decoration: none;
    /* normalize + reset */
}

a:hover,
a:focus {
    text-decoration: none;
    /* reset */
}

/* 5. LISTS (both) */
ul,
ol {
    list-style: none;
    /* reset + normalize (ul) */
}

/* 6. MEDIA (both + enhancements) */
img {
    border-style: none;
    /* normalize */
    vertical-align: top;
    /* reset */
    max-width: 100%;
    /* reset */
    height: auto;
    /* reset */
    display: block;
    /* enhancement */
}

svg {
    max-width: 100%;
    /* reset */
    height: auto;
    /* reset */
    fill: currentColor;
    /* enhancement */
}

audio,
iframe,
embed,
object {
    display: block;
    /* enhancement */
    max-width: 100%;
    /* enhancement */
}

/* 7. FORMS (both + enhancements) */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    /* normalize + reset */
    font-size: inherit;
    /* reset */
    line-height: inherit;
    /* normalize */
    margin: 0;
    /* normalize */
    color: inherit;
    /* reset */
    background-color: transparent;
    /* reset */
}

button,
input {
    overflow: visible;
    /* normalize */
}

button,
select {
    text-transform: none;
    /* normalize */
}

[type="button"],
[type="reset"],
[type="submit"],
button {
    -webkit-appearance: button;
    /* normalize */
    appearance: button;
    /* modern */
    cursor: pointer;
    /* reset + normalize */
    display: inline-block;
    /* reset */
}

textarea {
    overflow: auto;
    /* normalize */
    resize: vertical;
    /* enhancement */
}

input:focus,
button:focus {
    outline: none;
    /* reset */
}

/* 8. TABLES (both) */
table {
    border-collapse: collapse;
    /* reset */
    border-spacing: 0;
    /* reset */
    width: 100%;
    /* enhancement */
}

/* 9. ACCESSIBILITY (enhancements) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid Highlight;
    /* enhancement */
    outline-offset: 2px;
}

/* 10. UTILITIES (enhancements) */
::selection {
    background-color: Highlight;
    color: HighlightText;
}

[hidden] {
    display: none !important;
    /* normalize + reset */
}
