/* Design tokens for agentmarkit.com. The one place a color, font, size,
   space, radius, or shadow is defined. Pages ask for a token by meaning
   (--color-accent), never by hue. docs/design/system.md explains each one.

   Breakpoints cannot be custom properties. They are 430, 700, and 900
   (max-width) and nothing else; tests/design-system.test.mjs counts strays. */
:root {
  /* Surfaces and text */
  --color-page: #f5f6f2;
  --color-canvas: #eef0ea;
  --color-surface: #ffffff;
  --color-ink: #11130f;
  --color-muted: #686c63;
  --color-line: #d7dbd2;

  /* The one accent: primary actions, links, focus */
  --color-accent: #314ef5;
  --color-accent-strong: #203bd3;
  --color-accent-wash: #edf0ff;
  --color-accent-ink: #ffffff;

  /* Highlight and states */
  --color-lime: #d7f46d;
  --color-danger: #a42a22;
  --color-ok-bg: #e6f1ea;
  --color-ok-ink: #1e3f31;
  --color-warn-bg: #fbf5e4;
  --color-warn-ink: #5d4a14;

  /* Legacy accents, kept so nothing shifts until each family is migrated.
     --color-accent-amh: legal and contact pages, which honour dark mode.
     --color-accent-bf: the public funnel buttons. Both go in round 3. */
  --color-accent-amh: light-dark(#3057f5, #8ba2ff);
  --color-accent-bf: #284ee8;
  --color-accent-bf-strong: #1737b6;

  /* Type */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-h1: clamp(30px, 4vw, 42px);

  /* Space, on a 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Shape */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 18px 48px rgba(29, 34, 24, 0.1);
  --shadow-pop: 0 6px 24px rgba(0, 0, 0, 0.14);

  /* Interaction */
  --focus-ring: 3px solid var(--color-accent);
  --focus-offset: 3px;
  --tap-min: 44px;

  /* Layout */
  --shell-max: 1220px;
  --shell-gutter: 24px;
}
