/* BUN AND BEEF design tokens, from the design system's tokens.json. Two themes carry the same
   semantic tokens: `forest` (dark, the default) and `light`. Set one with `data-theme` on any
   element; sections nest. Build with the semantic tokens; the ramps are for illustration, charts
   and print. `danger` is the only signal colour. The system defines no shadows. */

:root {
  /* Ramps: the guideline's 20 swatches, plus forest-800 measured from the pattern artwork. */
  --forest-900: #14201b;
  --forest-800: #182d23;
  --forest-700: #21362d;
  --forest-500: #3c574a;
  --forest-300: #6f897c;
  --forest-100: #c6d2cb;
  --taupe-900: #70584c;
  --taupe-700: #a48777;
  --taupe-500: #bba497;
  --taupe-300: #d5c6bd;
  --taupe-100: #f2ece8;
  --black: #000000;
  --gray-900: #262626;
  --gray-700: #4d4d4d;
  --gray-500: #808080;
  --gray-400: #c2c2c2;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f3f3f3;
  --white: #ffffff;

  --gradient-forest: linear-gradient(132deg, #3c574a 0%, #21362d 100%);
  --gradient-taupe: linear-gradient(132deg, #70584c 0%, #a48777 100%);
  --gradient-neutral: linear-gradient(132deg, #d4d4d4 0%, #c2c2c2 100%);

  /* Type: the stacks name the licensed faces first; the shipped stand-ins follow. */
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-secondary: "Aeonik", "Poppins", system-ui, sans-serif;
  --font-arabic: "Frutiger LT Arabic", "IBM Plex Sans Arabic", "Poppins", sans-serif;
  --font-arabic-secondary: "TheSans Arabic", "TheSans", "IBM Plex Sans Arabic", sans-serif;

  /* Type scale (weight size/leading). Eyebrow and tagline take their tracking from
     --tracking-eyebrow and --tracking-tagline; Arabic is never tracked. */
  --type-display: 700 104px/1 var(--font-sans);
  --type-title: 700 49px/56px var(--font-sans);
  --type-heading: 700 35px/49px var(--font-sans);
  --type-subheading: 600 24px/32px var(--font-sans);
  --type-body-lg: 400 20px/30px var(--font-sans);
  --type-body: 400 16px/22px var(--font-sans);
  --type-body-sm: 400 14px/20px var(--font-sans);
  --type-caption: 400 12px/16px var(--font-sans);
  --type-label: 500 15px/20px var(--font-sans);
  --type-eyebrow: 300 13px/20px var(--font-sans);
  --type-tagline: 300 13px/20px var(--font-sans);
  --type-secondary: 500 20px/26px var(--font-secondary);
  --type-ar-title: 700 35px/52px var(--font-arabic);
  --type-ar-body: 400 16px/28px var(--font-arabic);
  --type-ar-secondary: 700 20px/30px var(--font-arabic-secondary);
  --tracking-eyebrow: .7em;
  --tracking-tagline: .9em;

  /* Space: the 4 px scale. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Corners: badges, buttons and inputs, cards, brand panels, pills. */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
}

/* Forest: the brand at full strength. */
:root,
[data-theme="forest"] {
  color-scheme: dark;
  --surface: var(--forest-700);
  --surface-card: var(--forest-900);
  --ink: var(--taupe-100);
  --ink-muted: var(--taupe-500);
  --brand: var(--taupe-700);
  --brand-hover: var(--taupe-500);
  --on-brand: var(--forest-900);
  --accent: var(--taupe-700);
  --line: var(--forest-500);
  --line-strong: var(--forest-300);
  --focus: var(--taupe-100);
  --danger: #f0a08c;
}

/* Light: long reading and forms. */
[data-theme="light"] {
  color-scheme: light;
  --surface: var(--gray-100);
  --surface-card: var(--white);
  --ink: var(--forest-700);
  --ink-muted: var(--forest-500);
  --brand: var(--forest-700);
  --brand-hover: var(--forest-500);
  --on-brand: var(--taupe-100);
  --accent: var(--taupe-900);
  --line: var(--gray-300);
  --line-strong: var(--forest-300);
  --focus: var(--forest-900);
  --danger: #a3381f;
}
