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

html { scroll-behavior: smooth; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background: var(--color-bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

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

a { color: inherit; }

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

h1 {
    max-width: 900px;
    margin-bottom: var(--space-3);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: var(--space-3);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
    line-height: 1.4;
}

h4 {
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 3px;
}
