/* Datum's brand, in one file (Datum Brand Identity & Visual Guidelines, final draft v01, November 2026).
   Every colour, gradient, typeface, weight and radius Datum uses is named here and nowhere else: the website
   (site/datum/datum-site.css, served this file as /datum.css), the app (app/src/datum/datum.css) and the cubes
   (app/src/components/AgentPresence.tsx) read these names. Change a value here and it changes everywhere.
   scripts/check-datum-brand.mjs fails if a colour is written anywhere else. The sign-in emails
   (infra/email/datum/) can't load a stylesheet, so they repeat these values; the same check holds them to this file.

   The rules the names carry: Stone is the ground, Graphite the contrast, Titanium and Alloy the depth, Porcelain the
   light surface. No signal colour: colour comes from tone, material and light. Gradients are soft, matte and slow. */
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&display=swap");
/* Switzer (Indian Type Foundry, Fontshare; free for commercial use under the ITF Free Font License): Aaron's free stand-in
   for Suisse International, 2026-11-21. Kept beside this file (fonts/), in the four weights the guidelines use. */
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* core palette */
  --d-porcelain: #F0EEE9;   /* light surfaces and contrast */
  --d-stone: #D0CBC3;       /* primary brand background */
  --d-titanium: #A49E95;    /* secondary surfaces and panels */
  --d-alloy: #77736D;       /* secondary text and technical details (large text, lines, marks) */
  --d-graphite: #1C1B1A;    /* primary text and dark surfaces */

  /* tones worked from the palette, for the places the five can't serve as they are */
  --d-alloy-text: #57534E;      /* Alloy deepened: small secondary text on Stone or Porcelain (Alloy itself is too faint to read there) */
  --d-field: #F8F7F4;           /* Porcelain lifted: a field to type in, on a Porcelain panel */
  --d-stone-2: #DDD9D2;         /* between Stone and Porcelain: a quiet inset on a Porcelain panel */
  --d-graphite-2: #262523;      /* Graphite raised: a panel on a Graphite section */
  --d-graphite-3: #33312F;      /* raised again: a control on a Graphite panel */
  --d-black: #000000;           /* a Graphite button under the pointer */
  --d-line: rgba(28, 27, 26, 0.14);          /* a divider on light */
  --d-line-strong: rgba(28, 27, 26, 0.3);    /* the border of a secondary button */
  --d-line-dark: rgba(240, 238, 233, 0.16);  /* a divider on Graphite */
  --d-veil: rgba(240, 238, 233, 0.6);        /* Porcelain, see-through: a note over a picture */
  --d-veil-strong: rgba(248, 247, 244, 0.94);
  --d-shadow: rgba(28, 27, 26, 0.16);        /* a soft contact shadow */
  --d-shadow-cube: rgba(28, 27, 26, 0.34);
  --d-mist: rgba(28, 27, 26, 0.08);

  /* gradients: the colour stops; the direction is chosen where each is used */
  --d-fade-stone: #D0CBC3, #F0EEE9;        /* 01 Stone fade: website fields, broad backgrounds, section transitions */
  --d-fade-titanium: #A49E95, #D0CBC3;     /* 02 Titanium fade: secondary panels, product studies */
  --d-fade-ambient: #D8C7B8, #9BA4B0;      /* 03 Ambient warm-cool: occasional brand moments only */
  --d-fade-graphite: #77736D, #1C1B1A;     /* 04 Graphite fade: dark sections, technical content */
  --d-fade-haze: #F0EEE9, #A49E95;         /* 05 Porcelain haze: large atmospheric fields, image backdrops */
  --d-ambient-warm: #D8C7B8;
  --d-ambient-cool: #9BA4B0;

  /* atmosphere: the hillside with the light behind it, on the first panel of the guidelines' board. These tones are
     measured from that picture, for drawing it and nothing else: the sky from its warm side to its cool side, the
     light that gathers along the ridge, and the hill from its lit foot to its shade. */
  --d-sky-warm: #D4CBC6;
  --d-sky-mid: #B7B2B0;
  --d-sky-dim: #9D999C;
  --d-sky-cool: #7D808B;
  --d-ridge-light: #E4D7CB;
  --d-hill-lit: #D0C4B8;
  --d-hill-mid: #A79C98;
  --d-hill-shade: #817F85;
  --d-hill-foot: #8A827F;
  /* and the same light carried down the page, so the sections under the hero keep its warmth */
  --d-porcelain-warm: #EBE5DD;                  /* Porcelain warmed towards the ridge light: the ground under a picture */
  --d-warm-glow: rgba(228, 215, 203, 0.13);     /* the ridge light, faint: warm light on a Graphite surface */
  --d-warm-wash: rgba(228, 215, 203, 0.75);     /* the ridge light, soft: warm light on Stone */

  /* type: one grotesk and its mono companion. Switzer stands in for Suisse International (free, close in form); the mono
     is Geist Mono. To move to the licensed face, change the @font-face rules above and --d-sans. */
  --d-sans: "Switzer", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --d-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --d-w-display: 300;   /* large display headlines */
  --d-w-body: 400;      /* body copy and paragraphs */
  --d-w-label: 500;     /* navigation, labels and emphasis */
  --d-w-button: 600;    /* buttons and selected interface elements */
  --d-track-display: -0.03em;
  --d-track-mono: 0.08em;

  /* shape: restrained corners */
  --d-r-panel: 16px;
  --d-r-control: 10px;
  --d-r-pill: 999px;
}

/* people: one tone each, for telling who said or is building what in a shared product (the one-chat concept,
   2026-11-21). Matte material tones, not signal colours: clay, slate, moss, ochre. */
:root {
  --d-person-1: #B4664B;
  --d-person-2: #5F7A93;
  --d-person-3: #6F8560;
  --d-person-4: #B08A3C;
  /* the state of a piece of work, as a small dot or a quiet badge only: working, and waiting on a person */
  --d-status-working: #6F8560;
  --d-status-needs: #C98A4B;
}
