/* ==========================================================================
   StoreCanary v2 — Design tokens
   Art direction: Option 1 "Lanterne du marchand" (light, canari + charbon)
   Palette, type scale, spacing, radii, shadows — CSS custom properties only.
   ========================================================================== */

:root{
  /* ---- Color: base (light, "jour du marchand") ---- */
  --color-bg:            #FDFBF7; /* warm off-white, page background */
  --color-bg-alt:        #F8F3E9; /* slightly deeper warm tint for zebra/alt sections */
  --color-surface:       #FFFFFF; /* cards, inputs */
  --color-ink:           #16181D; /* charcoal — text + dark surfaces, "clin d'oeil à la mine" */
  --color-ink-soft:      #4A4F58; /* secondary text on light */
  --color-ink-mute:      #6B7078; /* tertiary / captions on light */
  --color-border:        #E8E4DB; /* 1px hairline borders, à la Vercel */
  --color-border-strong: #D9D3C4;

  /* ---- Color: brand accent (canary yellow — signature, used sparingly) ---- */
  --color-brand:         #FFC53D;
  --color-brand-hover:   #F5B301;
  --color-brand-ink:     #3A2C00; /* text on top of brand-yellow fills */
  --color-brand-tint:    #FFF4D9; /* faint yellow wash for highlighted rows/badges */

  /* ---- Color: status (the canary's vocabulary — pastilles universelles) ---- */
  --color-ok:            #1F8A4C;
  --color-ok-tint:       #E6F4EB;
  --color-warn:          #D97706;
  --color-warn-tint:     #FDF1E1;
  --color-alert:         #D64545;
  --color-alert-tint:    #FBE9E9;

  /* ---- Color: embedded dark panel ("nuit de scan" incrustée dans le jour) ----
     Used ONLY for the product/dashboard preview panels, never the page shell. */
  --panel-bg:            #16181D;
  --panel-surface:       #1F222B;
  --panel-surface-raised:#262A34;
  --panel-border:        #33394480;
  --panel-text:          #F1EEE6;
  --panel-text-mute:     #9BA0AC;
  --panel-brand:         #FFD666; /* canary glows warmer on dark */
  --panel-ok:            #3ED17E;
  --panel-warn:          #F0A93E;
  --panel-alert:         #FF6B6B;
  --panel-shadow:        0 24px 60px -20px rgba(0,0,0,.55);

  /* ---- Typography ----
     Display: Bricolage Grotesque (headings, 600 max, tight tracking)
     Body/UI: Instrument Sans
     Data/mono: JetBrains Mono (timestamps, URLs, counters — small doses) */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600; /* the ceiling — never heavier, per design-references.md */

  --tracking-tight: -0.02em;
  --tracking-tighter: -0.03em;

  /* Fluid type scale */
  --fs-xs:   0.8125rem;   /* 13px */
  --fs-sm:   0.9375rem;   /* 15px */
  --fs-base: 1.0625rem;   /* 17px */
  --fs-md:   1.25rem;     /* 20px */
  --fs-lg:   1.5rem;      /* 24px */
  --fs-xl:   clamp(1.75rem, 2.4vw + 1rem, 2.5rem);   /* h2 */
  --fs-2xl:  clamp(2.25rem, 4vw + 1rem, 3.25rem);    /* h1 */
  --fs-3xl:  clamp(2.75rem, 5vw + 1rem, 4rem);       /* rare, big statement */

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-normal:1.6;

  /* ---- Spacing scale (rem, 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;

  /* ---- Layout ---- */
  --container-max: 1120px;
  --container-pad: clamp(1.25rem, 4vw, 2rem);

  /* ---- Radii (cohérent, 8-16px — pas d'uniformité forcée à 16) ---- */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 999px;

  /* ---- Shadows (retenue : surfaces + bordures 1px d'abord, ombre en soutien) ---- */
  --shadow-xs: 0 1px 2px rgba(22,24,29,.05);
  --shadow-sm: 0 2px 8px rgba(22,24,29,.06);
  --shadow-md: 0 8px 24px -8px rgba(22,24,29,.12);
  --shadow-glow-brand: 0 0 0 4px rgba(255,197,61,.18);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-fast: 140ms;
  --dur-med:  240ms;
}
