/* site/css/tokens.css — Terminal-only palette (phosphor green on near-black) */

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --surface-strong: #1a1a1a;
  --ink: #e8e8e8;
  --ink-soft: #c8d8cc;
  --accent: #7CFF9E;
  --accent-strong: #9EFFB6;
  --gold: #FFB84D;
  --danger: #FF6A6A;
  --border: rgba(124, 255, 158, 0.15);
  --border-strong: rgba(124, 255, 158, 0.3);
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --sans:  'JetBrains Mono', ui-monospace, monospace;
  --serif: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 2px;
  --ticker-duration: 60s;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

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

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
/* Exception: nav + buttons + cards keep no underline (non-text contexts) */
.masthead nav a, .btn, .variant-toggle button,
.ecosystem-links a, .signal-card h4 a,
.footer-grid a, .ticker-item {
  text-decoration: none;
}
.masthead nav a:hover, .ecosystem-links a:hover, .footer-grid a:hover {
  text-decoration: underline; text-underline-offset: 3px;
}

/* Scanline overlay — decorative only */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(124, 255, 158, 0.02) 0,
    rgba(124, 255, 158, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
  mix-blend-mode: overlay;
}

/* Bilingual inline: hide blocks of the inactive language */
html[data-lang="fr"] [data-lang-block="en"],
html[data-lang="fr"] .lang-en { display: none !important; }
html[data-lang="en"] [data-lang-block="fr"],
html[data-lang="en"] .lang-fr { display: none !important; }
/* Inline swaps: <span data-fr="..." data-en="..."></span> */
html[data-lang="fr"] [data-fr]::before { content: attr(data-fr); }
html[data-lang="en"] [data-en]::before { content: attr(data-en); }

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