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

html {
    min-height: 100%;
    font-size: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-primary);
    background: var(--surface-page);
    font-family: var(--font-ui);
    font-size: .9375rem;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
}

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

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

a { color: var(--link); }

a:hover { text-decoration-thickness: .125rem; }

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

h1, h2, h3, p { margin-top: 0; }

h1 {
    margin-bottom: var(--space-3);
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.02em;
}

h2 {
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}

h3 {
    margin-bottom: var(--space-3);
    font-size: 1.125rem;
    font-weight: 500;
}

code, pre, kbd, .mono { font-family: var(--font-mono); }

code {
    padding: .1rem .25rem;
    background: var(--surface-secondary);
    font-size: .875em;
}

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

.skip-link {
    position: fixed;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 1000;
    transform: translateY(-150%);
    padding: var(--space-3) var(--space-4);
    color: var(--text-inverse);
    background: var(--surface-inverse);
}

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

:focus-visible {
    outline: .125rem solid var(--focus);
    outline-offset: .125rem;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.eyebrow {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
