/* 1. Set core defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Improve text rendering */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    scroll-behavior: smooth;
}

/* 3. Ensure media elements fit within containers */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 4. Improve font consistency */
body {
    font-family: system-ui, sans-serif;
    text-rendering: optimizeLegibility;
    background-color: #fff;
    color: #000;
}

/* 5. Ensure links are visible & accessible */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* 6. Reset headings while keeping structure */
h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    font-size: inherit;
}

/* 7. Normalize lists */
ul, ol {
    list-style: none;
}

/* 8. Improve button usability */
button {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* 9. Normalize form elements */
input, textarea, select, button {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    border: none;
    outline: none;
}

/* 10. Prevent content overflow issues */
pre, code {
    font-family: monospace, monospace;
    font-size: 1em;
    overflow-x: auto;
}

/* 11. Reset tables */
table {
    border-collapse: collapse;
    width: 100%;
}

/* 12. Keep focus outlines for accessibility */
button:focus, input:focus, textarea:focus, select:focus, a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}