/* GABURA FINGERS - base: tokens, temas, tipografia */

/* FONTE RETRO (opcional)
   O site usa a fonte monoespacada do sistema por padrao.
   Para usar uma fonte propria:
   1. salve o arquivo como assets/fonts/terminal.woff2
   2. apague as duas linhas de comentario abaixo para ligar o @font-face

@font-face {
  font-family: 'GaburaTerminal';
  src: url('../assets/fonts/terminal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  --pilha-mono: 'GaburaTerminal', 'DejaVu Sans Mono', 'Menlo', 'Consolas',
    'Liberation Mono', 'Courier New', monospace;

  --vazio: #000000;
  --casco: #0a0a0a;
  --painel: #121212;
  --painel-alto: #1a1a1a;
  --linha: #2e2e2e;
  --linha-forte: #4a4a4a;
  --texto: #ececec;
  --texto-fraco: #9a9a9a;
  --texto-apagado: #5f5f5f;
  --metal: #8f8f8f;
  --metal-claro: #bdbdbd;
  --verde: #3ddc6b;
  --verde-fundo: rgba(61, 220, 107, 0.14);
  --sobre-verde: #05130a;

  /* cores do texto do exercicio, sobrescritas por config.js */
  --txt-distante: #4a4a4a;
  --txt-proximo: #dcdcdc;
  --txt-correto: #ffc94d;
  --txt-errado: #ff5a5a;
  --txt-cursor: #3ddc6b;
  --sobre-cursor: #05130a;
  --fundo-erro: rgba(255, 90, 90, 0.18);
  --ambar: #ffb84d;
  --vermelho: #ff4d4d;
  --vermelho-fundo: rgba(255, 77, 77, 0.22);
  --ciano: #5cd8e0;

  --dedo-l5: #ff6b9d;
  --dedo-l4: #ffb84d;
  --dedo-l3: #3ddc6b;
  --dedo-l2: #5cd8e0;
  --dedo-r2: #7f9cff;
  --dedo-r3: #c07dff;
  --dedo-r4: #ff8c5c;
  --dedo-r5: #ffe066;

  --raio: 4px;
  --borda: 1px solid var(--linha);
  --escala-teclado: 1;
}

:root[data-tema='claro'] {
  --vazio: #ffffff;
  --casco: #ffffff;
  --painel: #f2f2f0;
  --painel-alto: #e8e8e6;
  --linha: #c9c9c5;
  --linha-forte: #8f8f8b;
  --texto: #101010;
  --texto-fraco: #4a4a4a;
  --texto-apagado: #8a8a8a;
  --metal: #6a6a6a;
  --metal-claro: #4a4a4a;
  --verde: #14893f;
  --verde-fundo: rgba(20, 137, 63, 0.14);
  --sobre-verde: #ffffff;
  --ambar: #9a6100;
  --vermelho: #c31c1c;
  --vermelho-fundo: rgba(195, 28, 28, 0.16);
  --ciano: #0f6d75;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--casco);
  color: var(--texto);
  font-family: var(--pilha-mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 { font-size: 15px; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }

a {
  color: var(--verde);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
a:hover { background: var(--verde-fundo); }

button, select, input {
  font-family: inherit;
  font-size: 13px;
  color: var(--texto);
  background: var(--painel);
  border: var(--borda);
  border-radius: var(--raio);
  padding: 6px 10px;
}

button { cursor: pointer; }
button:hover { border-color: var(--linha-forte); background: var(--painel-alto); }

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

.oculto { display: none !important; }
[hidden] { display: none !important; }
.so-leitor {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
