/* lekto.ca colour tokens: the single source of every colour on the site (brand pick 2026-10-26, decision 0110: R's
   semantic token layer, E's « Cadre fort » mark). Every page loads this file first; the stylesheets after it
   (family.css, site.css) hold no colour value of their own, only var() references to these names.
   Values are palette A (DSN-001 v0.2, docs/quality/design/brand-palette.md in the Lekto repo), unchanged; nothing here
   is a new colour. Three groups:
     1. primitives: palette A, its Blue and Neutral ramps, and the alpha tints and opaque blends of those same colours
        that the drawings and the navy band use (precomputed: no color-mix(), see releve.css);
     2. semantic (--lk-c-*): what components read: background, surface, three text levels, edges, accent, brand, focus,
        and the logo (tile, corners, line, word, descriptor);
     3. status (--lk-st-*): reference only, for status and never for brand (the form's error message).
   Dark mode: the visitor's switch only (assets/theme.js sets data-theme on <html>; light by default, the operating
   system's setting is ignored, owner 2026-10-25), so the dark values sit under :root[data-theme="dark"] and no rule follows
   the system's colour scheme. R's dark rule for the mark: on a dark or navy ground the tile is not drawn, the figure
   (white corners, Blue 300 line) is the mark; favicons keep the tile (they sit in the browser's chrome, not the page). */
:root{
  /* 1. primitives: palette A */
  --lk-navy:#12264F;--lk-blue:#1F4FAE;--lk-line:#8DB0EE;--lk-mist:#DCE6F4;--lk-papier:#F5F7F9;--lk-white:#FFFFFF;--lk-ink:#14213D;
  --lk-dark-bg:#0D1524;--lk-dark-card:#152035;--lk-dark-ink:#E6EBF3;
  --lk-blue-200:#BED3F1;--lk-blue-700:#184090;
  --lk-neutral-200:#D9DEE6;--lk-neutral-300:#C1C8D2;--lk-neutral-400:#979FAB;--lk-neutral-500:#737B89;--lk-neutral-600:#545E6F;--lk-neutral-700:#3A4559;--lk-neutral-800:#253149;
  /* alpha tints of palette A colours (name = colour and opacity in %) */
  --lk-ink-a08:rgba(20,33,61,.08);--lk-ink-a16:rgba(20,33,61,.16);--lk-ink-a22:rgba(20,33,61,.22);--lk-ink-a28:rgba(20,33,61,.28);
  --lk-ink-a32:rgba(20,33,61,.32);--lk-ink-a34:rgba(20,33,61,.34);--lk-ink-a36:rgba(20,33,61,.36);--lk-ink-a38:rgba(20,33,61,.38);
  --lk-ink-a40:rgba(20,33,61,.40);--lk-ink-a50:rgba(20,33,61,.5);--lk-ink-a62:rgba(20,33,61,.62);--lk-ink-a80:rgba(20,33,61,.80);
  --lk-ink-a06:rgba(20,33,61,.06);--lk-ink-a12:rgba(20,33,61,.12);
  --lk-blue-a05:rgba(31,79,174,.05);--lk-blue-a10:rgba(31,79,174,.10);--lk-blue-a12:rgba(31,79,174,.12);--lk-blue-a14:rgba(31,79,174,.14);
  --lk-blue-a22:rgba(31,79,174,.22);--lk-blue-a27:rgba(31,79,174,.27);--lk-blue-a35:rgba(31,79,174,.35);--lk-blue-a45:rgba(31,79,174,.45);
  --lk-line-a05:rgba(141,176,238,.05);--lk-line-a07:rgba(141,176,238,.07);--lk-line-a075:rgba(141,176,238,.075);--lk-line-a09:rgba(141,176,238,.09);
  --lk-line-a12:rgba(141,176,238,.12);--lk-line-a14:rgba(141,176,238,.14);--lk-line-a16:rgba(141,176,238,.16);--lk-line-a22:rgba(141,176,238,.22);
  --lk-line-a26:rgba(141,176,238,.26);--lk-line-a30:rgba(141,176,238,.30);--lk-line-a44:rgba(141,176,238,.44);--lk-line-a45:rgba(141,176,238,.45);
  --lk-line-a55:rgba(141,176,238,.55);
  --lk-mist-a07:rgba(220,230,244,.07);--lk-mist-a12:rgba(220,230,244,.12);--lk-mist-a18:rgba(220,230,244,.18);--lk-mist-a42:rgba(220,230,244,.42);
  --lk-mist-a50:rgba(220,230,244,.5);--lk-mist-a60:rgba(220,230,244,.6);--lk-mist-a70:rgba(220,230,244,.7);--lk-mist-a74:rgba(220,230,244,.74);
  --lk-dink-a42:rgba(230,235,243,.42);--lk-dink-a55:rgba(230,235,243,.55);--lk-dink-a60:rgba(230,235,243,.6);--lk-dink-a62:rgba(230,235,243,.62);
  --lk-dink-a92:rgba(230,235,243,.92);
  --lk-white-a70:rgba(255,255,255,.7);--lk-white-a72:rgba(255,255,255,.72);
  --lk-navy-a42:rgba(18,38,79,.42);--lk-dbg-a72:rgba(13,21,36,.72);--lk-dbg-a94:rgba(13,21,36,.94);--lk-papier-a94:rgba(245,247,249,.94);--lk-papier-a55:rgba(245,247,249,.55);--lk-dbg-a55:rgba(13,21,36,.55);
  --lk-n200-a80:rgba(217,222,230,.8);--lk-n800-a80:rgba(37,49,73,.8);
  --lk-black-a25:rgba(0,0,0,.25);--lk-black-a35:rgba(0,0,0,.35);--lk-black-a40:rgba(0,0,0,.4);--lk-black-a50:rgba(0,0,0,.5);--lk-black-a55:rgba(0,0,0,.55);
  --lk-line-a35:rgba(141,176,238,.35);
  /* opaque blends (Blue 10 % and 4 % on White; Blue 300 10 % and 4 % on the dark card) */
  --lk-blue-on-white-10:rgb(233,237,247);--lk-blue-on-white-4:rgb(246,248,252);--lk-line-on-dcard-10:rgb(33,46,72);--lk-line-on-dcard-4:rgb(26,38,60);
  --lk-black:#000000;

  /* 2. semantic, light */
  --lk-c-bg:var(--lk-papier);              /* page */
  --lk-c-surface:var(--lk-white);          /* cards, fields, sheets */
  --lk-c-surface-quiet:var(--lk-mist);     /* quiet panels */
  --lk-c-text:var(--lk-ink);               /* body text and headings: 14.87:1 on bg */
  --lk-c-text-2:var(--lk-neutral-700);     /* secondary text, solid (was ink at 80 %): 8.99:1 on bg */
  --lk-c-text-3:var(--lk-neutral-600);     /* the lightest text, solid (was ink at 72 %): 6.10:1 on bg */
  --lk-c-edge:var(--lk-neutral-500);       /* borders of controls (>= 3:1) */
  --lk-c-rule:var(--lk-neutral-200);       /* decorative hairline, never the only edge of a control */
  --lk-c-accent:var(--lk-blue);            /* links, the main action, focus */
  --lk-c-on-accent:var(--lk-white);
  --lk-c-accent-hover:var(--lk-blue-700);
  --lk-c-brand:var(--lk-navy);             /* navy grounds: header and footer of the privacy pages, the band */
  --lk-c-on-brand:var(--lk-white);
  --lk-c-on-brand-2:var(--lk-neutral-300); /* secondary text on navy: 8.80:1 */
  --lk-c-brand-accent:var(--lk-line);
  --lk-c-focus:var(--lk-blue);
  --lk-c-logo-tile:var(--lk-navy);         /* the mark: tile, corners, line (P2 one colour: white on the tile, owner 2026-11-09), word, descriptor */
  --lk-c-logo-corner:var(--lk-white);
  --lk-c-logo-line:var(--lk-white);
  --lk-c-logo-word:var(--lk-navy);
  --lk-c-logo-desc:var(--lk-navy);
  /* 3. status, reference only, never brand: the form's error message (the app's error red) and the frozen DS-001 warning
     set (R's reference values) for the form's « not sent » message */
  --lk-st-err:#A32020;--lk-st-warn:#8A5A00;--lk-st-warnbg:#FFF3D6;--lk-st-warnbar:#E0A100;
  /* surface T2 « Strata » (design pass 2026-11-09): tints and shades of palette A only, no new colour. */
  --lk-c-ground-title:var(--lk-blue-on-white-10); /* the title block (the first section of each page) */
  --lk-c-ground-draw:var(--lk-white);             /* the drawing field (sections that hold a figure) */
  --lk-c-ground-foot:var(--lk-mist);              /* the footer */
  --lk-c-raised:var(--lk-white);                  /* the status box on the title block */
  color-scheme:light;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --lk-c-bg:var(--lk-dark-bg);--lk-c-surface:var(--lk-dark-card);--lk-c-surface-quiet:var(--lk-navy);
  --lk-c-text:var(--lk-dark-ink);           /* 15.26:1 on bg */
  --lk-c-text-2:var(--lk-neutral-300);      /* 10.84:1 */
  --lk-c-text-3:var(--lk-neutral-400);      /* 6.84:1 */
  --lk-c-edge:var(--lk-neutral-500);--lk-c-rule:var(--lk-neutral-800);
  --lk-c-accent:var(--lk-line);--lk-c-on-accent:var(--lk-dark-bg);--lk-c-accent-hover:var(--lk-blue-200);
  --lk-c-brand:var(--lk-navy);--lk-c-on-brand:var(--lk-white);--lk-c-on-brand-2:var(--lk-neutral-300);--lk-c-brand-accent:var(--lk-line);
  --lk-c-focus:var(--lk-line);
  --lk-c-logo-tile:transparent;--lk-c-logo-corner:var(--lk-white);--lk-c-logo-line:var(--lk-white);--lk-c-logo-word:var(--lk-dark-ink);--lk-c-logo-desc:var(--lk-dark-ink);
  --lk-st-err:#F59A92;--lk-st-warn:#F3C65D;--lk-st-warnbg:#2C2410;--lk-st-warnbar:#F3C65D;
  /* surface T2 « Strata » */
  --lk-c-ground-title:var(--lk-dark-card);        /* elevation 1 */
  --lk-c-ground-draw:var(--lk-line-on-dcard-4);   /* elevation 2 */
  --lk-c-ground-foot:var(--lk-dark-card);
  --lk-c-raised:var(--lk-line-on-dcard-10);       /* elevation 3 */
}
/* a navy ground in either theme (the privacy pages' header and footer): the mark drops its tile */
.lk-on-brand{--lk-c-logo-tile:transparent;--lk-c-logo-word:var(--lk-dark-ink);--lk-c-logo-desc:var(--lk-dark-ink)}
/* paper: one ink */
@media print{:root{--lk-c-logo-tile:transparent;--lk-c-logo-corner:var(--lk-black);--lk-c-logo-line:var(--lk-black);--lk-c-logo-word:var(--lk-black);--lk-c-logo-desc:var(--lk-black)}}
/* forced colours (Windows contrast themes): the figure in the system text colour */
@media (forced-colors:active){:root{--lk-c-logo-tile:transparent;--lk-c-logo-corner:CanvasText;--lk-c-logo-line:CanvasText;--lk-c-logo-word:CanvasText;--lk-c-logo-desc:CanvasText}}
/* the inline « Lekto Rx » lockup (tools/family_pages.py logo()) takes its fills from these classes */
.lk-tile{fill:var(--lk-c-logo-tile)}.lk-corner{fill:var(--lk-c-logo-corner)}.lk-line{fill:var(--lk-c-logo-line)}.lk-word{fill:var(--lk-c-logo-word)}.lk-desc{fill:var(--lk-c-logo-desc)}
