/* ============================================================
   IMIN DESIGN TOKENS · v2 · 2026-07-23
   The contract. Copy this block — don't reinterpret it.
   Dark is the default (website, party-goers app).
   Light mode = organizer dashboard + email on light base:
   apply [data-theme="light"] on the surface root.
   ============================================================ */

:root {
  /* ---- ink family (dark surfaces) ---- */
  --bg:      #09090F;   /* base — near-black, never pure black */
  --panel:   #101019;   /* cards, elevated surfaces */
  --panel-2: #15151F;   /* second elevation */
  --text:    #F4F2FB;   /* primary text — off-white */
  --text-2:  #9A96AD;   /* secondary */
  --text-3:  #5F5B70;   /* tertiary / meta */
  --hair:    rgba(255,255,255,.09);
  --hair-2:  rgba(255,255,255,.14);

  /* ---- IMIN Green — the color of yes ---- */
  --green-300: #2FE0A0; /* dark-UI data tint + glow only */
  --green-500: #16B877; /* THE accent. Anchor on every surface */
  --green-700: #0F7B5F; /* green text/links on light bases */
  --accent:     var(--green-500);
  --cta-ink:    #04130D; /* text on green fills */
  /* the ONLY sanctioned gradient — primary CTA + "live" states */
  --grad-live: linear-gradient(120deg, #0E8F86 0%, #24C98A 100%);

  /* ---- night ambience — backgrounds/photo undertones ONLY.
          Never text. Never a UI accent. Never gradient into
          each other on UI (that's the SaaS tell). ---- */
  --night-blue:   #6B7BFF;
  --night-violet: #B06BFF;

  /* ---- functional ---- */
  --amber: #FFB24D;  /* warnings — never decorative */
  --red:   #FF5C5C;  /* errors only */

  /* ---- radius law: pill or card, nothing between ---- */
  --r-pill:  999px;  /* buttons, chips, kickers, inputs */
  --r-card:  16px;   /* cards, screenshots, modals */
  --r-badge: 6px;    /* tiny tags only */

  /* ---- type: Display shouts. Sans talks. Mono counts. ---- */
  --display: "IMIN Display", "Barlow Condensed", "Oswald", system-ui, sans-serif;
  --sans:    "IMIN Sans", "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "IMIN Mono", "DM Mono", "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* ---- texture ---- */
  --grain-opacity: .05;  /* film grain on dark surfaces */

  /* ---- rhythm ---- */
  --sp: 8px;             /* spacing base unit */
}

/* ============================================================
   LIGHT MODE — organizer dashboard, email templates.
   Same brand, daylight register. Green stays the accent:
   fills use --green-500 with --cta-ink text; green TEXT or
   links must use --green-700 (500 fails contrast on light).
   ============================================================ */
.spread[data-theme="light"], [data-theme="light"]:not(:root) {
  --bg:      #F4F2FA;
  --panel:   #FFFFFF;
  --panel-2: #EBE8F5;
  --text:    #11091F;
  --text-2:  #4D4666;
  --text-3:  #645D76;
  --hair:    rgba(17,9,31,.10);
  --hair-2:  rgba(17,9,31,.18);

  --accent:  var(--green-500);   /* fills only */
  /* functional colors darken to hold contrast on light */
  --amber: #805000;
  --red:   #C03030;

  --grain-opacity: 0;            /* grain is a dark-surface device */
}
