/* Base layout, typography and structural rules. */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background: var(--sd-bg);
    color: var(--sd-text);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--sd-text);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.display-hero {
    font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    font-weight: 800;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sd-brand);
    background: var(--sd-brand-soft);
    padding: .4rem 1rem;
    border-radius: var(--sd-radius-pill);
}

.text-secondary-sd {
    color: var(--sd-text-secondary) !important;
}

.text-brand {
    color: var(--sd-brand) !important;
}

.bg-brand {
    background: var(--sd-brand) !important;
}

a {
    color: var(--sd-brand-strong);
    text-decoration: none;
}

a:hover {
    color: var(--sd-brand);
}

.container-sd {
    width: 100%;
    max-width: var(--sd-container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.section {
    padding-block: clamp(3.5rem, 3vw, 6.5rem);
}

.section-sm {
    padding-block: clamp(2.5rem, 4vw, 4rem);
}

main {
    overflow-x: hidden;
}

/* Visible, accessible focus state everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--sd-accent-amber);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--sd-brand-strong);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: 0 0 var(--sd-radius-sm) 0;
    z-index: 2000;
}

.skip-link:focus {
    left: 0;
}
