/* FCD design tokens: the ironbow palette and Gloock (fleet #16861). Self-hosted fonts (CSP-clean). */

/* ---- self-hosted faces (no runtime CDN; default-src 'self' safe) ---- */
@font-face{font-family:'Clash Display';src:url('fonts/clash-display-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Clash Display';src:url('fonts/clash-display-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Clash Display';src:url('fonts/clash-display-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Hanken Grotesk';src:url('fonts/hanken-grotesk-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Hanken Grotesk';src:url('fonts/hanken-grotesk-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Hanken Grotesk';src:url('fonts/hanken-grotesk-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Hanken Grotesk';src:url('fonts/hanken-grotesk-800.woff2') format('woff2');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('fonts/jetbrains-mono-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('fonts/jetbrains-mono-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'JetBrains Mono';src:url('fonts/jetbrains-mono-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Gloock';src:url('fonts/gloock.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
/* fleet #16022: the serif the printed report sets its headings in (Newsreader, OFL, variable 300 to 500). Loaded only where used. */
@font-face{font-family:'Newsreader';src:url('fonts/newsreader.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap}

:root{
  /* fleet #16861, Mike's approved direction (2026-11-18): the ironbow palette. A thermal camera's false-colour image of a
     web server while our scan runs against it, read from the cold plum-black ground through violet, magenta and red to
     ember and the yellow-orange of the hottest point. Every colour is one stop of that image and carries one role.
     Source: design/16861/tokens.css. The site's older role names below now point at those stops. */
  --ground:#120B10;          /* the machine at rest: the page (white-hot text 17.1:1 on it) */
  --ground-raised:#1B1218;   /* one degree warmer: frames, the header, panels */
  --ground-sunk:#0C070B;     /* colder than the page: the wells the constellation and the grid sit in */
  --line:rgba(251,240,222,.10);
  --line-strong:rgba(251,240,222,.20);
  --cool:#45233F;            /* ironbow violet: a check that ran and passed, cooled back down */
  --heat-1:#7A2C63;          /* afterglow, three checks behind the probe */
  --heat-2:#A12E5E;          /* ironbow magenta: heat decaying, two behind */
  --heat-3:#D23F4C;          /* just written, one behind */
  --ember:#F4652B;           /* a finding that stays hot, and the one action */
  --ember-ink:#1A0B06;       /* text on ember (6.1:1) */
  --flare:#FFB547;           /* the check running now, the only thing that glows */
  --white-hot:#FBF0DE;       /* text, the probe's core */
  --ash:#C4B2AC;             /* secondary text (9.5:1 on ground) */
  --ash-dim:#9A848D;         /* metadata and labels (5.6:1 on ground) */

  /* ground / surfaces, by role */
  /* written as values, not var(), because the report restates these as its ink (app/src/report-sections.js) and a test holds
     the two equal; the same values as --ground, --ground-sunk and --ground-raised */
  --bg:#120B10;
  --bg-2:#0C070B;
  --surface:#1B1218;
  --surface-2:#22171E;       /* two degrees warmer: a raised control */
  --surface-3:#2C1E27;

  /* text, by role */
  --text:#FBF0DE;            /* --white-hot */
  --text-muted:#C4B2AC;      /* --ash */
  --text-dim:#9A848D;        /* --ash-dim */

  /* the one action */
  --accent:var(--ember);
  --accent-ink:var(--ember-ink);
  --ember-hi:var(--flare);
  --ember-deep:var(--heat-3);
  --focus:var(--flare);      /* the focus ring is the warmest readable stop */

  /* the cold analysis side is the cooled end of the same ramp */
  --plasma:var(--white-hot);
  --plasma-cool:var(--ash);

  /* state, drawn from the ramp: a pass is the cooled violet lifted to read as text; a lower-severity finding is ember;
     a missed or critical one is the ramp's red lifted to read as text */
  --good:color-mix(in oklab,var(--cool),var(--white-hot) 58%);
  --warn:var(--ember);
  --crit:color-mix(in oklab,var(--heat-3),var(--white-hot) 22%);

  /* lines / light */
  --border:rgba(251,240,222,.10);
  --border-strong:rgba(251,240,222,.20);
  --ember-line:rgba(244,101,43,.42);
  --hdr-bg:color-mix(in oklab,var(--ground) 90%,transparent);   /* the sticky header over the page */

  /* elevation: light from above, shadows tinted with the ramp's magenta; one glow, the probe's */
  --shadow-1:0 1px 0 rgba(251,240,222,.04) inset, 0 1px 2px rgba(6,3,5,.6);
  --shadow-2:0 40px 80px -40px rgba(161,46,94,.35), 0 14px 34px -20px rgba(6,3,5,.9);
  --shadow-frame:var(--shadow-2);
  --shadow-glow:0 10px 28px -12px color-mix(in oklab,var(--ember) 60%,transparent);  /* a lift, not a glow: the probe owns the glow */
  --glow-probe:0 0 0 1px var(--flare), 0 0 10px 2px rgba(255,181,71,.85), 0 0 28px 9px rgba(244,101,43,.42);
  --bloom-size:18rem;

  /* shape: precise, like a cell on a sensor */
  --radius:3px;
  --radius-lg:8px;
  --radius-frame:8px;
  --radius-cell:2px;
  --cell-gap:3px;

  /* 8pt spacing scale */
  --space-1:.5rem; --space-2:.75rem; --space-3:1rem; --space-4:1.5rem;
  --space-5:2rem;  --space-6:3rem;   --space-7:4.5rem; --space-8:7rem;

  /* type: Gloock speaks (one weight; its heaviness is in the drawing), Hanken Grotesk reads, JetBrains Mono prints what
     the scanner printed, Clash Display is today's wordmark and nothing else */
  --font-display:'Gloock',serif;
  --font-body:'Hanken Grotesk',system-ui,-apple-system,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;
  --font-data:var(--font-mono);
  --font-mark:'Clash Display','Hanken Grotesk',sans-serif;
  --weight-display:400;

  /* editorial scale x1.333 from 17px */
  --step--1:.82rem; --step-0:1.0625rem; --step-1:1.416rem; --step-2:1.888rem;
  --step-3:clamp(2rem,3.2vw,2.517rem); --step-4:clamp(2.4rem,4.6vw,3.355rem); --step-5:4.48rem; --step-6:5.9rem;
  --step-reading:clamp(5.4rem,10.4vw,10rem);   /* the CVE count, the largest thing on the first screen */
  --step-now:clamp(1.6rem,2.6vw,2.25rem);      /* one sentence saying what is happening now */
  --lh-reading:.86; --lh-head:1.05;
  --track-reading:-.02em;

  --tick:55ms;               /* one check per tick in the replay: 585 checks in about 32 s */
  --dur:180ms; --dur-slow:420ms;
  --ease:cubic-bezier(.2,.8,.2,1);
  --measure:64ch;

  /* FCD-027 : the ledger + document pages. Derived from the values above, nothing new invented. */
  --mark-pass:var(--cool);              /* a check that ran and passed, cooled to violet: the quiet majority */
  --mark-fail:var(--accent);            /* the only place ember lands in the field */
  --mark-na:var(--line);                /* hairline, hollow */
  --mark-skip:rgba(251,240,222,.05);   /* fainter than na, and never filled */
  --mark-size:clamp(9px,2.1vw,15px);    /* floor is the 320px case */
  --mark-gap:clamp(3px,0.7vw,5px);
  --measure-doc:72ch;                   /* legal reading, longer than --measure */
  --rail-h:56px;                        /* the mobile CTA bar, was a literal in style.css:212 */
  /* Two more the design did not list, added rather than written as literals in style.css, because
     the rule that no new CSS carries a raw value is the one that keeps the system honest. */
  --shell-pad:clamp(1.1rem,4vw,2.5rem); /* .shell's own padding; the ledger cancels it to bleed */
  --target:44px;                        /* minimum interactive target (responsive contract 10.6.4) */
}

/* FCD-049 : the Year Rule. No new hue, face, radius or shadow. Four derived tokens. */
:root{
  --yr-track-h:12px;        /* one track. 12px reads as a rule, not a bar chart */
  --yr-mark-w:2px;          /* a point event, and the rendering floor for the ember slice */
  --yr-row-gap:var(--space-1);
  --dur-sweep:900ms;        /* the single orchestrated moment, and the only new duration */
}

/* FCD-053 : the cadence gap. No new hue, face, radius or shadow. Derived layout values only, so
   the rule that no CSS carries a raw literal holds through the redesign too. */
:root{
  --cg-glyph:clamp(7px,1.5vw,10px);     /* one pictogram unit (a 25-CVE mark), floor is the 320px case */
  --cg-glyph-gap:clamp(2px,.5vw,3px);
  --cg-eye:16px;                        /* the info-eye glyph; its target is padded to --target */
  --dur-climb:700ms;                    /* Movement 3 rise; the sweep and the climb are the only durations */
  /* SVG label + numeral sizes, named rather than sprinkled as px literals through the chart CSS */
  --cg-lab:11px;                        /* an on-mark chart label */
  --cg-lab-lg:13px;                     /* a slightly stronger on-mark label */
  --svg-name:15px;                      /* a node name inside a scaled diagram (the scan loop) */
  --cg-lab-phone:14px;                  /* --cg-lab where a 400-unit chart draws at phone width */
  --cg-lab-lg-phone:15px;
  --cg-num-sm-phone:21px;
  --cg-num-sm:18px;                     /* a chart numeral inside an SVG (curve 58) */
  --cg-num:22px;                        /* the volume crest numeral */
  --cg-spine:2px;                       /* the connective rail that ties the three movements */
}

/* fleet #15967 / #16067: derived sizes for the escape lanes and the ledger. No new hue, face, radius or shadow. */
:root{
  --esc-node:14px;      /* a step dot */
  --esc-spine:3px;      /* the attacker thread; the defenders' is 2px (--cg-spine) */
  --esc-gate:44px;      /* gate mark length, across the spine */
  --esc-gate-w:4px;     /* gate mark thickness */
  --esc-break:12px;     /* the breach dot and the refusal cross */
  --esc-rail-y:1.375rem;/* spine height from the column top, desktop */
  --ledger-whole-h:14px;
  --ledger-bar-h:10px;
  --ledger-cell-h:16px;
  --ledger-strip-h:28px;
}

/* fleet #16071: the recent-attacks page. Derived layout values only. No new hue, face, radius or shadow. */
:root{
  /* The chart's day scale. The SVG viewBox in every row runs x=-10.5 to 6.5 (17 days), so the fix sits
     10.5/17 of the way across the track. These three and that viewBox are one fact written four times. */
  --ra-before:10.5fr;
  --ra-after:6.5fr;
  --ra-zero:calc(10.5 / 17);
  --ra-lab:14rem;           /* the name-and-dates column of a chart row, wide layout */
  --ra-fig:7rem;            /* the day-count column of a chart row, wide layout */
  --ra-hang:10rem;          /* the margin column the labels hang in, wide layout */
  --ra-hang-gap:var(--space-4);
}
