/* =========================================================
   BASE — reset, tipografia, botões e utilitários
   Cores, fontes e raios vêm do tokens.css.
   ========================================================= */

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

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

body {
  margin: 0;
  background: var(--porcelana);
  color: var(--grafite);
  font-family: var(--fonte-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body { font-size: 18px; }
}

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

h1, h2, h3, p { margin: 0; }
p + p { margin-top: 0.9em; }
p, li, summary { text-wrap: pretty; }

a { color: var(--bordo); }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--grafite);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.sem-quebra { white-space: nowrap; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--estreito { max-width: 720px; }

/* ---------- Tipografia ----------
   Fraunces Italic: só títulos e frases de voz.
   Archivo reta: todo o resto (informação, nomes, itens). */

.titulo {
  font-family: var(--fonte-serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: clamp(1.875rem, 6.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--grafite);
  margin-bottom: 28px;
  text-wrap: balance;
}

/* Destaque dentro de títulos e frases de voz */
.titulo em,
.voz em {
  font-style: italic;
  font-weight: 700;
  color: var(--bordo);
}

.item-titulo {
  font-family: var(--fonte-sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  text-wrap: pretty;
}

.rotulo {
  font-family: var(--fonte-sans);
  font-weight: 600;
  font-stretch: 87.5%;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  line-height: 1.3;
}

.texto { max-width: 60ch; }

.texto-pequeno {
  font-size: 0.9375rem;
  color: var(--grafite-suave);
}

/* ---------- Placeholders (trechos a preencher) ---------- */

.ph {
  background: var(--rose);
  color: var(--grafite);
  font-weight: 600;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  outline: 1.5px dashed var(--grafite);
  margin: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Logo: "musas" em Fraunces Italic + "21" em Archivo bronze ---------- */

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
}

.logo__musas {
  font-family: var(--fonte-serif);
  font-style: italic;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -0.03em;
  color: var(--bordo);
}

.logo__21 {
  font-family: var(--fonte-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bronze);
}

/* ---------- Ícones: traço 2px, cantos arredondados, sem preenchimento ---------- */

.icone {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--altura-botao);
  padding: 0 28px;
  border-radius: var(--raio-pilula);
  border: 1.5px solid transparent;
  font-family: var(--fonte-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.botao--principal {
  background: var(--bordo);
  color: var(--porcelana);
}
.botao--principal:hover,
.botao--principal:active { background: var(--bordo-escuro); }

.botao--secundario {
  background: var(--porcelana);
  color: var(--bordo);
  border-color: var(--porcelana);
}
.botao--secundario:hover,
.botao--secundario:active { background: var(--branco); border-color: var(--branco); }

.botao--compacto { padding: 0 20px; min-height: 48px; }

/* ---------- Card (usado em poucos lugares, de propósito) ---------- */

.card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--raio-bloco);
  padding: 24px;
}

/* ---------- Links com seta ---------- */

.link-seta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--bordo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.link-seta:hover { text-decoration-thickness: 2px; }
.link-seta .icone { width: 18px; height: 18px; }
