/* =========================================================
   Brand tokens: The Scale Space brand kit (October 2026)
   Source: Notion parent task "Brand Kit (Oct 2026)" and
   Brand Guidelines PDF, pages 4, 6, 7, 8 and 14.

   WEB AMENDMENT (applied 2026-12-01): dark grounds use Near black
   #050508 instead of the kit's Void #0B1026, to match the website
   build (palette C, "relay-palette-c", picked by Rick 2026-11-27:
   "blue ground darker, almost black, brand colours kept").
   Gold, Electric, Starlight and white are unchanged. The navy Orbit
   is replaced on dark grounds by the website's raised surface #0F111A.
   The variable is still called --void so nothing else had to change.

   Change brand values here only. styles.css reads these
   variables and never hard-codes a color, font or size.
   ========================================================= */

/* ---------------------------------------------------------
   FONT SLOT (flagged): Forma DJR is the only brand typeface.
   No web font files exist in the project yet. When the web
   license is sorted, add ONE of these and delete this note:

   1) Adobe Fonts kit, in the <head> of each page:
      <link rel="stylesheet" href="https://use.typekit.net/XXXXXXX.css">

   2) Self-hosted files, here:
      @font-face { font-family: "Forma DJR Display"; font-weight: 700;
        src: url("../fonts/FormaDJRDisplay-Bold.woff2") format("woff2");
        font-display: swap; }
      (repeat for Display Medium 500, UI Regular 400 and Condensed Bold 700)

   Until then the stacks below fall back to Helvetica Neue (on a Mac,
   its Condensed Bold face stands in for Forma DJR Condensed).
   Licence status: open in the vault (website project, owner Rick).
   --------------------------------------------------------- */

:root {
  /* Colour, with brand share in brackets */
  --white: #FFFFFF;          /* 40%  main ground */
  --void: #050508;           /* 30%  Near black: dark grounds, text on light, button labels (kit Void was #0B1026) */
  --gold: #FFB700;           /* 15%  the one call to action, mark, lines on dark */
  --gold-hover: #FFC633;     /*      button hover */
  --orbit: #1D2A5C;          /* 10%  kit's secondary navy. Not used on web since the Near black switch */
  --surface-dark: #0F111A;   /*      raised panels on Near black (website palette C "surface-raised") */
  --electric: #0297DE;       /*  5%  links, focus rings, icons, highlights */
  --electric-text: #0277BD;  /*      text-safe Electric for small words on white */
  --starlight: #EEF0F7;      /*      soft panels on light grounds */

  /* Tints (no new hues). Dark-ground values mirror website palette C. */
  --void-72: rgba(5, 5, 8, 0.72);         /* muted text on white, 8.7:1 */
  --void-56: rgba(5, 5, 8, 0.56);
  --line-light: rgba(5, 5, 8, 0.12);
  --line-input: rgba(5, 5, 8, 0.28);
  --line-dark: rgba(255, 255, 255, 0.10); /* palette C border-subtle */
  --text-on-dark: #969BAB;                /* palette C foreground-muted, 7.3:1 on Near black */
  --panel-dark: rgba(255, 255, 255, 0.04);/* palette C surface-glass */
  --electric-wash: rgba(2, 151, 222, 0.10);

  /* The Space ground: Near black with the kit's "touch of Electric in the far corner".
     Whole-section grounds only. Never on buttons or text. */
  --space:
    radial-gradient(70% 60% at 100% 100%, rgba(2, 151, 222, 0.22), rgba(2, 151, 222, 0) 70%),
    linear-gradient(135deg, var(--void) 0%, var(--void) 45%, var(--surface-dark) 100%);

  /* Soft sky glow used in the corner of light pages (guidelines pp. 2-7) */
  --sky: radial-gradient(55% 60% at 100% 0%, rgba(2, 151, 222, 0.16), rgba(2, 151, 222, 0) 72%);

  /* Type: Forma DJR only (guidelines p7). Headlines Display Bold 72/72, sentence case.
     Labels and buttons Display Medium 18-22. Body UI Regular 17-24 / 1.45.
     Numbers in tight spaces: Condensed Bold, sparingly. */
  --font-display: "Forma DJR Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Forma DJR UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-condensed: "Forma DJR Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-h1: clamp(2.625rem, 1.55rem + 4.3vw, 4.5rem);      /* 42 to 72 */
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);          /* 32 to 52 */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);        /* 20 to 24 */
  --fs-stat: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);         /* 32 to 44 */
  --fs-lead: clamp(1.125rem, 1.03rem + 0.4vw, 1.375rem);   /* 18 to 22 */
  --fs-body: clamp(1.0625rem, 1.02rem + 0.18vw, 1.1875rem);/* 17 to 19 */
  --fs-label: 1.125rem;                                    /* 18 buttons */
  --fs-small: 0.9375rem;                                   /* 15 */
  --fs-micro: 0.8125rem;                                   /* 13 */
  --lh-body: 1.45;

  /* Space: 24px base unit, 12-column grid, 96px outer margin at 1440+ */
  --s1: 0.5rem;   /*   8 */
  --s2: 1rem;     /*  16 */
  --s3: 1.5rem;   /*  24 */
  --s4: 2rem;     /*  32 */
  --s5: 3rem;     /*  48 */
  --s6: 4.5rem;   /*  72 */
  --s7: 6rem;     /*  96 */
  --gutter: 1.5rem;
  --margin-outer: clamp(1rem, -0.5rem + 6.667vw, 6rem);
  --container: 78rem;                                      /* 1248 = 1440 - 2 x 96 */
  --section-pad: clamp(4.5rem, 2.8rem + 6.5vw, 9rem);      /* 72 to 144 */
  --header-h: 80px;

  /* Corners: square on photos, panels and buttons.
     Only phone-style UI cards round off, at 28px. */
  --radius: 0;
  --radius-ui: 28px;

  /* Texture assets (inline SVG, no downloads). Grain = fractal noise with transparent gaps,
     so grounds keep their colour. Stars = one 480px tile, used twice at different scales. */
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.02  0 0 0 0 0.02  0 0 0 0 0.02  0.45 0 0 0 -0.215'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.4 0 0 0 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Ccircle cx='359' cy='97' r='0.7' fill='%23FFFFFF' fill-opacity='0.43'/%3E%3Ccircle cx='261' cy='61' r='0.9' fill='%23FFFFFF' fill-opacity='0.24'/%3E%3Ccircle cx='328' cy='241' r='1.3' fill='%23FFFFFF' fill-opacity='0.43'/%3E%3Ccircle cx='116' cy='359' r='1.3' fill='%23FFFFFF' fill-opacity='0.63'/%3E%3Ccircle cx='377' cy='466' r='0.6' fill='%230297DE' fill-opacity='0.54'/%3E%3Ccircle cx='410' cy='69' r='0.7' fill='%23FFFFFF' fill-opacity='0.51'/%3E%3Ccircle cx='403' cy='459' r='0.8' fill='%23FFFFFF' fill-opacity='0.34'/%3E%3Ccircle cx='280' cy='15' r='1.3' fill='%23FFFFFF' fill-opacity='0.36'/%3E%3Ccircle cx='261' cy='60' r='0.6' fill='%23FFFFFF' fill-opacity='0.53'/%3E%3Ccircle cx='223' cy='316' r='0.8' fill='%23FFFFFF' fill-opacity='0.61'/%3E%3Ccircle cx='409' cy='203' r='1.3' fill='%23FFFFFF' fill-opacity='0.32'/%3E%3Ccircle cx='423' cy='120' r='1.1' fill='%23FFFFFF' fill-opacity='0.4'/%3E%3Ccircle cx='205' cy='249' r='0.6' fill='%23FFFFFF' fill-opacity='0.27'/%3E%3Ccircle cx='60' cy='263' r='0.6' fill='%230297DE' fill-opacity='0.24'/%3E%3Ccircle cx='105' cy='286' r='0.6' fill='%23FFFFFF' fill-opacity='0.63'/%3E%3Ccircle cx='157' cy='195' r='0.6' fill='%23FFFFFF' fill-opacity='0.67'/%3E%3Ccircle cx='339' cy='279' r='0.6' fill='%23FFFFFF' fill-opacity='0.39'/%3E%3Ccircle cx='324' cy='381' r='0.7' fill='%23FFFFFF' fill-opacity='0.55'/%3E%3Ccircle cx='133' cy='423' r='1.1' fill='%23FFFFFF' fill-opacity='0.59'/%3E%3Ccircle cx='438' cy='335' r='0.8' fill='%23FFFFFF' fill-opacity='0.47'/%3E%3Ccircle cx='289' cy='341' r='0.6' fill='%23FFFFFF' fill-opacity='0.29'/%3E%3Ccircle cx='4' cy='54' r='1.1' fill='%23FFFFFF' fill-opacity='0.67'/%3E%3Ccircle cx='330' cy='16' r='0.7' fill='%230297DE' fill-opacity='0.61'/%3E%3Ccircle cx='16' cy='9' r='0.9' fill='%23FFFFFF' fill-opacity='0.24'/%3E%3Ccircle cx='467' cy='79' r='0.8' fill='%23FFFFFF' fill-opacity='0.3'/%3E%3Ccircle cx='47' cy='292' r='0.6' fill='%23FFFFFF' fill-opacity='0.64'/%3E%3Ccircle cx='405' cy='441' r='1.1' fill='%23FFFFFF' fill-opacity='0.23'/%3E%3Ccircle cx='451' cy='235' r='0.8' fill='%23FFFFFF' fill-opacity='0.53'/%3E%3Ccircle cx='263' cy='190' r='0.6' fill='%23FFFFFF' fill-opacity='0.27'/%3E%3Ccircle cx='99' cy='114' r='0.7' fill='%23FFFFFF' fill-opacity='0.29'/%3E%3Ccircle cx='286' cy='472' r='0.9' fill='%23FFFFFF' fill-opacity='0.52'/%3E%3Ccircle cx='152' cy='39' r='1.3' fill='%230297DE' fill-opacity='0.25'/%3E%3Ccircle cx='74' cy='331' r='0.6' fill='%23FFFFFF' fill-opacity='0.29'/%3E%3Ccircle cx='116' cy='32' r='0.8' fill='%23FFFFFF' fill-opacity='0.38'/%3E%3C/svg%3E");

  /* Background grid: 96px squares = 4 of the kit's 24px base units */
  --grid-size: 96px;
  --grid-line-light: rgba(5, 5, 8, 0.055);      /* on white, Starlight, sky */
  --grid-line-dark: rgba(255, 255, 255, 0.045); /* on Near black */
  --grid-line-lit: rgba(2, 151, 222, 0.55);     /* Electric, near the cursor on dark grounds */

  --shadow-ui: 0 30px 60px -28px rgba(5, 5, 8, 0.55), 0 8px 20px -12px rgba(5, 5, 8, 0.35);
}
