/* Direct Market Insights: brand tokens v1.0 (2026-12-05)
   THE single owner of colour, type, spacing, radius, shadow and grid tokens.
   Load this file first. Every other stylesheet extends it and never redeclares these names.
   Rules: backgrounds are white, true grey, ink or yellow. No beige, no cream, no gradients. */

@font-face{font-family:"Red Hat Display";src:url("fonts/woff2/RedHatDisplay-Variable.woff2") format("woff2");font-weight:300 900;font-style:normal;font-display:swap}
@font-face{font-family:"Red Hat Text";src:url("fonts/woff2/RedHatText-Variable.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:"Red Hat Mono";src:url("fonts/woff2/RedHatMono-Variable.woff2") format("woff2");font-weight:300 700;font-style:normal;font-display:swap}

:root{
  /* core brand */
  --dmi-ink:#0E0F11;
  --dmi-white:#FFFFFF;
  --dmi-yellow:#FFDD00;
  --dmi-yellow-deep:#F2CB00;   /* hover and pressed on yellow */
  --dmi-yellow-wash:#FFF4A3;   /* text highlight mark only, never a page or section background */

  /* true greys */
  --dmi-grey-50:#F5F5F6;
  --dmi-grey-100:#EBEBED;
  --dmi-grey-200:#DADADE;
  --dmi-grey-300:#C2C2C8;
  --dmi-grey-400:#9A9AA2;
  --dmi-grey-500:#73737C;
  --dmi-grey-600:#55555D;
  --dmi-grey-700:#3A3A41;
  --dmi-grey-800:#25252A;
  --dmi-grey-900:#17171A;

  /* semantic states */
  --dmi-positive:#0B7A4B;
  --dmi-negative:#C62B1E;
  --dmi-warning:#8A5A00;
  --dmi-info:#1F4FD8;
  --dmi-positive-bg:#E3F4EB;
  --dmi-negative-bg:#FBE7E4;
  --dmi-warning-bg:#FFF4A3;
  --dmi-info-bg:#E6ECFC;

  /* roles: light surfaces */
  --dmi-bg:var(--dmi-white);
  --dmi-bg-subtle:var(--dmi-grey-50);
  --dmi-bg-inverse:var(--dmi-ink);
  --dmi-bg-accent:var(--dmi-yellow);
  --dmi-text:var(--dmi-ink);
  --dmi-text-muted:var(--dmi-grey-600);
  --dmi-text-subtle:var(--dmi-grey-500);
  --dmi-text-inverse:var(--dmi-white);
  --dmi-text-inverse-muted:#B4B4BC;
  --dmi-border:var(--dmi-grey-200);
  --dmi-border-strong:var(--dmi-ink);
  --dmi-focus:var(--dmi-info);

  /* data visualisation: use in this order */
  --dmi-viz-1:#0E0F11;  /* ink */
  --dmi-viz-2:#FFDD00;  /* yellow: the highlighted series, always with a 1px ink edge on white */
  --dmi-viz-3:#2450E0;  /* cobalt */
  --dmi-viz-4:#0C9A8A;  /* teal */
  --dmi-viz-5:#E8502F;  /* vermilion */
  --dmi-viz-6:#7B52D9;  /* violet */
  --dmi-viz-7:#C4337F;  /* magenta */
  --dmi-viz-8:#8C8D97;  /* slate: other, rest of market */
  --dmi-viz-grid:var(--dmi-grey-200);
  --dmi-viz-axis:var(--dmi-ink);

  /* type families */
  --dmi-font-display:"Red Hat Display","Helvetica Neue",Arial,sans-serif;
  --dmi-font-body:"Red Hat Text","Helvetica Neue",Arial,sans-serif;
  --dmi-font-mono:"Red Hat Mono",ui-monospace,Menlo,monospace;

  /* type scale: size / line height / tracking / weight */
  --dmi-fs-display:4rem;      --dmi-lh-display:1.02; --dmi-ls-display:-0.035em;
  --dmi-fs-h1:3rem;           --dmi-lh-h1:1.06;      --dmi-ls-h1:-0.03em;
  --dmi-fs-h2:2.25rem;        --dmi-lh-h2:1.12;      --dmi-ls-h2:-0.025em;
  --dmi-fs-h3:1.625rem;       --dmi-lh-h3:1.2;       --dmi-ls-h3:-0.02em;
  --dmi-fs-h4:1.25rem;        --dmi-lh-h4:1.3;       --dmi-ls-h4:-0.01em;
  --dmi-fs-lead:1.25rem;      --dmi-lh-lead:1.5;
  --dmi-fs-body:1rem;         --dmi-lh-body:1.6;
  --dmi-fs-small:0.875rem;    --dmi-lh-small:1.5;
  --dmi-fs-caption:0.78125rem;--dmi-lh-caption:1.45;
  --dmi-fs-label:0.75rem;     --dmi-ls-label:0.08em;   /* mono, uppercase */
  --dmi-fs-stat:3.5rem;       --dmi-lh-stat:1;       --dmi-ls-stat:-0.04em;  /* mono 500 */
  --dmi-fs-stat-sm:2rem;
  --dmi-fw-regular:400; --dmi-fw-medium:500; --dmi-fw-bold:700; --dmi-fw-heavy:800;

  /* spacing: 4 px base */
  --dmi-space-1:4px; --dmi-space-2:8px; --dmi-space-3:12px; --dmi-space-4:16px;
  --dmi-space-5:24px; --dmi-space-6:32px; --dmi-space-7:48px; --dmi-space-8:64px;
  --dmi-space-9:96px; --dmi-space-10:128px;

  /* radius: square by default. Nothing is a pill. */
  --dmi-radius-0:0; --dmi-radius-1:2px; --dmi-radius-2:4px; --dmi-radius-3:6px;

  /* rules and borders */
  --dmi-rule-hair:1px; --dmi-rule-strong:2px; --dmi-rule-heavy:4px;

  /* shadow: used rarely. Structure comes from rules, not blur. */
  --dmi-shadow-1:0 1px 2px rgba(14,15,17,.08);
  --dmi-shadow-2:0 8px 24px rgba(14,15,17,.10);
  --dmi-shadow-key:4px 4px 0 var(--dmi-ink);   /* hard offset, hover on the key call to action */

  /* grid */
  --dmi-container:1280px; --dmi-container-text:720px;
  --dmi-columns:12; --dmi-gutter:24px;
  --dmi-margin-sm:20px; --dmi-margin-md:40px; --dmi-margin-lg:64px;
  --dmi-bp-sm:640px; --dmi-bp-md:900px; --dmi-bp-lg:1200px;

  /* motion */
  --dmi-ease:cubic-bezier(.2,.7,.1,1); --dmi-dur-1:120ms; --dmi-dur-2:220ms;
}

/* dark surface scope: put .dmi-on-ink on any ink section */
.dmi-on-ink{
  --dmi-bg:var(--dmi-ink);
  --dmi-bg-subtle:var(--dmi-grey-900);
  --dmi-text:var(--dmi-white);
  --dmi-text-muted:#B4B4BC;
  --dmi-text-subtle:var(--dmi-grey-400);
  --dmi-border:var(--dmi-grey-700);
  --dmi-border-strong:var(--dmi-white);
  --dmi-viz-1:#FFFFFF;
  --dmi-viz-grid:var(--dmi-grey-700);
  --dmi-viz-axis:#FFFFFF;
  --dmi-focus:var(--dmi-yellow);
  background:var(--dmi-bg); color:var(--dmi-text);
}
