/* ============================================================
   Janeez GrowRicher — Core tokens
   Visual DNA pulled from the silver-ring "J" emblem:
   deep navy-teal blues, chrome/silver highlights, ivory ground.
   Rupee-symbol wordmark → accent is a warm gold.
   ============================================================ */

/* ---------- Typefaces ----------
   Display  →  "Playfair Display"  (serif, high-contrast italic J pairs with emblem)
   Wordmark →  "Cormorant Garamond" (lighter, used for Janeez script-like feel)
   UI / body → "Inter"               (matches current landing page)
   Numerics → "Inter" tabular-nums
   Google Fonts substitution flagged in README. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,700&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ---------- Brand Palette ---------- */
  --jgr-ink:          #0b2438;   /* deepest navy-teal — from emblem center */
  --jgr-blue-900:     #123a55;   /* brand blue, primary */
  --jgr-blue-700:     #1d4e6e;   /* wordmark blue */
  --jgr-blue-500:     #2f6d94;   /* mid blue */
  --jgr-blue-300:     #7aa6c2;   /* chrome mid */
  --jgr-blue-100:     #d8e6ef;   /* chrome highlight tint */
  --jgr-silver:       #cfd8de;   /* silver ring */
  --jgr-silver-hi:    #eef2f4;   /* silver highlight */
  --jgr-ivory:        #f7f3ea;   /* warm off-white ground */
  --jgr-cream:        #fbf8f1;   /* lighter cream */

  /* Accent — rupee-symbol warm gold from the Grow₹icher mark */
  --jgr-gold:         #b8893a;
  --jgr-gold-soft:    #d9b36a;
  --jgr-gold-tint:    #f4e7c4;

  /* Supporting */
  --jgr-forest:       #2e6b4a;   /* growth / gain */
  --jgr-maroon:       #8a2b2b;   /* protection / insurance */

  /* ---------- Neutrals ---------- */
  --jgr-black:        #0a1520;
  --jgr-gray-900:     #1a2635;
  --jgr-gray-700:     #3d4f63;
  --jgr-gray-500:     #6a7a8c;
  --jgr-gray-300:     #b9c3ce;
  --jgr-gray-200:     #dae1e8;
  --jgr-gray-100:     #ecf0f4;
  --jgr-white:        #ffffff;

  /* ---------- Semantic ---------- */
  --fg-1:    var(--jgr-ink);       /* primary text */
  --fg-2:    var(--jgr-gray-700);  /* secondary text */
  --fg-3:    var(--jgr-gray-500);  /* muted / captions */
  --fg-inv:  #ffffff;              /* on dark */
  --fg-link: var(--jgr-blue-700);
  --fg-accent: var(--jgr-gold);

  --bg-0:    var(--jgr-ivory);     /* page default */
  --bg-1:    var(--jgr-white);     /* card */
  --bg-2:    var(--jgr-cream);     /* tinted section */
  --bg-inv:  var(--jgr-ink);       /* dark section */
  --bg-accent: var(--jgr-gold-tint);

  --border-1: var(--jgr-gray-200);
  --border-2: var(--jgr-gray-300);
  --border-strong: var(--jgr-blue-900);

  /* ---------- Type families ---------- */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-wordmark: 'Cormorant Garamond', 'Playfair Display', serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* ---------- Type scale ----------
     Mobile-first; clamp() scales up on desktop. */
  --fs-display-1: clamp(2.75rem, 6vw + 1rem, 5.25rem);   /* hero */
  --fs-display-2: clamp(2.25rem, 4vw + 1rem, 3.75rem);   /* section hero */
  --fs-h1:        clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  --fs-h2:        clamp(1.5rem, 1.8vw + 1rem, 2.125rem);
  --fs-h3:        clamp(1.25rem, 1vw + 1rem, 1.625rem);
  --fs-h4:        1.125rem;
  --fs-body-lg:   1.0625rem;
  --fs-body:      1rem;
  --fs-body-sm:   0.9375rem;
  --fs-caption:   0.8125rem;
  --fs-overline:  0.6875rem;

  --lh-tight:  1.08;
  --lh-snug:   1.22;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-tight:  -0.02em;
  --ls-normal: 0;
  --ls-wide:   0.08em;
  --ls-over:   0.18em;   /* overline / eyebrow */

  /* ---------- Spacing (4-pt grid) ---------- */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ---------- Radii ---------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* ---------- Elevation ---------- */
  --shadow-xs: 0 1px 2px rgba(11, 36, 56, 0.06);
  --shadow-sm: 0 2px 8px rgba(11, 36, 56, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 36, 56, 0.10);
  --shadow-lg: 0 16px 48px rgba(11, 36, 56, 0.14);
  --shadow-xl: 0 28px 72px rgba(11, 36, 56, 0.22);
  --shadow-gold: 0 10px 30px rgba(184, 137, 58, 0.28);

  /* Inner chrome ring — used on "emblem" buttons / chips */
  --ring-chrome:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(11,36,56,0.12);

  /* ---------- Motion ---------- */
  --ease-out:    cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --dur-fast:   140ms;
  --dur-base:   240ms;
  --dur-slow:   420ms;
}

/* ============================================================
   Base resets & element defaults
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings — Playfair for display, Inter for work headings.
   Brand rule: display H1/H2 on hero surfaces, Inter-heavy on app surfaces. */
h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--fg-1);
}

h2, .h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

h3, .h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
}

h4, .h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-snug);
}

/* Display (serif) — reserve for hero moments and wordmark callouts */
.display-1 {
  font-family: var(--font-display);
  font-size: var(--fs-display-1);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  color: var(--fg-1);
}
.display-2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-2);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* Wordmark (cursive-adjacent) — for "Janeez" one-off mentions */
.wordmark {
  font-family: var(--font-wordmark);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p, .body {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
  text-wrap: pretty;
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
}

.caption {
  font-size: var(--fs-caption);
  color: var(--fg-3);
  line-height: var(--lh-normal);
}

/* Overline / eyebrow — we use these a lot above section titles */
.overline {
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: var(--ls-over);
  text-transform: uppercase;
  color: var(--jgr-blue-700);
}

/* Numeric tabular (for portfolio figures) */
.num, .tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

a {
  color: var(--fg-link);
  text-decoration-color: color-mix(in srgb, var(--fg-link) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--fg-link);
}

hr {
  border: 0;
  border-top: 1px solid var(--border-1);
  margin: var(--sp-8) 0;
}

::selection {
  background: var(--jgr-gold-tint);
  color: var(--jgr-ink);
}
