@import url('https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,400;12..36,500;12..36,600;12..36,700&family=Caveat:wght@500&family=Great+Vibes&family=Mrs+Saint+Delafield&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.98 0.003 250);
  --foreground: oklch(0.24 0.03 262);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.03 262);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.24 0.03 262);
  --primary: oklch(0.55 0.22 264);
  --primary-foreground: oklch(0.99 0.005 264);
  --secondary: oklch(0.955 0.008 255);
  --secondary-foreground: oklch(0.3 0.035 262);
  --muted: oklch(0.955 0.008 255);
  --muted-foreground: oklch(0.52 0.025 260);
  --accent: oklch(0.955 0.012 260);
  --accent-foreground: oklch(0.24 0.03 262);
  --destructive: oklch(0.58 0.22 27);
  --destructive-foreground: oklch(0.99 0.005 27);
  --border: oklch(0.925 0.01 255);
  --input: oklch(0.925 0.01 255);
  --ring: oklch(0.55 0.22 264);
  --success: oklch(0.6 0.14 155);
  --warning: oklch(0.72 0.15 75);
  --success-muted: color-mix(in srgb, var(--success) 15%, var(--card));
  --warning-muted: color-mix(in srgb, var(--warning) 20%, var(--card));
  --chart-1: oklch(0.55 0.22 264);
  --chart-2: oklch(0.62 0.16 200);
  --chart-3: oklch(0.68 0.17 162);
  --chart-4: oklch(0.72 0.15 75);
  --chart-5: oklch(0.58 0.22 27);
  --sidebar: oklch(0.24 0.05 264);
  --sidebar-foreground: oklch(0.9 0.015 260);
  --sidebar-primary: oklch(0.62 0.2 264);
  --sidebar-primary-foreground: oklch(0.99 0.005 264);
  --sidebar-accent: oklch(0.3 0.055 264);
  --sidebar-accent-foreground: oklch(0.98 0.005 260);
  --sidebar-border: oklch(0.32 0.05 264);
  --sidebar-ring: oklch(0.62 0.2 264);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.96 0.006 252);
  --surface-hover:   color-mix(in srgb, var(--foreground) 5%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 9%, var(--background));
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.955 0.007 255);
  --border-muted: oklch(0.94 0.008 255);
  --border-strong: oklch(0.84 0.018 258);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.03 262);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 14%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 8%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 5%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.55 0.22 264 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.58 0.22 27);
  --error-foreground: oklch(0.99 0.005 27);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "TikTok Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "TikTok Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", monospace;
  --font-weight-display: 600;
  --line-height-display: 1.15;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.24 0.03 262 / 0.05);
  --shadow-md: 0 4px 14px oklch(0.24 0.03 262 / 0.07);
  --shadow-lg: 0 14px 36px oklch(0.24 0.03 262 / 0.11);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.129 0.042 264.7);
  --foreground: oklch(0.95 0.01 260);
  --card: oklch(0.175 0.04 265);
  --card-foreground: oklch(0.95 0.01 260);
  --popover: oklch(0.19 0.04 265);
  --popover-foreground: oklch(0.95 0.01 260);
  --primary: oklch(0.68 0.19 264);
  --primary-foreground: oklch(0.13 0.04 264);
  --secondary: oklch(0.23 0.04 264);
  --secondary-foreground: oklch(0.95 0.01 260);
  --muted: oklch(0.23 0.04 264);
  --muted-foreground: oklch(0.7 0.025 260);
  --accent: oklch(0.24 0.045 264);
  --accent-foreground: oklch(0.97 0.01 260);
  --destructive: oklch(0.68 0.19 25);
  --destructive-foreground: oklch(0.13 0.04 264);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 14%);
  --ring: oklch(0.68 0.19 264);
  --success: oklch(0.7 0.14 155);
  --warning: oklch(0.8 0.14 78);
  --success-muted: color-mix(in srgb, var(--success) 20%, var(--card));
  --warning-muted: color-mix(in srgb, var(--warning) 25%, var(--card));
  --chart-1: oklch(0.68 0.19 264);
  --chart-2: oklch(0.72 0.14 200);
  --chart-3: oklch(0.75 0.16 162);
  --chart-4: oklch(0.8 0.14 78);
  --chart-5: oklch(0.68 0.19 25);
  --sidebar: oklch(0.11 0.035 265);
  --sidebar-foreground: oklch(0.88 0.015 260);
  --sidebar-primary: oklch(0.68 0.19 264);
  --sidebar-primary-foreground: oklch(0.13 0.04 264);
  --sidebar-accent: oklch(0.19 0.045 265);
  --sidebar-accent-foreground: oklch(0.97 0.01 260);
  --sidebar-border: oklch(1 0 0 / 8%);
  --sidebar-ring: oklch(0.68 0.19 264);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.155 0.04 265);
  --surface-elevated: oklch(0.22 0.04 265);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 8%);
  --border-strong: oklch(1 0 0 / 20%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.78 0.02 260);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.68 0.19 264 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.19 25);
  --error-foreground: oklch(0.13 0.04 264);

  /* ── shadows (deeper, so raised panels still lift off the navy) ── */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 14px 36px oklch(0 0 0 / 0.45);
}
