/* Fontes auto-hospedadas (OFL) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('../fonts/inter-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink-2);
  font: 400 1rem/1.6 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
main:focus { outline: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.5vw + 1rem, 1.625rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-text); }
code, pre, kbd { font-family: var(--font-mono); }

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

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }
.section { padding-block: 40px; }
.section--tint { background: var(--surface); border-block: 1px solid var(--border); }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--lime); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--teal-text); margin: 0 0 .5rem; }
.eyebrow--light { color: #9FE0DC; }
.eyebrow--lime { color: var(--lime); }

.debug { background: var(--code-bg); color: var(--code-ink); padding: 16px; border-radius: 10px; overflow-x: auto; font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Utilitários (a CSP não permite style inline) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.h3 { font: 700 1.125rem var(--font-display); color: var(--ink); margin: 0 0 .5em; }
.lead { font-size: 1.125rem; max-width: 62ch; }
.lead p:last-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
[hidden] { display: none !important; }
