/* Explain: Global CSS resets, base typography, and accessibility styles. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.015em;
    color: var(--text-color);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--primary-color); color: #ffffff; }

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.input, .select, .textarea { width: 100%; }

.is-hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}