/* ReplyFlow design tokens — "Ledger".
   Every colour, size, radius, shadow and duration used by components.css comes from here.
   New UI should only ever reference these variables, never raw values. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/newsreader-var.woff2") format("woff2");
}

:root {
  /* Colour — neutrals */
  --color-paper: #F8F7F3;        /* page background */
  --color-surface: #FFFFFF;      /* cards, inputs */
  --color-surface-sunk: #FCFBF8; /* chat background, hovered rows */
  --color-hover: #F3F1EB;
  --color-line: #E6E3DA;         /* hairlines, card borders */
  --color-line-strong: #D6D2C6;  /* input and button borders */
  --color-ink: #0E1726;          /* headings, primary text */
  --color-ink-2: #344054;        /* body text */
  --color-muted: #5B6474;        /* secondary text (5.9:1 on white) */
  --color-avatar: #EEE9DD;

  /* Colour — brand and status. Each status has a text colour (-700) and a tint (-50); pairs pass AA. */
  --color-brand: #0F5B4A;
  --color-brand-hover: #0B4A3C;
  --color-brand-50: #E8F2EE;
  --color-brand-700: #0B4A3C;
  --color-amber-500: #C27A12;
  --color-amber-50: #FBF1DC;
  --color-amber-700: #8A4B08;
  --color-blue-50: #EAF0FB;
  --color-blue-700: #1D4E9E;
  --color-red-50: #FCEBE8;
  --color-red-600: #B42318;
  --color-red-700: #912018;
  --color-grey-50: #F1EFE9;
  --color-grey-700: #475467;
  --color-focus: #1D4ED8;
  --color-live: #1F8A5B;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 12.5px;
  --text-sm: 13.5px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-display: 40px;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-tight: 1.15;
  --leading-normal: 1.5;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, .05);
  --shadow-md: 0 1px 2px rgba(14, 23, 38, .05), 0 12px 32px -12px rgba(14, 23, 38, .18);
  --shadow-lg: 0 24px 64px -16px rgba(14, 23, 38, .35);

  /* Sizing */
  --tap: 44px;              /* minimum touch target */
  --sidebar-width: 264px;
  --content-max: 1240px;
  --tabbar-height: 72px;

  /* Motion — short and purposeful; zeroed for prefers-reduced-motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --duration-fast: 120ms;
  --duration: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration: 0ms; }
}
