/* ---------------------------------------------------------------------------
   Epoch Cipher — design tokens
   Source of truth: the brand repository, EpochCipher/brand — the guide is
   org/docs/visual-system.md (moved there from Notion on 2026-10-09). The five
   named colours and the type roles below are the guide's own values; the
   three neutrals are the guide's screen grays, derived at the blue's hue
   (264) so the grays and the blue are one family. Print uses a separate gray
   family on purpose; see "Neutrals" in the guide.

   Rules that come with them: one accent per surface; blue is the only
   interactive colour (links, focus rings, primary buttons); no meaning
   depends on colour.
--------------------------------------------------------------------------- */

:root {
  /* --- colour ------------------------------------------------------------ */
  --ec-ink: #0b0f14; /* Ink            oklch(16.7% 0.012 254.2) */
  --ec-ground: #f6f7f9; /* Paper          oklch(97.6% 0.003 264.5) */
  --ec-plate: #ffffff; /* raised surface on Paper                */
  --ec-blue: #2950ad; /* Blue           oklch(45.9% 0.156 264.1) */
  --ec-blue-pressed: #1b409b; /* Blue, pressed  oklch(40.5% 0.155 263.9) */
  --ec-blue-on-dark: #5479c9; /* Blue, on dark  oklch(58.6% 0.130 264.1) */

  --ec-graphite: #575b63; /* secondary text  oklch(47% 0.014 264), 6.4:1 on Paper */
  --ec-rule: #cfd1d5; /* hairlines       oklch(86% 0.006 264) */
  --ec-rule-soft: #e3e4e7; /*                oklch(92% 0.004 264) */

  --ec-focus: var(--ec-blue);

  /* --- type -------------------------------------------------------------- */
  /* Roles from the brand guide: Spectral for headings (600) and running text
     (400); IBM Plex Sans for labels and interface; Epoch Mono — Plex Mono with
     the slashed zero as its default glyph — for anything that is data. All
     self-hosted as woff2 in each site's public/fonts. */
  --ec-font-display: "Spectral", "Times New Roman", Georgia, serif;
  --ec-font-body: "Spectral", "Times New Roman", Georgia, serif;
  --ec-font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --ec-font-mono: "Epoch Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, monospace;

  --ec-step--1: 0.875rem;
  --ec-step-0: 1.125rem;
  --ec-step-1: 1.3125rem;
  --ec-step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --ec-step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.6rem);
  --ec-step-4: clamp(2.5rem, 1.5rem + 4.4vw, 4rem);

  /* --- geometry ---------------------------------------------------------- */
  --ec-measure: 34rem; /* ~68 characters                    */
  --ec-gutter: clamp(1.25rem, 5vw, 3rem);
  --ec-max: 74rem;
  /* CR80 corner radius is 3.18 mm on a 54 mm card — 5.9%. Used on the one
     plate element so the proportion matches the physical card. */
  --ec-radius-card: 5.9%;
  --ec-radius: 2px;
}
