/*
 * Malina brand tokens, 2026-10-31.
 *
 * Light on :root, dark on .dark (the next-themes class), with the token names
 * of the app: logo/build.mjs copies this file into app/globals.css, so a change
 * here reaches the app with the next build. Colors are sRGB hex computed from
 * OKLCH (the values are in brand.md); contrast ratios are in brand.md section 5.
 */
:root {
  /* Malina (raspberry), hue 4 */
  --malina-50: #fef4f6;
  --malina-100: #fde6eb;
  --malina-200: #fdcbd6;
  --malina-300: #fda3b9;
  --malina-400: #f47599;
  --malina-500: #e0457a;
  --malina-600: #c62263;
  --malina-700: #a4134f;
  --malina-800: #7e0f3c;
  --malina-900: #590c2a;
  --malina-950: #370819;

  /* Leaf, hue 152 */
  --leaf-50: #f0faf2;
  --leaf-100: #e0f5e5;
  --leaf-200: #c2e7cb;
  --leaf-300: #98d1a6;
  --leaf-400: #6cb481;
  --leaf-500: #4c9763;
  --leaf-600: #397c4e;
  --leaf-700: #2b633d;
  --leaf-800: #204a2d;
  --leaf-900: #16321f;

  /* Stone (warm sand neutrals), hue 75 */
  --stone-0: #fdfaf6;
  --stone-50: #f8f4f0;
  --stone-100: #f0ece7;
  --stone-200: #e2ddd8;
  --stone-300: #cbc6c0;
  --stone-400: #a49f99;
  --stone-500: #7e7973;
  --stone-600: #605b56;
  --stone-700: #45423d;
  --stone-800: #2e2b27;
  --stone-900: #1c1915;
  --stone-950: #110f0c;

  /* Honey (accent, warnings), hue 78 */
  --honey-100: #fdeed7;
  --honey-300: #fccb7e;
  --honey-400: #f6b84d;
  --honey-500: #e6a313;
  --honey-600: #bd871c;
  --honey-700: #966700;

  /* Vermilion (errors only), hue 32 */
  --vermilion-100: #ffe9e4;
  --vermilion-400: #ed7761;
  --vermilion-500: #da452c;
  --vermilion-600: #bf2e16;
  --vermilion-700: #9e2511;

  /* Slate (information), hue 250 */
  --slate-100: #e5f0fc;
  --slate-400: #73a3d5;
  --slate-500: #4f84ba;
  --slate-600: #386ca0;
  --slate-700: #275582;

  /* Ink, paper and night */
  --ink: #1e1719;
  --paper: #fdfaf6;
  --night-sidebar: #0f0a09;
  --night: #140e0e;
  --night-card: #1d1616;
  --night-muted: #271f1f;
  --night-border: #342c2b;

  /* Type, for brand.html (the app loads its fonts with next/font, app/layout.tsx) */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Semantic tokens, light */
  --background: var(--paper);
  --foreground: var(--ink);
  --card: #ffffff;
  --card-foreground: var(--ink);
  --popover: #ffffff;
  --popover-foreground: var(--ink);
  --primary: var(--malina-600);
  --primary-foreground: #ffffff;
  --secondary: var(--stone-100);
  --secondary-foreground: var(--ink);
  --muted: var(--stone-100);
  --muted-foreground: var(--stone-600);
  --accent: var(--malina-50);
  --accent-foreground: var(--malina-800);
  --destructive: var(--vermilion-600);
  --destructive-foreground: #ffffff;
  --border: var(--stone-200);
  --input: var(--stone-200);
  --ring: var(--malina-500);
  --success: var(--leaf-600);
  --success-foreground: #ffffff;
  --warning: var(--honey-500);
  --warning-foreground: var(--ink);
  /* Honey is too light for text on paper (2.1:1): warning text and icons take
     the 700 step. The other status colours are text colours already. */
  --warning-text: var(--honey-700);
  --info: var(--slate-600);
  --info-foreground: #ffffff;
  /* Charts: validated as a set in this order (brand.md 4.4) */
  --chart-1: #e0457a;
  --chart-2: #4f84ba;
  --chart-3: #e6a313;
  --chart-4: #4c9763;
  --chart-5: var(--stone-500);
  --sidebar: var(--stone-50);
  --sidebar-foreground: var(--ink);
  --sidebar-primary: var(--malina-600);
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: var(--malina-50);
  --sidebar-accent-foreground: var(--malina-800);
  --sidebar-border: var(--stone-200);
  --sidebar-ring: var(--malina-500);
  --radius: 0.625rem;
}

.dark {
  --background: var(--night);
  --foreground: var(--paper);
  --card: var(--night-card);
  --card-foreground: var(--paper);
  --popover: var(--night-card);
  --popover-foreground: var(--paper);
  --primary: var(--malina-400);
  --primary-foreground: var(--ink);
  --secondary: var(--night-muted);
  --secondary-foreground: var(--paper);
  --muted: var(--night-muted);
  --muted-foreground: var(--stone-400);
  --accent: var(--malina-950);
  --accent-foreground: var(--malina-200);
  --destructive: var(--vermilion-400);
  --destructive-foreground: var(--ink);
  --border: var(--night-border);
  --input: var(--night-border);
  --ring: var(--malina-400);
  --success: var(--leaf-400);
  --success-foreground: var(--ink);
  --warning: var(--honey-400);
  --warning-foreground: var(--ink);
  --warning-text: var(--honey-400);
  --info: var(--slate-400);
  --info-foreground: var(--ink);
  --chart-1: #e44d7f;
  --chart-2: #528ac3;
  --chart-3: #be871d;
  --chart-4: #378450;
  --chart-5: var(--stone-500);
  --sidebar: var(--night-sidebar);
  --sidebar-foreground: var(--paper);
  --sidebar-primary: var(--malina-400);
  --sidebar-primary-foreground: var(--ink);
  --sidebar-accent: var(--malina-950);
  --sidebar-accent-foreground: var(--malina-200);
  --sidebar-border: var(--night-border);
  --sidebar-ring: var(--malina-400);
}
