/*
 * Reset, fonte e regras globais de acessibilidade. Carregado depois de tokens.css e
 * antes de components.css em toda página (ver layout.ts).
 */

/* Inter self-hosted (public/fonts/inter-var.woff2) — fonte variável (peso 100–900 num
   arquivo só), nunca carregada do Google Fonts em runtime. Ver docs/adr/0004. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(155, 108, 255, 0.12), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(90, 213, 201, 0.08), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

table {
  border-collapse: collapse;
}

/* Foco visível em qualquer elemento interativo navegável por teclado — nunca `outline:
   none` sem substituto. `:focus-visible` evita o anel aparecer em clique de mouse,
   mantendo-o só para navegação por teclado. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -48px;
  background: var(--panel-3);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-3);
}

.build-footer {
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-4);
}
