/* ---- fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;0,800;1,400&family=Bebas+Neue&display=swap');

:root {
  --color-bg: #000000;
  --color-text: rgba(255, 255, 255, 0.85);
  --color-navbar-bg: transparent;
  --color-navbar-text: rgba(255, 255, 255, 0.75);
  --color-accent: rgba(255, 255, 255, 1);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-overlay: rgba(0, 0, 0, 0.85);
  --color-surface: transparent;
  --color-muted: rgba(255, 255, 255, 0.4);
  --logo-invert: 0;

  --font-mono: "JetBrains Mono", monospace;
  --font-display: "Bebas Neue", sans-serif;
  --gradient-hero: none;
  --gradient-accent: none;
  --glow-magenta: none;
  --glow-teal: none;
  --glow-purple: none;
}

.theme-light {
  --color-bg: #000000;
  --color-text: rgba(255, 255, 255, 0.85);
  --color-accent: rgba(255, 255, 255, 1);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-overlay: rgba(0, 0, 0, 0.85);
  --color-surface: transparent;
  --color-muted: rgba(255, 255, 255, 0.4);
  --logo-invert: 0;

  --gradient-hero: none;
  --gradient-accent: none;
  --glow-magenta: none;
  --glow-teal: none;
  --glow-purple: none;
}

/* ---- grain overlay ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  animation: grain-shift 0.4s steps(3) infinite;
}

/* ---- shared keyframes ---- */
@keyframes drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2px, 3px); }
  66% { transform: translate(3px, -1px); }
  100% { transform: translate(0, 0); }
}
