﻿html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-main);
    background: var(--bg-alt);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--slate-900);
    margin-top: 0;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration-skip-ink: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

section {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--space-16) 0;
    }
}

::selection {
    background: var(--primary-soft);
    color: var(--brand-900);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

.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;
}
