/* Design tokens: a white page, near-black ink, thin rules.
 *
 * Source of truth: docs/superpowers/specs/mockups/2026-11-16-ui-overhaul.html
 * (spec 2026-11-16-ui-overhaul-design.md, section 4). Light only.
 *
 * These are the only colour, type and spacing values the app defines; every
 * sheet reads from here.
 */

:root {
  /* --- ink and surfaces --- */
  --ink:       #1D1D1F;   /* text, buttons, the selected state of a control */
  --ink-hover: #3A3A3C;   /* a black control under the pointer */
  --sub:       #6A6A6F;   /* secondary text: 5.4:1 on paper, 4.6:1 on fill-2 */
  --paper:     #FFFFFF;   /* the page */
  --fill:      #F5F5F7;   /* drop-downs, second buttons, row hover, door tiles */
  --fill-2:    #ECECF0;   /* hover on a fill */
  --line:      #D2D2D7;   /* section rules, the rule under a table header */
  --line-2:    #E8E8ED;   /* row rules */
  --line-control: #86868B;  /* field and checkbox borders, 3.6:1 on paper */
  --scrim:     rgba(0, 0, 0, .4);   /* behind a dialog */
  --toast:     #1D1D1F;

  /* --- the top bar --- */
  --bar:      #161617;
  --bar-ink:  #F5F5F7;
  --bar-sub:  #A1A1A6;
  --bar-fill: #343435;   /* search and the mode switch: bar-sub reads 4.8:1 on it */
  --bar-line: rgba(255, 255, 255, .14);   /* rules in the phone menu */

  /* --- one job each --- */
  --red:   #D50A0A;   /* the logo and the current-tab marker, nothing else */
  --focus: #0071E3;   /* focus ring: 4.7:1 on paper, 3.9:1 on the bar */
  --up:    #17643A;   /* a figure that rose */
  --down:  #A8251D;   /* a figure that fell */
  --hot:   #8A5A00;   /* "look here" amber text, 5.9:1 on paper */

  /* --- home-team row highlight --- */
  --mine:      #FFF8E6;
  --mine-hov:  #FFF2D1;
  --mine-rule: #F0D58A;

  /* --- ratings: fixed, never club-coloured --- */
  /* bars and swatches */
  --t-elite: #1F7A45;   /* 90+ percentile */
  --t-high:  #34A05B;   /* 75-89 */
  --t-avg:   #E2B93B;   /* 40-74 */
  --t-below: #D27A2C;   /* 20-39 */
  --t-poor:  #D4483E;   /* <20 */
  --t-none:  #B9B9BE;   /* no value */
  /* chips: the top step is solid, the rest a tint with dark text */
  --t-elite-ink: #FFFFFF;
  --t-high-bg:  #DCF2E3;
  --t-high-ink: #17643A;
  --t-avg-bg:   #FBEFC4;
  --t-avg-ink:  #6A5100;
  --t-below-bg: #FDE4D0;
  --t-below-ink: #94470C;
  --t-poor-bg:  #FBDCD9;
  --t-poor-ink: #A8251D;

  /* --- club colours: set per profile via style="--club:..;--club2:.." --- */
  --club:  var(--ink);
  --club2: var(--red);

  /* --- type --- */
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-2xs: 12px;
  --fs-xs:  13px;
  --fs-sm:  14px;
  --fs-md:  15px;       /* body */
  --fs-lg:  17px;
  --fs-xl:  21px;       /* section heading */
  --fs-2xl: 32px;       /* page title on a phone */
  --fs-3xl: 44px;       /* page title */
  --fs-4xl: 52px;       /* profile name */
  --fs-5xl: 64px;       /* front door */
  --lh:     1.47;
  --tight:  -.022em;    /* titles */
  --snug:   -.012em;    /* section headings */

  /* --- spacing (4px base) --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* --- shape --- */
  --r-sm: 6px;          /* chips */
  --r:    8px;          /* drop-downs, fields */
  --r-md: 14px;         /* menus, dialogs */
  --r-lg: 28px;         /* door tiles */
  --r-pill: 980px;      /* buttons */
  --shadow-menu: 0 10px 34px rgba(0, 0, 0, .18);   /* menus and dialogs only */

  /* --- photo and logo boxes --- */
  --photo-sm: 24px;
  --photo-md: 36px;
  --photo-lg: 64px;
  --logo-sm:  16px;

  /* --- motion --- */
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* --- geometry --- */
  --top-h:  52px;
  --rail-w: 280px;
  --row-h:  44px;
  --wrap:   1236px;     /* content cap, gutters included */
  --gutter: 28px;
}
