/* Casa Resuelta — base: reset, tipografia, foco, acessibilidade. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--link); text-underline-offset: 3px; }
p, li { max-width: var(--measure); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* títulos: Bebas só em títulos de tela/lição; seções em Inter 700 sentence case */
.t-screen, .t-lesson { font-family: var(--f-display); font-weight: 400; line-height: 1; letter-spacing: .01em; }
.t-screen { font-size: var(--fs-screen); }
.t-lesson { font-size: var(--fs-lesson); }
h2, .t-section { font-size: var(--fs-section); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.t-small { font-size: var(--fs-small); }
.t-muted { color: var(--muted); }

/* ícones do sprite Lucide: <svg class="icon"><use href="/assets/icons/sprite.svg#zap"/></svg> */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* foco visível: anel laranja 3 px (com borda escura interna para 3:1 também sobre fundo claro) */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--s4); }
.stack > * + * { margin-top: var(--s4); }

/* sem animações para quem pediu menos movimento: só a troca de estado */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
}
