/* ============================================================
   CSS Reset — Modern Normalization
   ============================================================ */

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

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Responsive images/media */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form elements inherit font */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

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

/* Textarea without horizontal resize */
textarea {
    resize: vertical;
}

/* Remove fieldset styling */
fieldset {
    border: none;
}

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

/* Heading balance */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    line-height: 1.15;
}

/* Paragraph readability */
p {
    text-wrap: pretty;
}

/* Target anchor scroll offset for sticky nav */
:target {
    scroll-margin-top: 100px;
}

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

/* Remove blue highlight on mobile tap */
* {
    -webkit-tap-highlight-color: transparent;
}
