/* Candy: Bright and round: big corners, a rounded face, and motion that bounces a little. */

[data-theme="candy"] {
  --background: oklch(0.985 0.012 330);
  --foreground: oklch(0.24 0.06 300);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.06 300);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.24 0.06 300);
  --primary: oklch(0.52 0.24 300);
  --primary-foreground: oklch(0.99 0.01 300);
  --secondary: oklch(0.93 0.05 200);
  --secondary-foreground: oklch(0.3 0.08 220);
  --muted: oklch(0.95 0.03 320);
  --muted-foreground: oklch(0.45 0.07 310);
  --accent: oklch(0.93 0.06 340);
  --accent-foreground: oklch(0.24 0.06 300);
  --destructive: oklch(0.54 0.22 15);
  --border: oklch(0.88 0.05 320);
  --input: oklch(0.8 0.07 320);
  --ring: oklch(0.65 0.2 300);
  --chart-1: oklch(0.68 0.22 350);
  --chart-2: oklch(0.7 0.13 190);
  --chart-3: oklch(0.82 0.16 95);
  --radius: 1.1rem;
  --duration-fast: 140ms;
  --duration-normal: 240ms;
  --duration-slow: 420ms;
  --ease-out: cubic-bezier(0.34, 1.56, 0.64, 1);
  --heading-weight: 800;
  --font-body: ui-rounded, "SF Pro Rounded", Nunito, Quicksand, "Varela Round", system-ui, sans-serif;
  --font-heading: ui-rounded, "SF Pro Rounded", Nunito, Quicksand, "Varela Round", system-ui, sans-serif;
  color-scheme: light;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

.dark [data-theme="candy"], [data-theme="candy"].dark {
  --background: oklch(0.21 0.05 300);
  --foreground: oklch(0.96 0.02 320);
  --card: oklch(0.26 0.06 300);
  --card-foreground: oklch(0.96 0.02 320);
  --popover: oklch(0.26 0.06 300);
  --popover-foreground: oklch(0.96 0.02 320);
  --primary: oklch(0.8 0.15 320);
  --primary-foreground: oklch(0.22 0.06 300);
  --secondary: oklch(0.32 0.06 220);
  --secondary-foreground: oklch(0.93 0.04 200);
  --muted: oklch(0.3 0.05 300);
  --muted-foreground: oklch(0.8 0.05 310);
  --accent: oklch(0.33 0.07 330);
  --accent-foreground: oklch(0.96 0.02 320);
  --destructive: oklch(0.7 0.19 15);
  --border: oklch(0.38 0.07 300);
  --input: oklch(0.46 0.08 300);
  --ring: oklch(0.8 0.15 320);
  --chart-1: oklch(0.75 0.2 350);
  --chart-2: oklch(0.78 0.12 190);
  --chart-3: oklch(0.86 0.15 95);
  color-scheme: dark;
}

[data-theme="candy"] :is(h1, h2, h3, h4) {
  font-family: var(--font-heading);
  font-weight: 800;
}

/* Midnight: Dark-first and calm: deep navy, cool cyan, an aurora behind, long soft easing. */

[data-theme="midnight"] {
  --background: oklch(0.17 0.03 265);
  --foreground: oklch(0.95 0.01 260);
  --card: oklch(0.22 0.04 265);
  --card-foreground: oklch(0.95 0.01 260);
  --popover: oklch(0.22 0.04 265);
  --popover-foreground: oklch(0.95 0.01 260);
  --primary: oklch(0.8 0.12 210);
  --primary-foreground: oklch(0.18 0.03 265);
  --secondary: oklch(0.28 0.05 265);
  --secondary-foreground: oklch(0.95 0.01 260);
  --muted: oklch(0.27 0.04 265);
  --muted-foreground: oklch(0.76 0.03 260);
  --accent: oklch(0.3 0.06 280);
  --accent-foreground: oklch(0.95 0.01 260);
  --destructive: oklch(0.7 0.18 20);
  --border: oklch(0.34 0.05 265);
  --input: oklch(0.42 0.06 265);
  --ring: oklch(0.8 0.12 210);
  --chart-1: oklch(0.7 0.17 300);
  --chart-2: oklch(0.8 0.12 210);
  --chart-3: oklch(0.76 0.15 160);
  --radius: 0.8rem;
  --duration-fast: 160ms;
  --duration-normal: 260ms;
  --duration-slow: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --heading-weight: 600;
  --font-body: "Avenir Next", Avenir, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

.light [data-theme="midnight"], [data-theme="midnight"].light {
  --background: oklch(0.97 0.01 250);
  --foreground: oklch(0.2 0.04 265);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.04 265);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.04 265);
  --primary: oklch(0.46 0.13 230);
  --primary-foreground: oklch(0.99 0.005 250);
  --secondary: oklch(0.93 0.02 250);
  --secondary-foreground: oklch(0.2 0.04 265);
  --muted: oklch(0.93 0.02 250);
  --muted-foreground: oklch(0.44 0.04 260);
  --accent: oklch(0.92 0.03 270);
  --accent-foreground: oklch(0.2 0.04 265);
  --destructive: oklch(0.52 0.2 25);
  --border: oklch(0.87 0.02 255);
  --input: oklch(0.78 0.03 255);
  --ring: oklch(0.46 0.13 230);
  --chart-1: oklch(0.55 0.18 300);
  --chart-2: oklch(0.55 0.12 220);
  --chart-3: oklch(0.6 0.14 160);
  color-scheme: light;
}

[data-theme="midnight"] :is(h1, h2, h3, h4) {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Paper: Warm and editorial: a book page, a serif, unhurried motion. */

[data-theme="paper"] {
  --background: oklch(0.975 0.012 85);
  --foreground: oklch(0.25 0.03 55);
  --card: oklch(0.99 0.008 85);
  --card-foreground: oklch(0.25 0.03 55);
  --popover: oklch(0.99 0.008 85);
  --popover-foreground: oklch(0.25 0.03 55);
  --primary: oklch(0.5 0.15 40);
  --primary-foreground: oklch(0.985 0.01 85);
  --secondary: oklch(0.93 0.02 80);
  --secondary-foreground: oklch(0.25 0.03 55);
  --muted: oklch(0.93 0.02 80);
  --muted-foreground: oklch(0.45 0.03 60);
  --accent: oklch(0.92 0.03 75);
  --accent-foreground: oklch(0.25 0.03 55);
  --destructive: oklch(0.5 0.19 27);
  --border: oklch(0.86 0.025 80);
  --input: oklch(0.78 0.03 80);
  --ring: oklch(0.6 0.12 45);
  --chart-1: oklch(0.55 0.15 40);
  --chart-2: oklch(0.55 0.08 150);
  --chart-3: oklch(0.62 0.1 80);
  --radius: 0.35rem;
  --duration-fast: 180ms;
  --duration-normal: 260ms;
  --duration-slow: 520ms;
  --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
  --heading-weight: 600;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

.dark [data-theme="paper"], [data-theme="paper"].dark {
  --background: oklch(0.2 0.015 60);
  --foreground: oklch(0.93 0.02 85);
  --card: oklch(0.24 0.018 60);
  --card-foreground: oklch(0.93 0.02 85);
  --popover: oklch(0.24 0.018 60);
  --popover-foreground: oklch(0.93 0.02 85);
  --primary: oklch(0.74 0.13 50);
  --primary-foreground: oklch(0.2 0.02 60);
  --secondary: oklch(0.3 0.02 60);
  --secondary-foreground: oklch(0.93 0.02 85);
  --muted: oklch(0.3 0.02 60);
  --muted-foreground: oklch(0.76 0.03 80);
  --accent: oklch(0.32 0.025 60);
  --accent-foreground: oklch(0.93 0.02 85);
  --destructive: oklch(0.68 0.18 25);
  --border: oklch(0.35 0.02 60);
  --input: oklch(0.42 0.02 60);
  --ring: oklch(0.65 0.1 50);
  --chart-1: oklch(0.74 0.13 50);
  --chart-2: oklch(0.7 0.08 150);
  --chart-3: oklch(0.78 0.1 85);
  color-scheme: dark;
}

[data-theme="paper"] :is(h1, h2, h3, h4) {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Terminal: Dark-first and monospaced: square corners, phosphor green, instant motion. */

[data-theme="terminal"] {
  --background: oklch(0.17 0.01 160);
  --foreground: oklch(0.9 0.08 150);
  --card: oklch(0.2 0.015 160);
  --card-foreground: oklch(0.9 0.08 150);
  --popover: oklch(0.2 0.015 160);
  --popover-foreground: oklch(0.9 0.08 150);
  --primary: oklch(0.82 0.18 150);
  --primary-foreground: oklch(0.17 0.01 160);
  --secondary: oklch(0.26 0.02 160);
  --secondary-foreground: oklch(0.9 0.08 150);
  --muted: oklch(0.26 0.02 160);
  --muted-foreground: oklch(0.74 0.06 150);
  --accent: oklch(0.28 0.03 160);
  --accent-foreground: oklch(0.9 0.08 150);
  --destructive: oklch(0.7 0.19 25);
  --border: oklch(0.36 0.04 155);
  --input: oklch(0.42 0.05 155);
  --ring: oklch(0.82 0.18 150);
  --chart-1: oklch(0.82 0.18 150);
  --chart-2: oklch(0.82 0.13 85);
  --chart-3: oklch(0.75 0.12 220);
  --radius: 0px;
  --duration-fast: 60ms;
  --duration-normal: 100ms;
  --duration-slow: 180ms;
  --ease-out: cubic-bezier(0.3, 0, 0.2, 1);
  --heading-weight: 700;
  --font-body: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --font-heading: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

.light [data-theme="terminal"], [data-theme="terminal"].light {
  --background: oklch(0.97 0.01 150);
  --foreground: oklch(0.22 0.04 155);
  --card: oklch(0.99 0.005 150);
  --card-foreground: oklch(0.22 0.04 155);
  --popover: oklch(0.99 0.005 150);
  --popover-foreground: oklch(0.22 0.04 155);
  --primary: oklch(0.45 0.13 150);
  --primary-foreground: oklch(0.98 0.01 150);
  --secondary: oklch(0.92 0.02 150);
  --secondary-foreground: oklch(0.22 0.04 155);
  --muted: oklch(0.92 0.02 150);
  --muted-foreground: oklch(0.42 0.05 155);
  --accent: oklch(0.9 0.04 150);
  --accent-foreground: oklch(0.22 0.04 155);
  --destructive: oklch(0.5 0.2 27);
  --border: oklch(0.82 0.04 150);
  --input: oklch(0.72 0.05 150);
  --ring: oklch(0.45 0.13 150);
  --chart-1: oklch(0.5 0.14 150);
  --chart-2: oklch(0.6 0.13 85);
  --chart-3: oklch(0.5 0.12 220);
  color-scheme: light;
}

[data-theme="terminal"] :is(h1, h2, h3, h4) {
  font-family: var(--font-heading);
  font-weight: 700;
}

[data-theme="terminal"] :is(code, kbd, pre, samp) {
  font-family: var(--font-mono);
}

/* Zinc: shadcn/ui's neutral default. */

[data-theme="zinc"] {
  --background: oklch(1 0 0);
  --foreground: oklch(0.141 0.005 285.823);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.141 0.005 285.823);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.141 0.005 285.823);
  --primary: oklch(0.21 0.006 285.885);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.967 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --accent: oklch(0.967 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.885);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --ring: oklch(0.705 0.015 286.067);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --radius: 0.625rem;
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
  background-color: var(--background);
  color: var(--foreground);
}

.dark [data-theme="zinc"], [data-theme="zinc"].dark {
  --background: oklch(0.141 0.005 285.823);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.21 0.006 285.885);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.21 0.006 285.885);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.92 0.004 286.32);
  --primary-foreground: oklch(0.21 0.006 285.885);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.274 0.006 286.033);
  --muted-foreground: oklch(0.705 0.015 286.067);
  --accent: oklch(0.274 0.006 286.033);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.552 0.016 285.938);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  color-scheme: dark;
}
