/* Reset, typography and page primitives (container, section, reveal animation). */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-body);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); line-height: 1.18; }
h2 { font-size: clamp(1.38rem, 2.3vw, 1.85rem); line-height: 1.25; }
h3 { font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.38; font-weight: 600; }

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

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

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

.container {
    width: min(100% - (var(--container-pad) * 2), var(--container-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space);
}

.section--alt {
    background: var(--color-surface-alt);
}

.section--dark {
    background: var(--color-navy);
    color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}

/* Scroll reveal — toggled by public/js/frontend.js */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
