/* =========================================================================
   PALETTE + TYPE TOKENS  —  edit this file to restyle the whole site.
   -------------------------------------------------------------------------
   Every page (Work, Docs, About, the Flip side) reads its colours and fonts
   from the variables below. Change a hex value here and it updates
   everywhere.

   Quick preview of other presets without editing anything:
     add ?palette=riso  or  ?palette=mono  to any page URL
     (?palette=lagoon returns to the default; the choice is remembered
     in this browser until you change it).

   To make a preset the permanent default, copy its values into :root.
   ========================================================================= */

:root {
  /* ---- 1. Raw swatches (the four stripes) -------------------------------- */
  --swatch-1: #7b3fdb;   /* violet      */
  --swatch-2: #6f95f5;   /* periwinkle  */
  --swatch-3: #9bfff5;   /* aqua        */
  --swatch-4: #fffb8a;   /* butter      */
  --swatch-5: #ff6f91;   /* extra accent used for the 5th work territory */

  /* ---- 2. Neutrals -------------------------------------------------------- */
  --ink: #171714;
  --muted: #6c6b65;
  --paper: #ffffff;
  --paper-light: #fafafa;
  --rule: rgba(23, 23, 20, .2);

  /* ---- 3. Roles (what each swatch is used for) ---------------------------- */
  --accent: var(--swatch-1);          /* strong accent: contact block, active states */
  --accent-ink: #ffffff;              /* text on top of --accent                      */
  --highlight: var(--swatch-4);       /* text selection, small highlights             */
  --highlight-ink: var(--ink);

  /* ---- 4. Work territories (map regions, filter dots, placeholders) ------- */
  --region-transportation: var(--swatch-1);
  --region-data: var(--swatch-2);
  --region-architecture: #2fc7b8;     /* aqua is too pale for map lines; deeper tone */
  --region-housing: var(--swatch-5);
  --region-sustainability: #d9c400;   /* butter, deepened so it reads on white        */

  /* ---- 5. Flip side ("the other practice") -------------------------------- */
  --flip-1: var(--swatch-1);
  --flip-2: var(--swatch-2);
  --flip-3: var(--swatch-3);
  --flip-4: var(--swatch-4);
  --flip-ink: #120f1a;
  --flip-on-dark: #ffffff;            /* text on band 1 (the darkest)                 */

  /* ---- 6. Type ------------------------------------------------------------ */
  --font-display: "Barlow", "Segoe UI", sans-serif;   /* titles   */
  --font-body: "Barlow", "Segoe UI", sans-serif;      /* everything else */
}

/* ---- Preset: riso (fluoro print inks) ------------------------------------ */
html[data-palette="riso"] {
  --swatch-1: #ff48b0;
  --swatch-2: #0078bf;
  --swatch-3: #00a95c;
  --swatch-4: #ffe800;
  --swatch-5: #ff6c2f;
  --region-architecture: var(--swatch-3);
  --region-sustainability: #e0c800;
  --flip-on-dark: #ffffff;
}

/* ---- Preset: mono (the original black / white with the old map colours) -- */
html[data-palette="mono"] {
  --swatch-1: #171714;
  --swatch-2: #5d5d59;
  --swatch-3: #c9c8c2;
  --swatch-4: #efeee9;
  --swatch-5: #ba48cd;
  --highlight: #171714;
  --highlight-ink: #fafafa;
  --region-transportation: #ec4352;
  --region-data: #20b9d1;
  --region-architecture: #ee9d45;
  --region-housing: #ba48cd;
  --region-sustainability: #9eae18;
}
