/* Casebook+ design tokens v1.0 (November 2026)
   Source of truth for color, type, shape and elevation. Everything derives from the locked wordmark:
   "Casebook" in teal 700, the plus in yellow 500, set in Inter Bold at -0.025em.
   Used by: the app (client/src/index.css mirrors these as HSL), the landing page, the design kit page. */

@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader-Italic-var.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* Teal: the cover */
  --teal-950: #04282B;
  --teal-900: #063A3F;
  --teal-800: #00555C;
  --teal-700: #007078; /* brand teal, the wordmark */
  --teal-600: #0A8790;
  --teal-500: #2A9FA7;
  --teal-400: #5BB9BF;
  --teal-300: #8FD0D4;
  --teal-200: #BFE3E5;
  --teal-100: #DDF0F1;
  --teal-50: #EFF8F8;

  /* Yellow: the plus, the highlighter */
  --yellow-700: #7A6000; /* yellow as text on light */
  --yellow-600: #C9A200;
  --yellow-500: #F0C300; /* plus yellow */
  --yellow-300: #F8DC5C;
  --yellow-200: #F4E08A;
  --yellow-100: #FCF1BF;
  --yellow-50: #FEF9E3;

  /* Ink and paper */
  --ink-900: #12282B; /* text */
  --ink-700: #354A4D; /* secondary text */
  --ink-500: #566567; /* muted text, 5.6:1 on paper */
  --ink-300: #819092; /* field borders, 3.3:1 on white */
  --line: #E1DED5;
  --line-strong: #CFCBC0;
  --paper-200: #EDEAE2;
  --paper-100: #F7F6F2; /* page */
  --white: #FFFFFF; /* cards, fields, the logo's ground */

  /* Status */
  --success: #17603C; --success-bg: #E3F3EA;
  --danger: #9C2A20; --danger-bg: #FBE9E6; --danger-solid: #B93227;
  --info: #234F82; --info-bg: #E6EEF8;
  --warn: #5E4A00; --warn-bg: #FCF1BF;
  --clay: #D9774F; /* fifth chart color only */

  /* Roles */
  --bg: var(--paper-100);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-2: var(--ink-700);
  --text-muted: var(--ink-500);
  --brand: var(--teal-700);
  --brand-hover: var(--teal-800);
  --plus: var(--yellow-500);
  --focus: var(--teal-700);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, serif; /* the page voice: quoted note text only */
  --font-features: "cv11", "ss01", "calt"; /* cv11 = the single-storey a of the wordmark */
  --tracking-display: -0.03em;
  --tracking-heading: -0.02em;
  --tracking-label: 0.06em;

  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.875rem;   /* 14 */
  --text-base: 1rem;     /* 16 */
  --text-md: 1.125rem;   /* 18 */
  --text-lg: 1.375rem;   /* 22 */
  --text-xl: 1.75rem;    /* 28 */
  --text-2xl: clamp(2rem, 1.3rem + 2.6vw, 3rem);       /* 32 to 48 */
  --text-hero: clamp(2.5rem, 1.2rem + 5.2vw, 4.75rem); /* 40 to 76, landing only */

  /* Shape */
  --radius-xs: 4px;   /* chips, checkboxes */
  --radius-sm: 6px;
  --radius-md: 8px;   /* buttons, fields */
  --radius-lg: 12px;  /* cards */
  --radius-xl: 20px;  /* marketing panels, device frames */
  --radius-full: 999px; /* status pills, filter chips, the plus dot */

  /* Space: 4px base */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;

  /* Elevation: ink-tinted, never gray */
  --shadow-xs: 0 1px 2px 0 rgb(18 40 43 / 0.05);
  --shadow-sm: 0 1px 2px 0 rgb(18 40 43 / 0.06), 0 1px 3px 0 rgb(18 40 43 / 0.05);
  --shadow-md: 0 6px 16px -4px rgb(18 40 43 / 0.12), 0 2px 4px -2px rgb(18 40 43 / 0.06);
  --shadow-lg: 0 16px 40px -12px rgb(18 40 43 / 0.22), 0 4px 8px -4px rgb(18 40 43 / 0.08);
  --shadow-xl: 0 32px 72px -20px rgb(18 40 43 / 0.34), 0 8px 16px -8px rgb(18 40 43 / 0.10);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 560ms;
}
