@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  /* -- shadcn base tokens ----------------------------------------- */
  --background: oklch(0.994 0.003 70);
  --foreground: oklch(0.19 0.012 265);
  --card: oklch(1 0.001 70);
  --card-foreground: oklch(0.19 0.012 265);
  --popover: oklch(1 0.001 70);
  --popover-foreground: oklch(0.19 0.012 265);
  --primary: oklch(0.56 0.20 344);
  --primary-foreground: oklch(0.99 0.006 340);
  --secondary: oklch(0.965 0.006 65);
  --secondary-foreground: oklch(0.26 0.014 265);
  --muted: oklch(0.965 0.006 65);
  --muted-foreground: oklch(0.53 0.014 265);
  --accent: oklch(0.955 0.012 60);
  --accent-foreground: oklch(0.26 0.014 265);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.915 0.006 70);
  --input: oklch(0.915 0.006 70);
  --ring: oklch(0.56 0.20 344);
  --success: oklch(0.6 0.13 155);
  --warning: oklch(0.72 0.16 65);
  --chart-1: oklch(0.56 0.20 344);
  --chart-2: oklch(0.66 0.16 302);
  --chart-3: oklch(0.68 0.17 358);
  --chart-4: oklch(0.55 0.09 230);
  --chart-5: oklch(0.62 0.10 190);
  --sidebar: oklch(0.985 0.004 70);
  --sidebar-foreground: oklch(0.19 0.012 265);
  --sidebar-primary: oklch(0.56 0.20 344);
  --sidebar-primary-foreground: oklch(0.99 0.006 340);
  --sidebar-accent: oklch(0.955 0.012 60);
  --sidebar-accent-foreground: oklch(0.26 0.014 265);
  --sidebar-border: oklch(0.915 0.006 70);
  --sidebar-ring: oklch(0.56 0.20 344);

  /* -- surface hierarchy ------------------------------------------ */
  --background-secondary: oklch(0.972 0.005 65);
  --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.001 70);

  /* -- border hierarchy ------------------------------------------- */
  --border-subtle: oklch(0.95 0.006 70);
  --border-muted: oklch(0.93 0.006 70);
  --border-strong: oklch(0.84 0.008 70);

  /* -- text hierarchy --------------------------------------------- */
  --foreground-secondary: oklch(0.42 0.014 265);
  --heading: var(--foreground);

  /* -- primary depth (hover/tint states for brand colour) ------- */
  --primary-hover: color-mix(in srgb, var(--primary) 90%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 15%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 8%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 6%,  var(--background));

  /* -- brand gradient (logo dot — pink → magenta → violet) ------- */
  --brand-gradient: linear-gradient(135deg, oklch(0.66 0.17 358) 0%, oklch(0.59 0.19 342) 50%, oklch(0.70 0.16 302) 100%);

  /* -- focus ring (alpha-blended, for soft ring style) ---------- */
  --focus-ring: oklch(0.708 0 0 / 0.4);

  /* -- error (form validation - distinct from destructive) ------- */
  --error: oklch(0.577 0.245 27.325);
  --error-foreground: oklch(0.985 0 0);

  /* -- radius ----------------------------------------------------- */
  --radius: 0.25rem;
  --radius-none: 0rem;
  --radius-sm: 0.125rem;
  --radius-lg: 0.375rem;
  --radius-xl: 0.5rem;
  --radius-full: 9999px;

  /* -- typography ------------------------------------------------- */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.05;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.5;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* -- shadows ---------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* -- motion ----------------------------------------------------- */
  --duration-fast: 100ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --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.16 0.012 265);
  --foreground: oklch(0.96 0.004 70);
  --card: oklch(0.205 0.014 265);
  --card-foreground: oklch(0.96 0.004 70);
  --popover: oklch(0.205 0.014 265);
  --popover-foreground: oklch(0.96 0.004 70);
  --primary: oklch(0.66 0.19 344);
  --primary-foreground: oklch(0.16 0.012 300);
  --secondary: oklch(0.26 0.014 265);
  --secondary-foreground: oklch(0.96 0.004 70);
  --muted: oklch(0.26 0.014 265);
  --muted-foreground: oklch(0.7 0.012 265);
  --accent: oklch(0.28 0.016 265);
  --accent-foreground: oklch(0.96 0.004 70);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 12%);
  --ring: oklch(0.66 0.19 344);
  --success: oklch(0.72 0.14 155);
  --warning: oklch(0.8 0.15 70);
  --chart-1: oklch(0.66 0.19 344);
  --chart-2: oklch(0.72 0.15 302);
  --chart-3: oklch(0.74 0.16 358);
  --chart-4: oklch(0.62 0.11 230);
  --chart-5: oklch(0.68 0.11 190);
  --sidebar: oklch(0.14 0.012 265);
  --sidebar-foreground: oklch(0.92 0.004 70);
  --sidebar-primary: oklch(0.66 0.19 344);
  --sidebar-primary-foreground: oklch(0.16 0.012 300);
  --sidebar-accent: oklch(0.24 0.014 265);
  --sidebar-accent-foreground: oklch(0.96 0.004 70);
  --sidebar-border: oklch(1 0 0 / 8%);
  --sidebar-ring: oklch(0.66 0.19 344);

  /* -- surface hierarchy ------------------------------------------ */
  --background-secondary: oklch(0.18 0 0);
  --surface-elevated: oklch(0.26 0 0);

  /* -- 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.72 0 0);
  --heading: var(--foreground);

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

  /* -- focus ring ------------------------------------------------- */
  --focus-ring: oklch(0.556 0 0 / 0.5);

  /* -- error ------------------------------------------------------ */
  --error: oklch(0.704 0.191 22.216);
  --error-foreground: oklch(0.985 0 0);
}

/* -- native-app page transitions -------------------------------------
   Only the <main> content region (view-transition-name: page) animates
   between routes; the sidebar/chrome (root) is held still so navigation
   feels like swapping a pane, not reloading a page. */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(page) {
    animation-duration: 240ms;
  }
  ::view-transition-old(page) {
    animation: vt-page-out 120ms var(--ease-accelerate) both;
  }
  ::view-transition-new(page) {
    animation: vt-page-in 240ms var(--ease-decelerate) both;
  }
}

@keyframes vt-page-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes vt-page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Keep the surrounding chrome (sidebar, top bar) from cross-fading — it is
   identical across the two snapshots, so an overlap reads as static. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
