/* ==========================================================================
   ADVASA — Design Tokens
   --------------------------------------------------------------------------
   Single source of truth. Nothing elsewhere in this site may introduce a raw
   colour, size or spacing value. If a value is needed and not defined here,
   it gets added here first. check.py enforces this.

   The palette is sampled from the ADVASA mark delivered 2026-09-10 to
   ~/Documents/2. Advasa/social/logo/. The mark is a geometric F built from
   three angled planes, each its own blue. Those three are the brand.

   This site does NOT inherit the adbt.io corporate orange. adbt.io speaks to
   investors and is built to read like a financial institution. ADVASA speaks
   to the person whose wages are in it and takes a warmer register, decided
   2026-09-14.
   ========================================================================== */

:root {
  /* ----------------------------------------------------------------------
     COLOUR SCHEME
     Declared explicitly. Without this, Chrome's auto dark mode inverts the
     page ground and the headings while leaving carded surfaces alone, which
     breaks the palette. The site commits to a single light treatment.
     ---------------------------------------------------------------------- */
  color-scheme: light;

  /* ----------------------------------------------------------------------
     COLOUR — Brand
     The three planes of the F, plus tints extrapolated from them for
     surfaces. --brand-800 is the wordmark navy, sampled unaltered.
     --brand-600 carries every primary action.
     ---------------------------------------------------------------------- */
  --brand-900: #0d1230;
  --brand-800: #172258;
  --brand-600: #254ec0;
  --brand-500: #4286cf;
  --brand-200: #b9d2ec;
  --brand-100: #dce9f6;
  --brand-50:  #f0f6fc;

  /* ----------------------------------------------------------------------
     COLOUR — Neutral ramp
     Cool-leaning, carrying a trace of the brand hue so greys sit under the
     blues rather than fighting them. One ramp, every grey comes from here.
     ---------------------------------------------------------------------- */
  --n-0:   #ffffff;
  --n-50:  #f8fafc;
  --n-100: #f0f3f7;
  --n-200: #e2e7ee;
  --n-300: #c5ccd8;
  --n-400: #98a1b2;
  --n-500: #6f7889;
  --n-600: #515969;
  --n-700: #3a4150;
  --n-800: #262c38;
  --n-900: #161a22;

  /* ----------------------------------------------------------------------
     COLOUR — Semantic
     Pages reference these, not the ramps above, wherever a meaning exists.
     ---------------------------------------------------------------------- */
  --bg:           var(--n-0);
  --bg-subtle:    var(--n-50);
  --bg-tint:      var(--brand-50);
  --bg-inverse:   var(--brand-800);
  --text:         var(--n-800);
  --text-muted:   var(--n-500);
  --text-invert:  var(--n-0);
  --rule:         var(--n-200);
  --alert:        #e5484d;   /* notification dot on the product screens; the only non-brand hue */
  --action:       var(--brand-600);
  --action-hover: var(--brand-800);

  /* ----------------------------------------------------------------------
     TYPE
     Outfit for display, sharing the geometry of the wordmark. Inter for
     Latin body text. Japanese pages use the device's own gothic (Hiragino,
     Yu Gothic Medium, Meiryo), as JCB and SMBC Card do: no web font, and
     the face Japanese readers already trust for card and payroll text.
     The wordmark and Latin display marks stay in Outfit in both languages.
     ---------------------------------------------------------------------- */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-brand:   "Outfit", system-ui, sans-serif;   /* the ADVASA wordmark and Latin display marks, in both languages */
  /* Japanese: the device's own gothic, as JCB and SMBC Card use. No web font. */
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "游ゴシック Medium",
             YuGothic, "游ゴシック体", Meiryo, "メイリオ", sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.625rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3.25rem;

  --lh-tight: 1.2;
  --lh-snug:  1.4;
  --lh-body:  1.75;

  --tracking-wide: 0.18em;

  /* ----------------------------------------------------------------------
     SPACE
     ---------------------------------------------------------------------- */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;

  /* ----------------------------------------------------------------------
     RADIUS, SHADOW, MEASURE
     ---------------------------------------------------------------------- */
  --r-sm: 6px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(22 26 34 / 6%);
  --shadow-lg: 0 12px 32px rgb(22 26 34 / 10%);

  --measure:  42rem;   /* about 75 characters: comfortable, without leaving half the row empty */
  --page-max: 68rem;

  --bp-wide: 48rem;

  /* Coming-soon card faces on the card page. Mock-ups only, not issued designs. */
  --tier-standard-1: #4286cf;
  --tier-standard-2: #254ec0;
  --tier-standard-3: #172258;
  --tier-gold-1: #f3d98b;
  --tier-gold-2: #c99a3a;
  --tier-gold-3: #8e6a22;
  --tier-platinum-1: #5b606b;
  --tier-platinum-2: #2a2d34;
  --tier-platinum-3: #0e0f12;
  --tier-chip-1: #f1dc9c;
  --tier-chip-2: #b8902f;
  --tier-shadow: rgb(10 14 34 / 18%);
  --tier-sheen: rgb(255 255 255 / 28%);
  --tier-shine: rgb(255 255 255 / 55%);
  --tier-ink: rgb(255 255 255 / 92%);
}

html[lang="ja"] {
  --font-display: var(--font-ja);
  --font-body:    var(--font-ja);
}

