/* SITE COPY of brand/system/ddelta.css (v1.0) for ddelta.xyz: Google Fonts @import removed, self-hosted families
   (fonts.css) named first. Keep tokens in sync with the system; do not edit tokens here. */
/* d-delta design tokens and base components — v0.1 (2026-11-24)
   Source of truth for slides, homepage, reports, apps. Black and white first; colour is a layer (palette slots below). */

:root {
  /* --- neutrals (fixed) --- */
  --dd-paper:   #fbfaf6;   /* the card paper; page background */
  --dd-ink:     #111111;   /* text, rules, the ■ */
  --dd-ink-2:   #444444;   /* tagline, secondary text */
  --dd-ink-3:   #666666;   /* katakana, tertiary */
  --dd-label:   #8a8a8a;   /* field labels */
  --dd-rule-2:  #cccccc;   /* faint rules, guides */
  --dd-tint:    #f1efe8;   /* filled cells, code blocks */

  /* --- palette slots (filled by the colour round; default = black and white) --- */
  --dd-accent:      var(--dd-ink);   /* ONE brand accent: highlights, links, the active state */
  --dd-accent-soft: var(--dd-tint);
  --dd-data-1: #111111; --dd-data-2: #6b6b6b; --dd-data-3: #a8a8a8; --dd-data-4: #d0d0d0;   /* charts: categorical */
  --dd-seq-lo: #f1efe8; --dd-seq-hi: #111111;                                               /* charts: sequential */
  --dd-seq-mid: #d8d4ca;
  --dd-accent-text: var(--dd-ink);   /* links / text in the accent; falls back to ink when the accent is too light */
  /* --- uncertainty colour (decided 2026-11-24, r50): colour encodes uncertainty ONLY, as one colour at three opacities.
         Overlaps darken by themselves. Text, UI, big numbers and value lines stay ink. --- */
  --dd-u: #1f5c60;                       /* petrol */
  --dd-u-1: .42; --dd-u-2: .20; --dd-u-3: .08;   /* 1σ / 2σ / 3σ fill opacity */

  /* --- type --- */
  --dd-mono: 'ddelta Mono', 'IBM Plex Mono', ui-monospace, monospace;   /* the company + everything measured */
  --dd-sans: 'ddelta Sans', 'IBM Plex Sans', system-ui, sans-serif;     /* people + running text */
  --dd-jp:   'ddelta Sans JP', 'IBM Plex Sans JP', 'ddelta Sans', sans-serif;
  /* screen scale (px), ratio ≈ 1.33 */
  --dd-fs-label: 11px; --dd-fs-small: 13px; --dd-fs-body: 16px; --dd-fs-h3: 20px; --dd-fs-h2: 28px; --dd-fs-h1: 40px; --dd-fs-hero: 64px;

  /* --- lines and space --- */
  --dd-rule: 1px;          /* cell borders on screen (print: 0.17 mm) */
  --dd-rule-strong: 1.5px; /* outer frame */
  --dd-inset: 8px;         /* label and content share one left edge (print: 1.6 mm) */
  --dd-label-top: 6px;     /* label distance from the cell top (print: 1.2 mm) */
  --dd-gap: 24px;
}

/* ---------- palette candidates (r44) — set <html data-palette="c|d">; no attribute = black and white ----------
   C: cool sage-grey base + one warm ochre highlight (diverging sage ← sand → ochre).
   D: neutral grey + ochre as the only colour (diverging grey ← paper → ochre). Ochre is too light for text (2.1:1) → links stay ink. */
html[data-palette="c"] {
  --dd-accent: #5f7571; --dd-accent-soft: #efe6d2; --dd-accent-text: #5f7571;   /* 4.7:1 on paper */
  --dd-data-1: #111111; --dd-data-2: #5f7571; --dd-data-3: #d6a85a; --dd-data-4: #aab6ae;
  --dd-seq-lo: #5f7571; --dd-seq-mid: #efe6d2; --dd-seq-hi: #d6a85a;
}
html[data-palette="d"] {
  --dd-accent: #d6a85a; --dd-accent-soft: #f3eee3; --dd-accent-text: var(--dd-ink);
  --dd-data-1: #111111; --dd-data-2: #d6a85a; --dd-data-3: #8a8a8a; --dd-data-4: #c8c3b8;
  --dd-seq-lo: #5d5a54; --dd-seq-mid: #f3eee3; --dd-seq-hi: #d6a85a;
}
a { color: var(--dd-accent-text); }

html { background: var(--dd-paper); color: var(--dd-ink); font: 400 var(--dd-fs-body)/1.5 var(--dd-sans); }
.dd-mono { font-family: var(--dd-mono); }

/* ---------- the cell (title-block component) ----------
   Rule: subtract the label, then centre (one-fact cells) or hang from the label (lists). */
.dd-block { display: grid; border: var(--dd-rule-strong) solid var(--dd-ink); }
.dd-cell { position: relative; border: var(--dd-rule) solid var(--dd-ink); margin: calc(var(--dd-rule) * -0.5);
  padding: calc(var(--dd-label-top) + var(--dd-fs-label) + 4px) var(--dd-inset) 8px; display: flex; flex-direction: column; justify-content: center; min-height: 3.5em; }
.dd-cell.list { justify-content: flex-start; }
.dd-label { position: absolute; left: var(--dd-inset); top: var(--dd-label-top); font: 400 var(--dd-fs-label)/1 var(--dd-sans); color: var(--dd-label); }
.dd-value { font-family: var(--dd-mono); }            /* measured facts */
.dd-person { font: 600 1.05em var(--dd-sans); }        /* names */
.dd-kana { font: 300 .78em var(--dd-jp); color: var(--dd-ink-3); }

/* ---------- ■ bullets (the factor) ---------- */
ul.dd-bullets { list-style: none; padding: 0; margin: 0; }
ul.dd-bullets li { position: relative; padding-left: 1.4em; margin: .25em 0; }
ul.dd-bullets li::before { content: ''; position: absolute; left: .2em; top: .62em; width: .42em; height: .42em; background: var(--dd-ink); }

/* ---------- the factor dash —■— (inline, for the tagline and connectors) ---------- */
.dd-fd { display: inline-block; position: relative; width: 2.2em; height: 1em; vertical-align: -.12em; }
.dd-fd::before { content: ''; position: absolute; left: .15em; right: .15em; top: .62em; border-top: 1px solid currentColor; }
.dd-fd::after  { content: ''; position: absolute; left: 50%; top: .62em; width: .32em; height: .32em; transform: translate(-50%, -50%); background: currentColor; }
.dd-tagline { font: 300 1em var(--dd-mono); color: var(--dd-ink-2); white-space: nowrap; }
