/* =========================================================================
   Mayar Design System — colors_and_type.css
   Import once near the root of any design that uses this system.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- Brand color ---------- */
  --color-brand-blue:        #2D3DEC;   /* primary — Mayar wordmark blue */
  --color-brand-blue-600:    #2536D1;   /* hover */
  --color-brand-blue-700:    #1E2DB0;   /* press */
  --color-brand-blue-100:    #EEF1FF;   /* tinted background */
  --color-brand-blue-50:     #F5F7FF;   /* page wash */

  --color-brand-magenta:     #E91E78;   /* accent — the pink swoosh */
  --color-brand-magenta-600: #C9156A;
  --color-brand-magenta-100: #FFF1F7;

  /* ---------- Neutral (warm-cool greys) ---------- */
  --color-fg-1: #0E0F1A;          /* primary text — near-black, slightly blue */
  --color-fg-2: #3F4357;          /* secondary text */
  --color-fg-3: #6B7088;          /* tertiary text / muted */
  --color-fg-4: #9AA0B4;          /* placeholder / disabled */

  --color-bg-1: #FFFFFF;          /* base surface */
  --color-bg-2: #F8F9FC;          /* page background */
  --color-bg-3: #F1F3F9;          /* subtle block / hovered row */
  --color-bg-4: #E6E9F2;          /* divider blocks */

  --color-border:        rgba(14, 15, 26, 0.08);
  --color-border-strong: rgba(14, 15, 26, 0.14);
  --color-border-focus:  var(--color-brand-blue);

  /* ---------- Semantic ---------- */
  --color-success:     #1FB36B;
  --color-success-100: #E5F7EE;
  --color-warning:     #F4A52A;
  --color-warning-100: #FFF6E5;
  --color-danger:      #E5484D;
  --color-danger-100:  #FCEBEC;
  --color-info:        var(--color-brand-blue);
  --color-info-100:    var(--color-brand-blue-100);

  /* ---------- Type ---------- */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-display: var(--font-sans);

  /* Base type sizes */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  64px;

  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extra:    800;

  /* ---------- Spacing (8-pt grid) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ---------- Radius ---------- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* ---------- Shadow ---------- */
  --shadow-sm: 0 1px 2px rgba(14,15,26,0.04), 0 1px 3px rgba(14,15,26,0.06);
  --shadow-md: 0 4px 6px rgba(14,15,26,0.04), 0 10px 20px rgba(14,15,26,0.08);
  --shadow-lg: 0 12px 24px rgba(14,15,26,0.08), 0 24px 48px rgba(14,15,26,0.12);
  --shadow-focus: 0 0 0 4px rgba(45, 61, 236, 0.18);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;

  /* ---------- Layout ---------- */
  --content-max: 1200px;
  --sidebar-w:   240px;
}

/* =========================================================================
   Semantic typography classes
   Use these directly, e.g. <h1 class="h1">…</h1>
   ========================================================================= */

html { font-family: var(--font-sans); color: var(--color-fg-1); background: var(--color-bg-1); }
body { font-size: var(--text-base); line-height: var(--leading-normal); -webkit-font-smoothing: antialiased; }

.display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  font-weight: var(--weight-extra);
  letter-spacing: -0.02em;
}
.h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  font-weight: var(--weight-extra);
  letter-spacing: -0.018em;
}
.h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  font-weight: var(--weight-bold);
  letter-spacing: -0.012em;
}
.h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  font-weight: var(--weight-bold);
  letter-spacing: -0.008em;
}
.h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  font-weight: var(--weight-semibold);
}
.h5 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  font-weight: var(--weight-semibold);
}
.eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand-blue);
}
.lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-2);
}
p, .body { font-size: var(--text-base); line-height: var(--leading-normal); }
.small  { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--color-fg-2); }
.caption{ font-size: var(--text-xs); line-height: var(--leading-snug); color: var(--color-fg-3); }
code, .code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
