/* =====================================================================
   base.css: reset, tipografia, foco e utilitários.
   Vale para todas as páginas. Nada de componente aqui.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }

/* Foco sempre visível, no padrão do lápis azul. */
:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--pencil); color: var(--on-pencil); }

/* Coluna central com margens que respeitam o entalhe do celular. */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Anotação técnica: a "letra de lápis" do site. */
.mono { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.02em; line-height: 1.5; }
.eyebrow { display: block; color: var(--pencil); margin-bottom: 12px; }
.soft { color: var(--soft); }

/* Só para leitor de tela. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Link para pular direto ao conteúdo, visível só com teclado. */
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { left: var(--gutter); }
