/* ==========================================================================
   BASE — reset, tipografia, container, utilitários
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-body);
  font: 400 var(--fs-body) / 1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* ---- Tipografia ---- */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em;  text-transform: uppercase; }
h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1;    letter-spacing: -0.025em; text-transform: uppercase; }
h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.1;  letter-spacing: -0.01em;  text-transform: uppercase; }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.25; }

p { max-width: 60ch; }

.lead  { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-body); }
.small { font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }
.hl    { color: var(--accent); }

/* Texto de copy ainda não definido — visível de propósito, fácil de achar */
.placeholder {
  color: var(--accent-soft);
  outline: 1px dashed color-mix(in srgb, var(--accent-soft) 40%, transparent);
  outline-offset: 4px;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

/* ---- Foco (visível em qualquer superfície) ---- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---- Utilitários ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 var(--fs-button) / 1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---- Movimento reduzido ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Nada pode alargar a página no celular: elementos que ainda não entraram
   (reveal) ou que passam da largura são cortados na seção, não aumentam a rolagem. */
html { overflow-x: clip; }
main,
.site-footer { overflow-x: clip; }
