/* Copied from the-mint/tokens/mint.css (v1.0). Do not edit values here; change them upstream and re-copy.
   Only change: dark is the default, and light follows prefers-color-scheme when <html> has no data-mode. */
/* ═══════════════════════════════════════════════════════════════════════════
   MINT · design tokens
   Single source of truth for every surface: dashboard, web, deck, doc, native.
   Structure inherited from Qenz verbatim. Only the aura changes: where Qenz
   is aurora (4 hues), Mint is green (1 hue).

   Usage:  <html data-mode="dark">  or  <html data-mode="light">
           link this file, then use var(--token) everywhere. Never hard-code.

   Version 1.0 · 2026-08-21
   ═══════════════════════════════════════════════════════════════════════════ */

:root{
  /* ── typeface ──────────────────────────────────────────────────────────── */
  --font: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;

  /* ── the aura · one hue, ten steps ─────────────────────────────────────── */
  /* money green through mint. g700 and g200 are the mark's pour endpoints.   */
  --g50:  #E9FBF2;
  --g100: #CFF9E4;
  --g200: #7DF7C0;   /* pour: bright end */
  --g300: #47E3A2;   /* aura on dark */
  --g400: #22C888;
  --g500: #12A96C;   /* quiet aura on dark, for data marks */
  --g600: #0E8C59;   /* quiet aura on light */
  --g700: #0B7A47;   /* pour: deep end · aura on light */
  --g800: #085E38;
  --g900: #044026;

  /* ── status ────────────────────────────────────────────────────────────── */
  /* Never used alone. Always paired with a glyph and a word.                 */
  --neg-d: #E5484D;  --neg-l: #C42430;   /* loss, error, down */
  --att-d: #D9A21B;  --att-l: #8A7A0E;   /* attention, stale, degraded */

  /* ── type scale ────────────────────────────────────────────────────────── */
  --t-display:  64px;   --lh-display:  1.05;  --tr-display:  -0.035em;  --fw-display:  700;
  --t-headline: 48px;   --lh-headline: 1.08;  --tr-headline: -0.030em;  --fw-headline: 600;
  --t-title:    28px;   --lh-title:    1.20;  --tr-title:    -0.020em;  --fw-title:    600;
  --t-body:     17px;   --lh-body:     1.50;  --tr-body:     -0.005em;  --fw-body:     400;
  --t-label:    14px;   --lh-label:    1.30;  --tr-label:     0;        --fw-label:    500;
  --t-caption:  12px;   --lh-caption:  1.40;  --tr-caption:   0.012em;  --fw-caption:  400;

  /* ── space ─────────────────────────────────────────────────────────────── */
  --s2:2px;   --s4:4px;   --s8:8px;   --s12:12px; --s16:16px; --s20:20px;
  --s24:24px; --s32:32px; --s40:40px; --s48:48px; --s64:64px; --s96:96px; --s128:128px;

  /* ── radius ────────────────────────────────────────────────────────────── */
  /* Mint lives at the sharp end of the Qenz scale because the mark is    */
  /* radius 0. r-sm is the workhorse. r-md is the ceiling. r-lg is reserved   */
  /* for full-screen sheets only. Data never gets a radius.                   */
  --r0:      0;        /* bars, meters, charts, table cells, any data mark */
  --r-sm:    6px;      /* cards, tiles, inputs, buttons, chips: the default */
  --r-md:    10px;     /* popovers, modals, the command palette */
  --r-lg:    16px;     /* full-screen sheets only */
  --r-full:  9999px;   /* avatars and dots only. never a container. */
  --r-icon:  22%;      /* app icon plate corner, as a share of the square */

  /* ── motion ────────────────────────────────────────────────────────────── */
  --d-instant: 80ms;   /* state echo: hover, press */
  --d-quick:   140ms;  /* small things appearing: tooltip, chip */
  --d-normal:  220ms;  /* popovers, dropdowns, tiles reflowing */
  --d-slow:    320ms;  /* modals, sheets, the palette */
  --e-out:  cubic-bezier(.16,1,.3,1);   /* things arriving */
  --e-in:   cubic-bezier(.4,0,1,1);     /* things leaving */
  --e-move: cubic-bezier(.4,0,.2,1);    /* things travelling */

  /* ── the mark · locked geometry, as ratios ─────────────────────────────── */
  --mark-thickness:   0.300;   /* x cap height */
  --mark-bar-top:     3.300;   /* x thickness */
  --mark-bar-bottom:  3.300;   /* x thickness */
  --mark-climb:       2.000;   /* x thickness */
  --mark-overlap:     1.500;   /* x thickness */
  --mark-radius:      0;       /* measured off the T crossbar: perfectly square */
  --mark-gap:         0.800;   /* x width of the letter "e" */
  --mark-aspect:      1.700;   /* width : height */
}

/* ── dark canvas ───────────────────────────────────────────────────────────
   The default. Pure black ground, solid surface steps. No translucent
   overlays: they read as grey mush.                                        */
html[data-mode="dark"], html:not([data-mode]){
  --canvas: #000000;
  --s1:  #0A0A0A;   /* cards, tiles, the resting surface */
  --s2c: #1C1C1E;   /* raised: inputs, hover fills, popovers */
  --s3:  #2C2C2E;   /* highest: track fills, pressed states */

  --ink:  rgba(255,255,255,1);
  --ink2: rgba(255,255,255,.70);
  --ink3: rgba(255,255,255,.50);
  --ink4: rgba(255,255,255,.22);

  --bd:  rgba(255,255,255,.08);
  --bd2: rgba(255,255,255,.14);
  --bd3: rgba(255,255,255,.22);

  --aura:       var(--g300);   /* the voice of the brand on this canvas */
  --aura-quiet: var(--g500);   /* the same hue, for secondary data marks */
  --neg: var(--neg-d);
  --att: var(--att-d);
  --pour: linear-gradient(90deg, var(--g700), var(--g200));

  --scrim: rgba(0,0,0,.60);

  /* elevation is carried by the surface step, not by shadow */
  --e1: none;  --e2: none;  --e3: none;
}

/* ── light canvas ──────────────────────────────────────────────────────────
   Grey ground, white surfaces. Because all three surfaces are white,
   elevation must be carried by shadow here.
   NOTE: the shadow scale below is a PROPOSAL, not ratified law. Qenz defers
   its shadow scale to a future ADR.                                        */
html[data-mode="light"]{
  --canvas: #F2F2F7;
  --s1:  #FFFFFF;
  --s2c: #FFFFFF;
  --s3:  #FFFFFF;

  --ink:  rgba(0,0,0,1);
  --ink2: rgba(0,0,0,.65);
  --ink3: rgba(0,0,0,.45);
  --ink4: rgba(0,0,0,.22);

  --bd:  rgba(60,60,67,.12);
  --bd2: rgba(60,60,67,.18);
  --bd3: rgba(60,60,67,.29);

  --aura:       var(--g700);
  --aura-quiet: var(--g600);
  --neg: var(--neg-l);
  --att: var(--att-l);
  --pour: linear-gradient(90deg, var(--g700), var(--g300));

  --scrim: rgba(16,24,40,.35);

  --e1: 0 1px 2px rgba(16,24,40,.05);
  --e2: 0 4px 8px -2px rgba(16,24,40,.08), 0 2px 4px -2px rgba(16,24,40,.04);
  --e3: 0 12px 24px -6px rgba(16,24,40,.12), 0 4px 8px -4px rgba(16,24,40,.06);
}

/* No data-mode attribute: follow the visitor system setting (dark is the default above). */
@media (prefers-color-scheme: light){
  html:not([data-mode]){
    --canvas: #F2F2F7;
    --s1:  #FFFFFF;
    --s2c: #FFFFFF;
    --s3:  #FFFFFF;
  
    --ink:  rgba(0,0,0,1);
    --ink2: rgba(0,0,0,.65);
    --ink3: rgba(0,0,0,.45);
    --ink4: rgba(0,0,0,.22);
  
    --bd:  rgba(60,60,67,.12);
    --bd2: rgba(60,60,67,.18);
    --bd3: rgba(60,60,67,.29);
  
    --aura:       var(--g700);
    --aura-quiet: var(--g600);
    --neg: var(--neg-l);
    --att: var(--att-l);
    --pour: linear-gradient(90deg, var(--g700), var(--g300));
  
    --scrim: rgba(16,24,40,.35);
  
    --e1: 0 1px 2px rgba(16,24,40,.05);
    --e2: 0 4px 8px -2px rgba(16,24,40,.08), 0 2px 4px -2px rgba(16,24,40,.04);
    --e3: 0 12px 24px -6px rgba(16,24,40,.12), 0 4px 8px -4px rgba(16,24,40,.06);
  }
}

/* ── accessibility ─────────────────────────────────────────────────────────
   Reduced motion collapses at the token level, so no component has to
   handle it individually.                                                  */
@media (prefers-reduced-motion: reduce){
  :root{ --d-instant:0ms; --d-quick:0ms; --d-normal:0ms; --d-slow:0ms; }
}

/* ── base ──────────────────────────────────────────────────────────────────
   Numbers are ALWAYS tabular. Plus Jakarta Sans carries real tabular
   figures, so there is no second font in this system.                      */
html, body{
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
.n, [data-num]{
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
