/* ================================================================
   GREY SPACE IT — Core Tokens
   Foundation: near-black canvas + off-white paper, signal-orange
   accent, steel-gray neutrals. Light-first with dark dashboard.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Instrument+Serif&display=swap');

:root {
  /* ---- Neutral ramp (cool grey — anchored to logo #929596) ----- */
  --gs-0:   #FFFFFF;
  --gs-50:  #F6F6F7;   /* app paper */
  --gs-100: #EDEEEF;   /* subtle surfaces */
  --gs-200: #DFE0E1;   /* borders */
  --gs-300: #C5C6C8;   /* divider strong */
  --gs-400: #929596;   /* LOGO grey · muted text */
  --gs-500: #6E7173;   /* secondary text */
  --gs-600: #4A4D4F;   /* body alt */
  --gs-700: #2E3133;   /* headings alt */
  --gs-800: #1B1D1F;   /* ink */
  --gs-900: #0D0F10;   /* canvas / near-black */
  --gs-950: #050607;

  /* ---- Accent: Magenta (from logo #DF3E6F) --------------------- */
  --accent-50:  #FCE9EF;
  --accent-100: #F8C6D4;
  --accent-200: #F299B0;
  --accent-300: #EB6C8D;
  --accent-400: #E5516E;   /* hover lift */
  --accent-500: #DF3E6F;   /* LOGO primary */
  --accent-600: #C62B5C;
  --accent-700: #9E2149;
  --accent-800: #6B1632;

  /* ---- Semantic colors ---------------------------------------- */
  --bg:          var(--gs-50);
  --bg-elev:     var(--gs-0);
  --bg-sunken:   var(--gs-100);
  --bg-inverse:  var(--gs-900);

  --fg:          var(--gs-900);
  --fg-muted:    var(--gs-500);
  --fg-subtle:   var(--gs-400);
  --fg-inverse:  var(--gs-50);

  --border:        var(--gs-200);
  --border-strong: var(--gs-300);
  --border-inverse: #1F1F22;

  --accent:      var(--accent-500);
  --accent-fg:   #FFFFFF;
  --accent-soft: var(--accent-50);

  /* Semantic — muted, desaturated, logo-palette-adjacent.
     Danger shares hue-family with the magenta accent.
     Never used as page backgrounds — only dots, pills, inline text, thin borders. */
  --success: #3D7A66;  /* slate teal — quiet confirmation */
  --warning: #B8873A;  /* warm ochre — paper-friendly amber */
  --danger:  #B83B5E;  /* deep crimson — sibling to #DF3E6F magenta */
  --info:    #4A5D7E;  /* steel blue-grey — neutral info */

  /* Soft tints (for backgrounds of badges/banners) */
  --success-soft: #EAF0ED;
  --warning-soft: #F3ECDD;
  --danger-soft:  #F3E3E8;
  --info-soft:    #E8EBF0;

  /* ---- Type families ------------------------------------------ */
  --font-sans:    'Geist', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif:   'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  /* ---- Type scale (airy, display-forward) --------------------- */
  --fs-xs:    12px;
  --fs-sm:    13px;
  --fs-base:  15px;
  --fs-md:    17px;
  --fs-lg:    20px;
  --fs-xl:    24px;
  --fs-2xl:   32px;
  --fs-3xl:   44px;
  --fs-4xl:   60px;
  --fs-5xl:   80px;
  --fs-6xl:   112px;

  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.45;
  --lh-relaxed: 1.6;

  --tr-tight:  -0.02em;
  --tr-snug:   -0.01em;
  --tr-normal: 0;
  --tr-wide:   0.04em;
  --tr-widest: 0.12em;

  /* ---- Spacing (4px base) ------------------------------------- */
  --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 -------------------------------------------------- */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  8px;    /* default */
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;
  --r-full: 999px;

  /* ---- Shadows (soft depth) ----------------------------------- */
  --shadow-xs:   0 1px 0 rgba(10,10,11,0.04);
  --shadow-sm:   0 1px 2px rgba(10,10,11,0.06), 0 1px 1px rgba(10,10,11,0.04);
  --shadow-md:   0 4px 8px -2px rgba(10,10,11,0.06), 0 2px 4px -2px rgba(10,10,11,0.04);
  --shadow-lg:   0 12px 24px -8px rgba(10,10,11,0.10), 0 4px 8px -4px rgba(10,10,11,0.06);
  --shadow-xl:   0 24px 48px -12px rgba(10,10,11,0.14), 0 8px 16px -8px rgba(10,10,11,0.08);
  --shadow-focus: 0 0 0 3px rgba(223, 62, 111, 0.24);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.04);

  /* ---- Motion ------------------------------------------------- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emph:     cubic-bezier(0.2, 0, 0, 1.2);
  --dur-fast:      120ms;
  --dur-base:      180ms;
  --dur-slow:      280ms;

  /* ---- Layout ------------------------------------------------- */
  --container:  1200px;
  --container-wide: 1360px;
  --gutter:     24px;
}

/* =========== Dark surface (dashboards, footers, hero) =========== */
.gs-dark,
:root[data-theme="dark"] {
  --bg:         var(--gs-900);
  --bg-elev:    #111114;
  --bg-sunken:  #050506;
  --bg-inverse: var(--gs-50);

  --fg:         var(--gs-50);
  --fg-muted:   #9B9B93;
  --fg-subtle:  #6C6C65;
  --fg-inverse: var(--gs-900);

  --border:        #1F1F22;
  --border-strong: #2A2A2D;
  --border-inverse: var(--gs-200);

  --accent-fg:   #0A0A0B;
}

/* ================================================================
   SEMANTIC CLASSES — use these, not raw sizes
   ================================================================ */

.gs-display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
}
.gs-h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
}
.gs-h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
}
.gs-h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
}
.gs-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
}
.gs-h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}
.gs-lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--fg-muted);
}
.gs-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}
.gs-small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}
.gs-caption {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  color: var(--fg-muted);
}
.gs-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-xs);
  line-height: 1;
  letter-spacing: var(--tr-widest);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.gs-mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.92em;
  letter-spacing: 0;
}
.gs-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
code.gs-code, .gs-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--fg);
}

/* ================================================================
   BASE RESET (scoped — do not leak to host page)
   ================================================================ */
.gs-scope,
.gs-scope * { box-sizing: border-box; }
.gs-scope {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.gs-scope h1, .gs-scope h2, .gs-scope h3, .gs-scope h4, .gs-scope h5, .gs-scope p {
  margin: 0;
}
