/* ============================================================================
   tokens.css — one theme only: white paper, black ink.
   No italic, no gradients, one font family. Simplicity is the design.
   ========================================================================= */

:root {
  /* --- Typography: a single system sans, sized for comfortable reading --- */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.0625rem;   /* 17px */
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.6rem, 1.4rem + 0.8vw, 2rem);
  --text-4xl: clamp(1.9rem, 1.6rem + 1.2vw, 2.5rem);

  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.6;

  /* --- Space (4px base) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* --- Layout --- */
  --container: 1120px;
  --container-narrow: 700px;
  --header-h: 62px;

  /* --- Radius: subtle, so nothing looks like a bubble --- */
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur-fast: 100ms;
  --dur: 160ms;
  --dur-slow: 300ms;

  /* --- Z-index --- */
  --z-header: 100;
  --z-overlay: 200;
  --z-toast: 300;

  /* --- Colour: pure white, pure black, neutral greys --- */
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --surface-3: #ededed;

  --text: #000000;
  --text-soft: #2b2b2b;
  --text-muted: #5f5f5f;
  --text-faint: #8a8a8a;

  --line: #e4e4e4;
  --line-strong: #bdbdbd;

  --accent: #000000;
  --accent-strong: #1f1f1f;
  --accent-contrast: #ffffff;
  --accent-soft: #f2f2f2;
  --accent-line: #000000;

  /* Semantic colours are used only where meaning would be lost without them. */
  --success: #1c6b3c;
  --warning: #7a5200;
  --danger: #b3261e;
  --info: #2a4b7c;

  --shadow-sm: 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.08);

  --media-bg: #f2f2f2;
  --scrim: rgba(255, 255, 255, 0.92);

  color-scheme: light;
}
