/* Portal de Vênus: tokens + componentes.
   Tokens do caminho A "Céu de tinta" (identidade\tokens.css, 04/12/2026; título em Fraunces 600 desde a troca pedida pelo Mat). */
:root {
  --tinta-0: #070B1F;   /* fundo mais fundo */
  --tinta-1: #0B1230;   /* fundo */
  --tinta-2: #1A2552;   /* painel */
  --tinta-3: #2A3670;   /* borda/realce */
  --linha: rgba(207, 167, 94, .22);
  --ouro: #CFA75E;      /* ação e destaque: 8,9:1 sobre tinta-1 */
  --ouro-claro: #ECD6A0;
  --ouro-escuro: #A98543;
  --papel: #F3EBDA;     /* texto principal: 15:1 */
  --papel-2: #C3C6D9;   /* texto secundário: 9,6:1 */
  --papel-3: #8F96B6;   /* legenda: 6,1:1 */
  --rosa: #E7A9A0;      /* acento afetivo, uso raro */
  --perigo: #F08A7E;

  --f-titulo: 'Fraunces', Georgia, serif;
  --f-corpo: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --t-xxl: clamp(2.25rem, 1.6rem + 3.2vw, 4rem);

  --e-1: 8px; --e-2: 16px; --e-3: 24px; --e-4: 32px; --e-5: 48px; --e-6: 72px; --e-7: 112px;
  --raio-s: 10px; --raio-m: 16px; --raio-l: 24px; --raio-pill: 999px;
  --sombra-1: 0 1px 2px rgba(0,0,0,.25), 0 4px 12px rgba(0,0,0,.2);
  --sombra-2: 0 2px 4px rgba(0,0,0,.25), 0 12px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(207,167,94,.08);
  --curva: cubic-bezier(.22, .8, .24, 1);
  --rapido: 180ms; --lento: 520ms;
  --largura: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--tinta-1); color: var(--papel);
  font: 400 var(--t-m)/1.6 var(--f-corpo); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--ouro-claro); }
h1, h2, h3 { font-family: var(--f-titulo); font-style: italic; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; color: var(--ouro-claro); }
:focus-visible { outline: 2px solid var(--ouro-claro); outline-offset: 3px; border-radius: 6px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* céu: fundo de estrelas desenhado em canvas (js/ceu.js) */
.ceu { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, #1A2552 0%, var(--tinta-1) 55%, var(--tinta-0) 100%); }
.ceu canvas { width: 100%; height: 100%; }

.envolve { width: min(100% - 32px, var(--largura)); margin-inline: auto; }
.rotulo { font: 600 var(--t-xs)/1.2 var(--f-corpo); letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); }
.marca { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font: 500 1.125rem/1 var(--f-titulo); letter-spacing: .14em; text-transform: uppercase; color: var(--papel); text-decoration: none; }
.marca svg { width: 22px; height: 22px; color: var(--ouro); }

/* botão */
.botao {
  --bg: var(--ouro); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px; border: 0; border-radius: var(--raio-pill);
  background: linear-gradient(180deg, var(--ouro-claro), var(--ouro) 60%, var(--ouro-escuro));
  color: var(--tinta-0); font: 700 1.0625rem/1.2 var(--f-corpo); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px rgba(207,167,94,.25);
  transition: transform var(--rapido) var(--curva), box-shadow var(--rapido) var(--curva), filter var(--rapido);
}
.botao:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 32px rgba(207,167,94,.35); }
.botao:active { transform: translateY(1px); filter: brightness(.95); }
.botao[disabled], .botao[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.botao.largo { width: 100%; }
.botao.fantasma { background: transparent; color: var(--papel); box-shadow: 0 0 0 1px var(--linha) inset; }
.botao.fantasma:hover { box-shadow: 0 0 0 1px var(--ouro) inset; }
.botao svg { width: 18px; height: 18px; }

/* campo */
.campo { display: grid; gap: 6px; }
.campo label { font-size: var(--t-s); color: var(--papel-2); }
.campo input, .campo select {
  min-height: 52px; padding: 12px 16px; border-radius: var(--raio-s); border: 1px solid var(--tinta-3);
  background: rgba(10,16,40,.6); color: var(--papel); font: 500 var(--t-m) var(--f-corpo); width: 100%;
  transition: border-color var(--rapido);
}
.campo input:hover, .campo select:hover { border-color: rgba(207,167,94,.5); }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(207,167,94,.2); }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ouro) 50%), linear-gradient(135deg, var(--ouro) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.campo select option { background: var(--tinta-1); }
.erro-msg { color: var(--perigo); font-size: var(--t-s); min-height: 1.4em; }

.painel { background: linear-gradient(180deg, rgba(34,48,106,.55), rgba(22,32,74,.75)); border: 1px solid var(--linha); border-radius: var(--raio-l); box-shadow: var(--sombra-2); }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--raio-pill); background: rgba(207,167,94,.12); color: var(--ouro-claro); font: 600 var(--t-xs)/1 var(--f-corpo); letter-spacing: .04em; }

/* rodapé */
.rodape { padding: var(--e-5) 0 var(--e-5); border-top: 1px solid var(--linha); color: var(--papel-3); font-size: var(--t-xs); line-height: 1.7; text-align: center; }
.rodape p + p { margin-top: 6px; }
.rodape a { color: var(--papel-2); }

/* entrada */
.surge { opacity: 0; transform: translateY(14px); transition: opacity var(--lento) var(--curva), transform var(--lento) var(--curva); }
.surge.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .surge { opacity: 1; transform: none; }
}
.simbolo { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; background: currentColor; -webkit-mask: var(--s) center/contain no-repeat; mask: var(--s) center/contain no-repeat; }
