/* ==========================================================================
   Base / Reset
   ========================================================================== */

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

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; scroll-padding-top: var(--sl-header-height); }

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sl-font-heading);
    color: var(--sl-text-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--sl-space-4);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--sl-space-4); }
p:last-child { margin-bottom: 0; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

::selection { background: var(--sl-color-primary-lighter); color: var(--sl-color-charcoal); }

.sl-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--sl-color-primary);
    color: #fff;
    padding: var(--sl-space-3) var(--sl-space-5);
    z-index: 999;
    border-radius: 0 0 var(--sl-radius-sm) 0;
}
.sl-skip-link:focus { left: 0; }

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

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