/* ==========================================================================
   Blinknow — Colors & Type Foundations
   A single import brings the full brand foundation into any design.

   <link rel="stylesheet" href="colors_and_type.css" />
   ========================================================================== */

/* --- FONTS -------------------------------------------------------------- */
/* Display: Space Grotesk — geometric, distinctive, modern hospitality.
   Body:    Inter — proven neutral UI workhorse.
   Mono:    JetBrains Mono — for codes, table numbers, QR labels, receipts.  */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* =====================================================================
     1. BRAND COLOR — the "Blink" system
     Primary is a high-voltage amber (signature). Secondary is a deep
     teal (trust, hospitality). Ink is a near-black blue for depth.
     These are the only three non-neutral hues you should reach for.
     ===================================================================== */

  /* Brand — Amber (primary) */
  --blink-50:   #fff8eb;
  --blink-100:  #ffecc7;
  --blink-200:  #ffd789;
  --blink-300:  #ffbc4a;
  --blink-400:  #ffa21f;   /* signature amber */
  --blink-500:  #f58307;   /* primary */
  --blink-600:  #d96503;
  --blink-700:  #b44707;
  --blink-800:  #92370d;
  --blink-900:  #782e0f;

  /* Brand — Teal (secondary, for calm/trust moments) */
  --teal-50:    #ecfdf7;
  --teal-100:   #d0fae9;
  --teal-200:   #a4f3d3;
  --teal-300:   #6ce7b8;
  --teal-400:   #33d49a;
  --teal-500:   #14b87e;   /* secondary */
  --teal-600:   #069565;
  --teal-700:   #067653;
  --teal-800:   #095d44;
  --teal-900:   #094c39;

  /* Brand — Ink (neutral canvas, warm-cool black) */
  --ink-50:     #f6f7f9;
  --ink-100:    #ebedf2;
  --ink-200:    #d4d8e1;
  --ink-300:    #a8afc0;
  --ink-400:    #6b7488;
  --ink-500:    #454c5e;
  --ink-600:    #2f3447;
  --ink-700:    #1e2333;   /* surface on dark */
  --ink-800:    #141827;   /* bg-2 */
  --ink-900:    #0b0e19;   /* bg */

  /* =====================================================================
     2. SEMANTIC COLOR TOKENS
     Use these in components. Never hard-code a palette value.
     ===================================================================== */

  /* Surfaces (light by default — dark surfaces below) */
  --bg:           #ffffff;
  --bg-soft:      var(--ink-50);
  --bg-muted:     var(--ink-100);
  --surface:      #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: var(--ink-50);

  /* Foreground */
  --fg:           var(--ink-900);
  --fg-1:         var(--ink-900);   /* headlines */
  --fg-2:         var(--ink-600);   /* body */
  --fg-3:         var(--ink-400);   /* secondary */
  --fg-muted:     var(--ink-300);   /* tertiary */
  --fg-inverse:   #ffffff;

  /* Borders & lines */
  --border:       var(--ink-100);
  --border-strong:var(--ink-200);
  --hairline:     rgba(11, 14, 25, 0.06);

  /* Brand semantic */
  --brand:              var(--blink-500);
  --brand-hover:        var(--blink-600);
  --brand-press:        var(--blink-700);
  --brand-soft:         var(--blink-50);
  --brand-on:           #ffffff;      /* text on brand fill */
  --brand-accent:       var(--blink-400);
  --brand-secondary:    var(--teal-500);
  --brand-secondary-soft: var(--teal-50);

  /* State */
  --success:      var(--teal-500);
  --success-soft: var(--teal-50);
  --warning:      #f5a524;
  --warning-soft: #fff5e0;
  --danger:       #e5484d;
  --danger-soft:  #fdebec;
  --info:         #0091ff;
  --info-soft:    #e6f4ff;

  /* Focus */
  --focus-ring:   0 0 0 3px rgba(245, 131, 7, 0.25);

  /* Signature gradients (use SPARINGLY — single moment per screen) */
  --gradient-blink:    linear-gradient(135deg, #ffbc4a 0%, #f58307 55%, #d94303 100%);
  --gradient-duotone:  linear-gradient(135deg, var(--blink-500) 0%, var(--teal-500) 100%);
  --gradient-ink-fade: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);

  /* =====================================================================
     3. TYPOGRAPHY — families, scale, and semantic tokens
     Scale is a 1.125 minor-third; tight on headlines, roomy on body.
     ===================================================================== */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Raw scale */
  --text-2xs:  11px;
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-4xl:  48px;
  --text-5xl:  64px;
  --text-6xl:  80px;

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal: 0;
  --tracking-wide:    0.08em;
  --tracking-wider:   0.14em;     /* eyebrow / section tags */

  /* =====================================================================
     4. RADIUS — soft + consistent. No full pills on cards.
     ===================================================================== */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* =====================================================================
     5. SHADOW / ELEVATION
     ===================================================================== */
  --shadow-xs:  0 1px 2px rgba(11, 14, 25, 0.06);
  --shadow-sm:  0 2px 6px rgba(11, 14, 25, 0.06), 0 1px 2px rgba(11, 14, 25, 0.04);
  --shadow-md:  0 8px 24px rgba(11, 14, 25, 0.08), 0 2px 6px rgba(11, 14, 25, 0.04);
  --shadow-lg:  0 20px 40px rgba(11, 14, 25, 0.10), 0 6px 12px rgba(11, 14, 25, 0.05);
  --shadow-xl:  0 30px 80px rgba(11, 14, 25, 0.18);
  --shadow-brand: 0 10px 30px rgba(245, 131, 7, 0.28);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* =====================================================================
     6. SPACING — 4px base grid
     ===================================================================== */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* =====================================================================
     7. MOTION
     ===================================================================== */
  --ease-out:     cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:     120ms;
  --dur-base:     200ms;
  --dur-slow:     360ms;
  --dur-slower:   560ms;
}

/* =====================================================================
   DARK THEME — used for marketing hero moments & POS dashboards at night
   ===================================================================== */
[data-theme="dark"], .theme-dark {
  --bg:           var(--ink-900);
  --bg-soft:      var(--ink-800);
  --bg-muted:     var(--ink-700);
  --surface:      var(--ink-800);
  --surface-raised: var(--ink-700);
  --surface-sunken: var(--ink-900);

  --fg:           #ffffff;
  --fg-1:         #ffffff;
  --fg-2:         #c6cada;
  --fg-3:         #8b92a8;
  --fg-muted:     #575d72;
  --fg-inverse:   var(--ink-900);

  --border:       rgba(255, 255, 255, 0.08);
  --border-strong:rgba(255, 255, 255, 0.14);
  --hairline:     rgba(255, 255, 255, 0.04);

  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm:  0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md:  0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-xl:  0 40px 120px rgba(0, 0, 0, 0.65);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* =====================================================================
   SEMANTIC TYPOGRAPHY — apply to bare tags via scope `.blinknow-type`
   (Opt-in so this file never hijacks an existing host stylesheet.)
   ===================================================================== */
.blinknow-type {
  font-family: var(--font-body);
}
.blinknow-type * {
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.blinknow-type h1, .blinknow-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, var(--text-6xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
.blinknow-type h2, .blinknow-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, var(--text-4xl));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
}
.blinknow-type h3, .blinknow-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--fg-1);
}
.blinknow-type h4, .blinknow-h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--fg-1);
}
.blinknow-type p, .blinknow-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
  text-wrap: pretty;
}
.blinknow-lead {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
}
.blinknow-small, .blinknow-type small {
  font-size: var(--text-sm);
  color: var(--fg-3);
}

.blinknow-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand);
}
.blinknow-mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0;
}
.blinknow-mono-lg {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* The signature treatment — use once per screen.
   Amber-to-teal duotone wordmark emphasis for the word "blink" or a single
   headline verb. Never whole sentences. */
.blinknow-blink {
  background: var(--gradient-blink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Selection */
.blinknow-type ::selection,
.blinknow-type::selection {
  background: var(--blink-200);
  color: var(--ink-900);
}
