/*
 * Design tokens: every colour, size and timing the interface uses.
 *
 * Components read these names and never a raw value, so a change here
 * changes the whole product. The values of the grounds, the text colours,
 * the primary colour, the three accents and the radii are fixed by the
 * design document; a test checks them and the contrast of every text colour.
 */
:root {
  /* Grounds and lines */
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-sunken: #F3F3EE;
  --line: #E3E3DC;
  --line-soft: #EDEDE7;
  --line-strong: #D9D9D2;

  /* Text */
  --ink: #17191C;
  --ink-2: #3D434B;
  --muted: #4F555E;
  --muted-2: #646A73;
  --on-primary: #FFFFFF;
  --on-primary-muted: #CFE8E1;

  /* Primary colour */
  --primary: #0B6B58;
  --primary-strong: #095A4A;
  --primary-deep: #0A4F42;
  --primary-tint: #DDF1EA;
  --primary-line: #BFE6DA;

  /* Accents: amber for dates and highlights, coral for alerts, sky for information */
  --amber: #F2A93B;
  --amber-strong: #B7791F;
  --amber-tint: #FCEBCB;
  --amber-ink: #8A4B12;
  --highlight: #FBDE9C;

  --coral: #EF6F52;
  --coral-tint: #FBDDD4;
  --coral-soft: #FFF7F4;
  --coral-ink: #8C2F18;

  --sky: #3E8FD0;
  --sky-strong: #2C6FA8;
  --sky-tint: #D9EAF8;
  --sky-ink: #1F4F7A;

  /* Feedback */
  --danger: #B42318;
  --danger-strong: #96190F;
  --danger-tint: #FDE7E4;

  /* Speakers: a mark colour, a tint behind it and a text colour, chosen by the speaker's order */
  --speaker-1: #0B6B58;
  --speaker-1-tint: #DDF1EA;
  --speaker-1-ink: #0A4F42;
  --speaker-2: #B7791F;
  --speaker-2-tint: #FCEBCB;
  --speaker-2-ink: #8A4B12;
  --speaker-3: #2C6FA8;
  --speaker-3-tint: #D9EAF8;
  --speaker-3-ink: #1F4F7A;
  --speaker-4: #C2482C;
  --speaker-4-tint: #FBDDD4;
  --speaker-4-ink: #8C2F18;
  --speaker-5: #66761C;
  --speaker-5-tint: #E9EFCB;
  --speaker-5-ink: #4A5613;
  --speaker-6: #A63D6E;
  --speaker-6-tint: #F7DDE8;
  --speaker-6-ink: #7A2A50;
  --speaker-unknown: #9AA0A8;
  --speaker-unknown-line: #A9ADA6;

  /* Corners */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* Spacing, on a 4-pixel grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;

  /* Type */
  --font-sans: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --text-body: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.75rem;
  --text-4xl: clamp(1.625rem, 1.1rem + 2.2vw, 2.25rem);
  --text-5xl: clamp(2.125rem, 1.2rem + 4.4vw, 3.75rem);
  --leading-tight: 1.5;
  --leading-normal: 1.8;
  --leading-loose: 1.95;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(23, 25, 28, 0.06);
  --shadow-card: 0 12px 28px rgba(11, 60, 50, 0.12);
  --shadow-pop: 0 18px 40px rgba(11, 60, 50, 0.16);
  --scrim: rgba(23, 25, 28, 0.5);

  /* Focus */
  --focus: #0B6B58;
  --focus-ring: 3px solid var(--focus);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 120ms;
  --duration: 200ms;
  --duration-slow: 320ms;

  /* Layers */
  --z-sticky: 20;
  --z-nav: 40;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 1000;

  /* Page measures */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --sidebar: 256px;
  --control: 44px;
  --control-sm: 36px;
}
