/* Revortis design tokens: three proposal directions (a, b, c) share one set of names.
   The style board scopes each set with [data-dir]. Status: proposal, not approved. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Saira"; src: url("fonts/saira-latin-wdth-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-opsz-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-opsz-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* type scale: ratio 1.25 from 16px */
  --step--1: 0.8125rem;  /* 13 */
  --step-0: 1rem;        /* 16 */
  --step-1: 1.25rem;     /* 20 */
  --step-2: 1.5625rem;   /* 25 */
  --step-3: 1.9375rem;   /* 31 */
  --step-4: 2.4375rem;   /* 39 */
  --step-5: 3.0625rem;   /* 49 */
  --step-6: 3.8125rem;   /* 61 */
  --step-7: 4.75rem;     /* 76 */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.5rem;
  --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;
  --measure: 62ch;
  --hairline: 1px;
  --rule: 2px;

  /* board chrome: fixed, no direction defines these */
  --mock-bg: #202224;
  --mock-fg: #F2F2F2;
  --mock-active: #FFFFFF;
  --mock-active-fg: #202224;
}

/* A. Ardesia: the grey consulting idea, done with structure */
[data-dir="a"] {
  --bg: #F1F2F2;          /* canvas */
  --surface: #FFFFFF;     /* cards, slides */
  --band: #DADDDF;        /* stone: middle band of the staircase */
  --panel: #2C3135;       /* slate: dark band, footer, dark logo plate */
  --ink: #17191B;         /* headings, logo-adjacent text */
  --body: #4C5257;        /* running text (7.1:1 on canvas) */
  --line: #C3C8CC;        /* rules, borders (non-text) */
  --accent: #2443B8;      /* cobalt: links and the one primary action (7.3:1) */
  --on-accent: #FFFFFF;
  --accent-soft: #DDE3F6;
  --on-panel: #F1F2F2;
  --on-panel-muted: #AEB4B9; /* 6.3:1 on slate */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 620;
  --display-stretch: 112%;
  --display-tracking: -0.015em;
  --radius: 2px;
}

/* B. Redline: drafting grey and ink, red pencil marks the change (recommended) */
[data-dir="b"] {
  --bg: #ECEEEC;          /* paper: cool drafting grey */
  --surface: #F8F9F7;     /* sheet */
  --band: #E1E4E1;
  --shade: #CDD2CF;       /* drawing: shaded faces in the "solid" treatment */
  --panel: #17191A;       /* ink plate: dark sections */
  --ink: #141617;
  --body: #474C50;        /* graphite (7.5:1 on paper) */
  --line: #BFC4C1;        /* drawing rules (non-text) */
  --accent: #B8231A;      /* redline (5.5:1 on paper, 6.0:1 on sheet) */
  --on-accent: #F8F9F7;
  --accent-soft: #F3D9D4;
  --accent-fill: #B8231A;   /* filled marks: the button, the highlighter */
  --accent-word: #B8231A;   /* the one marked word in the headline */
  --on-accent-fill: #F8F9F7;
  --on-panel: #EDEFEE;
  --on-panel-muted: #A9AFB2; /* 7.9:1 on ink plate */
  --accent-on-panel: #FF7A6B; /* redline on dark (6.9:1) */
  /* Saira, expanded: the wordmark's face, for headlines and numbers only */
  --font-display: "Saira", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  /* Source Serif 4: running text, subheads, and (italic, red) the annotations */
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  /* IBM Plex Sans: labels, buttons, captions, data */
  --font-ui: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  /* the system's own monospace: the 404 page's text-drawn process only, never labels */
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-stretch: 118%;
  --display-tracking: -0.01em;
  --text-leading: 1.62;
  --radius: 3px;
}

/* B dark ("Night"): the same drawing in chalk on the ink plate. Explicit choice, or the system's. */
[data-dir="b"][data-theme="dark"] {
  --bg: #121415;          /* night: the ink plate as the page */
  --surface: #1C1F21;
  --band: #262A2D;
  --shade: #30353A;
  --panel: #0B0C0D;
  --ink: #E8EBE9;         /* chalk: headings and drawing lines (15.4:1) */
  --body: #B3B9B6;        /* 9.3:1 */
  --line: #33383B;
  --accent: #FF7A6B;      /* redline on dark (7.2:1) */
  --on-accent: #121415;
  --accent-fill: #FF7A6B;
  --accent-word: #FF7A6B;
  --on-accent-fill: #121415;
  --accent-soft: #3A1F1C;
  --on-panel: #E8EBE9;
  --on-panel-muted: #A9AFB2;
  --accent-on-panel: #FF7A6B;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-dir="b"]:not([data-theme="light"]) {
    --bg: #121415;          /* night: the ink plate as the page */
    --surface: #1C1F21;
    --band: #262A2D;
    --shade: #30353A;
    --panel: #0B0C0D;
    --ink: #E8EBE9;         /* chalk: headings and drawing lines (15.4:1) */
    --body: #B3B9B6;        /* 9.3:1 */
    --line: #33383B;
    --accent: #FF7A6B;      /* redline on dark (7.2:1) */
    --on-accent: #121415;
    --accent-fill: #FF7A6B;
  --accent-word: #FF7A6B;
    --on-accent-fill: #121415;
    --accent-soft: #3A1F1C;
    --on-panel: #E8EBE9;
    --on-panel-muted: #A9AFB2;
    --accent-on-panel: #FF7A6B;
    color-scheme: dark;
  }
}

/* B, Lime palette (owner, 2026-11-04): the change in green, not red, since red reads as a loss.
   From the Actnova lab packaging reference: acid lime with black. Lime is too light for text on
   paper, so lines and numbers use a deep green of the same hue; the lime is the fill (button,
   highlighter), always with ink on it. In the dark theme the lime is used directly. */
[data-dir="b"][data-palette="lime"] {
  --accent: #36700A;      /* deep lime: lines, numbers, the word (5.2:1 on paper, 5.7:1 on sheet) */
  --on-accent: #F8F9F7;   /* 5.7:1 */
  --accent-soft: #E3F5C4;
  --accent-fill: #A6E33C; /* acid lime: button, highlighter */
  --accent-word: #141617; /* ink on the lime highlighter, as on the reference (not a second green) */
  --on-accent-fill: #141617; /* 11.8:1 */
  --accent-on-panel: #B4EC4E;
  /* the one green: every mark, highlight and drawn accent is the lime itself (ink stays for text and focus) */
  --mark: var(--accent-fill);
}
[data-dir="b"][data-palette="lime"][data-theme="dark"] {
  --accent: #B4EC4E;      /* 13.2:1 on night */
  --accent-word: #B4EC4E;
  --on-accent: #121415;
  --accent-soft: #24331A;
  --accent-fill: #B4EC4E;
  --on-accent-fill: #121415;
}
@media (prefers-color-scheme: dark) {
  [data-dir="b"][data-palette="lime"]:not([data-theme="light"]) {
    --accent: #B4EC4E;
    --accent-word: #B4EC4E;
    --on-accent: #121415;
    --accent-soft: #24331A;
    --accent-fill: #B4EC4E;
    --on-accent-fill: #121415;
  }
}

/* C. Ultramarine: one deep colour field, the R's diagonal as supergraphic */
[data-dir="c"] {
  --bg: #F3F4FA;          /* paper */
  --surface: #FFFFFF;
  --band: #E4E7F6;
  --panel: #1C2BA0;       /* ultramarine field */
  --panel-deep: #121B6B;  /* the diagonal band */
  --ink: #0D1240;         /* night ink (16:1 on paper) */
  --body: #3A4070;        /* 8.9:1 on paper */
  --line: #D3D7EE;
  --accent: #1C2BA0;      /* the field colour is also the action colour (10:1 on paper) */
  --on-accent: #FFFFFF;
  --accent-soft: #E4E7F6;
  --on-panel: #FFFFFF;     /* 11:1 on field */
  --on-panel-muted: #BCC4FF; /* haze, 6.6:1 on field */
  --font-display: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 780;
  --display-stretch: 100%;
  --display-tracking: -0.035em;
  --radius: 14px;
}
