

@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url(./fonts/inter-tight-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url(./fonts/inter-tight-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url(./fonts/inter-tight-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url(./fonts/inter-tight-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(./fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(./fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(./fonts/jetbrains-mono-latin-700-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;

  --bf-void: #040705;
  --bf-surface: #08120c;
  --bf-raised: #10301f;
  --bf-glass: #0c2a19;
  --bf-glass-fill: rgba(12, 42, 25, 0.82);
  --bf-dim: #14814a;
  --bf-acid: #3dff8a;
  --bf-hi: #b4ffd2;
  --bf-text: #e8f2ec;
  --bf-text-dim: #9db3a6;
  --bf-on-fill: #040705;
  --bf-success: #3dff8a;
  --bf-warning: #ffc65c;
  --bf-danger: #ff7a6b;

  --bf-line: rgba(61, 255, 138, 0.14);
  --bf-edge: #4a9068;
  --bf-edge-glass: rgba(61, 255, 138, 0.32);
  --bf-edge-lit: rgba(61, 255, 138, 0.70);

  --bf-font-display: 'Inter Tight', 'Arial Narrow', Arial, sans-serif;
  --bf-font-body: 'Inter Tight', Arial, sans-serif;
  --bf-font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  --bf-text-xs: 0.75rem;
  --bf-text-sm: 0.875rem;
  --bf-text-base: 1rem;
  --bf-text-md: 1.125rem;
  --bf-text-lg: 1.5rem;
  --bf-text-xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --bf-text-hero: clamp(3.25rem, 1.6rem + 7.2vw, 8rem);
  --bf-text-score: clamp(6rem, 3rem + 12vw, 11rem);

  --bf-leading-hero: 0.88;
  --bf-leading-display: 0.95;
  --bf-leading-heading: 1.1;
  --bf-leading-body: 1.55;
  --bf-leading-mono: 1.45;

  --bf-tracking-hero: -0.05em;
  --bf-tracking-display: -0.035em;
  --bf-tracking-heading: -0.015em;
  --bf-tracking-label: 0.06em;
  --bf-tracking-slogan: -0.045em;
  --bf-measure: 62ch;

  --bf-space-1: 4px;  --bf-space-2: 8px;  --bf-space-3: 12px; --bf-space-4: 16px;
  --bf-space-5: 24px; --bf-space-6: 32px; --bf-space-7: 48px; --bf-space-8: 64px;
  --bf-space-9: 96px; --bf-space-10: 144px;
  --bf-page-max: 1240px;
  --bf-gutter: clamp(20px, 4vw, 48px);
  --bf-nav-h: 64px;

  --bf-radius-panel: 14px;
  --bf-radius-control: 10px;
  --bf-radius-chip: 6px;
  --bf-radius-pill: 999px;
  --bf-border: 1px;

  --bf-blur: 18px;
  --bf-glass-backdrop: blur(var(--bf-blur)) saturate(140%);
  --bf-glow-panel: 0 0 0 1px rgba(61, 255, 138, 0.06), 0 0 28px -8px rgba(61, 255, 138, 0.30), inset 0 1px 0 rgba(180, 255, 210, 0.06);
  --bf-glow-lit: 0 0 0 1px rgba(61, 255, 138, 0.12), 0 0 36px -6px rgba(61, 255, 138, 0.45), inset 0 1px 0 rgba(180, 255, 210, 0.10);
  --bf-glow-button: 0 0 24px -4px rgba(61, 255, 138, 0.55);
  --bf-glow-score: 0 0 28px rgba(61, 255, 138, 0.45), 0 0 2px rgba(180, 255, 210, 0.7);
  --bf-shadow-panel: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --bf-focus: 0 0 0 2px var(--bf-void), 0 0 0 4px var(--bf-acid);
  --bf-grain: url(./textures/grain.png);
  --bf-grain-opacity: 0.05;
  --bf-scanlines: repeating-linear-gradient(0deg, rgba(4, 7, 5, 0.38) 0 1px, transparent 1px 3px);
  --bf-ambient-max: 0.14;

  --bf-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bf-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --bf-dur-fast: 120ms;
  --bf-dur-base: 240ms;
  --bf-dur-slow: 480ms;
  --bf-dur-score: 900ms;
  --bf-stagger: 70ms;
  --bf-mask-period: 26s;
  --bf-link-step: 420ms;

  --bf-z-grain: 0; --bf-z-ambient: 1; --bf-z-object: 2; --bf-z-content: 3; --bf-z-nav: 10;
}

@media (prefers-reduced-motion: reduce) {
  :root { --bf-dur-fast: 0ms; --bf-dur-base: 0ms; --bf-dur-slow: 0ms; --bf-dur-score: 0ms; --bf-stagger: 0ms; }
}
