/* ============================================================
   Episquire Web Design System — CYANOTYPE REGISTER
   EPQ-REG · REV A · 2026-11-15
   Web only. Sources: the cyanotype register brainstorm sheets
   EPQ-BP-001 … 005 (2026-11-14). Supersedes the engineering-placard
   system (EPQ-DS-000 REV F) for the public website once adopted;
   until then both exist side by side and nothing here is wired in.

   The ground is one flat sheet of Prussian blue. All form is white
   pencil. Identity is hatch, not hue. Colour is evidence of contact:
   it appears for ~340ms when something is pressed, then returns to
   register.

   All tokens are prefixed --reg-. Components read tokens only.
   No literal colour appears outside this file, except the hatch
   data-URIs in register.css (a data-URI cannot read a custom property).
   ============================================================ */

/* PROTOTYPE COPY: the Google Fonts @import is removed so the prototype makes no third-party request. Fonts load from fonts.css (base64 woff2, SIL OFL). Nothing else differs from the Register source. */

/* ---------- SOURCE VALUES (the only place literals live) ---------- */
:root {
  --reg-src-prussian:   #174A84;   /* sampled from EPQ-BP-001…005, identical on all five */
  --reg-src-deep:       #11396A;   /* title block, nav band: one step down */
  --reg-src-paper:      #F3F7FB;   /* white pencil */
  --reg-src-paper-70:   #B9CCE4;   /* secondary pencil, text-safe */
  --reg-src-cyan:       #19B8F0;
  --reg-src-magenta:    #E040D0;
  --reg-src-yellow:     #D8F24A;
  /* marker pens: the four hues of the placard system (EPQ-DS-000), back as highlighter
     laid over the pencil. Fill only, never a line, never text. */
  --reg-src-mk-lime:    #C4F000;
  --reg-src-mk-orange:  #FF5C00;
  --reg-src-mk-cyan:    #00B6E8;
  --reg-src-mk-magenta: #E6007E;
  --reg-src-whiteprint: #F2F6FB;   /* the reversal: blue ink on white */
  --reg-src-whiteprint-70: #3E6AA0;
}

/* ---------- SEMANTIC ALIASES (components consume these) ---------- */
:root {
  /* Ground + pencil */
  --reg-ground:      var(--reg-src-prussian);
  --reg-ground-deep: var(--reg-src-deep);
  --reg-pencil:      var(--reg-src-paper);      /* every firm line, all text · 8.5:1 on ground */
  --reg-pencil-70:   var(--reg-src-paper-70);   /* secondary text, labels · 5.7:1 on ground   */
  --reg-pencil-faint: rgb(243 247 251 / .32);   /* hidden lines, hairlines. NEVER text.        */
  --reg-fill:        rgb(243 247 251 / .07);    /* the faint plate tint inside a drawn object  */

  /* The engineering grid. Flat, even. No vignette, no mottling, no grain. */
  --reg-grid-minor:  rgb(243 247 251 / .05);
  --reg-grid-major:  rgb(243 247 251 / .10);
  --reg-grid-step:   24px;                      /* minor; major = 5× */

  /* Process plates: appear on contact only. See §Press in README. */
  --reg-plate-c: var(--reg-src-cyan);
  --reg-plate-m: var(--reg-src-magenta);
  --reg-plate-y: var(--reg-src-yellow);
  --reg-plate-a: 62%;                            /* plate strength; the sheets screen-blend at 62% */

  /* Marker ink (ruled 2026-11-17): colour at rest, as highlighter over the drawing.
     lime = a ruling and the record · orange = where a decision is made ·
     cyan = where it is read back · magenta = the person who rules, and a fault. */
  --reg-mk-lime:    var(--reg-src-mk-lime);
  --reg-mk-orange:  var(--reg-src-mk-orange);
  --reg-mk-cyan:    var(--reg-src-mk-cyan);
  --reg-mk-magenta: var(--reg-src-mk-magenta);
  --reg-on-mk:      var(--reg-src-deep);          /* text on lime */

  /* Interaction */
  --reg-focus: var(--reg-pencil);                /* ruled: focus is a pencil ring, no colour at rest (A2) */

  /* ---- Type ---------------------------------------------------
     Fibonacci scale carried over from EPQ-DS-000 REV F:
     13 · 21 · 34 · 55 · 89. Choose by role, never by looks.
     (the series continues to 144 for the one outlined mark per site).
     13 label/dimension · 21 read-or-touch · 34 title · 55 statement ·
     89 outlined secondary · 144 outlined mark. Nothing between. Nothing under 13. */
  --reg-font-display: "Archivo", system-ui, sans-serif;
  --reg-font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --reg-font-mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --reg-t-label:     13px;
  --reg-t-body:      21px;
  --reg-t-title:     34px;
  --reg-t-statement: 55px;
  --reg-t-display:   89px;
  --reg-t-mark:      144px;

  --reg-w-body:   400;
  --reg-w-label:  500;     /* nothing under 34px above 600 */
  --reg-w-strong: 600;
  --reg-w-hero:   800;

  --reg-track-label:   .16em;   /* mono caps: the sheets run wide */
  --reg-track-display: -.012em;

  /* ---- Rules: exactly two weights ---- */
  --reg-rule: 2px;   /* structural: frame, title block, key outlines */
  --reg-hair: 1px;   /* hairline: grid, table rows, hidden edges     */

  /* ---- Sheet furniture ---- */
  --reg-sheet-gap:   28px;    /* page margin to outer border (desktop)  */
  --reg-zone:        32px;    /* width of the zone-letter band           */
  --reg-pad:         56px;    /* inner padding of a sheet body           */

  /* ---- Press (EPQ-BP-004). Four frames, 320ms, zero blur, stepped. ---- */
  --reg-press-ms: 320ms;
  --reg-ghost: 5px;           /* resting hard offset: the key stands proud */

  /* ---- Layout ---- */
  --reg-page-max: 1600px;
  --reg-measure:  62ch;       /* running text keeps its measure */
}

/* ---------- WHITEPRINT (the reversal) ---------------------------
   Same structure, ink and ground swapped. For print and for light-
   preference readers. Tokens only: no component is re-declared.
   Unverified beyond contrast arithmetic. See README assumption A3. */
[data-reg-theme="whiteprint"] {
  --reg-ground:       var(--reg-src-whiteprint);
  --reg-ground-deep:  #E3EBF5;
  --reg-pencil:       var(--reg-src-prussian);
  --reg-pencil-70:    var(--reg-src-whiteprint-70);
  --reg-pencil-faint: rgb(23 74 132 / .34);
  --reg-fill:         rgb(23 74 132 / .06);
  --reg-grid-minor:   rgb(23 74 132 / .07);
  --reg-grid-major:   rgb(23 74 132 / .14);
  --reg-plate-y: #E6C400;
  --reg-plate-a: 80%;
}

/* ---------- MOTION ----------
   prefers-reduced-motion is not consulted anywhere in the Register (ruled 2026-11-17). */
