/* suffix.gg design tokens. Import this in any suffix.gg surface. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color: red */
  --sfx-red: #e10600;        /* Blood. Logo, big type, fills */
  --sfx-red-hot: #ff2b1c;    /* Hot. Hover, small red text on black */
  --sfx-red-deep: #8f0400;   /* Dried. Pressed states, dark red fills */
  --sfx-red-glow: rgb(225 6 0 / 0.35);

  /* Color: black and greys */
  --sfx-void: #0a0a0b;       /* Page background */
  --sfx-surface-1: #121214;  /* Cards, panels */
  --sfx-surface-2: #1a1a1d;  /* Raised panels, inputs */
  --sfx-surface-3: #26262a;  /* Hover on surfaces, borders */
  --sfx-grey-500: #5c5c63;   /* Borders, disabled. Never text */
  --sfx-grey-400: #8b8b93;   /* Muted text */
  --sfx-grey-300: #b4b4bb;   /* Secondary text */

  /* Color: light */
  --sfx-ink: #f2f2f2;        /* Main text on black */
  --sfx-white: #ffffff;      /* Text on red */

  /* Type */
  --sfx-font-display: "Archivo", "Arial Black", sans-serif;
  --sfx-font-body: "Archivo", "Segoe UI", Arial, sans-serif;
  --sfx-font-mono: "JetBrains Mono", Consolas, monospace;
  --sfx-display-stretch: 112%;
  --sfx-display-weight: 900;

  --sfx-text-xs: 0.75rem;
  --sfx-text-sm: 0.875rem;
  --sfx-text-md: 1rem;
  --sfx-text-lg: 1.25rem;
  --sfx-text-xl: 1.75rem;
  --sfx-text-2xl: 2.5rem;
  --sfx-text-3xl: 3.75rem;
  --sfx-text-4xl: 5.5rem;

  /* Shape */
  --sfx-slant: -10deg;       /* Same angle as the logo */
  --sfx-radius: 2px;
  --sfx-border: 1px solid var(--sfx-surface-3);

  /* Space, 4 px grid */
  --sfx-space-1: 4px;
  --sfx-space-2: 8px;
  --sfx-space-3: 12px;
  --sfx-space-4: 16px;
  --sfx-space-6: 24px;
  --sfx-space-8: 32px;
  --sfx-space-12: 48px;
  --sfx-space-16: 64px;
  --sfx-space-24: 96px;

  /* Motion */
  --sfx-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --sfx-fast: 120ms;
  --sfx-base: 200ms;
  --sfx-slow: 360ms;
  --sfx-blink: 1.06s;
}

/* Cursor blink, shared by the logo and any text that ends in "_" */
@keyframes sfx-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --sfx-blink: 0s; }
}
