/* ============================================================
   global.css — Estilos base, tipografia e utilitários de layout
   ============================================================ */

html {
  scroll-behavior: smooth;
  /* compensa o header fixo ao ancorar em seções */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
}

/* ---------- Tipografia ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
}

h2 {
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 700;
}

h3 {
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 600;
}

p {
  font-size: clamp(16px, 1.4vw, 17px);
  line-height: 1.6;
}

strong {
  font-weight: 600;
}

/* ---------- Eyebrow (legenda em caixa alta) ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.4vw, 13px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--teal-deep);
}

/* Números com fonte mono para sinal de precisão */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-feature-settings: "tnum" 1;
}

/* ---------- Container e layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.section--tint {
  background-color: var(--teal-tint);
}

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

.reading {
  max-width: var(--reading-max);
  margin-inline: auto;
}

/* Cabeçalho padrão de seção */
.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-head .eyebrow {
  margin-bottom: var(--space-2);
}

.section-head p {
  margin-top: var(--space-3);
  color: var(--ink-soft);
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: var(--z-overlay);
  padding: 12px 20px;
  background: var(--action-base);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.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;
}

/* Foco visível consistente em toda a página */
:focus-visible {
  outline: 3px solid var(--teal-base);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Seleção de texto ---------- */
::selection {
  background: var(--teal-tint);
  color: var(--ink);
}
