/* thesubstrat.com — the one place this site declares the brand.
 *
 * Before this file, each page carried its own :root block: index disagreed
 * with privacy and eula, 404 had no tokens at all and four raw hex values
 * inline, and all of them used names the brand system does not use
 * (--magenta rather than --m400, --sans rather than --font-sans). Four pages,
 * four slightly different declarations of one brand. Every page links this
 * now and declares nothing of its own beyond its layout.
 *
 * Source of truth: substrat/gtm/brand/design-system/tokens.css, which is
 * itself generated from gtm/brand/02_color-system.md and 03_typography.md.
 * When the brand changes, change it there and copy the token block down.
 * Do not edit a colour on a page.
 */

/* ---- Brand typefaces, self-hosted ----
 * Not Google Fonts: substrat sells auditability, so its own marketing page
 * should not hand every visitor to a third party in order to render its name.
 * Weights 400 and 500 only — 600 and 700 are outside the system.
 */
@font-face {
  font-family: 'Inter';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500; font-style: normal; font-display: swap;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 500; font-style: normal; font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  /* ---- Carbon family (base) ---- */
  --carbon:   #000000;
  --graphite: #0F0F12;
  --charcoal: #1A1A1F;
  --smoke:    #2D2D34;
  --fog:      #6E6E78;
  --mist:     #C8C8D0;
  --paper:    #FFFFFF;
  --cream:    #F8F4EC;

  /* ---- Magenta family (signature; sparing) ---- */
  --m50:  #FBEAF0;
  --m200: #ED93B1;
  --m400: #D4537E;   /* the period. the only brand accent. */
  --m600: #993556;
  --m800: #72243E;
  --m900: #4B1528;

  /* ---- Functional (product UI only; never on a marketing page) ---- */
  --info:    #378ADD;
  --success: #1D9E75;
  --warning: #BA7517;
  --danger:  #A32D2D;

  /* ---- Type ---- */
  --font-sans: 'Inter', 'GT America', 'Söhne', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Berkeley Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --weight-regular: 400;
  --weight-medium:  500;   /* the heaviest weight in the system */

  --ls-wordmark: -0.04em;

  /* ---- Shape ---- */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --hairline: 0.5px;       /* marketing rules; the product plane uses 1px */

  /* ---- Site layout ---- */
  --maxw: 1080px;
}

/* The wordmark is lowercase always, sans 500 at -0.04em, with the period in
   Magenta 400. Never separated, never re-coloured, minimum 18px. */
.wordmark {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  letter-spacing: var(--ls-wordmark);
  color: var(--paper);
}
.wordmark .dot { color: var(--m400); }
