/* Base: reset, tipografia, foco, movimento. Cores e medidas só via tokens.css. */

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body,
h1, h2, h3, h4,
p, ul, ol, li,
figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

/* Corpo */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--off-white);
  color: var(--berry-texto);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Tipografia (brief §3.2) */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--berry);
  text-wrap: balance;
}

h1 {
  font-weight: 600;
  font-size: clamp(44px, 4vw + 28px, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
}

h2 {
  font-weight: 600;
  font-size: clamp(36px, 3vw + 24px, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

strong, b { font-weight: 500; }

em, i, cite { font-style: normal; }

a { color: inherit; text-decoration: none; }

/* Rótulo: papel "mono" do brief (números, selo, rodapé).
   A Prompt não tem algarismos tabulares: onde números alinham em coluna,
   o componente fixa a largura em ch. */
.label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}

/* Foco visível (brief §6) */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--berry-vivo);
  outline-offset: 2px;
}

main:focus-visible { outline: none; }

/* Pular para o conteúdo */
.skip-link {
  position: absolute;
  top: var(--s-1);
  left: var(--s-1);
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--berry);
  color: var(--off-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  transform: translateY(-200%);
}

.skip-link:focus-visible { transform: none; }

/* Texto só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Movimento */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
