/* ==========================================================================
   NINBLE DESIGN TOKENS

   Created on       : 2026-12-03
   Last updated     : 2026-12-04
   Version          : 1.12

   Two layers. Layer 1 holds the raw values, layer 2 the roles that
   components use. A redesign changes this file, not the components.
   Source: _designs/_ds (Ninble design system) and _designs/site (homepage).
   ========================================================================== */

:root {
    /* Layer 1: primitives. Raw values, never used directly in components. */

    /* Cool grey ramp (hsl 220, 10%), light to dark */
    --gray-0: #ffffff;
    --gray-50: #f7f7f8;
    --gray-100: #e9eaed;
    --gray-400: #8f96a3;
    --gray-550: #676f7e;
    --gray-850: #22252a;
    --black: #000000;

    /* Brand ink for the logo */
    --charcoal: #343a40;

    /* Warm paper behind the intro */
    --paper: #f6f5f1;

    /* Blue for links and focus */
    --blue-500: #0055ff;
    --blue-600: #0044cc;

    /* Yellow for the one action button */
    --yellow-500: #f9bc06;
    --yellow-400: #fac31f;

    /* Arcade neons, only on the black stage */
    --arcade-green: #50fa7b;
    --arcade-pink: #ff79c6;
    --arcade-yellow: #f1fa8c;

    /* Typography */
    --font-sans: "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-arcade: "Courier New", monospace;

    /* Zen Maru Gothic ships 400, 700 and 900 */
    --weight-body: 400;
    --weight-heading: 700;
    --weight-wordmark: 700;
    --weight-bold: 700;
    --weight-display: 900;

    --text-legal: 0.8125rem;
    --text-small: 0.875rem;
    --text-base: 1rem;
    --text-arcade: 1.125rem;
    --text-wordmark: 2.0625rem;
    --text-arcade-play: 2rem;
    --text-arcade-message: 3rem;

    --leading-heading: 1.2;
    --leading-wordmark: 1.1;
    --leading-slogan: 1.25;
    --leading-body: 1.5;
    --leading-legal: 1.6;

    --tracking-base: -0.01em;
    --tracking-wordmark: -0.02em;
    --tracking-arcade-play: 0.2em;

    /* Spacing scale */
    --spacing-xxs: 0.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;

    /* Borders, focus, motion */
    --border-radius: 0.5rem;
    --transition-fast: 150ms ease-in-out;

    /* Layout */
    --content-max: 40rem;
    --narrow-max: 25rem;

    /* Layer 2: semantic. Roles, built from primitives. Components use these. */
    --surface: var(--gray-0);
    --surface-subtle: var(--gray-50);
    --surface-paper: var(--paper);
    /* Paper grain: fine noise, long fibres, a soft light spot and a slightly darker foot. Generated SVG, so the raw colors live here. */
    --surface-paper-texture:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".85" numOctaves="3" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 .32 0 0 0 0 .29 0 0 0 0 .24 .22 0 0 0 -.06"/></filter><rect width="100%25" height="100%25" filter="url(%23n)"/></svg>') 0 0 / 220px 220px,
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency=".006 .03" numOctaves="2" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 .4 0 0 0 0 .37 0 0 0 0 .3 .12 0 0 0 -.03"/></filter><rect width="100%25" height="100%25" filter="url(%23f)"/></svg>') 0 0 / 600px 600px,
        radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(70, 60, 40, 0.05));
    --surface-stage: var(--black);
    --ink: var(--charcoal);
    --ink-body: var(--gray-850);
    --ink-subtle: var(--gray-550);
    --ink-on-stage: var(--gray-50);
    --ink-on-stage-subtle: var(--gray-400);
    --border-color: var(--gray-100);
    --link-color: var(--blue-500);
    --link-hover-color: var(--blue-600);
    --button-background: var(--yellow-500);
    --button-hover-background: var(--yellow-400);
    --button-ink: var(--black);
    --stage-score: var(--arcade-green);
    --stage-lives: var(--arcade-pink);
    --stage-pixel: var(--arcade-yellow);
    --focus-ring: 0 0 0 0.25rem rgba(0, 85, 255, 0.25);
    --focus-ring-on-stage: 0 0 0 0.1875rem var(--arcade-yellow);
}
