/* ==========================================================
   Tokens do 3º Tabelionato de Notas e 2º de Protesto
   Paleta café + creme (escolha do cliente), um acento musgo
   reservado para estados: "já tenho", progresso, sucesso, foco.
   ========================================================== */

:root {
  /* Cor */
  --cafe: #33201a;
  --cafe-2: #4a2f24;
  --cafe-escuro: #261711;
  --nogueira: #74543f;
  --areia: #dccab5;
  --areia-2: #e9dccb;
  --creme: #f2e9dd;
  --papel: #fbf8f3;
  --branco: #fffdfa;
  --musgo: #46624e;
  --musgo-claro: #e3eadf;
  --erro: #9b2f23;
  --erro-claro: #f6e3df;

  /* Papéis */
  --bg: var(--papel);
  --bg-suave: var(--creme);
  --superficie: var(--branco);
  --texto: var(--cafe);
  --texto-2: #5e4535;
  --linha: var(--areia);
  --linha-suave: var(--areia-2);
  --foco: var(--musgo);

  /* Tipografia */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.8235rem;   /* 14px */
  --t-sm: 0.8824rem;   /* 15px */
  --t-base: 1rem;      /* 17px */
  --t-lg: 1.1765rem;   /* 20px */
  --t-xl: 1.4118rem;   /* 24px */
  --t-2xl: 1.7647rem;  /* 30px */
  --t-3xl: clamp(2rem, 1.35rem + 2.1vw, 2.85rem);
  --t-4xl: clamp(2.4rem, 1.3rem + 3.6vw, 3.9rem);

  /* Espaço */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --secao: clamp(3.5rem, 2rem + 5vw, 6.5rem);

  /* Forma: 6px em controles, 12px em cartões e painéis */
  --r-sm: 6px;
  --r-lg: 12px;

  /* Sombra tingida pelo café */
  --sombra-1: 0 1px 2px rgb(51 32 26 / 0.06);
  --sombra-2: 0 1px 2px rgb(51 32 26 / 0.05), 0 12px 32px -16px rgb(51 32 26 / 0.28);
  --sombra-3: 0 2px 6px rgb(51 32 26 / 0.06), 0 24px 56px -24px rgb(51 32 26 / 0.38);

  /* Layout */
  --largura: 1200px;
  --largura-texto: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  /* Movimento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rapido: 160ms;
  --medio: 280ms;

  /* Camadas */
  --z-header: 40;
  --z-painel: 50;
  --z-drawer: 60;

  interpolate-size: allow-keywords;
  color-scheme: light;
}

/* Modo de alto contraste, escolhido pelo painel "Aa" */
html[data-contraste="alto"] {
  --bg: #ffffff;
  --bg-suave: #ffffff;
  --superficie: #ffffff;
  --texto: #1a0f0b;
  --texto-2: #1a0f0b;
  --nogueira: #2b1912;
  --linha: #33201a;
  --linha-suave: #33201a;
  --areia: #33201a;
  --musgo: #1f4a2e;
  --foco: #1f4a2e;
}

/* Tamanho de letra, escolhido pelo painel "Aa" */
html { font-size: 106.25%; }
html[data-fonte="2"] { font-size: 118.75%; }
html[data-fonte="3"] { font-size: 131.25%; }
