/* VSantê — site institucional. Paleta e tipos do Manual de Marca (BRANDBOOK/conteudo-final.json).
   Fontes servidas daqui mesmo (OFL). Nenhum recurso externo. */
@font-face {
  font-family: "Cinzel";
  src: url("cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --tinta: #241a14;
  --papel: #e8e2d6;
  --metal: #9a7b4f;
  --frio: #c9d2d1;
  --apoio: #2e3d52;

  --fundo: #f3efe7;
  --superficie: #ebe5d9;
  --texto: var(--tinta);
  --texto-2: #5a4b3f;       /* 7.2:1 sobre --fundo */
  --linha: #d6ccba;
  --destaque: #6e5534;      /* metal escurecido: 6.3:1 sobre --fundo (AA) */
  --foco: var(--apoio);

  --display: "Cinzel", "Times New Roman", serif;
  --corpo: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --medida: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #1b1410;
    --superficie: #241a14;
    --texto: #ece6da;
    --texto-2: #bfb3a2;     /* 8.4:1 sobre --fundo */
    --linha: #3d3027;
    --destaque: #c9a878;    /* 8.1:1 sobre --fundo */
    --foco: #c9d2d1;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 1.0625rem/1.65 var(--corpo);
  font-stretch: 96%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--destaque); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; border-radius: 2px; }

.pular {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--texto); color: var(--fundo); padding: 0.5rem 1rem; z-index: 10;
}
.pular:focus { left: 0.5rem; }

/* Cabeçalho */
.topo {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.5rem;
}
.marca {
  font-family: var(--display); font-weight: 500; font-size: 1.375rem;
  letter-spacing: 0.32em; color: var(--texto); text-decoration: none;
  padding: 0.5rem 0; /* alvo de toque >= 44px */
}
.topo nav { display: flex; gap: 1.5rem; }
.topo nav a {
  color: var(--texto-2); text-decoration: none; font-size: 0.9375rem;
  padding: 0.75rem 0; display: inline-block;
}
.topo nav a:hover, .topo nav a[aria-current="page"] { color: var(--texto); text-decoration: underline; }

/* Página inicial */
.abertura {
  max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem 5rem;
  display: grid; gap: 2rem;
}
.sobretitulo {
  font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--destaque); margin: 0; font-weight: 600;
}
.abertura h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.25rem, 6vw, 4.25rem); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0; max-width: 18ch;
}
.abertura .lide { font-size: 1.1875rem; color: var(--texto-2); max-width: 36rem; margin: 0; }
.fio { height: 1px; background: var(--linha); max-width: 72rem; margin: 0 auto; border: 0; }

.faixa {
  max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem;
  display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.faixa h2 {
  font-family: var(--display); font-weight: 500; font-size: 1.125rem;
  letter-spacing: 0.08em; margin: 0 0 0.75rem;
}
.faixa p { margin: 0; color: var(--texto-2); }

.endereco {
  max-width: 72rem; margin: 0 auto; padding: 4rem 1.5rem 5rem;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.endereco h2 {
  font-family: var(--display); font-weight: 500; font-size: 1.75rem; margin: 0 0 1rem;
}
.endereco address { font-style: normal; color: var(--texto-2); }
.endereco dl { margin: 0; display: grid; gap: 1rem; }
.endereco dt { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-2); }
.endereco dd { margin: 0.25rem 0 0; }

/* Páginas de texto (termos, privacidade) */
.documento { max-width: var(--medida); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.documento h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 0.5rem;
}
.documento .data { color: var(--texto-2); margin: 0 0 2.5rem; font-size: 0.9375rem; }
.documento h2 { font-size: 1.1875rem; font-weight: 650; margin: 2.5rem 0 0.75rem; line-height: 1.35; }
.documento p, .documento li { color: var(--texto); }
.documento ul { padding-left: 1.25rem; }
.documento li + li { margin-top: 0.4rem; }
.caixa {
  background: var(--superficie); border: 1px solid var(--linha); border-radius: 6px;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.caixa p { margin: 0; }
.caixa p + p { margin-top: 0.5rem; }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); }
.rodape div {
  max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 2.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center;
  color: var(--texto-2); font-size: 0.875rem;
}
.rodape nav { display: flex; gap: 1.5rem; }
.rodape a { color: var(--texto-2); padding: 0.5rem 0; display: inline-block; }

/* Páginas de autorização (oauth) */
.retorno { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.retorno h1 { font-family: var(--display); font-weight: 500; font-size: 1.875rem; margin: 0 0 0.5rem; line-height: 1.2; }
.retorno .lide { color: var(--texto-2); margin: 0 0 2rem; }
.estado {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border: 1px solid var(--linha); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  background: var(--superficie);
}
.estado svg { flex: none; margin-top: 0.2rem; }
.estado strong { display: block; }
.estado p { margin: 0.25rem 0 0; color: var(--texto-2); }
.estado.ok { border-color: #5f7d4e; }
.estado.falha { border-color: #a4453a; }
.valores { display: grid; gap: 1rem; margin: 0 0 2rem; }
.valor { border: 1px solid var(--linha); border-radius: 8px; padding: 1rem 1.25rem; }
.valor .rotulo { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-2); margin: 0 0 0.25rem; font-weight: 600; }
.valor .nome-tecnico { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.valor code {
  display: block; font: 0.9375rem/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all; background: var(--fundo); padding: 0.625rem 0.75rem; border-radius: 4px;
  margin: 0.25rem 0 0.75rem;
}
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.125rem; border-radius: 6px;
  font: 600 0.9375rem/1 var(--corpo); cursor: pointer;
  border: 1px solid var(--texto); background: transparent; color: var(--texto);
}
.botao:hover { background: var(--superficie); }
.botao.primario { background: var(--texto); color: var(--fundo); }
.botao.primario:hover { opacity: 0.9; }
.instrucao { color: var(--texto-2); font-size: 0.9375rem; }
.instrucao ol { padding-left: 1.25rem; }
.aviso-tempo { font-size: 0.9375rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 36rem) {
  .topo { padding: 1rem 1.25rem; }
  .topo nav { gap: 1rem; }
  .abertura { padding: 2.5rem 1.25rem 3.5rem; }
  .faixa, .endereco { padding: 3rem 1.25rem; }
  body { font-size: 1rem; }
}
