/*
 * PeakPoint — visual tokens. Every colour, radius, type and surface value the
 * site uses lives here; site.css only references these variables. Change a
 * token, not a one-off style.
 *
 * Built from the Claude Design "Industry" system with the Figtree theme on top.
 *
 * Contrast (WCAG 2.1, measured 2026-09-26, body-size text needs 4.5:1):
 *   button text  #ffffff on --color-accent #4a6d90 ........ 5.41:1  (was 3.71 on #5980a6)
 *   button hover #ffffff on --color-accent-700 #416180 .... 6.47:1
 *   eyebrow      --color-accent-700 on --color-bg ......... 5.78:1
 *   eyebrow      --color-accent-700 on --surface-alt ...... 6.47:1
 *   links        --color-accent-700 on --color-bg ......... 5.78:1
 *   muted text   --color-neutral-700 on --color-bg ........ 5.87:1
 *   dark band    --color-accent-300 on --color-accent-900 . 9.57:1
 *   dark band    --color-accent-100 on --color-accent-900 . 12.88:1
 *   dark button  --color-accent-900 on --color-accent-300 . 9.57:1
 */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root {
  /* surfaces */
  --color-bg: #f2f2f3;
  --surface-alt: #ffffff;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  /* accent — steel blue. The base was #5980a6; darkened for button contrast. */
  --color-accent: #4a6d90;
  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;

  --color-error: #9b2c2c;
  --color-error-bg: #fdecec;
  --color-success: #2f6b3f;

  /* focus ring — swapped for a light one inside dark bands */
  --focus-ring: var(--color-accent-700);

  /* type */
  --font-heading: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-heading-weight: 700;
  --tracking-heading: -0.025em;
  --tracking-eyebrow: 0.08em;
  --size-h1: clamp(38px, 4.8vw, 62px);
  --size-h1-page: clamp(36px, 4.4vw, 56px);
  --size-h2: clamp(28px, 3.2vw, 42px);
  --size-h3: 22px;
  --size-lead: clamp(17px, 1.5vw, 19px);
  --size-body: 16px;
  --size-small: 14px;
  --size-eyebrow: 13px;

  /* shape */
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-pill: 999px;

  /* layout */
  --page-max: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-pad: clamp(56px, 7vw, 96px);
  --nav-height: 66px;
  --bp-narrow: 900px; /* documentation only — media queries can't read vars */
}

.on-dark {
  --focus-ring: var(--color-accent-300);
}
