/* Nexus ReGen — shadcn/ui theme (oklch).
   Drop into your shadcn project's globals.css, replacing the default :root.
   Values derive from the canonical brand tokens at brand.nexusregen.com. */

:root {
  --radius: 0.5rem;

  /* Surfaces */
  --background: oklch(1 0 0);
  --foreground: oklch(0.2099 0.0341 263.44);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2099 0.0341 263.44);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2099 0.0341 263.44);

  /* Primary — Penn Blue 600 */
  --primary: oklch(0.2248 0.0822 274.68);
  --primary-foreground: oklch(0.9913 0.0013 286.38);

  /* Secondary / muted — neutral-100 / neutral-600 */
  --secondary: oklch(0.9665 0.0045 258.32);
  --secondary-foreground: oklch(0.2099 0.0341 263.44);
  --muted: oklch(0.9665 0.0045 258.32);
  --muted-foreground: oklch(0.4422 0.0355 257.79);

  /* Accent surface — soft accent-50 wash with brand-700 ink */
  --accent: oklch(0.9687 0.0815 103.3);
  --accent-foreground: oklch(0.1975 0.0696 275.59);

  /* Destructive — Signal Red */
  --destructive: oklch(0.6474 0.239 30.2);

  /* Borders / inputs / ring */
  --border: oklch(0.9427 0.0058 264.53);
  --input: oklch(0.9427 0.0058 264.53);
  --ring: oklch(0.9232 0.1854 105.86);

  /* Chart palette — 5 brand-aligned hues */
  --chart-1: oklch(0.2248 0.0822 274.68);
  --chart-2: oklch(0.9232 0.1854 105.86);
  --chart-3: oklch(0.6632 0.1802 250.61);
  --chart-4: oklch(0.6731 0.1596 155.59);
  --chart-5: oklch(0.7469 0.1701 62.11);

  /* Sidebar — Penn Blue chrome with paper text */
  --sidebar: oklch(0.2248 0.0822 274.68);
  --sidebar-foreground: oklch(0.905 0.0137 277.05);
  --sidebar-primary: oklch(0.9232 0.1854 105.86);
  --sidebar-primary-foreground: oklch(0.1975 0.0696 275.59);
  --sidebar-accent: oklch(0.1975 0.0696 275.59);
  --sidebar-accent-foreground: oklch(1 0 0);
  --sidebar-border: oklch(0.1975 0.0696 275.59);
  --sidebar-ring: oklch(0.9232 0.1854 105.86);
}

.dark {
  /* Surfaces */
  --background: oklch(0.1128 0.0269 274.45);
  --foreground: oklch(0.9624 0.0094 279.69);
  --card: oklch(0.1463 0.043 274.53);
  --card-foreground: oklch(0.9624 0.0094 279.69);
  --popover: oklch(0.1463 0.043 274.53);
  --popover-foreground: oklch(0.9624 0.0094 279.69);

  /* Primary — step up to brand-200 against dark canvas */
  --primary: oklch(0.7865 0.0411 280.74);
  --primary-foreground: oklch(0.1975 0.0696 275.59);

  /* Secondary / muted — brand-800 with brand-200 muted-fg */
  --secondary: oklch(0.1727 0.0565 275.69);
  --secondary-foreground: oklch(0.9624 0.0094 279.69);
  --muted: oklch(0.1727 0.0565 275.69);
  --muted-foreground: oklch(0.7865 0.0411 280.74);

  /* Accent — real aureolin on dark canvas */
  --accent: oklch(0.9232 0.1854 105.86);
  --accent-foreground: oklch(0.1463 0.043 274.53);

  --destructive: oklch(0.6474 0.239 30.2);

  /* Borders / inputs — brand-700 */
  --border: oklch(0.1975 0.0696 275.59);
  --input: oklch(0.1975 0.0696 275.59);
  --ring: oklch(0.9232 0.1854 105.86);

  /* Chart palette — lifted for dark legibility */
  --chart-1: oklch(0.7865 0.0411 280.74);
  --chart-2: oklch(0.9232 0.1854 105.86);
  --chart-3: oklch(0.6632 0.1802 250.61);
  --chart-4: oklch(0.6731 0.1596 155.59);
  --chart-5: oklch(0.7469 0.1701 62.11);

  /* Sidebar — lifted off canvas to brand-900 */
  --sidebar: oklch(0.1463 0.043 274.53);
  --sidebar-foreground: oklch(0.905 0.0137 277.05);
  --sidebar-primary: oklch(0.9232 0.1854 105.86);
  --sidebar-primary-foreground: oklch(0.1463 0.043 274.53);
  --sidebar-accent: oklch(0.1727 0.0565 275.69);
  --sidebar-accent-foreground: oklch(0.9624 0.0094 279.69);
  --sidebar-border: oklch(0.1975 0.0696 275.59);
  --sidebar-ring: oklch(0.9232 0.1854 105.86);
}
