/* Aight console, palette A "Ink & clay" (AIGHT-CLAUDE-HANDOFF.md §2; BRIEF D47).
   Every colour, font and size the console uses is a custom property here.
   components.css only reads these. Values are shared with the website through
   docs/v4/tokens.json (same numbers as Aight_Website tools/data/design-tokens.json).

   Light only for this release: `color-scheme: light` on the root and an explicit
   colour on every text element in components.css, so a dark OS/browser preference
   or a host stylesheet can never render light text on the light page.

   Fonts, self-hosted, SIL Open Font License:
     DM Sans 400/500/600 — the same woff2 files as the website.
     DM Sans full build with tabular figures (`tnum`), from aight-screens-v3/assets/v6/fonts/
       (the web designer's replacement for the website's subset). Money uses tabular-nums.
     IBM Plex Mono 400/500 — keys and code, as on the website. */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/dm-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/dm-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/dm-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;

  /* palette A — the whole column, nothing from B or C */
  --page:        #F7F5F1;
  --surface:     #FFFFFF;
  --ink:         #242420;
  --muted:       #62625C;   /* 5.6:1 on page, 6.1:1 on white */
  --brand:       #A8442B;   /* 5.6:1 on white: primary button, selected nav, links, focus */
  --brand-hover: #873621;
  --soft:        #F2E3DC;   /* one small Extra badge; selected nav background */
  --rule:        #DDDAD3;   /* decorative separators only */
  --input:       #85857D;   /* input and secondary-button boundary, 3.6:1 on white */
  --on-brand:    #FFFFFF;

  /* semantic states, shared by all palettes; always paired with words */
  --success-ink: #206044;  --success-bg: #E8F2EB;
  --warning-ink: #805516;  --warning-bg: #FBF0D9;
  --error-ink:   #A32932;  --error-bg:   #FBEAEC;

  /* the original outlined wordmark, exactly as supplied (aight-original.svg) */
  --logo-ink: #141F31;
  --logo-dot: #B0341F;

  /* type */
  --sans:  'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --money: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --text:  14px;  --text-lh: 1.45;   /* console body */
  --label: 13px;  --label-lh: 1.4;
  --small: 12px;                     /* nothing essential below this */
  --h1: 28px;     --h1-lh: 1.2;
  --h2: 18px;     --h2-lh: 1.3;
  --h3: 15px;
  --money-hero: 36px; --money-hero-m: 30px; --money-hero-lh: 1.1;
  --money-card: 24px;

  /* space scale 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 88 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 88px;

  /* geometry */
  --r-control: 6px; --r-card: 8px; --r-dialog: 12px;
  --sidebar: 224px;
  --pad: 32px; --pad-m: 20px;
  --content-max: 1120px;
  --touch: 44px;
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);  /* 2px ring, 2px neutral offset */
  --lift: 0 12px 32px -12px rgba(36, 36, 32, 0.28), 0 2px 6px -2px rgba(36, 36, 32, 0.12);  /* popovers and dialogs only */
  --scrim: rgba(36, 36, 32, 0.42);
  --tint: rgba(36, 36, 32, 0.05);          /* hover on neutral rows */
  --brand-tint: rgba(168, 68, 43, 0.06);   /* hover on quiet clay buttons */
  --error-hover: #86212A;                  /* destructive button hover */
  --error-tint: rgba(163, 41, 50, 0.06);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 6 3.5 3.5L11.5 6' fill='none' stroke='%23242420' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
