/* Brand tokens. Guide: brand/brand-guide.md. Live examples: brand/specimen.html.
   Colors measured from screenshots of the Claude desktop app on 2026-11-05. "ours" marks values
   we added or changed for accessibility, dark mode, or because a screenshot can't show them. */

@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600&family=Source+Serif+4:wght@400;500&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  color-scheme: light dark;

  /* Fonts: free substitutes, chosen side by side against the screenshots. */
  --font-sans: "Hanken Grotesk", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace; /* code only */

  /* Type sizes. Sizes are inferred: the screenshots are about 1.56x the real window. */
  --text-xs: 0.75rem;      /* 12px  count pills, badges */
  --text-sm: 0.8125rem;    /* 13px  captions, secondary lines, section labels */
  --text-base: 0.875rem;   /* 14px  app body, nav, tabs, buttons */
  --text-md: 1rem;         /* 16px  form inputs on phones, section headings */
  --text-lg: 1.25rem;      /* 20px  card and sheet titles (serif) */
  --text-title: 1.75rem;   /* 28px  page titles (serif) */
  --text-display: 2.25rem; /* 36px  invitee and hero titles (serif) */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --sidebar: 16.5rem;
  --content: 60rem;
  --measure: 40rem;
  --control: 2rem;       /* 32px: buttons, tabs, nav rows */
  --control-lg: 2.75rem; /* 44px: touch targets, invitee actions */

  /* Radii: everything is softly rounded, nothing is square. */
  --radius-sm: 6px;     /* inline code, badges' inner parts */
  --radius-md: 8px;     /* buttons, inputs, tabs */
  --radius-lg: 10px;    /* nav rows, notices, time chips */
  --radius-xl: 12px;    /* icon tiles, maker tiles' art */
  --radius-2xl: 16px;   /* cards, the main panel, sheets, hero bands */
  --radius-pill: 999px; /* badges, count pills, length toggles */

  /* Motion */
  --dur-fast: 0.15s;
  --dur-base: 0.25s;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);

  /* Color families: the only saturated color, used for tiles and bands. Same in both themes. */
  --sage: #ced7bf;
  --sage-ink: #0b1106;
  --sage-muted: #4b5240;
  --mist: #c2d6cf;
  --tile-blue: #cce3fe;
  --tile-blue-ink: #134f9d;
  --tile-peach: #f7dacb;
  --tile-peach-ink: #8a3106;
  --tile-lavender: #e4dfff;
  --tile-lavender-ink: #4e379a;
  --tile-pink: #fcd5d5;
  --tile-pink-ink: #992322;

  /* Status dots */
  --dot-blue: #2a7ee1;
  --dot-orange: #fab511;

  /* Money and data colors, from two finance-app screenshots Bennett shared on 2026-11-08
     (Accounts, Budget). Sampled from pixels unless marked "by eye". Bars and dots only, never
     text: the green and red are under 3:1 as text, so text uses --positive instead. */
  --data-green-1: #71eba7;  /* allocation ramp, lightest (largest holding) */
  --data-green-2: #0ebb6a;  /* also the "on budget" progress fill */
  --data-green-3: #0c6d3e;
  --data-green-4: #084124;
  --data-green-5: #00190e;
  --data-gold-1: #fede8c;   /* debt ramp */
  --data-gold-2: #d99f0c;
  --data-blue: #022bf3;     /* single-value progress, such as "spent" */
  --data-red: #f03c1e;      /* over budget. By eye: the Budget screenshot wasn't on disk */

  /* Light theme: pure neutrals, measured. */
  --bg: #ffffff;           /* the main panel */
  --bg-sidebar: #fafafa;   /* sidebar and invitee page background */
  --bg-card: #f9f9f9;      /* filled cards */
  --bg-soft: #f3f3f3;      /* segmented group, count pills, open dates */
  --bg-hover: #ececec;     /* square icon buttons, hovers */
  --bg-selected: #e5e5e5;  /* selected tab or toggle */
  --bg-nav-selected: #e1e1e1;
  --bg-code: #f3f3f3;
  --surface: #ffffff;      /* white on top of filled areas: icon tiles, inputs */

  --text: #131313;
  --text-muted: #5e5e5e;
  --text-subtle: #646464;
  --text-label: #5e5e5e;
  --text-faint: #707073;   /* ours: column heads, timestamps, percents. The screenshots' #a0a1a5 is 2.6:1 */
  --positive: #0b7a43;     /* ours: money left over. The screenshots' #0ebb6a is 2.5:1 as text */
  --data-track: #f3f3f3;   /* empty part of a progress bar */

  --border: #e7e7e7;         /* card outlines, dividers */
  --border-strong: #d9d9d9;
  --border-control: #8f8f8f; /* ours: inputs need 3:1, the screenshots' light border doesn't reach it */

  --button: #181818;       /* the primary action */
  --button-hover: #000000;
  --on-button: #ffffff;
  --accent: #134f9d;       /* links, sparingly */

  --focus: #2a7ee1;

  --success: #16581d;
  --success-bg: #ddebdd;
  --warning: #6f5208;      /* ours */
  --warning-bg: #fff4d6;   /* ours */
  --danger: #b3261e;       /* ours */
  --danger-bg: #fbeeeb;    /* ours */
  --info: #134f9d;
  --info-bg: #e6eefe;

  /* Elevation: almost none. */
  --shadow-panel: 0 0 0 1px #0000000a, 0 1px 3px #0000000f;
  --shadow-card: 0 1px 2px #0000000a, 0 6px 24px #0000000d; /* the floating summary card */
  --shadow-float: 0 8px 30px #00000026;
}

/* Dark theme (ours: the screenshots are light). The same neutral ladder, inverted. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1b;
    --bg-sidebar: #141414;
    --bg-card: #242424;
    --bg-soft: #2a2a2a;
    --bg-hover: #333333;
    --bg-selected: #383838;
    --bg-nav-selected: #333333;
    --bg-code: #2a2a2a;
    --surface: #1b1b1b;
    --text: #f2f2f2;
    --text-muted: #adadad;
    --text-subtle: #a3a3a3;
    --text-label: #adadad;
    --text-faint: #8a8a8d;
    --positive: #4fd98f;
    --data-track: #2a2a2a;
    --data-green-1: #c6f6da;
    --data-green-2: #71eba7;
    --data-green-3: #0ebb6a;
    --data-green-4: #0c9554;
    --data-green-5: #0a7a45;
    --data-blue: #5b78ff;
    --data-red: #ff5a3d;
    --shadow-card: 0 0 0 1px #ffffff0f;
    --border: #303030;
    --border-strong: #3d3d3d;
    --border-control: #7d7d7d;
    --button: #f2f2f2;
    --button-hover: #ffffff;
    --on-button: #141414;
    --accent: #8fbdf5;
    --focus: #6aa5ef;
    --success: #8fcf95;
    --success-bg: #1f3322;
    --warning: #e8c15c;
    --warning-bg: #352c13;
    --danger: #ef8d82;
    --danger-bg: #3a211e;
    --info: #8fbdf5;
    --info-bg: #1d2c42;
    --shadow-panel: 0 0 0 1px #ffffff0f;
    --shadow-float: 0 8px 30px #00000080;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1b1b;
  --bg-sidebar: #141414;
  --bg-card: #242424;
  --bg-soft: #2a2a2a;
  --bg-hover: #333333;
  --bg-selected: #383838;
  --bg-nav-selected: #333333;
  --bg-code: #2a2a2a;
  --surface: #1b1b1b;
  --text: #f2f2f2;
  --text-muted: #adadad;
  --text-subtle: #a3a3a3;
  --text-label: #adadad;
  --text-faint: #8a8a8d;
  --positive: #4fd98f;
  --data-track: #2a2a2a;
  --data-green-1: #c6f6da;
  --data-green-2: #71eba7;
  --data-green-3: #0ebb6a;
  --data-green-4: #0c9554;
  --data-green-5: #0a7a45;
  --data-blue: #5b78ff;
  --data-red: #ff5a3d;
  --shadow-card: 0 0 0 1px #ffffff0f;
  --border: #303030;
  --border-strong: #3d3d3d;
  --border-control: #7d7d7d;
  --button: #f2f2f2;
  --button-hover: #ffffff;
  --on-button: #141414;
  --accent: #8fbdf5;
  --focus: #6aa5ef;
  --success: #8fcf95;
  --success-bg: #1f3322;
  --warning: #e8c15c;
  --warning-bg: #352c13;
  --danger: #ef8d82;
  --danger-bg: #3a211e;
  --info: #8fbdf5;
  --info-bg: #1d2c42;
  --shadow-panel: 0 0 0 1px #ffffff0f;
  --shadow-float: 0 8px 30px #00000080;
}

:root[data-theme="light"] {
  color-scheme: light;
}
