/* ============================================================================
   NEKKANTI — Company Secretaries · Design Tokens
   colors_and_type.css
   Single source of truth for color, typography, spacing, radius, shadow.
   Import this into any HTML artifact:  <link rel="stylesheet" href="colors_and_type.css">
   Fonts loaded from Google Fonts (substitutions — see README "Type").
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Karla:wght@400;500;600;700&display=swap');

:root {
  /* ---------------------------------------------------------------------- */
  /* PRIMITIVE COLOR SCALES                                                  */
  /* ---------------------------------------------------------------------- */

  /* Navy — primary ink & brand. #0F172A is the anchor (navy-900). */
  --navy-50:  #F4F6FB;
  --navy-100: #E6EAF3;
  --navy-200: #C7D0E2;
  --navy-300: #9FACC8;
  --navy-400: #6C7C9E;
  --navy-500: #45557A;
  --navy-600: #2E3D5E;
  --navy-700: #1F2B47;
  --navy-800: #16203A;
  --navy-900: #0F172A;   /* PRIMARY */
  --navy-950: #080D19;

  /* Royal Blue — action / interactive. #2563EB is the anchor (blue-600). */
  --blue-50:  #EFF4FE;
  --blue-100: #DBE6FD;
  --blue-200: #BBD0FB;
  --blue-300: #8DB1F8;
  --blue-400: #5B8BF3;
  --blue-500: #3B6FEE;
  --blue-600: #2563EB;   /* SECONDARY */
  --blue-700: #1D4FCB;
  --blue-800: #1C42A3;
  --blue-900: #1C3A80;
  --blue-950: #15264F;

  /* Gold — accent / prestige. #D4AF37 is the anchor (gold-500). */
  --gold-50:  #FBF8EE;
  --gold-100: #F6EFD2;
  --gold-200: #ECDC9F;
  --gold-300: #E2C76C;
  --gold-400: #DABA4E;
  --gold-500: #D4AF37;   /* ACCENT */
  --gold-600: #B8942A;
  --gold-700: #927323;
  --gold-800: #6E5722;
  --gold-900: #4D3D1C;

  /* Neutral — cool slate, harmonized with navy. gray-50 = #F8FAFC. */
  --gray-50:  #F8FAFC;   /* page background (light) */
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Status */
  --success-50:  #ECFDF5;
  --success-500: #10B981;
  --success-700: #047857;
  --warning-50:  #FFFBEB;
  --warning-500: #F59E0B;
  --warning-700: #B45309;
  --danger-50:   #FEF2F2;
  --danger-500:  #EF4444;
  --danger-700:  #B91C1C;

  /* ---------------------------------------------------------------------- */
  /* SEMANTIC COLOR                                                          */
  /* ---------------------------------------------------------------------- */
  --bg:            #FFFFFF;          /* default page */
  --bg-subtle:     var(--gray-50);   /* alternating sections */
  --bg-muted:      var(--gray-100);  /* wells, inputs at rest */
  --bg-inverse:    var(--navy-900);  /* dark sections, footer */
  --surface:       #FFFFFF;          /* cards */
  --surface-raised:#FFFFFF;

  --fg1:           var(--navy-900);  /* primary text / headings */
  --fg2:           var(--gray-600);  /* body text */
  --fg3:           var(--gray-500);  /* muted / captions */
  --fg-inverse:    #FFFFFF;          /* text on navy */
  --fg-inverse-2:  var(--navy-200);  /* secondary text on navy */

  --border:        var(--gray-200);  /* hairlines, card edges */
  --border-strong: var(--gray-300);  /* input borders */
  --border-inverse:rgba(255,255,255,0.12);

  --primary:       var(--navy-900);  /* primary surfaces / brand */
  --action:        var(--blue-600);  /* links, primary buttons */
  --action-hover:  var(--blue-700);
  --accent:        var(--gold-500);  /* gold detail */
  --accent-ink:    var(--gold-700);  /* gold text on light (AA) */

  --ring:          color-mix(in srgb, var(--blue-600) 38%, transparent); /* focus */

  /* ---------------------------------------------------------------------- */
  /* TYPOGRAPHY                                                              */
  /* ---------------------------------------------------------------------- */
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-sans:    "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid type scale (clamped for responsive) */
  --text-xs:   0.75rem;    /* 12 — legal fine print only */
  --text-sm:   0.875rem;   /* 14 — captions, labels */
  --text-base: 1rem;       /* 16 — body min */
  --text-md:   1.125rem;   /* 18 — lead body */
  --text-lg:   1.25rem;    /* 20 */
  --text-xl:   1.5rem;     /* 24 */
  --text-2xl:  2rem;       /* 32 */
  --text-3xl:  clamp(2.25rem, calc(1.6rem + 2.6vw), 3rem); /* @kind font */     /* 36–48 */
  --text-4xl:  clamp(2.75rem, calc(1.8rem + 3.8vw), 4rem); /* @kind font */     /* 44–64 */
  --text-5xl:  clamp(3.25rem, calc(2rem + 5.2vw), 5.25rem); /* @kind font */    /* 52–84 */

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

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide:  0.04em;
  --tracking-caps:  0.16em;   /* eyebrows / overlines */

  /* ---------------------------------------------------------------------- */
  /* 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;
  --space-32: 128px;
  --section-y: clamp(64px, 8vw, 128px); /* @kind spacing */
  --gutter:    clamp(20px, 5vw, 64px); /* @kind spacing */
  --maxw:      1200px;                      /* content container */
  --maxw-prose:68ch;                        /* article measure */

  /* ---------------------------------------------------------------------- */
  /* RADIUS                                                                  */
  /* ---------------------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    10px;    /* default card/button */
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---------------------------------------------------------------------- */
  /* SHADOW  (cool navy-tinted, restrained — premium not flashy)            */
  /* ---------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow:    0 4px 12px rgba(15,23,42,0.08), 0 1px 3px rgba(15,23,42,0.05);
  --shadow-md: 0 12px 28px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.05);
  --shadow-lg: 0 24px 56px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-gold: 0 8px 24px rgba(212,175,55,0.28);
  --shadow-ring: 0 0 0 4px var(--ring);

  /* ---------------------------------------------------------------------- */
  /* MOTION                                                                  */
  /* ---------------------------------------------------------------------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --dur-fast:   140ms; /* @kind other */
  --dur:        240ms; /* @kind other */
  --dur-slow:   480ms; /* @kind other */
}

/* ============================================================================
   SEMANTIC TYPE CLASSES  — apply directly, or copy the rules.
   ============================================================================ */

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow--light { color: var(--gold-400); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-4xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--fg1);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-3xl);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--fg1);
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--fg1);
}
.h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--fg1);
}
.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--fg2);
}
.body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg2);
}
.small {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg3);
}
.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  color: var(--fg1);
}
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0;
  color: var(--fg2);
  font-variant-numeric: tabular-nums;
}
.stat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-4xl);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg1);
  font-variant-numeric: tabular-nums lining-nums;
}

/* Gold rule — recurring brand divider */
.gold-rule {
  width: 56px;
  height: 2px;
  background: var(--accent);
  border: 0;
}
