/* ==========================================================================
   Bhoomyo design tokens  ·  v0.1.0
   Single source of truth for colour, type, space, shape, elevation, motion.
   Decisions: docs/decisions/0002 (colour), 0003 (type), 0004 (visual language), 0005 (tokens)
   Components must use the SEMANTIC tokens (bottom half), not the primitives.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap");

:root {
  /* ---------- Primitive: brand ---------- */
  --bh-charcoal: #2B2B2B;
  --bh-orange: #F37413;
  --bh-sand: #E8DCC8;
  --bh-white: #FFFFFF;

  /* ---------- Primitive: orange scale (500 = brand) ---------- */
  --bh-orange-50: #FEF5EF;
  --bh-orange-100: #FFEADF;
  --bh-orange-200: #FED4BE;
  --bh-orange-300: #FEB893;
  --bh-orange-400: #FF9557;
  --bh-orange-500: #F37413;
  --bh-orange-600: #BF5802;
  --bh-orange-700: #9D4600;
  --bh-orange-800: #7C3600;
  --bh-orange-900: #5C2600;

  /* ---------- Primitive: sand scale (200 = brand) ---------- */
  --bh-sand-50: #FEFAF2;
  --bh-sand-100: #F9F1E3;
  --bh-sand-200: #E8DCC8;
  --bh-sand-300: #DCCFBB;
  --bh-sand-400: #C2B6A0;
  --bh-sand-500: #A39782;
  --bh-sand-600: #847966;
  --bh-sand-700: #665C4B;
  --bh-sand-800: #4F4637;
  --bh-sand-900: #393225;

  /* ---------- Primitive: warm neutral scale (900 = charcoal) ---------- */
  --bh-neutral-0: #FFFFFF;
  --bh-neutral-50: #FAF9F6;
  --bh-neutral-100: #F4F2EF;
  --bh-neutral-200: #E5E2DE;
  --bh-neutral-300: #D3D1CD;
  --bh-neutral-400: #ADAAA6;
  --bh-neutral-500: #888681;
  --bh-neutral-600: #6E6B67;
  --bh-neutral-700: #54524F;
  --bh-neutral-800: #3E3D3B;
  --bh-neutral-900: #2B2B2B;

  /* ---------- Primitive: status ---------- */
  --bh-green-600: #1E7F4F;
  --bh-green-50: #E7F5EC;
  --bh-amber-700: #8A5A00;
  --bh-amber-400: #E5A50A;
  --bh-amber-50: #FFF4D6;
  --bh-red-600: #C13515;
  --bh-red-50: #FDECE8;
  --bh-blue-600: #2459C7;
  --bh-blue-50: #E8EFFC;

  /* ---------- Typography ---------- */
  --bh-font-sans: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bh-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bh-weight-regular: 400;
  --bh-weight-medium: 500;
  --bh-weight-semibold: 600;
  --bh-weight-bold: 700;
  --bh-weight-extrabold: 800;

  --bh-text-display: 48px;  --bh-leading-display: 52px;
  --bh-text-h1: 32px;       --bh-leading-h1: 38px;
  --bh-text-h2: 26px;       --bh-leading-h2: 32px;
  --bh-text-h3: 22px;       --bh-leading-h3: 28px;
  --bh-text-title: 18px;    --bh-leading-title: 24px;
  --bh-text-body-lg: 18px;  --bh-leading-body-lg: 28px;
  --bh-text-body: 16px;     --bh-leading-body: 24px;
  --bh-text-body-sm: 14px;  --bh-leading-body-sm: 20px;
  --bh-text-caption: 12px;  --bh-leading-caption: 16px;

  --bh-tracking-tight: -0.02em;
  --bh-tracking-normal: 0;

  /* ---------- Space (4px grid) ---------- */
  --bh-space-0: 0;
  --bh-space-0-5: 2px;
  --bh-space-1: 4px;
  --bh-space-2: 8px;
  --bh-space-3: 12px;
  --bh-space-4: 16px;
  --bh-space-5: 20px;
  --bh-space-6: 24px;
  --bh-space-8: 32px;
  --bh-space-10: 40px;
  --bh-space-12: 48px;
  --bh-space-16: 64px;
  --bh-space-20: 80px;

  --bh-gutter-mobile: 16px;
  --bh-gutter-tablet: 24px;
  --bh-content-max: 1240px;
  --bh-touch-min: 44px;

  /* ---------- Shape ---------- */
  --bh-radius-xs: 4px;
  --bh-radius-sm: 8px;
  --bh-radius-md: 12px;
  --bh-radius-lg: 16px;
  --bh-radius-xl: 24px;
  --bh-radius-pill: 999px;

  /* ---------- Elevation (charcoal-tinted, soft) ---------- */
  --bh-shadow-sm: 0 1px 2px rgba(43, 43, 43, 0.08);
  --bh-shadow-md: 0 6px 16px rgba(43, 43, 43, 0.12);
  --bh-shadow-lg: 0 8px 28px rgba(43, 43, 43, 0.20);

  /* ---------- Motion ---------- */
  --bh-duration-fast: 120ms;
  --bh-duration-base: 200ms;
  --bh-duration-slow: 320ms;
  --bh-ease-enter: cubic-bezier(0.2, 0, 0, 1);
  --bh-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --bh-press-scale: 0.96;

  /* ---------- Icons ---------- */
  --bh-icon-sm: 20px;
  --bh-icon-md: 24px;
  --bh-icon-stroke: 2px;

  /* ======================================================================
     SEMANTIC tokens. Components use these.
     ====================================================================== */

  /* Surfaces */
  --bh-color-bg: var(--bh-white);
  --bh-color-bg-subtle: var(--bh-sand-50);
  --bh-color-bg-warm: var(--bh-sand-100);
  --bh-color-bg-highlight: var(--bh-sand-200);
  --bh-color-bg-muted: var(--bh-neutral-100);
  --bh-color-bg-inverse: var(--bh-charcoal);
  --bh-color-bg-brand: var(--bh-orange-500);       /* charcoal text only */
  --bh-color-bg-brand-subtle: var(--bh-orange-50);

  /* Text */
  --bh-color-text: var(--bh-charcoal);
  --bh-color-text-muted: var(--bh-neutral-600);
  --bh-color-text-subtle: var(--bh-neutral-500);   /* placeholders, disabled */
  --bh-color-text-inverse: var(--bh-white);
  --bh-color-text-on-brand: var(--bh-charcoal);
  --bh-color-text-link: var(--bh-orange-600);
  --bh-color-text-link-on-sand: var(--bh-orange-700);

  /* Lines */
  --bh-color-border: var(--bh-neutral-200);
  --bh-color-border-strong: var(--bh-neutral-400);
  --bh-color-border-focus: var(--bh-charcoal);
  --bh-color-focus-ring: rgba(243, 116, 19, 0.45);

  /* Action */
  --bh-color-action: var(--bh-orange-600);
  --bh-color-action-hover: var(--bh-orange-700);
  --bh-color-action-pressed: var(--bh-orange-800);
  --bh-color-action-text: var(--bh-white);
  --bh-color-action-subtle: var(--bh-orange-50);
  --bh-color-brand: var(--bh-orange-500);          /* logo, hearts, pins, progress */

  /* Status */
  --bh-color-success: var(--bh-green-600);
  --bh-color-success-bg: var(--bh-green-50);
  --bh-color-warning: var(--bh-amber-700);
  --bh-color-warning-bg: var(--bh-amber-50);
  --bh-color-error: var(--bh-red-600);
  --bh-color-error-bg: var(--bh-red-50);
  --bh-color-info: var(--bh-blue-600);
  --bh-color-info-bg: var(--bh-blue-50);
}
