/* Copied from brand/tokens.css by tools/sync.js. Edit that file, not this one. */
/* Dexign Studio — design tokens
   Extracted from "Dexign Studio Brand Pack.dc.html" v1.0, September 2026.
   Import this before any other stylesheet. Do not hardcode a hex value
   anywhere else in the codebase. */

:root {
  /* ---- Core palette ----------------------------------------------------
     Usage ratio is roughly 70 paper / 25 ink / 5 signal blue.
     If blue is the first thing you notice on a screen, there's too much. */
  --ink:            #0B0B0C;  /* all type, the mark, full-bleed grounds     */
  --paper:          #FFFFFF;  /* the default ground — most of the brand     */
  --signal:         #0B3FD1;  /* one thing per surface. Never behind body   */
  --stone:          #F2F1EE;  /* panels, tables, anything that sits back    */

  /* ---- Text on paper --------------------------------------------------- */
  --graphite:       #3A3A38;  /* body copy on paper — and labels on paper    */
  --label:          #86867F;  /* 3.6:1 on paper: fails WCAG AA for small
                                 text, so never use it for label TEXT on the
                                 site. It clears 3:1, so it is used for form
                                 field borders. Labels on paper use graphite. */

  /* ---- Text on ink ----------------------------------------------------- */
  --on-ink:         #FFFFFF;
  --on-ink-body:    #C9C9C3;  /* body copy on the dark ground               */
  --on-ink-label:   #8E8E88;  /* labels on the dark ground                  */

  /* ---- Rules ----------------------------------------------------------- */
  --line:           #E4E3DF;  /* hairline on paper                          */
  --line-ink:       #262629;  /* hairline on the dark ground                */
  --line-strong:    #0B0B0C;  /* section-opening rule                       */

  /* ---- Type families ---------------------------------------------------
     Chivo: everything a person reads — headlines, body, buttons, invoices.
     Space Mono: labels, section numbers, specs, prices, file names ONLY.
       Uppercase, tracked 0.1em, never above 14px, never a full sentence. */
  --font-sans: 'Chivo', Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Weights actually in use — don't load others */
  --w-light:   300;
  --w-regular: 400;
  --w-medium:  500;   /* the default for headings; Chivo 500 does the work */
  --w-bold:    700;

  /* ---- Type scale ------------------------------------------------------
     size / line-height / weight / tracking, as specified in the brand pack */
  /* The landing page hero sets "We brand." much larger than the display
     size — taken from the landing page design, used for that line only. */
  --hero-size:         clamp(56px, 13vw, 180px);
  --hero-leading:      0.88;
  --hero-tracking:     -0.04em;

  --display-size:      clamp(36px, 5.5vw, 64px);
  --display-leading:   0.92;
  --display-tracking:  -0.03em;

  --headline-size:     clamp(26px, 3.4vw, 34px);
  --headline-leading:  1.2;
  --headline-tracking: -0.02em;

  --subhead-size:      21px;
  --subhead-leading:   1.45;
  --subhead-weight:    var(--w-light);

  --body-size:         16px;
  --body-leading:      1.62;
  --body-measure:      64ch;   /* cap the measure; left-aligned, never justified */

  --label-size:        11px;
  --label-tracking:    0.1em;
  --label-transform:   uppercase;

  /* ---- The square ------------------------------------------------------
     The blue rounded square from the counter of the D. The one element
     allowed to leave the logo: bullet, cropped background shape, or a full
     stop after a number. Corner radius is 28% of its own size. */
  --square-radius: 28%;
  --img-radius: 12px; /* corners of photographs and work pieces */

  /* ---- Logo constraints ------------------------------------------------
     Clearspace: 2X on every side, where X is the width of the blue square.
     Nothing crosses it — no type, no rules, no photo edges. */
  --logo-mark-min:    24px;   /*  8mm in print  */
  --logo-lockup-min: 120px;   /* 30mm in print — below this, drop to the mark */

  /* ---- Layout ---------------------------------------------------------- */
  --page-max:   1180px;
  --gutter:     clamp(20px, 4vw, 56px);
  --section-y:  clamp(56px, 9vw, 120px);
}

/* ---- Guardrails --------------------------------------------------------
   Ink on signal blue fails contrast and is forbidden by the brand pack.
   White on blue only, at 18px and up or bold. This rule is here so the
   violation is visible in the browser rather than shipped.             */
.on-signal {
  background: var(--signal);
  color: var(--on-ink);
  font-size: max(18px, 1rem);
}

/* The wordmark is a drawn lockup — use brand/logo.svg.
   Never reset "Dexign Studio" in live type as a substitute. */
