/* Matthew Woolley theme.
   wz/tokens.css and wz/kernel.css are the Workzoom website's own tokens and
   components. This file is the only place the two sites differ: typeface,
   radii and palette. Load order: wz/tokens.css, theme.css, wz/kernel.css,
   styles.css.

   2026-11-29: the page moved to a pure white ground (his reference:
   danieldalen.com, "the pure white ... is hyper clean"). Petrol is now the
   ink and the footer; the gradient and grain live in the footer and the
   newsletter band only. The petrol-ground version is in
   archive/site-2026-11-29-petrol. */

/* One family for the whole site: Geist (SIL Open Font License), one
   variable file. The road here, his words, all 2026-11-30: "need hyper clean
   saas font" (his reference: ABC Diatype on floatfinancial.com, a paid
   face); Switzer "feels too sharp"; Figtree was too far from the reference
   ("try another font like abc diatype but free version very similar").
   Fraunces, the soft serif from 2026-11-29, he was "still not a fan" of.
   To change face again: swap this block and --font below, the preload in
   index.html, then re-measure the footer name (.foot-word in styles.css). */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-var.woff2") format("woff2");
}

:root {
  /* Palette: the video gradient stops (BRAND.md, ruled 2026-11-26) and white. */
  --petrol: #253d47;
  --petrol-deep: #1b2e36;
  --petrol-mid: #26414b;
  --sea: #598588;
  --sea-light: #89b6b0;
  --first-light: #eaf5f1;
  --soft-light: #cfe9e0;
  --wash: #f4f7f7;

  /* Typeface: Geist, where Workzoom sets Manrope. */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --fw-light: 400;
  --fw-bold: 600;

  /* Radii: rounder than Workzoom's 6 / 10 / 16, and pill buttons. */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --btn-radius-xs: 999px;
  --btn-radius-sm: 999px;
  --btn-radius-md: 999px;
  --btn-radius-lg: 999px;
  --btn-radius-xl: 999px;

  /* Widened from 1200 on 2026-12-05: his words, "entire website feels thin",
     "these iamges feel tiny hard to see". */
  --max-w: 1320px;

  /* Grounds and inks. Ratios on white are checked by tools/check-page.cjs. */
  --color-page: #ffffff;
  --surface-page: #ffffff;
  --surface-card: #ffffff;
  --color-surface-card: #ffffff;
  --color-surface-deep: var(--wash);
  --color-surface-inset: var(--wash);
  --color-text-primary: var(--petrol);
  --color-text-secondary: #4d626b;
  --color-text-tertiary: #64767e;
  --color-text-muted: #64767e;
  --ink-warm: var(--petrol);
  --ink-body-editorial: #4d626b;
  --color-border: #e3e8ea;
  --color-border-subtle: #eef1f2;
  --color-border-input: #84959c;
  --border-card-tinted: #d5dde0;
  --plate-text-faint: #64767e;
  --eyebrow-ink: var(--sea);

  /* Where Workzoom says green, this site says petrol and sea. */
  --brand-green: var(--petrol);
  --brand-emerald: var(--petrol);
  --brand-green-bright: var(--sea);
  --brand-green-text: var(--petrol);
  --brand-green-deep: var(--petrol);
  --brand-green-50: var(--first-light);
  --accent: var(--petrol);
  --accent-text: var(--petrol);
  --accent-tint: var(--first-light);
  --color-accent-dim: var(--first-light);
  --green-wash-08: rgba(37, 61, 71, 0.05);
  --green-wash-09: rgba(37, 61, 71, 0.06);
  --green-wash-12: rgba(37, 61, 71, 0.08);
  --green-wash-14: rgba(37, 61, 71, 0.1);
  --green-wash-22: rgba(37, 61, 71, 0.16);
  --green-wash-28: rgba(37, 61, 71, 0.2);
  --green-wash-30: rgba(37, 61, 71, 0.22);
  --green-wash-32: rgba(37, 61, 71, 0.24);
  --green-wash-55: rgba(37, 61, 71, 0.4);

  /* Buttons: petrol on white, the lockup's colours turned over. */
  --btn-primary-idle-bg: var(--petrol);
  --btn-primary-idle-fg: #ffffff;
  --btn-primary-hover-bg: var(--petrol-deep);
  --btn-primary-hover-fg: #ffffff;
  --btn-primary-active-bg: var(--petrol-deep);
  --btn-primary-active-fg: #ffffff;
  --btn-primary-active-shadow: none;
  --btn-tertiary-idle-bg: var(--wash);
  --btn-tertiary-idle-fg: var(--petrol);
  --btn-tertiary-hover-bg: #e9eeef;
  --btn-tertiary-hover-fg: var(--petrol);
  --btn-tertiary-active-bg: #dfe6e8;
  --btn-tertiary-active-fg: var(--petrol);
  --btn-ghost-idle-fg: #4d626b;
  --btn-ghost-hover-fg: var(--petrol);
  --btn-ghost-hover-bg: transparent;

  /* Form controls: the website's atoms keep their rest border on focus and
     add the two-tone ring (UIENGINEERING Amendment 2, website fields). */
  --field-border-focus: var(--color-border-input);
  --field-ring: 0 0 0 2px #ffffff, 0 0 0 4px var(--petrol);
  --n300: var(--petrol);
  --surface-float: #ffffff;
  --shadow-lg: 0 1px 2px rgba(27, 46, 54, 0.06), 0 12px 32px rgba(27, 46, 54, 0.14);
  --shadow-card-deep: var(--shadow-lg);

  /* Focus: the website's two-tone ring. */
  --shadow-focus: 0 0 0 2px #ffffff, 0 0 0 4px var(--petrol);
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-card: none;
  --shadow-card-hover: none;
}
