/* Scooby's Plan design tokens. Look "A · Paper", approved by Mike 2026-10-20 (plan Task 0).
   Light values are the approved palette; dark values are derived from the same block.
   Fonts are self-hosted (the CSP blocks Google Fonts): Inter and Inter Tight, SIL OFL 1.1,
   licence texts beside the files in fonts/. Latin subset, variable weight. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("fonts/inter-tight-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  /* colour: light (approved) */
  --ground: #F7F7F5;          /* page */
  --surface: #FFFFFF;         /* cards */
  --ink: #121212;             /* primary text */
  --text-2: #4A4A46;          /* supporting sentences */
  --text-3: #6B6B66;          /* labels, meta, dates */
  --text-nav: #3A3A37;        /* rail links */
  --hairline: #EFEFEC;        /* rows inside a card */
  --hairline-2: #E6E6E2;      /* rail edge, tab bar edge, inputs */
  --fill: #E9E9E5;            /* avatar */
  --accent: #2B59C3;          /* cobalt */
  --accent-hover: #1F4499;
  --accent-wash: #EAEEF8;     /* active rail item */
  --on-accent: #FFFFFF;
  --attention: #C2410C;       /* attention dot, errors */
  --mark-bg: #121212;         /* the "S" logo square */
  --mark-fg: #F7F7F5;
  --mark-edge: transparent;
  --bar-bg: rgba(247, 247, 245, 0.92);
  --focus: rgba(43, 89, 195, 0.35);

  /* colour with a meaning (Mike, 2026-10-28: "add some color, it reads boring") */
  --win: #15803D;             /* won, plus money, a pass, an edge */
  --win-wash: #E7F5EC;
  --loss: #DC2626;            /* lost, minus money, a fail */
  --loss-wash: #FDECEC;
  --gold: #B7791F;            /* grade B */
  --gold-wash: #FBF1DF;
  --fishon: #0E5A43;          /* Fish On band: deep water green */
  --fishon-2: #128466;
  --on-fishon: #FFFFFF;
  --nfl: #1D3F8F;
  --nhl: #0284C7;
  --nba: #EA580C;


  /* App colour, 2026-10-28 (Mike: "doesn't look like an app, needs color"). Each section owns a pair;
     the page header, the active tab, buttons and the + all take the current section's pair. */
  --c-home: #4F46E5;         --c-home-2: #8B5CF6;
  --c-tasks: #2563EB;        --c-tasks-2: #06B6D4;
  --c-goals: #D97706;        --c-goals-2: #F59E0B;
  --c-fishon: #0E5A43;       --c-fishon-2: #12A27C;
  --c-personal: #DB2777;     --c-personal-2: #F472B6;
  --c-business: #0F766E;     --c-business-2: #14B8A6;
  --c-finance: #0369A1;      --c-finance-2: #38BDF8;
  --c-calendar: #DC2626;     --c-calendar-2: #FB923C;
  --c-intelligence: #6D28D9; --c-intelligence-2: #C084FC;
  --c-more: #334155;         --c-more-2: #64748B;
  --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 20px rgba(17, 24, 39, 0.06);
  --shadow-lift: 0 10px 30px rgba(17, 24, 39, 0.16);
  --radius-hero: 24px;

  /* type */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --text-xs: 11px;            /* tab labels */
  --text-label: 12px;         /* section labels, 600, tracked */
  --text-sm: 13px;            /* meta */
  --text-md: 15px;            /* rail links, secondary actions */
  --text-base: 16px;          /* rows */
  --text-lg: 17px;            /* supporting sentence, buttons, inputs */
  --text-xl: 22px;            /* figures */
  --text-greeting: 34px;      /* phone */
  --text-greeting-lg: 44px;   /* laptop */
  --tracking-label: 0.08em;
  --tracking-display: -0.02em;
  --leading-tight: 1.1;
  --leading-body: 1.45;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* shape */
  --radius-sm: 10px;          /* rail items */
  --radius-md: 12px;          /* inputs */
  --radius-mark: 14px;        /* 48px logo mark */
  --radius-card: 16px;        /* cards, primary button */
  --radius-pill: 999px;

  /* sizes */
  --tap: 48px;                /* minimum tap target */
  --button-h: 56px;
  --rail-w: 240px;

  /* motion */
  --motion: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1012;
    --surface: #17181B;
    --ink: #ECECE8;
    --text-2: #BDBDB7;
    --text-3: #9A9A94;
    --text-nav: #CFCFCA;
    --hairline: #222327;
    --hairline-2: #2A2B30;
    --fill: #26272B;
    --accent: #6E8FE0;
    --accent-hover: #93ADEB;
    --accent-wash: #1C2438;
    --on-accent: #0F1012;
    --attention: #EA6A2E;
    --mark-bg: #1F2024;
    --mark-fg: #ECECE8;
    --mark-edge: #33343A;
    --bar-bg: rgba(15, 16, 18, 0.9);
    --focus: rgba(110, 143, 224, 0.45);
    --win: #4ADE80;
    --win-wash: #12261A;
    --loss: #F87171;
    --loss-wash: #2A1414;
    --gold: #F5B94A;
    --gold-wash: #2A2110;
    --fishon: #0B4535;
    --fishon-2: #12735A;
    --on-fishon: #ECF7F2;
    --nfl: #7C9BEA;
    --nhl: #38BDF8;
    --nba: #FB923C;
    --c-home: #4338CA;  --c-home-2: #7C3AED;
    --c-tasks: #1D4ED8; --c-tasks-2: #0891B2;
    --c-goals: #B45309; --c-goals-2: #D97706;
    --c-personal: #BE185D; --c-personal-2: #DB2777;
    --c-calendar: #B91C1C; --c-calendar-2: #EA580C;
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}
