*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

h1, h2, h3, h4, h5 {
    margin: 0 0 var(--space-2);
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h1 { font-size: var(--text-2xl); line-height: var(--leading-tight); }
h2 { font-size: var(--text-xl); line-height: var(--leading-tight); }
h3 { font-size: var(--text-lg); line-height: var(--leading-tight); }
h4 { font-size: var(--text-md); }

p { margin: 0 0 var(--space-3); color: var(--text-secondary); }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul, ol { margin: 0; padding-left: var(--space-5); }

button { font-family: inherit; }

::selection { background: var(--brand-blue-100); color: var(--ink-900); }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
