/* Explain: Base reset and typography defaults for the application. - */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    font-family: var(--font-heading);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.75rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3.4vw, 3.25rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button,
[role="button"],
.btn {
    cursor: pointer;
}

button:disabled,
.btn:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
}

img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
textarea,
select,
button {
    font: inherit;
}

::selection {
    background: rgba(var(--primary-rgb), 0.18);
    color: var(--accent-color);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    transform: translateY(-150%);
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    transition: transform 0.2s var(--ease-standard);
}

.skip-link:focus {
    transform: translateY(0);
}