/* Design tokens — Figma variables map 1:1 with these names.
   All other CSS must reference tokens, never raw values. */

@font-face {
  font-family: "PP NeueBit";
  src: url("../fonts/PPNeueBit-Bold.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors — monochrome (Figma: colour-primary / colour-secondary) */
  --colour-primary: #383737;
  --colour-secondary: #757070;
  --color-ink: var(--colour-primary);
  --color-ink-muted: var(--colour-secondary);
  --color-paper: #ffffff;
  /* Page field — warm off-white: softer than matcha cream, warmer than --color-canvas. */
  --color-cream: #fffefb;
  /* Work cards — same warm field as the page, lifted toward paper. */
  --color-work-card: color-mix(in srgb, var(--color-cream) 55%, var(--color-paper));
  --color-canvas: #fafafa;
  --color-mist: #f3f3f3;
  /* Work stages — sage sampled from the column reference. */
  --color-work-field: #88b272;
  --color-hairline: #ececec;

  /* Header star + current-page mark (Figma accent). */
  --color-star: #fdb813;
  --color-header-fallback: #243318;
  --color-footer-ink: #0a1000;
  /* Accent — Knowledge Hub swimlane AI lane and pillars callout bar. */
  --color-accent: #5c47c8;
  /* Aside / stacked callout (NSP AI feedback note) */
  --color-aside: #1373ff;
  --color-aside-bg: #e9f2ff;
  /* Case study section labels and active on-this-page link */
  --color-label-accent: #4d9229;
  --color-lavender: #e5dbff;
  /* Highlighter mark — washed orange; hero uses a yellow mix of --color-star */
  --color-highlight: color-mix(in srgb, #f4b183 42%, var(--color-paper));
  --color-highlight-orange: var(--color-highlight);
  --color-highlight-yellow: color-mix(in srgb, #e6b23a 40%, var(--color-paper));
  /* Form errors (case-study password card) */
  --color-error: #b42318;
  /* Password field fill on the gate card */
  --color-gate-field: #e4e4e4;
  /* Input borders need more contrast than hairlines */
  --color-field: color-mix(in srgb, var(--color-ink) 22%, transparent);
  /* Whiteboard dot grid */
  --color-dot-grid: color-mix(in srgb, var(--color-ink) 16%, transparent);

  /* Surfaces */
  --surface-canvas: var(--color-canvas);
  --surface-paper: var(--color-paper);
  --surface-raised: var(--color-mist);
  --surface-ink: var(--color-ink);

  /* Typography — role tokens stay named so CSS does not hard-code a face.
     Display is Noto Serif Condensed (wdth 75). Body is Inter Tight.
     Labels use PP NeueBit (local Bold file, mapped across weights).
     Teams quote mocks use --font-teams. */
  --font-inter-tight: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-noto-serif: "Noto Serif", ui-serif, Georgia, serif;
  --font-neuebit: "PP NeueBit", var(--font-inter-tight);
  --font-display: var(--font-noto-serif);
  --font-display-width: 75%;
  --font-mono: var(--font-neuebit);
  --font-body: var(--font-inter-tight);
  /* Teams quote mock only — closest Google Fonts stand-in for Segoe UI. */
  --font-noto: "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --font-teams: var(--font-noto);

  /* Type scale */
  --text-caption: 12px;
  --leading-caption: 1;
  --tracking-caption: 0.06em;

  /* PP NeueBit — readable sizes (replaces 12px captions on mono UI) */
  --text-mono: 18px;
  --leading-mono: 1.25;
  --tracking-mono: 0.06em;

  /* Prominent mono labels (nav, overview terms, work eyebrows) */
  --text-label: 20px;
  --leading-label: 1.2;
  --tracking-label: 0.06em;

  --text-work-label: var(--text-label);
  --leading-work-label: var(--leading-label);

  --text-body-sm: 15px;
  --leading-body-sm: 1;
  --tracking-body-sm: 0.06em;

  --text-body: 16px;
  --leading-body: 1.5;
  --tracking-body: 0;

  --text-subheading: 21px;
  --leading-subheading: 1.1;

  --text-heading-sm: 27px;
  --leading-heading-sm: 1.1;

  --text-heading: 32px;
  --leading-heading: 1.13;

  /* Hero h1 — display size the name used to take; same condensed Noto Serif */
  --text-hero-greeting: clamp(1.75rem, 7cqi, 3.75rem);

  --text-heading-lg: 47px;
  --leading-heading-lg: 1;

  --text-display: clamp(2.75rem, 8vw, 6rem);
  --leading-display: 0.86;
  --tracking-display: -0.02em;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing — 4px base */
  --spacing-unit: 4px;
  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-10: 10px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-28: 28px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-52: 52px;
  --spacing-64: 64px;
  --spacing-80: 80px;
  --spacing-90: 90px;
  --spacing-100: 100px;
  --spacing-120: 120px;
  --spacing-180: 180px;

  /* Layout */
  --section-gap: 80px;
  --card-padding: 20px;
  --element-gap: 24px;
  --measure: 65ch;
  --page-gutter: 24px;
  --page-max: 720px;
  --approach-max: 1200px;
  --work-max: 1224px;
  --work-thumb-ratio: 2 / 1;
  --work-card-gap: 64px;
  --work-card-inner-gap: 36px;
  --work-thumb-radius: 8px;
  --color-work-desc: var(--colour-secondary);
  --pill-size: var(--text-mono);
  --pill-tracking: 0;
  --pill-padding-block: 6px;
  --pill-padding-inline: 10px;
  --pill-gap: 8px;
  /* Work grid — compact row, but legible (scales with card width) */
  --work-pill-gap: 6px;
  --work-pill-padding-block: 5px;
  --work-pill-padding-inline: 9px;
  --work-pill-size-min: 13px;
  --work-pill-size-fluid: 3.35cqi;
  --work-pill-size-max: 16px;
  --case-max: 1120px;
  --case-nav: 180px;
  --case-section-gap: 40px;
  --case-gate-max: 613px;
  --case-summary-gap: 40px;
  --case-thumb-ratio: 2 / 1;
  --chrome-bar-height: 68px;
  --chrome-bar-gutter: 64px;
  --header-height: var(--chrome-bar-height);
  --text-header-nav: 16px;
  --leading-header-nav: 1.2;
  --breakpoint: 768px;

  /* Elevation — raised paper cards (Paul Hahn–quiet: work thumbs, approach principles) */
  --shadow-work: 0 2px 8px rgb(20 20 20 / 0.06), 0 8px 24px rgb(20 20 20 / 0.06);
  --shadow-work-hover: 0 4px 12px rgb(20 20 20 / 0.08), 0 12px 32px rgb(20 20 20 / 0.08);
  --shadow-gate: 0 8px 28px rgb(10 16 0 / 0.22), 0 2px 8px rgb(10 16 0 / 0.12);

  /* Radii */
  --radius-links: 4px;
  --radius-buttons: 8px;
  --radius-cards: 16px;
  --radius-images: 16px;
  --radius-headings: 25px;
  --radius-pills: 160px;

  /* Motion (tokens only — animation backlog, unused in the shell) */
  --duration-fast: 150ms;
  --duration-med: 250ms;
  --duration-tip-roll: 180ms;
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-tip-roll: cubic-bezier(0.34, 1.15, 0.64, 1);

}
