/* ==========================================================================
   Divyakshi design tokens — Brand Book v1.0 (November 2026)
   Source of truth: DIVYAKSHI-BRAND-IDENTITY/06-WEBSITE-DESIGN/Design-System.md
   and brand-tokens.css. Change a value here and the whole site follows.
   ========================================================================== */

:root {
  /* ---- Brand palette (the only colours the site uses) ---- */
  --dk-green: #0C9D58;        /* primary brand: hero, brand areas, large headlines */
  --dk-green-hover: #0A8A4D;  /* hover on green surfaces */
  --dk-deep: #006B3C;         /* primary buttons, links, green text (6.63:1 on white) */
  --dk-deep-hover: #00552F;   /* primary button hover */
  --dk-lime: #78C850;         /* illustrations, success accents */
  --dk-saffron: #F9A825;      /* secondary buttons, highlights, focus ring, "the dot" */
  --dk-orange: #F57C00;       /* offer badges, saffron-button hover */
  --dk-orange-text: #B85A00;  /* prices and offer text on white (4.67:1) */
  --dk-dark: #20312A;         /* body text, announcement bar, footer */
  --dk-muted: #5B6B63;        /* secondary text */
  --dk-line: #E4E1D8;         /* borders, dividers */
  --dk-cream: #FFF9EF;        /* page and section backgrounds */
  --dk-mint: #E7F6EE;         /* icon tiles, success notices, outline hover */
  --dk-sand: #FDEFD3;         /* warning notices, offer cards */
  --dk-white: #FFFFFF;        /* cards, surfaces */
  --dk-disabled-text: #8A968F;
  --dk-skeleton: #F4F2EC;

  --dk-grad-green: linear-gradient(135deg, #0C9D58, #006B3C);   /* hero only */
  --dk-grad-saffron: linear-gradient(135deg, #F9A825, #F57C00); /* offer banners only */

  /* ---- Older token names, kept as aliases so every component follows the new palette ---- */
  --dk-ink: var(--dk-dark);
  --dk-charcoal: var(--dk-dark);
  --dk-ember: var(--dk-saffron);
  --dk-ember-deep: var(--dk-deep);
  --dk-amber: var(--dk-saffron);
  --dk-paper: var(--dk-mint);
  --dk-stone: var(--dk-muted);
  --dk-mist: #C9D3CD;          /* muted text on dark (8.9:1 on #20312A) */
  --dk-kraft: #C9A27A;         /* kraft stock swatch only */
  --dk-leaf: var(--dk-deep);

  /* ---- Semantic roles ---- */
  --color-bg: var(--dk-cream);
  --color-surface: var(--dk-white);
  --color-surface-dark: var(--dk-dark);
  --color-text: var(--dk-dark);
  --color-heading: var(--dk-dark);
  --color-text-muted: var(--dk-muted);
  --color-text-on-dark: var(--dk-white);
  --color-text-muted-on-dark: var(--dk-mist);
  --color-accent: var(--dk-saffron);
  --color-link: var(--dk-deep);
  --color-price: var(--dk-orange-text);
  --color-rule: var(--dk-line);
  --color-rule-on-dark: rgba(255, 255, 255, 0.16);
  /* Focus ring: saffron on every surface, as the brand book specifies. */
  --color-focus: var(--dk-saffron);
  --color-border-input: var(--dk-line);

  /* Buttons */
  --btn-primary-bg: var(--dk-deep);
  --btn-primary-text: var(--dk-white);
  --btn-primary-bg-hover: var(--dk-deep-hover);
  --btn-secondary-border: var(--dk-deep);
  --btn-secondary-text: var(--dk-deep);

  /* ---- Typography: Poppins for headings, buttons and navigation; Inter for everything else ---- */
  --font-display: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-deva: "Noto Sans Devanagari", "Mukta", sans-serif;   /* Hindi copy only */
  --display-settings: normal;

  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);      /* 36 → 56px */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);      /* 28 → 40px */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);    /* 20 → 24px */
  --fs-h4: 1.25rem;
  --fs-h5: 1.0625rem;
  --fs-h6: 0.9375rem;
  --fs-lead: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);  /* 17 → 18px */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-price: 1.125rem;
  --fs-product: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); /* 16 → 18px */
  --fs-nav: 0.9375rem;
  --fs-button: 1rem;
  --fs-label: 0.9375rem;
  --fs-caption: 0.75rem;

  --lh-tight: 1.1;
  --lh-heading: 1.15;
  --lh-body: 1.6;

  --wght-display: 700;
  --wght-heading: 700;
  --wght-body: 400;
  --wght-medium: 500;
  --wght-strong: 600;

  --tracking-display: -0.01em;
  --tracking-heading: -0.005em;

  /* ---- Space (8px scale: 4/8/16/24/32/48/64/96) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-pad: clamp(3.5rem, 2.5rem + 3.5vw, 6rem);   /* 56px mobile → 96px desktop */
  --section-head-gap: clamp(1.75rem, 1.25rem + 1.5vw, 3rem);
  --gutter: clamp(1rem, 0.5rem + 2vw, 1.5rem);          /* 16px mobile margins, 24px gutters */
  --max-width: calc(75rem + 2 * var(--gutter));         /* 1200px content width */
  --measure: 38rem;

  /* ---- Shape ---- */
  --radius-paper: 8px;
  --radius-input: 8px;     /* buttons and inputs */
  --radius-card: 12px;     /* cards */
  --radius-panel: 16px;    /* large panels */
  --radius-pill: 999px;    /* tags */
  --shadow-paper: 0 1px 0 rgba(32, 49, 42, 0.06), 0 18px 30px -18px rgba(32, 49, 42, 0.4);
  --shadow-card: 0 8px 24px rgba(32, 49, 42, 0.08);
  --shadow-lift: 0 8px 24px rgba(32, 49, 42, 0.12);

  /* ---- Status colours ---- */
  --color-success: var(--dk-deep);
  --color-success-bg: var(--dk-mint);
  --color-warning: var(--dk-dark);
  --color-warning-bg: var(--dk-sand);
  --color-danger: #D93025;
  --color-danger-bg: #FDECEA;
  --color-info-bg: var(--dk-white);

  /* ---- Aspect ratios ---- */
  --ratio-product: 1 / 1;
  --ratio-category: 4 / 3;
  --ratio-blog: 16 / 9;
  --ratio-promo: 16 / 9;
  --ratio-hero-art: 1 / 1;

  /* ---- Sizing ---- */
  --touch: 2.75rem;            /* 44px minimum touch target */
  --btn-h: 3rem;               /* 48px buttons and fields; 44px on phones (below) */
  --icon-sm: 1rem;
  --icon-md: 1.375rem;
  --icon-lg: 1.5rem;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;           /* button colour change */
  --dur-card: 200ms;           /* card lift */
  --dur-reveal: 300ms;         /* section fade-up */
  --dur-draw: 1600ms;
}

@media (max-width: 760px) {
  :root { --fs-body: 0.9375rem; --fs-caption: 0.6875rem; --btn-h: 2.75rem; }
}

/* Metric-matched fallbacks so text keeps its width while the web fonts load (less layout shift). */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 112%; ascent-override: 93%; descent-override: 31%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; }
