/* Axeon design tokens: "Fluorescence".
   A dark field like fluorescence microscopy; color is light, used sparingly.
   Every page of the site imports this file and styles only through these variables. */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: dark;

  /* ---- Grounds ---- */
  --void: #070b14;            /* page background, 3D viewer background */
  --surface: #0e1524;         /* cards, panels, reading column */
  --surface-raised: #131c30;  /* menus, tooltips, panel headers, inputs */
  --line: #223049;            /* hairline dividers between areas (decorative only) */
  --line-control: #5b6f96;    /* borders of buttons and inputs, 3:1 or more on every ground */

  /* ---- Text ---- */
  --text: #e6ecf5;            /* body and headings, 14:1 or more on every ground */
  --text-muted: #93a0b7;      /* secondary text, captions, labels, 6.4:1 or more */

  /* ---- Light (accents) ---- */
  --signal: #3fd0ff;          /* the one primary accent: primary buttons, links, focus, selection */
  --on-signal: #04121c;       /* text on --signal */
  --magenta: #ff4fb3;         /* secondary accent: highlights inside illustrations, never buttons */
  --amber: #ffb341;           /* tertiary accent: data, warnings, myelin in diagrams */

  /* ---- Brain regions (3D model, region chips, map legends; only for anatomy) ---- */
  --region-frontal: #3fd0ff;
  --region-parietal: #ff4fb3;
  --region-temporal: #ffb341;
  --region-occipital: #9d7bff;
  --region-cerebellum: #5ee6b0;
  --region-limbic: #ff6b5e;
  --region-brainstem: #e8e06a;

  /* ---- Specimen (the realistic resting brain; 3D materials only, never UI) ---- */
  --tissue: #c49a93;              /* cortex surface, grey matter */
  --tissue-highlight: #ecd2cb;    /* wet sheen on the tops of folds */
  --tissue-shadow: #4a2a2c;       /* deep inside the folds */
  --tissue-white-matter: #e8ddd3; /* cut surfaces in sections */

  /* ---- Glow (the signature effect; at most one glowing element per view) ---- */
  --glow-signal: 0 0 24px rgba(63, 208, 255, 0.35);
  --glow-soft: 0 0 48px rgba(63, 208, 255, 0.12);
  --shadow-panel: 0 12px 40px rgba(0, 0, 0, 0.45);

  /* ---- Type ---- */
  --font-display: "Syne", "Arial Black", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --size-display: clamp(44px, 7vw, 72px);  /* home hero only */
  --size-h1: clamp(34px, 4.5vw, 48px);     /* page titles */
  --size-h2: 30px;                         /* section titles, region names in panels */
  --size-h3: 20px;                         /* sub-sections (body font, 600) */
  --size-body-l: 18px;                     /* article body */
  --size-body: 16px;                       /* UI and short text */
  --size-small: 14px;                      /* captions, secondary UI */
  --size-label: 12px;                      /* mono uppercase labels */

  --leading-tight: 1.05;
  --leading-heading: 1.15;
  --leading-body: 1.65;
  --measure: 68ch;                         /* reading width */

  /* ---- Space (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Radius ---- */
  --radius-sm: 6px;     /* chips' inner swatches, small inputs */
  --radius-md: 14px;    /* cards, panels */
  --radius-lg: 22px;    /* large media (the 3D viewer has no frame) */
  --radius-pill: 999px; /* buttons, chips, segmented controls */

  /* ---- Motion ("light, not bounce": things ignite and fade; only 3D parts may overshoot) ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);        /* default UI ease */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* arrivals: panels, reveals, text rising in */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* travel: scan sweep, page beam, camera */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* only for 3D parts moving apart or back together */
  --dur-fast: 120ms;    /* hover, press */
  --dur-base: 220ms;    /* panels, menus */
  --dur-slow: 480ms;    /* camera moves, region isolate */
  --dur-reveal: 1200ms; /* realistic-to-glow scan sweep */
  --dur-page: 640ms;    /* page-to-page beam transition */
  --stagger: 60ms;      /* delay between items entering in sequence */

  --page-max: 1200px;
}

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