/* base.css — Reset, tipografia base e acessibilidade
   Depende de tokens.css
-------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-default);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Acessibilidade ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent-electric);
  color: var(--color-text-primary);
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent-electric-text);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ── Tipografia Base ──────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-default);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

strong,
b {
  font-weight: var(--font-weight-emphasis);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

ul,
ol {
  list-style: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
}

/* ── Utilitários ─────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.overline {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-default);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-electric-text);
  margin-bottom: var(--space-2);
}

/* Em secoes com fundo escuro, overline usa o azul original */
.section--deep .overline {
  color: var(--color-accent-electric-deep);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-default);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-tight);
}

.section-lead {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent-electric-text);
}

.font-emphasis {
  font-weight: var(--font-weight-emphasis);
}

/* ── Reveal on Scroll ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}

/* ── Static Route SSG Content (Progressive Enhancement) ── */
html.js .static-route-content {
  display: none !important;
}