/* Geomorphic design tokens: the :root block of https://geomorphic.ai/css/brand.css (Brand stylesheet
   version 1.0, July 2026), copied verbatim so the platform matches the website. To refresh: copy the
   :root block again. Components use the semantic names (--gm-bg, --gm-text, --gm-accent ...). */

:root {

  /* ---- Core palette: accents ------------------------------------------ */
  /* Signal Blue — PRIMARY. Actions, links, focus, interactive state.      */
  --gm-blue-100: #D7EAF4;
  --gm-blue-200: #AFD4E9;
  --gm-blue-300: #87BFDE;
  --gm-blue-400: #5FAAD3;
  --gm-blue-500: #369CD4;   /* base */
  --gm-blue-600: #267EAF;
  --gm-blue-700: #1D6288;
  --gm-blue-800: #14425C;
  --gm-blue-900: #0C2939;

  /* Ore Gold — SECONDARY. Value, metrics, the single hero conversion CTA. */
  --gm-gold-100: #FBF3DC;
  --gm-gold-200: #F7E4A3;
  --gm-gold-300: #F5D97A;
  --gm-gold-400: #F3D162;
  --gm-gold-500: #F1CA51;   /* base — from the logomark */
  --gm-gold-600: #D9AF2E;
  --gm-gold-700: #A9871F;
  --gm-gold-800: #6E5716;
  --gm-gold-900: #3D3110;

  /* Belt Teal — TERTIARY. Eyebrows, section labels, positive/verified.    */
  --gm-teal-100: #DBF0EB;
  --gm-teal-200: #B6E2D8;
  --gm-teal-300: #92D3C4;
  --gm-teal-400: #6ECBB4;
  --gm-teal-500: #4EC4A9;   /* base — from the logomark */
  --gm-teal-600: #37A48B;
  --gm-teal-700: #2A7F6C;
  --gm-teal-800: #1D5649;
  --gm-teal-900: #12352D;

  /* Ember — RESTRICTED. Alerts, destructive, single-point map markers.    */
  --gm-ember-300: #E0A488;
  --gm-ember-500: #C4703F;
  --gm-ember-700: #8A4E2C;

  /* ---- Core palette: neutrals (Basalt) --------------------------------- */
  --gm-black:     #000000;  /* page ground — always true black */
  --gm-basalt-950:#060606;
  --gm-basalt-900:#0A0A0A;  /* surface */
  --gm-basalt-850:#101010;
  --gm-basalt-800:#161616;  /* surface raised */
  --gm-basalt-700:#1F1F1F;
  --gm-basalt-600:#2A2A2A;  /* solid border */
  --gm-basalt-500:#3D3D3D;
  --gm-basalt-400:#5C5C5C;
  --gm-basalt-300:#8A8A8A;  /* muted text — AA at 6.08:1 on black */
  --gm-basalt-200:#B4B4B4;  /* secondary text */
  --gm-basalt-100:#DEDEDE;
  --gm-basalt-050:#EDEDED;
  --gm-white:     #FFFFFF;
  --gm-paper:     #F4F2EC;  /* warm off-white — light surfaces, print, decks */

  /* ---- Alpha strokes (preferred over solid borders on dark) ------------ */
  --gm-line-hairline: rgba(255,255,255,0.10);
  --gm-line:          rgba(255,255,255,0.16);
  --gm-line-strong:   rgba(255,255,255,0.24);
  --gm-veil-04:       rgba(255,255,255,0.04);
  --gm-veil-06:       rgba(255,255,255,0.06);
  --gm-veil-08:       rgba(255,255,255,0.08);

  /* ---- Semantic aliases — USE THESE IN COMPONENTS ---------------------- */
  --gm-bg:              var(--gm-black);
  --gm-bg-surface:      var(--gm-basalt-900);
  --gm-bg-raised:       var(--gm-basalt-800);
  --gm-bg-inset:        var(--gm-basalt-950);

  --gm-text:            var(--gm-white);
  --gm-text-secondary:  var(--gm-basalt-200);
  --gm-text-muted:      var(--gm-basalt-300);
  --gm-text-inverse:    var(--gm-black);

  --gm-border:          var(--gm-line);
  --gm-border-subtle:   var(--gm-line-hairline);
  --gm-border-strong:   var(--gm-line-strong);

  --gm-accent:          var(--gm-blue-500);
  --gm-accent-hover:    var(--gm-blue-400);
  --gm-accent-active:   var(--gm-blue-600);
  --gm-accent-quiet:    var(--gm-blue-900);
  --gm-on-accent:       var(--gm-black);

  --gm-highlight:       var(--gm-gold-500);   /* metrics, hero CTA */

  /* A chat's lines in the console, one colour for each kind (Console quality of life PRD, item 1). Each is at least
     7:1 on --gm-bg-inset, the chat log's ground; tests/test_console_qol.py checks. */
  --gm-chat-person:     var(--gm-gold-300);   /* a person's message: its marker and who sent it */
  --gm-chat-agent:      var(--gm-white);      /* the agent's text */
  --gm-chat-agent-mark: var(--gm-teal-500);
  --gm-chat-thinking:   var(--gm-basalt-200); /* its thinking, in italics */
  --gm-chat-tool:       var(--gm-blue-300);   /* a tool call */
  --gm-chat-ok:         var(--gm-teal-400);   /* a result that worked */
  --gm-chat-bad:        var(--gm-ember-300);  /* a result that failed */
  --gm-chat-system:     var(--gm-gold-200);   /* a system note */
  --gm-on-highlight:    var(--gm-black);
  --gm-signal:          var(--gm-teal-500);   /* eyebrows, verified */

  --gm-success:         var(--gm-teal-500);
  --gm-warning:         var(--gm-gold-500);
  --gm-danger:          var(--gm-ember-500);
  --gm-info:            var(--gm-blue-500);

  --gm-focus:           var(--gm-blue-400);

  /* ---- Typography ----------------------------------------------------- */
  --gm-font-display: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gm-font-body:    "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --gm-font-mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gm-fs-display:  clamp(3.25rem, 1.55rem + 5.3vw, 6rem);
  --gm-fs-h1:       clamp(2.5rem, 1.42rem + 3.4vw, 4.25rem);
  --gm-fs-h2:       clamp(2rem, 1.5rem + 1.6vw, 3rem);
  --gm-fs-h3:       clamp(1.5rem, 1.28rem + 0.7vw, 2rem);
  --gm-fs-h4:       clamp(1.25rem, 1.17rem + 0.25vw, 1.375rem);
  --gm-fs-lead:     clamp(1.125rem, 1.03rem + 0.3vw, 1.375rem);
  --gm-fs-body-lg:  1.125rem;
  --gm-fs-body:     1rem;
  --gm-fs-body-sm:  0.9375rem;
  --gm-fs-caption:  0.8125rem;
  --gm-fs-label:    0.75rem;

  --gm-lh-tight:    1.02;
  --gm-lh-heading:  1.1;
  --gm-lh-snug:     1.3;
  --gm-lh-body:     1.65;

  --gm-ls-display:  -0.03em;
  --gm-ls-heading:  -0.022em;
  --gm-ls-tight:    -0.01em;
  --gm-ls-normal:   0;
  --gm-ls-label:    0.14em;

  /* ---- Spacing — 4px base --------------------------------------------- */
  --gm-space-1:  0.25rem;   /*  4 */
  --gm-space-2:  0.5rem;    /*  8 */
  --gm-space-3:  0.75rem;   /* 12 */
  --gm-space-4:  1rem;      /* 16 */
  --gm-space-5:  1.5rem;    /* 24 */
  --gm-space-6:  2rem;      /* 32 */
  --gm-space-7:  3rem;      /* 48 */
  --gm-space-8:  4rem;      /* 64 */
  --gm-space-9:  6rem;      /* 96 */
  --gm-space-10: 8rem;      /* 128 */
  --gm-space-11: 10rem;     /* 160 */

  --gm-section-y: clamp(4rem, 2rem + 8vw, 10rem);
  --gm-gutter:    clamp(1.25rem, 0.5rem + 3vw, 2.5rem);

  /* ---- Layout --------------------------------------------------------- */
  --gm-container:      1280px;
  --gm-container-wide: 1440px;
  --gm-container-text: 68ch;
  --gm-nav-h:          72px;

  /* ---- Lime — the interaction colour ---------------------------------
     ADDED 28 July 2026. This is the fifth accent, and it exists because the
     live site already shipped it: every button hovers to it. It is NOT a
     brand accent in the sense the other four are — it never fills a surface,
     never sets a heading, never appears in a chart. Its only job is "you are
     about to act on this". Keeping it to that one job is what stops it
     competing with Ore Gold, which it otherwise sits uncomfortably close to
     (13.15:1 vs 12.55:1 on the basalt plate).                              */
  --gm-lime-500:   #C9DC6E;
  --gm-lime-ink:   #111111;   /* 12.54:1 on the lime face */
  --gm-lime-halo:  color-mix(in srgb, #C9DC6E 30%, transparent);

  /* ---- Button geometry — measured off the live subscribe button --------
     Declared here so the whole system is four values, not a rebuild.       */
  --gm-btn-face:   #2A2A2A;   /* 14.35:1 against its white label */
  --gm-btn-ink:    #FFFFFF;
  --gm-btn-radius: 999px;
  --gm-btn-pad:    12px 22px; /* 43px tall at the base size */
  --gm-btn-fs:     16px;
  --gm-btn-dur:    0.2s;

  /* ---- Radius — the brand is square. Restraint is the rule. ----------- */
  --gm-radius-0:    0;
  --gm-radius-sm:   2px;    /* buttons, inputs, tags — the default */
  --gm-radius-md:   4px;    /* cards, media */
  --gm-radius-full: 999px;  /* pills & avatars only */

  /* ---- Elevation — dark UI leans on stroke + tint, not shadow --------- */
  --gm-shadow-sm: 0 1px 2px rgba(0,0,0,0.6);
  --gm-shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --gm-shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
  --gm-glow-accent: 0 0 0 1px rgba(54,156,212,0.4), 0 8px 32px rgba(54,156,212,0.16);

  /* ---- Motion --------------------------------------------------------- */
  --gm-ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
  --gm-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --gm-dur-micro:   140ms;
  --gm-dur-base:    240ms;
  --gm-dur-enter:   420ms;
}
