/* =========================================================
   Velotecla · Tokens de diseño
   Dirección visual: "instrumento de precisión". Fondos cálidos y mate,
   texto color hueso, un único color de señal por tema y cifras en serif
   itálica, como un tablero analógico.
   Contraste de texto verificado (WCAG AA ≥ 4.5).
   ========================================================= */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: optional;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: optional;
}

/* Noche · ámbar sobre carbón cálido (tema por defecto) */
:root,
[data-theme="noche"] {
  --bg: #131210;
  --surface: #1b1a17;
  --surface-2: #24221e;
  --line: #2f2c27;
  --text: #ede6d8;
  --muted: #9c9486;
  --pending: #867e71;
  --accent: #ffb224;
  --error: #ff5d4f;
  --streak: #ffd27a;
  --ghost: #8fb5ff;
}
/* Grafito · azul eléctrico sobre gris frío */
[data-theme="grafito"] {
  --bg: #121417;
  --surface: #191c20;
  --surface-2: #20242a;
  --line: #2a2f36;
  --text: #e4e8ee;
  --muted: #949ba6;
  --pending: #7c8492;
  --accent: #4da3ff;
  --error: #ff6166;
  --streak: #ffd166;
  --ghost: #5fdcc4; /* verde agua: frío y distinto del azul del tema */
}
/* Bosque · lima suave sobre verde profundo */
[data-theme="bosque"] {
  --bg: #0f1411;
  --surface: #151c18;
  --surface-2: #1b241f;
  --line: #26322b;
  --text: #e6ecdf;
  --muted: #93a194;
  --pending: #76877c;
  --accent: #c6f06a;
  --error: #ff6b6b;
  --streak: #f2c14e;
  --ghost: #8ad4f0;
}
/* Brasa · naranja vivo sobre marrón tostado */
[data-theme="brasa"] {
  --bg: #181210;
  --surface: #211916;
  --surface-2: #2a201c;
  --line: #382a24;
  --text: #f2e4d8;
  --muted: #ab988b;
  --pending: #907e72;
  --accent: #ff7a45;
  --error: #ff4f6e;
  --streak: #ffd166;
  --ghost: #a9b8ff;
}

:root {
  /* Dedos (teclado virtual): se muestran como una franja fina, no como relleno */
  --f-pinky: #b892f0;
  --f-ring: #6fa8f0;
  --f-middle: #5ccf9e;
  --f-index: #f0c25c;
  --f-thumb: #8f97a3;

  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 8px;
  --radius-sm: 5px;
  --gap: 32px;          /* distancia mínima entre anuncios y controles */
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Grano sutil para que el fondo no se vea plano/digital */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
