/* GUTIZAL: tokens da identidade. Referência completa em docs/DESIGN.md.
   O escuro é o padrão; html[data-theme="light"] troca para o claro (escolha do visitante, salva no navegador). */
:root {
  --canvas: #0f1011;
  --abyss: #0a0b0c;
  --surface: #17181a;
  --surface-2: #202124;
  --line: rgba(236, 236, 233, .12);
  --line-strong: rgba(236, 236, 233, .24);
  --text: #ecece9;
  --text-body: #a3a4a6;
  --text-muted: #6c6d70;
  --paper: #f4f4f2;
  --ink: #22282c;
  --accent: #5e8ca0;
  --accent-soft: rgba(94, 140, 160, .16);
  --accent-on-paper: #4d7a8e;

  --logo-square: #5e8ca0;
  --logo-grid: #676767;

  /* Botões: o quadrado azul aço cresce e preenche o botão. Texto escuro sobre ele (5,1:1). */
  --fill: #5e8ca0;
  --on-fill: #0f1011;

  /* Seção de contraste: papel no tema escuro, escura no tema claro */
  --alt-bg: #f4f4f2;
  --alt-title: #22282c;
  --alt-body: #4a5056;
  --alt-muted: #6c7176;
  --alt-line: rgba(34, 40, 44, .14);
  --alt-accent: #42697a;

  --bar-bg: rgba(17, 18, 20, .78);
  --nav-bg: rgba(15, 16, 17, .35);
  --scroll-track: #0f1011;
  --scroll-thumb: #2e2f32;
  --scroll-thumb-hover: #5e8ca0;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-ui: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --radius-control: 6px;
  --radius-pill: 999px;

  --glass-bg: rgba(23, 24, 26, .55);
  --glass-border: rgba(236, 236, 233, .10);
  --glass-blur: blur(18px) saturate(140%);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .08);

  --ease-glide: cubic-bezier(.32, .72, 0, 1);
  --ease-fill: cubic-bezier(.16, 1, .3, 1);
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(56px, 7vw, 96px);

  color-scheme: dark;
}

html[data-theme="light"] {
  --canvas: #f4f4f2;
  --abyss: #eaeae7;
  --surface: #ececea;
  --surface-2: #e2e2df;
  --line: rgba(34, 40, 44, .12);
  --line-strong: rgba(34, 40, 44, .26);
  --text: #1b1f22;
  --text-body: #4a5056;
  --text-muted: #686d72;
  --accent: #42697a;
  --accent-soft: rgba(66, 105, 122, .12);

  --logo-square: #4d7a8e;
  --logo-grid: #a0a2a3;

  --alt-bg: #17181a;
  --alt-title: #ecece9;
  --alt-body: #a3a4a6;
  --alt-muted: #8a8b8e;
  --alt-line: rgba(236, 236, 233, .14);
  --alt-accent: #5e8ca0;

  --bar-bg: rgba(244, 244, 242, .82);
  --nav-bg: rgba(255, 255, 255, .5);
  --scroll-track: #f4f4f2;
  --scroll-thumb: #cdcdc9;
  --scroll-thumb-hover: #4d7a8e;

  --glass-bg: rgba(255, 255, 255, .55);
  --glass-border: rgba(34, 40, 44, .10);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .7);

  color-scheme: light;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--surface); }
}
