/* graphite-terminal - shadcn/ui theme (Tailwind v4).
   Drop into your global CSS after `@import "tailwindcss";`.
   Scoped to [data-theme] / [data-identity] so multiple identities can be
   imported side by side without cascade bleed; set either on <html> to
   activate. Values are the identity spec from identity.json. */

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-ok: var(--ok);
  --color-ok-soft: var(--ok-soft);
  --color-ok-foreground: var(--ok-foreground);
  --color-warn: var(--warn);
  --color-warn-soft: var(--warn-soft);
  --color-warn-foreground: var(--warn-foreground);
  --color-danger-soft: var(--danger-soft);
  --color-danger-soft-foreground: var(--danger-soft-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --font-display: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
}

[data-theme="graphite-terminal"],
[data-identity="graphite-terminal"] {
  --background: oklch(14.5% 0.008 255);
  --foreground: oklch(92% 0.005 255);
  --card: oklch(17.5% 0.009 255);
  --card-foreground: oklch(92% 0.005 255);
  --popover: oklch(18.5% 0.009 255);
  --popover-foreground: oklch(92% 0.005 255);
  --primary: oklch(82% 0.12 118);
  --primary-foreground: oklch(15% 0.02 118);
  --secondary: oklch(82% 0.12 118 / 0.14);
  --secondary-foreground: oklch(87% 0.006 255);
  --muted: oklch(21.5% 0.009 255);
  --muted-foreground: oklch(68% 0.008 255);
  --accent: oklch(82% 0.12 118 / 0.14);
  --accent-foreground: oklch(88% 0.01 130);
  --destructive: oklch(52% 0.17 25);
  --destructive-foreground: oklch(99% 0.005 25);
  --ok: oklch(76% 0.13 155);
  --ok-soft: oklch(76% 0.13 155 / 0.14);
  --ok-foreground: oklch(83% 0.12 155);
  --warn: oklch(80% 0.13 85);
  --warn-soft: oklch(80% 0.13 85 / 0.14);
  --warn-foreground: oklch(85% 0.11 85);
  /* Soft danger chip pair: the solid --destructive red cannot carry text on
     dark surfaces (2.6:1); this lightened foreground clears 4.5:1 on its tint. */
  --danger-soft: oklch(52% 0.17 25 / 0.14);
  --danger-soft-foreground: oklch(72% 0.15 25);
  --border: oklch(88% 0.006 255 / 0.22);
  --input: oklch(88% 0.006 255 / 0.22);
  --ring: oklch(82% 0.12 118);
  --radius: 0.5rem;
  --font-display: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow-identity: 0 1px 2px oklch(0% 0 0 / 0.35);
  --identity-gradient-to: oklch(22% 0.06 155);
  color-scheme: dark;
}

/* Identity signatures: mono display on headings, tabular mono data, flat fast motion. */
[data-theme="graphite-terminal"] h1, [data-identity="graphite-terminal"] h1,
[data-theme="graphite-terminal"] h2, [data-identity="graphite-terminal"] h2,
[data-theme="graphite-terminal"] h3, [data-identity="graphite-terminal"] h3,
[data-theme="graphite-terminal"] .font-display, [data-identity="graphite-terminal"] .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
[data-theme="graphite-terminal"] h1, [data-identity="graphite-terminal"] h1 { letter-spacing: -0.02em; }
[data-theme="graphite-terminal"] .tabular, [data-identity="graphite-terminal"] .tabular {
  font-variant-numeric: tabular-nums;
}
[data-theme="graphite-terminal"] body, [data-identity="graphite-terminal"] body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="graphite-terminal"] *, [data-identity="graphite-terminal"] *,
  [data-theme="graphite-terminal"] *::before, [data-identity="graphite-terminal"] *::before,
  [data-theme="graphite-terminal"] *::after, [data-identity="graphite-terminal"] *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
