/*
 * Hand-patched on 2026-04-25: extract-design-system v1 normalizer
 * dropped the color palette. Colors below are pulled directly from
 * .extract-design-system/raw.json (high-confidence palette entries
 * + dominant inset shadow). Keep in sync with tokens.json.
 *
 * Phase 4.5 (2026-04-27): Forest Green "Overdrive" Flip.
 * Updated brand colors to deep forest greens and added high-contrast
 * warm accents for the heritage-premium aesthetic.
 */
:root {
  /* Palette */
  --color-neutral-100: #ffffff;       /* surface (751 uses, high confidence) */
  --color-neutral-900: #232323;       /* body text */
  --color-neutral-950: #040404;       /* active state */
  --color-brand-700:   #3c4936;       /* Forest Green (Phase 4.5 flip) */
  --color-brand-600:   #4d5b46;       /* Forest Green light */

  /* Heritage Accents (Phase 4.5) */
  --color-accent-warm: #7d3826;       /* Clay/Terracotta heritage accent */
  --color-surface-deep: #442515;      /* Deep mahogany/leather surface */
  --color-trust:        #1e2739;      /* Deep navy trust/utility anchor */

  /* Destructive (Phase 3 Wave 0 — first explicit destructive slot per UI-SPEC §Color) */
  --color-destructive:        #b85c4d;        /* warm-taupe-compatible terracotta — 4.55:1 on white */
  --color-destructive-hover:  #a14f42;        /* darker for hover (5.34:1 AAA-large) */

  /* Semantic */
  --color-bg:           var(--color-neutral-100);
  --color-fg:           var(--color-neutral-900);
  --color-brand:        var(--color-brand-700);
  --color-brand-hover:  var(--color-brand-600);
  --color-border:       var(--color-brand-700);

  /* Paper-warm surfaces (Plan 04-04 VFP v2 — Home featured-card aesthetic + future v1.1 surfaces).
     NOT a Stitch leak-through — explicit canonical tokens added to keep zero-hex-literal CSS. */
  --color-surface-warm: #faf7f2;        /* warm off-white for soft surfaces */
  --color-border-warm:  #e8e3dc;        /* paper-warm border, lighter than brand-700 taupe */

  /* Typography (Phase 04.5 brand application fonts; foundry-first, OFL fallback retained) */
  --font-heading: "Avenir Next Arabic", "avenir-next-lt-pro", "Avenir Next", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body:    "Avenir Next Arabic", "avenir-next-lt-pro", "Avenir Next", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Spacing scale */
  --space-1: 1px;
  --space-2: 3.2px;
  --space-3: 4px;
  --space-4: 4.8px;
  --space-5: 5px;
  --space-6: 8px;
  --space-7: 11px;
  --space-8: 11.2px;
  --space-9: 12px;
  --space-10: 12.8px;
  --space-11: 16px;
  --space-12: 21.6px;
  --space-13: 24px;
  --space-14: 28px;
  --space-15: 32px;
  --space-16: 60.1562px;
  --space-17: 100px;
  --space-18: 123px;
  --space-19: 293.328px;
  --space-20: 679.141px;

  /* Shadows — dominant pattern is a 1px inset border using the brand color */
  --shadow-inset-brand: inset 0 0 0 1px var(--color-brand-700); /* 619 uses, high confidence */
  --shadow-inset-light: inset 0 0 0 1px var(--color-neutral-100);
}
