/* ==========================================================================
   BASE: corpo, títulos, links, foco, seleção
   ========================================================================== */

html {
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--bg);
}

body {
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a,
button,
input,
select,
textarea,
label {
  touch-action: manipulation;
}

@media (pointer: fine) {
  html {
    overscroll-behavior: none;
  }
}

strong {
  font-weight: 500;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Ícones de traço (o do WhatsApp é preenchido) */
svg:has(use[href^="#i-"]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg:has(use[href="#i-wa"]) {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: var(--margin);
  z-index: calc(var(--z-nav) + 1);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  transform: translateY(-200%);
}

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

.no-scroll,
.no-scroll body {
  overflow: hidden;
}

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