/* ==========================================================================
   Suspire Digital — Design Tokens (brand v3.0)

   SOURCE OF TRUTH: foundation/brand-id.md.
   This file is the machine-readable version of the values in that document.
   Change a value in brand-id.md first, then update it here in the same edit.
   If the two disagree, brand-id.md wins.

   USE IN BUILDS:
   - Self-contained HTML: inline this block inside a <style> tag at the top.
   - Linked pages or a design system: @import or <link> this file.
   - Never hard-code a colour, font, size, spacing value or radius in a build.
     If a build needs a value that isn't here, add the token here first.
   - Fonts: load Archivo (wdth 62..125, wght 400..900), Figtree (400–700) and
     JetBrains Mono (400, 500) from Google Fonts.

   The reference build for v3.0 is outputs/website/site.css.
   Last updated: 2026-10-22 (brand v3.0 replaces v2.0 Navy / Cream / Gold)
   ========================================================================== */

:root {

  /* --- Colour ------------------------------------------------------------
     See brand-id.md Section 3 for what each colour means and the contrast table. */

  --color-primary-dark:   #0d1233;   /* Ink — headings, body text, dark sections */
  --color-primary-light:  #f4f5f8;   /* Chalk — page background */
  --color-secondary:      #e7e5f6;   /* Mist — light indigo tint: tags, proof boxes, quiet fills */
  --color-accent:         #3a3497;   /* Indigo — the brand and action colour: buttons, active states */
  --color-link:           #3a3497;   /* Indigo — links on light surfaces, 9.1:1 on Chalk */

  --color-text:           #0d1233;   /* Ink */
  --color-text-muted:     #464b6b;   /* Ink Soft — secondary text, 7.8:1 on Chalk */
  --color-text-inverse:   #ffffff;   /* Paper on Ink or Indigo */
  --color-background:     #f4f5f8;   /* Chalk */
  --color-surface:        #ffffff;   /* Paper — cards and white bands */
  --color-border:         rgba(13, 18, 51, 0.12);   /* Line — 1px borders on light surfaces */

  --color-success:        #2e6b4f;   /* functional only (form confirmations) */
  /* Palette colours that other tokens and the website point at, so each hex lives once */
  --color-accent-deep:    #2a2573;   /* Indigo Deep — hover on Indigo, text on Mist tags */
  --color-coral:          #ff5a4e;   /* Coral — the small bright accent: dots, strikes, focus on dark */
  --color-coral-ink:      #c4291e;   /* Coral Ink — coral text and focus ring on light (5.4:1 on Chalk) */
  --color-coral-wash:     #fff4f2;   /* Coral Wash — light coral fill */
  --color-text-on-dark:       rgba(255, 255, 255, 0.85);   /* body text on Ink or Indigo */
  --color-text-on-dark-soft:  rgba(255, 255, 255, 0.7);    /* secondary text on Ink or Indigo */

  --color-error:          var(--color-coral-ink);   /* Coral Ink — errors and coral text on light */
  --color-focus:          var(--color-coral);       /* Coral — focus ring on dark surfaces only (2.8:1 on Chalk) */

  --color-focus-ring:     var(--color-coral-ink);   /* Coral Ink — focus ring on light surfaces (5.4:1 on Chalk) */
  --color-control-border: var(--color-text-muted);   /* form-control boundary, 7.8:1 on Chalk */
  --color-border-inverse: rgba(255, 255, 255, 0.22); /* Line Light — dividers on dark surfaces */


  /* --- Typography --------------------------------------------------------
     See brand-id.md Section 4. Sizes use rem so they scale with user settings. */

  --font-heading:         'Archivo', 'Arial Narrow', system-ui, sans-serif;   /* use at font-stretch: 125% */
  --font-body:            'Figtree', system-ui, sans-serif;
  --font-mono:            'JetBrains Mono', ui-monospace, monospace;

  --text-h1:              clamp(2.3rem, 7.4vw, 6.6rem);
  --text-h2:              clamp(2rem, 5vw, 4rem);
  --text-h3:              clamp(1.3rem, 2.2vw, 1.7rem);
  --text-h4:              1.15rem;
  --text-body:            1.0625rem;                    /* 17px */
  --text-label:           0.75rem;                      /* eyebrows, mono caps */
  --text-caption:         0.92rem;
  --text-button:          1rem;
  --text-mono:            0.8rem;
  --text-stat:            clamp(2.6rem, 5.5vw, 4.4rem);

  --weight-heading:       800;   /* Archivo, at 125% width */
  --weight-light:         500;   /* Archivo for quotes and secondary display */
  --weight-body:          400;
  --weight-bold:          600;   /* Figtree buttons and strong text */

  --line-height-heading:  0.98;
  --line-height-hero:     0.95;
  --line-height-body:     1.6;
  --line-height-ui:       1.2;
  --letter-spacing-heading: -0.025em;

  --tracking-nav:         0.08em;   /* mono caps labels */
  --tracking-label:       0.08em;   /* eyebrows */
  --tracking-button:      0;        /* sentence-case buttons */
  --tracking-wordmark:    -0.02em;
  --underline-offset:     3px;


  /* --- Spacing -----------------------------------------------------------
     See brand-id.md Section 7.                                              */

  --space-xs:             4px;
  --space-sm:             8px;
  --space-md:             16px;
  --space-lg:             32px;
  --space-xl:             80px;
  --space-2xl:            144px;

  --content-max-width:    1240px;
  --content-narrow-width: 640px;     /* ~60 characters of body text */
  --page-margin:          64px;      /* desktop gutter; fluid clamp(16px, 5vw, 64px) in builds */
  --page-margin-mobile:   16px;
  --section-padding:      clamp(80px, 10vw, 144px);
  --section-padding-hero: clamp(48px, 7vw, 96px);
  --section-head-gap:    clamp(32px, 4vw, 56px);   /* section heading to its content */
  --gutter:               clamp(16px, 5vw, 64px);   /* fluid page margin: --page-margin on desktop, --page-margin-mobile on phones */
  --header-height:        72px;                     /* the sticky site header */

  --target-size:          2.75rem;   /* 44px minimum for buttons, inputs and nav links */
  --checkbox-size:        1.25rem;
  --rule-width:           8px;       /* the Coral dot before an eyebrow */


  /* --- Shape ---------------------------------------------------------------
     See brand-id.md Section 7.                                               */

  --border-weight:        1px;
  --border-weight-strong: 1.5px;    /* ghost-button outline */
  --border-weight-mark:   0;        /* the logo mark is a filled square, no outline */
  --rule-accent-weight:   3px;      /* focus ring and the strike line on "before" figures */
  --radius-sm:            10px;     /* inputs and small boxes */
  --radius:               28px;     /* cards */


  /* --- Components --------------------------------------------------------
     See brand-id.md Section 8.                                              */

  --button-primary-bg:    var(--color-accent);
  --button-primary-text:  var(--color-text-inverse);
  --button-radius:        999px;    /* pills */
  --button-padding:       0 26px;

  --card-bg:              var(--color-surface);
  --card-radius:          var(--radius);
  --card-padding:         var(--space-lg);

  --input-radius:         var(--radius-sm);

  --ease:                 cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition:           200ms var(--ease);


  /* --- Style variants ------------------------------------------------------
     Suspire Digital's choices, with reasons in brand-id.md Section 11.        */

  --label-text-transform:         uppercase;
  --button-text-transform:        none;
  --tag-text-transform:           uppercase;
  --h4-font-style:                normal;
  --quote-font-style:             normal;
  --rule-accent-color:            var(--color-coral);    /* Coral */

  --button-primary-hover-bg:      var(--color-accent-deep);    /* Indigo Deep */
  --button-primary-hover-text:    var(--color-text-inverse);
  --button-secondary-border:      var(--color-primary-dark);
  --button-secondary-text:        var(--color-primary-dark);
  --button-secondary-hover-bg:    var(--color-primary-dark);
  --button-secondary-hover-text:  var(--color-text-inverse);

  --tag-bg:                       var(--color-secondary);
  --tag-text:                     var(--color-accent-deep);    /* Indigo Deep, 10.5:1 on Mist */
  --tag-radius:                   999px;
  --logo-mark-radius:             9px;

  /* Contrast-driven choices. Check each against the ratios in brand-id.md before changing. */
  --color-link-inverse:           var(--color-text-inverse);   /* Paper links on dark; Indigo is too dark on Ink */
  --color-text-caption:           var(--color-text-muted);     /* Ink Soft, 7.8:1 on Chalk */

  /* Suspire v3.0 shape, width and motion (brand-id.md Sections 4, 7 and 8). Read by engines/web-system/brand.css. */
  --font-stretch-heading:         125%;      /* H1, H2, big figures */
  --font-stretch-card:            112%;      /* H3 and card titles */
  --font-stretch-quote:           100%;      /* quotes */
  --radius-panel:                 18px;      /* panels, callouts and proof boxes */
  --button-height:                3.25rem;   /* 52px */
  --lift:                         -2px;      /* hover rise on buttons and linked cards */
  --shadow-lift:                  0 24px 48px -24px rgba(13, 18, 51, 0.35);   /* Ink at 35%, lifted cards only */
  --eyebrow-dot:                  8px;       /* the Coral dot before an eyebrow */
}
