/* ==========================================================================
   03 · BASE
   Reset leve, tipografia geral, container e utilitários.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* rede de segurança contra rolagem lateral (não quebra o "sticky") */
}

/* Trava a rolagem enquanto o menu do celular está aberto */
html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

/* ---------- Títulos ---------- */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  line-height: var(--lh-title);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---------- Foco visível (teclado) ---------- */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

:focus:not(:focus-visible),
main:focus {
  outline: none;
}

/* ---------- Container ---------- */
.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Seção padrão ---------- */
.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
}

/* Título de seção: um único tamanho para o site inteiro (simetria) */
.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -.005em;
}

/* Cabeçalho de seção (rótulo + título) */
.section-head {
  max-width: 860px;
  margin-bottom: var(--head-gap);
}

/* Rótulo numerado: "I  O que aparece" */
.kicker {
  display: flex;
  align-items: baseline;
  gap: .75em;
  margin-bottom: clamp(22px, 1rem + 1vw, 34px);
  color: var(--green-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-style: normal;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker--center {
  justify-content: center;
}

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

.nowrap {
  white-space: nowrap;
}

/* Link "pular para o conteúdo" (aparece ao navegar com Tab) */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--sage);
  color: var(--wine);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus {
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
