/* ============================================================
   Viggno Law · tokens + reset + tipografia base (Bloco 1)
   Fonte da verdade: 05_Site/docs/DESIGN-TOKENS.md
   Composição institucional: A · base escura Verde Imperial
                              + Champanhe como fundo de seção alternada.
   ============================================================ */

/* ---------- Tipografia self-hosted ---------- */
@font-face {
  font-family: "Satoshi";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
}

/* ---------- Tokens declarados (paleta-viggnolaw.png) ---------- */
:root {
  /* Cor · paleta (nome oficial · role) */
  --color-verde-imperial: #1D2320;   /* Neutro escuro · ink · fundo escuro */
  --color-verde-ardosia:  #4D5B54;   /* Acento escuro · headers · filetes */
  --color-champanhe:      #FBE3B1;   /* Fundo claro · tinta clara */
  --color-ouro-envelhecido: #D2AA75; /* Dourado · CTAs · links · filetes */

  /* Semânticos · Composição A (base escura) */
  --bg:            var(--color-verde-imperial);
  --bg-section:    var(--color-verde-ardosia);   /* seção intermediária escura */
  --bg-alt:        #F5F3EF;                       /* creme · token derivado (neutro compartilhado marca pessoal) — champanhe permanece como tinta/acento */
  --ink:           var(--color-champanhe);       /* tinta principal sobre --bg */
  --ink-on-alt:    var(--color-verde-imperial);  /* tinta sobre --bg-alt */
  --brand:         var(--color-ouro-envelhecido);
  --brand-hover:   #B58F5D;                      /* derivado do --brand para hover */

  /* Tipografia */
  --font-sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;

  /* Métricas */
  --gutter: clamp(20px, 5vw, 48px);
  --measure-body: 62ch;
  --measure-lead: 48ch;
  --stack-xs: 8px;
  --stack-s: 16px;
  --stack-m: 32px;
  --stack-l: 64px;
  --stack-xl: 96px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --border-hair: 1px solid rgba(210, 170, 117, 0.24);

  /* Interação */
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand);
}

/* ---------- Reset moderno enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Tipografia base ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; font-weight: 500; }
h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; font-weight: 500; }
p  { margin: 0; max-width: var(--measure-body); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
}
.lead { max-width: var(--measure-lead); font-size: 19px; line-height: 1.55; }

/* ---------- Layout utilitário ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-alt {
  background: var(--bg-alt);
  color: var(--ink-on-alt);
}
.section-alt .eyebrow { color: var(--color-verde-ardosia); }
.section-mid { background: var(--bg-section); }

/* ---------- Foco/acessibilidade ---------- */
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
::selection { background: var(--brand); color: var(--color-verde-imperial); }

/* ---------- Placeholder do Bloco 1 (removido no Bloco 2) ---------- */
.gate-placeholder {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
}
.gate-placeholder .container { max-width: 640px; }
.gate-placeholder .logo-wrap { margin-bottom: var(--stack-l); }
.gate-placeholder .logo-wrap img { height: 56px; width: auto; margin-inline: auto; }
.gate-placeholder .kicker { color: var(--brand); margin-bottom: var(--stack-s); }
.gate-placeholder .status {
  margin-top: var(--stack-m);
  padding: var(--stack-s);
  border: var(--border-hair);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: rgba(251, 227, 177, 0.75);
}
.gate-placeholder .status code {
  color: var(--brand);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}
