/* ==========================================================================
   Autonuvia design tokens

   Generated from the brand guidelines. These are the same values as
   Autonuvia-Brand-Guidelines.html and README.txt. Do not retype them by
   hand anywhere else - import this file.

   Every colour carries its measured contrast ratio in the comment.
   ========================================================================== */

:root {

  /* --- Typeface ---------------------------------------------------------
     Manrope for everything. JetBrains Mono for figures, tables and code
     ONLY, never for running text. Both SIL Open Font Licence.            */

  --font-sans: Manrope, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  /* --- Brand colour -----------------------------------------------------
     Three colourways. Nothing else. Never a gradient, never a second
     colour inside the mark.

     Known-good pairings:
       flood on black ....... 7.10:1   passes AA
       deep  on white ....... 5.18:1   passes AA
       white on flood ....... 2.61:1   FAILS - which is why the orange
                                       flood colourway is one tone       */

  --flood: #FF7A1A;   /* the brand colour                                 */
  --deep:  #C2410C;   /* same orange, re-cut for light grounds            */
  --black: #16130F;   /* near-black, warmed toward the orange             */

  /* --- Tint ladder, dark grounds ----------------------------------------
     White over --black at fixed opacity. Use the alpha form on screen and
     the flat hex for print, Word and PowerPoint - they are the same
     colour. Never invent a grey; every step here stays in the family.    */

  --ink-03:  #1D1A16;  --ink-03-a:  rgba(255,255,255,0.03);  /*  1.07:1  hairline fill, zebra rows */
  --ink-08:  #292622;  --ink-08-a:  rgba(255,255,255,0.08);  /*  1.23:1  raised panel              */
  --ink-16:  #3B3935;  --ink-16-a:  rgba(255,255,255,0.16);  /*  1.61:1  border, divider           */
  --ink-40:  #73716F;  --ink-40-a:  rgba(255,255,255,0.40);  /*  3.81:1  disabled, tertiary        */
  --ink-65:  #ADACAB;  --ink-65-a:  rgba(255,255,255,0.65);  /*  8.17:1  secondary text, captions  */
  --ink-80:  #D0D0CF;  --ink-80-a:  rgba(255,255,255,0.80);  /* 12.00:1  strong secondary          */
  --ink-100: #FFFFFF;  --ink-100-a: rgba(255,255,255,1.00);  /* 18.52:1  primary text              */

  /* --- Tint ladder, light grounds ---------------------------------------
     --black over white at fixed opacity.                                 */

  --pap-04:  #F6F6F5;  --pap-04-a:  rgba(22,19,15,0.04);     /*  1.08:1  hairline fill, zebra rows */
  --pap-08:  #ECECEC;  --pap-08-a:  rgba(22,19,15,0.08);     /*  1.18:1  raised panel              */
  --pap-14:  #DEDEDD;  --pap-14-a:  rgba(22,19,15,0.14);     /*  1.35:1  border, divider           */
  --pap-40:  #A2A19F;  --pap-40-a:  rgba(22,19,15,0.40);     /*  2.58:1  disabled, tertiary        */
  --pap-62:  #6F6D6A;  --pap-62-a:  rgba(22,19,15,0.62);     /*  5.16:1  secondary text, captions  */
  --pap-80:  #45423F;  --pap-80-a:  rgba(22,19,15,0.80);     /*  9.98:1  strong secondary          */
  --pap-100: #16130F;  --pap-100-a: rgba(22,19,15,1.00);     /* 18.52:1  primary text              */

  /* --- Semantic colour --------------------------------------------------
     For states, not decoration. Never inside the logo, never a secondary
     brand palette. Warning sits at hue 55 and danger at 342 so that
     neither reads as the brand orange at hue 25.                         */

  --success-on-dark: #19B37B;  --success-on-light: #0E6B49;  /*  6.86 / 6.53 */
  --warning-on-dark: #EADB2B;  --warning-on-light: #6E6400;  /* 12.93 / 6.02 */
  --danger-on-dark:  #EA3A6E;  --danger-on-light:  #AA1046;  /*  4.70 / 7.31 */
  --info-on-dark:    #4098DE;  --info-on-light:    #17659F;  /*  5.96 / 6.18 */

  /* --- Type scale -------------------------------------------------------
     Pick a row and use all four values. Negative tracking is NOT optional
     at display and h1: Manrope sets loose at large sizes and without it
     headlines fall apart. Never set below 14px.                          */

  --display-size: 56px;  --display-line: 1.02;  --display-weight: 800;  --display-track: -0.030em;
  --h1-size:      40px;  --h1-line:      1.08;  --h1-weight:      800;  --h1-track:      -0.025em;
  --h2-size:      30px;  --h2-line:      1.15;  --h2-weight:      700;  --h2-track:      -0.020em;
  --h3-size:      22px;  --h3-line:      1.30;  --h3-weight:      700;  --h3-track:      -0.015em;
  --h4-size:      18px;  --h4-line:      1.40;  --h4-weight:      600;  --h4-track:      -0.010em;
  --body-lg-size: 18px;  --body-lg-line: 1.65;  --body-lg-weight: 400;  --body-lg-track:  0;
  --body-size:    16px;  --body-line:    1.60;  --body-weight:    400;  --body-track:     0;
  --small-size:   14px;  --small-line:   1.55;  --small-weight:   400;  --small-track:    0;
  --label-size:   12px;  --label-line:   1.30;  --label-weight:   500;  --label-track:    0.180em;
  --micro-size:   11px;  --micro-line:   1.30;  --micro-weight:   500;  --micro-track:    0.120em;

  /* Responsive: let the top three shrink rather than wrap awkwardly.
     Below 14px stop reducing - small text is where accessibility is lost. */

  --display-fluid: clamp(2.3rem, 7.4vw, 3.5rem);
  --h1-fluid:      clamp(1.9rem, 5.0vw, 2.5rem);
  --h2-fluid:      clamp(1.4rem, 3.0vw, 1.875rem);

  /* --- Lockup spacing ---------------------------------------------------
     Mark to wordmark: one third of the mark height.
     Wordmark to tagline: half the tagline font size.                     */

  --lockup-mark-gap: 0.3333em;
  --lockup-tag-gap:  0.5em;
}

/* ==========================================================================
   Ready-made roles. Optional - delete these if you would rather compose
   from the custom properties above.
   ========================================================================== */

.t-display { font: var(--display-weight) var(--display-size)/var(--display-line) var(--font-sans); letter-spacing: var(--display-track); }
.t-h1      { font: var(--h1-weight)      var(--h1-size)/var(--h1-line)           var(--font-sans); letter-spacing: var(--h1-track); }
.t-h2      { font: var(--h2-weight)      var(--h2-size)/var(--h2-line)           var(--font-sans); letter-spacing: var(--h2-track); }
.t-h3      { font: var(--h3-weight)      var(--h3-size)/var(--h3-line)           var(--font-sans); letter-spacing: var(--h3-track); }
.t-h4      { font: var(--h4-weight)      var(--h4-size)/var(--h4-line)           var(--font-sans); letter-spacing: var(--h4-track); }
.t-body-lg { font: var(--body-lg-weight) var(--body-lg-size)/var(--body-lg-line) var(--font-sans); }
.t-body    { font: var(--body-weight)    var(--body-size)/var(--body-line)       var(--font-sans); }
.t-small   { font: var(--small-weight)   var(--small-size)/var(--small-line)     var(--font-sans); }
.t-label   { font: var(--label-weight)   var(--label-size)/var(--label-line)     var(--font-sans); letter-spacing: var(--label-track); text-transform: uppercase; }
.t-micro   { font: var(--micro-weight)   var(--micro-size)/var(--micro-line)     var(--font-sans); letter-spacing: var(--micro-track); }

/* Figures and code. Tabular numerals keep columns aligned.
   Never use this for prose. */

.t-figure  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Loading the fonts

   Self-host for production. For a quick start:

   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?
     family=Manrope:wght@300..800&family=JetBrains+Mono:wght@400..700&display=swap">

   The lockup SVGs in 02- and 03- contain no live text and no font
   reference, so they render correctly even before the font loads.
   ========================================================================== */
