/* ─── Reset, Tipografia & Layout ─── */

/* reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--papel);
    background-color: var(--grafite);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    border: none;
    cursor: pointer;
    background: none;
    color: inherit;
}

/* foco visível */
:focus-visible {
    outline: var(--border) solid var(--ambar);
    outline-offset: 3px;
    border-radius: 4px;
}

/* tipografia */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: var(--tracking-display);
    line-height: 0.92;
}

h1 {
    font-size: var(--fs-hero);
    line-height: 0.88;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 0.92;
}

h3 {
    font-size: var(--fs-h3);
    line-height: 0.95;
}

p {
    max-width: 52ch;
}

/* layout */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-inline: var(--space-3);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-4);
    }
}

@media (min-width: 1024px) {
    .container {
        padding-inline: var(--space-5);
    }
}

/* seções alternadas */
.section {
    padding-block: var(--space-5);
}

@media (min-width: 768px) {
    .section {
        padding-block: var(--space-6);
    }
}

.section--grafite {
    background-color: var(--grafite);
    color: var(--papel);
}

.section--papel {
    background-color: var(--papel);
    color: var(--grafite);
}

.section--ambar {
    background-color: var(--ambar);
    color: var(--grafite);
}

.section--preto {
    background-color: var(--preto);
    color: var(--papel);
}

/* utilidades */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

