/* Agent Mail design tokens — derived from the Chuong Duong Corp mark:
   red-orange radial "D" with three stripes + deep green condensed wordmark between rules. */

:root {
  color-scheme: light;

  /* Brand */
  --brand-red: #CA373A;
  --brand-orange: #E25338;
  --brand-gradient: radial-gradient(120% 140% at 30% 35%, #E25338 0%, #CA373A 72%);
  --brand-gradient-flat: linear-gradient(180deg, #E25338 0%, #CA373A 100%);

  --green-900: #132E1F;
  --green-800: #1C4430;
  --green-700: #295B3D;
  --green-500: #3F7C57;
  --green-100: #E4EEE7;
  --green-50: #F1F6F2;

  /* Surfaces & ink */
  --paper: #F6F3EE;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #17231B;
  --ink-muted: #5A665F;
  --ink-faint: #8A938D;
  --line: #DED8CE;
  --line-strong: #C9C1B4;
  --rule: var(--green-700);
  --heading: var(--green-900);
  --nav-active-bg: var(--green-50);
  --nav-active-ink: var(--green-800);
  --row-hover: var(--green-50);

  /* Semantic */
  --warn: #B7791F;
  --warn-bg: #FDF3E1;
  --danger: #CA373A;
  --danger-bg: #FBEAEA;
  --ok: #295B3D;
  --ok-bg: #E4EEE7;
  --info: #2F5E8C;
  --info-bg: #E8F0F8;
  --neutral: #5A665F;
  --neutral-bg: #EEEBE5;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-1: 0 1px 0 rgba(23, 35, 27, 0.04), 0 1px 3px rgba(23, 35, 27, 0.06);
  --shadow-2: 0 2px 4px rgba(60, 30, 20, 0.06), 0 12px 28px -10px rgba(120, 52, 36, 0.22);
  --ring: 0 0 0 3px rgba(226, 83, 56, 0.35);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-title: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --text-kpi: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  --text-kpi-hero: clamp(3rem, 2.2rem + 3vw, 4.5rem);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;

  /* Layout */
  --sidebar-w: 268px;
  --content-max: 1180px;
  --input-h: 44px;

  /* Motion */
  --dur-fast: 140ms;
  --dur-normal: 240ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
