/* Delsi Meat Solutions — design tokens */

:root {
  /* Raw palette */
  --ink: #141414;
  --black-900: #0f0f0f;
  --black-800: #1a1a1a;
  --black-700: #242424;
  --white: #ffffff;
  --cream: #f7f5f0;
  --sand: #efebe2;
  --gold-600: #dfa900;
  --gold-500: #f5b800;
  --gold-700: #7a5200;
  --gold-100: #fff3cc;
  --red-600: #b80000;
  --red-700: #8e0000;
  --red-400: #ff6b5e;
  --red-100: #fdecea;
  --wa-green: #25D366;
  --wa-green-hover: #1DA851;

  /* Typography */
  --font-heading: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-h3: 1.25rem;
  --line-body: 1.6;
  --line-heading: 1.1;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --section-y: 56px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur-mid: 250ms;
  --dur-slow: 400ms;

  /* Semantic — light */
  --bg: #ffffff;
  --surface: #f7f5f0;
  --surface-raised: #efebe2;
  --text: #141414;
  --text-muted: #5a5a5a;
  --border: #e3ded3;
  --control-border: #767676;
  --primary: #f5b800;
  --primary-hover: #dfa900;
  --on-primary: #141414;
  --accent: #b80000;
  --accent-hover: #8e0000;
  --on-accent: #ffffff;
  --link: #b80000;
  --accent-text: #b80000;
  --highlight-text: #7a5200;
  --focus-ring: #141414;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.06);
  --shadow-md: 0 6px 16px rgba(20, 20, 20, 0.08);
  --shadow-lg: 0 16px 32px rgba(20, 20, 20, 0.12);
  --tint-gold: #fff3cc;
  --tint-red: #fdecea;
  --overlay: rgba(20, 20, 20, 0.6);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-raised: #242424;
  --text: #f5f5f5;
  --text-muted: #b5b5b5;
  --border: #333333;
  --control-border: #8a8a8a;
  --primary: #f5b800;
  --primary-hover: #dfa900;
  --on-primary: #141414;
  --accent: #b80000;
  --accent-hover: #8e0000;
  --on-accent: #ffffff;
  --link: #f5b800;
  --accent-text: #ff6b5e;
  --highlight-text: #f5b800;
  --focus-ring: #f5b800;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
  --tint-gold: #2a2413;
  --tint-red: #2b1615;
  --overlay: rgba(20, 20, 20, 0.6);

  color-scheme: dark;
}

[data-text="large"] {
  font-size: 112.5%;
}

[data-text="larger"] {
  font-size: 125%;
}

[data-contrast="high"] {
  --text: #000000;
  --text-muted: #000000;
  --border: #000000;
  --control-border: #000000;
  --link: #000000;
  --accent-text: #000000;
  --highlight-text: #000000;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 0 0 2px #000000;
}

[data-theme="dark"][data-contrast="high"] {
  --text: #ffffff;
  --text-muted: #ffffff;
  --border: #ffffff;
  --control-border: #ffffff;
  --link: #ffffff;
  --accent-text: #ffffff;
  --highlight-text: #ffffff;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 0 0 2px #ffffff;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 72px;
    --section-y: 96px;
  }
}
