/* ==========================================================================
   Divyakshi design tokens
   The single source of truth for colour, type, spacing and shape.
   Change a value here and the whole site follows. Mirrors the brand book.
   ========================================================================== */

:root {
  /* ---- Brand palette (sampled from the logo, then tuned for contrast) ---- */
  --dk-ink: #131315;          /* logo disc — primary dark */
  --dk-charcoal: #2a2523;     /* secondary dark, body text on cream */
  --dk-ember: #e64626;        /* logo mark — primary brand colour */
  --dk-ember-deep: #b5341b;   /* ember for small text and links on light backgrounds */
  --dk-amber: #e38739;        /* logo ring — highlights, rules, registration marks */
  --dk-cream: #fff7ef;        /* page background */
  --dk-paper: #f6eadb;        /* alternate light surface */
  --dk-stone: #6b625c;        /* muted text */
  --dk-mist: #cfc6bd;         /* muted text on dark, hairlines on light */
  --dk-kraft: #b98e5f;        /* packaging sections only */
  --dk-leaf: #526b4d;         /* optional: eco / kraft tags only */
  --dk-white: #ffffff;

  /* ---- Semantic roles ---- */
  --color-bg: var(--dk-cream);
  --color-surface: var(--dk-paper);
  --color-surface-dark: var(--dk-ink);
  --color-text: var(--dk-charcoal);
  --color-heading: var(--dk-ink);
  --color-text-muted: var(--dk-stone);
  --color-text-on-dark: var(--dk-cream);
  --color-text-muted-on-dark: var(--dk-mist);
  --color-accent: var(--dk-ember);
  --color-link: var(--dk-ember-deep);
  --color-rule: rgba(19, 19, 21, 0.14);
  --color-rule-on-dark: rgba(255, 247, 239, 0.16);
  --color-focus: var(--dk-amber);

  /* Buttons — ember fill carries ink text (4.7:1); white text would fail AA */
  --btn-primary-bg: var(--dk-ember);
  --btn-primary-text: var(--dk-ink);
  --btn-primary-bg-hover: #f05a3a;
  --btn-secondary-border: var(--dk-ink);
  --btn-secondary-text: var(--dk-ink);

  /* ---- Typography ---- */
  --font-display: "Fraunces Variable", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk Variable", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;

  /* Display type uses Fraunces with its SOFT axis at 50: the letterpress warmth. */
  --display-settings: "SOFT" 50, "WONK" 0;

  --fs-h1: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3.125rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-h5: 1.0625rem;
  --fs-h6: 0.9375rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-price: 1.125rem;
  --fs-nav: 0.9875rem;
  --fs-button: 1rem;
  --fs-label: 0.9375rem;

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

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

  --tracking-display: -0.022em;
  --tracking-heading: -0.012em;

  /* ---- Space (4px base) ---- */
  --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(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max-width: 76rem;
  --measure: 38rem;

  /* ---- Shape ----
     Paper is square-cornered; things you press are round, like the badge. */
  --radius-paper: 3px;
  --radius-panel: 14px;
  --radius-input: 8px;
  --radius-pill: 999px;
  --shadow-paper: 0 1px 0 rgba(19, 19, 21, 0.06), 0 18px 30px -18px rgba(19, 19, 21, 0.45);

  /* ---- Status colours (store UI) ---- */
  --color-success: #2f6b3a;
  --color-success-bg: #e7f1e6;
  --color-warning: #8a5a00;
  --color-warning-bg: #fbf0d9;
  --color-danger: var(--dk-ember-deep);
  --color-danger-bg: #fbe6e0;
  --color-info-bg: var(--dk-paper);
  --shadow-card: 0 1px 2px rgba(19, 19, 21, 0.06), 0 8px 24px -12px rgba(19, 19, 21, 0.22);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-draw: 1600ms;
}
