/* Reset CSS: Normalize and Reset Styles across old, modern, and mobile browsers */

/* Box sizing: border-box for consistent sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Remove default margin, padding, border, font settings */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 elements display reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Root element settings */
html {
    line-height: 1;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
    -ms-text-size-adjust: 100%;
}

body {
    background: #fff;
    color: #000;
    font-family: sans-serif;
    line-height: 1;
}

/* Lists */
ol, ul {
    list-style: none;
}

/* Quotes */
blockquote, q {
    quotes: none;
}

    blockquote::before, blockquote::after,
    q::before, q::after {
        content: '';
        content: none;
    }

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Images and media */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements inherit font */
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    outline: none;
}

/* Remove link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Headings inherit weight */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

/* Accessibility: focus outlines */
:focus {
    outline: 2px dashed #000;
    outline-offset: 2px;
}

/* HTML5 Hidden attribute */
[hidden] {
    display: none;
}

/* Mobile: ensure consistent touch behavior */
button, a, input, label {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
