/*
 * base.css — Minimal reset + global element defaults
 *
 * Applies only to bare HTML elements and shared layout helpers.
 * All values reference design tokens from tokens.css.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--fw-book);
    font-size: 18px;
    line-height: 1.6;
    color: var(--clr-body);
    background: var(--clr-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

p { margin: 0; }

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* Focus: 2px #009BCE outline, 2px offset, on every interactive element */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

/* Illustration text inherits the site font */
svg text { font-family: var(--font-sans); }

/* ── Shared layout helpers ─────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.eyebrow {
    display: block;
    margin-bottom: 13px;
    font-size: 13px;
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--clr-deep-blue);
}

.section-title {
    font-size: 38px;
    text-transform: uppercase;
    color: var(--clr-deep-blue);
}

.section-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--clr-body);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1099.98px) {
    .eyebrow { font-size: 12px; margin-bottom: 9px; }
    .section-title { font-size: 30px; }
    .section-intro { font-size: 15px; }
}

@media (max-width: 767.98px) {
    .section-title { font-size: 22px; }
}

/* Reduced motion: stop loops and show their rest state */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
