/* ============================================================
   Tema GRAFITE + ÂMBAR — camada única escura grafite (sem claro).
   Mesmos nomes de tokens do tema anterior (tests/css-tokens
   continuam passando); só os valores mudam. Camada escura em
   :root (color-scheme: dark); o bloco claro foi removido.
   Fontes locais em ../fonts (sem dependência de CDN).
   Carregue glass.css DEPOIS para a camada visual.
   ============================================================ */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
}
:root {
  color-scheme: dark;

  /* superficies — grafite quente */
  --fundo: #151412;
  --superficie-1: #1d1c1a;
  --superficie-2: #262523;
  --superficie-3: #2f2e2b;
  --vidro: rgba(245, 177, 76, 0.06);
  --vidro-forte: rgba(245, 177, 76, 0.1);
  --vidro-brilho: rgba(245, 177, 76, 0.55);
  --borda: rgba(245, 177, 76, 0.18);
  --borda-forte: rgba(245, 177, 76, 0.32);
  /* texto */
  --texto: #f3efe9;
  --texto-2: #c9c2b8;
  --texto-3: #a39a8f;
  /* marca — âmbar grafite */
  --lateral: #1d1c1a;
  --papel: #ffffff;
  --acento: #f5b14c;
  --acento-2: #e08e2b;
  /* semanticos */
  --sucesso: #34d399;
  --alerta: #fbbf24;
  --perigo: #f87171;
  --luz-quina: rgba(245, 177, 76, 0.12);
  --borda-fraca: rgba(245, 177, 76, 0.08);
  --borda-acento: rgba(245, 177, 76, 0.45);
  --borda-perigo: rgba(248, 113, 113, 0.42);
  --texto-sobre-acento: #151412;
  --fundo-alerta: rgba(251, 191, 36, 0.09);
  --fundo-perigo: rgba(248, 113, 113, 0.1);
  --fundo-sucesso: rgba(52, 211, 153, 0.07);
  --fundo-sucesso-forte: rgba(52, 211, 153, 0.14);
  --veu-janela: rgba(21, 20, 18, 0.85);
  --veu-galeria: rgba(21, 20, 18, 0.94);
  --veu-scanline: rgba(0, 0, 0, 0.12);
  --veu-vinheta: rgba(0, 0, 0, 0.45);
  --brilho-ambar: rgba(245, 177, 76, 0.5);
  --brilho-ambar-suave: rgba(245, 177, 76, 0.28);
  --brilho-perigo: rgba(248, 113, 113, 0.5);
  /* elevacao — sombras suaves */
  --elev-1: 0 1px 2px rgba(0, 0, 0, 0.25);
  --elev-2: 0 4px 16px rgba(0, 0, 0, 0.32);
  --elev-3: 0 12px 32px rgba(0, 0, 0, 0.42);
  --elev-sobe: 0 -4px 16px rgba(0, 0, 0, 0.4);
  /* movimento */
  --t-rapida: 140ms;
  --t-media: 240ms;
  --t-lenta: 420ms;
  --e-saida: cubic-bezier(0.22, 0.61, 0.36, 1);
  --e-entrada: cubic-bezier(0.16, 1, 0.3, 1);
  /* raio — cantos generosos */
  --raio-p: 10px;
  --raio: 16px;
  --raio-g: 20px;
  /* layout */
  --largura-lateral: 238px;
  /* tipografia — spec §4: Sora p/ títulos, Inter p/ texto, mono p/ valores */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-texto: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;
}
* {
  box-sizing: border-box;
}
img,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
body {
  margin: 0;
  font-family: var(--font-texto);
  background: var(--fundo);
  color: var(--texto);
}
::selection {
  background: var(--acento);
  color: var(--texto-sobre-acento);
}
h1,
h2,
h3 {
  margin: 0 0 10px;
  line-height: 1.25;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
}
input,
select,
textarea {
  font-family: var(--font-texto);
  font-size: 13px;
}
a {
  color: var(--acento-2);
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 2px;
}
/* ---------- utilitarios do tema Grafite + Âmbar ---------- */
.cc-num,
.ng-num {
  font-family: var(--font-mono);
  color: var(--acento);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.cc-canto,
.ng-canto {
  border-radius: var(--raio);
}
.cc-glow,
.ng-glow {
  box-shadow: var(--elev-2);
}
.cc-led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.cc-led-ok { background: var(--sucesso); box-shadow: 0 0 8px var(--sucesso); }
.cc-led-warn { background: var(--alerta); box-shadow: 0 0 8px var(--alerta); }
.cc-led-err { background: var(--perigo); box-shadow: 0 0 8px var(--perigo); }
/* ---------- a chave do movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
