/* ==========================================================================
   GAMT Dynamics — Colors & Type
   --------------------------------------------------------------------------
   Foundational design tokens. Import this in any artifact, then style with
   semantic classes (.h1, .body, etc) or the CSS variables directly.
   ========================================================================== */

/* ----- Webfonts (Google Fonts substitutions) -----
   The GAMT wordmark uses a wide, technical, slab-y sans (looks like a
   custom Industry / Bank Gothic relative). We substitute with Saira for
   display headings, IBM Plex Sans for body, and JetBrains Mono for
   numerics / monitoring readouts.
   FLAG: Update to a licensed copy of the wordmark face if available. */

:root {
  /* =========== BRAND COLORS =========== */
  --gamt-navy:        #004181;   /* primary brand — wordmark, headings, dark surfaces */
  --gamt-blue:        #0B65C3;   /* mid blue — secondary accent, links */
  --gamt-teal:        #00A89D;   /* teal — primary accent, CTA, status:ok */
  --gamt-mint:        #00DBC6;   /* bright mint — highlights, signal, glow */
  --gamt-white:       #FFFFFF;

  /* Expressive accent — NOT a core brand color. Strictly rationed: one
     amber element per view, never in a dashboard or status context (it reads
     as "warn" there). Works on navy, blue AND white — but on white it may
     only appear as MASS (filled shape, pill, block), never as text or a
     hairline: #FFC629 on white is 1.7:1. */
  --gamt-amber:       #FFC629;   /* the loud one — signature mark, CTA pill, shape */
  --gamt-amber-wash:  #FFF9EA;   /* the quiet one — panel fill, any surface */
  --gamt-amber-ink:   #0F172A;   /* text ON amber — always near-black, never white */
  --gamt-amber-edge:  rgba(255,198,41,0.30);  /* derived hairline for the wash */

  /* Darkened accents, legal as small text on white. Teal and mint themselves
     are 2.6:1 and 1.8:1 there — on light surfaces they are mass, not ink. */
  --gamt-teal-text:   #0A7D72;   /* 4.6:1 on white */

  /* Brand gradient (matches the mark) */
  --gamt-gradient:    linear-gradient(135deg, #00DBC6 0%, #00A89D 35%, #0B65C3 75%, #004181 100%); /* @kind color */
  --gamt-gradient-soft: linear-gradient(135deg, rgba(0,219,198,.12) 0%, rgba(0,65,129,.08) 100%); /* @kind color */

  /* =========== NEUTRAL SCALE (cool, tinted toward navy) =========== */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F6F8FB;
  --neutral-100: #EEF2F7;
  --neutral-200: #DCE3EC;
  --neutral-300: #BFCAD7;
  --neutral-400: #8E9CAE;
  --neutral-500: #5E6E83;
  --neutral-600: #3F4F66;
  --neutral-700: #2A384D;
  --neutral-800: #1B2638;
  --neutral-900: #0F172A;

  /* =========== SEMANTIC COLORS =========== */
  --fg-1:        var(--neutral-900); /* primary text */
  --fg-2:        var(--neutral-600); /* secondary text */
  --fg-3:        var(--neutral-400); /* tertiary / captions */
  --fg-on-dark:  var(--neutral-0);
  --fg-brand:    var(--gamt-navy);
  --fg-accent:   var(--gamt-teal);
  --fg-link:     var(--gamt-blue);
  --fg-on-amber: var(--gamt-amber-ink);
  --fg-teal:     var(--gamt-teal-text);    /* teal-toned text on light surfaces */

  --bg-1:        var(--neutral-0);   /* canvas */
  --bg-2:        var(--neutral-50);  /* recessed surfaces */
  --bg-3:        var(--neutral-100); /* hovered tiles */
  --bg-dark:     var(--gamt-navy);   /* dark hero / footer */
  --bg-dark-2:   var(--neutral-900);
  --bg-panel:    #003064;            /* recessed panel INSIDE a navy field (KPI tiles, instrument
                                        bezels). A darker step, not a white veil — on #004181 a
                                        low-alpha white overlay is invisible. */
  --border-panel: rgba(255,255,255,0.14);

  --border-1:    var(--neutral-200);
  --border-2:    var(--neutral-300);
  --border-strong: var(--neutral-700);
  --divider:     rgba(0, 65, 129, 0.08);

  /* status — engineering / monitoring */
  --status-ok:    #00A89D;
  --status-info:  #0B65C3;
  --status-warn:  #E0A23B;
  --status-warn-ink: #A65A15;      /* warn text/chips on light surfaces */
  --status-alarm: #D9444F;
  --status-mute:  var(--neutral-400);
  /* Lightened status inks for text/chips sitting ON a navy field — the light
     versions above fail contrast there. */
  --status-warn-on-dark:  #F0BE63;
  --status-alarm-on-dark: #FCA0A6;

  /* =========== TYPOGRAPHY =========== */
  --font-display: "Saira", "Industry", "Bank Gothic", sans-serif;
  --font-sans:    "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* size scale (1rem = 16px) */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;
  --fs-72: 4.5rem;

  /* =========== SPACING =========== */
  --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;

  /* =========== RADII =========== */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* =========== ELEVATION =========== */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 4px 12px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-3: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 0 4px rgba(0, 219, 198, 0.18);
  --inset-1: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* =========== MOTION =========== */
  --ease-out: cubic-bezier(.2, .8, .2, 1); /* @kind other */
  --ease-in-out: cubic-bezier(.6, .04, .4, 1); /* @kind other */
  --dur-fast: 120ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 360ms; /* @kind other */
}

/* =========== SEMANTIC TYPOGRAPHY =========== */

.display, h1.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, var(--fs-72));
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--fg-brand);
  text-transform: none;
}

.h1, h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-56);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--fg-brand);
}

.h2, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-40);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--fg-brand);
}

.h3, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 1.2;
  color: var(--fg-1);
}

.h4, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.3;
  color: var(--fg-1);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-12);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-accent);
}

.body, p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--fg-1);
  text-wrap: pretty;
}

.body-lg {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-18);
  line-height: 1.55;
  color: var(--fg-1);
}

.body-sm, small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--fg-2);
}

.caption {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-12);
  line-height: 1.4;
  color: var(--fg-3);
  letter-spacing: 0.02em;
}

.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.mono, code, kbd, .readout {
  font-family: var(--font-mono);
  font-weight: 500;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* Readouts are navy on light surfaces; add .on-dark inside a navy field, where
   mint is the signal colour. Mint on white fails contrast — never do it. */
.readout {
  font-size: var(--fs-32);
  color: var(--gamt-navy);
  letter-spacing: 0.02em;
}

.readout.on-dark {
  color: var(--gamt-mint);
}
