/* Hallmark design tokens — AMP Backend, derived from the MESH reference system. */
:root,
[data-theme="light"] {
  --color-paper: oklch(98% 0.004 345);
  --color-paper-2: oklch(96% 0.004 345);
  --color-paper-3: oklch(93% 0.006 345);
  --color-ink: oklch(22% 0.008 345);
  --color-ink-2: oklch(34% 0.010 345);
  --color-rule: oklch(80% 0.008 345);
  --color-rule-2: oklch(68% 0.010 345);
  --color-muted: oklch(42% 0.012 345);
  --color-neutral: oklch(52% 0.010 345);
  --color-accent: oklch(38% 0.155 355);
  --color-accent-hover: oklch(31% 0.130 355);
  --color-accent-soft: oklch(93% 0.035 355);
  --color-accent-ink: oklch(98% 0.004 345);
  --color-focus: oklch(55% 0.205 355);
  --color-success: oklch(58% 0.170 145);
  --color-success-soft: oklch(31% 0.055 145);
  --color-warning: oklch(78% 0.160 85);
  --color-warning-soft: oklch(31% 0.055 85);
  --color-danger: oklch(55% 0.205 25);
  --color-danger-soft: oklch(30% 0.060 25);
  --color-info: oklch(61% 0.145 245);

  --background: 98% 0.004 345;
  --foreground: 22% 0.008 345;
  --card: 100% 0.003 345;
  --card-foreground: 22% 0.008 345;
  --popover: 100% 0.003 345;
  --popover-foreground: 22% 0.008 345;
  --primary: 22% 0.008 345;
  --primary-foreground: 98% 0.004 345;
  --secondary: 96% 0.004 345;
  --secondary-foreground: 22% 0.008 345;
  --muted: 93% 0.006 345;
  --muted-foreground: 42% 0.012 345;
  --accent: 93% 0.006 345;
  --accent-foreground: 22% 0.008 345;
  --destructive: 55% 0.205 25;
  --destructive-foreground: 98% 0.004 345;
  --border: 80% 0.008 345;
  --input: 93% 0.006 345;
  --ring: 55% 0.205 355;
  --sidebar-bg: 96% 0.005 345;
}

[data-theme="dark"] {
  --color-paper: oklch(18% 0.004 345);
  --color-paper-2: oklch(21% 0.005 345);
  --color-paper-3: oklch(25% 0.006 345);
  --color-ink: oklch(93% 0.004 345);
  --color-ink-2: oklch(78% 0.008 345);
  --color-rule: oklch(34% 0.007 345);
  --color-rule-2: oklch(43% 0.009 345);
  --color-muted: oklch(66% 0.012 345);
  --color-neutral: oklch(57% 0.010 345);
  --color-accent: oklch(66% 0.195 355);
  --color-accent-hover: oklch(73% 0.170 355);
  --color-accent-soft: oklch(28% 0.060 355);
  --color-accent-ink: oklch(18% 0.004 345);
  --color-focus: oklch(76% 0.170 355);
  --color-success: oklch(75% 0.170 145);
  --color-success-soft: oklch(29% 0.050 145);
  --color-warning: oklch(86% 0.170 95);
  --color-warning-soft: oklch(30% 0.055 95);
  --color-danger: oklch(70% 0.185 25);
  --color-danger-soft: oklch(29% 0.060 25);
  --color-info: oklch(72% 0.135 245);

  --background: 18% 0.004 345;
  --foreground: 93% 0.004 345;
  --card: 23% 0.005 345;
  --card-foreground: 93% 0.004 345;
  --popover: 23% 0.005 345;
  --popover-foreground: 93% 0.004 345;
  --primary: 93% 0.004 345;
  --primary-foreground: 18% 0.004 345;
  --secondary: 27% 0.006 345;
  --secondary-foreground: 93% 0.004 345;
  --muted: 27% 0.006 345;
  --muted-foreground: 66% 0.012 345;
  --accent: 31% 0.008 345;
  --accent-foreground: 93% 0.004 345;
  --destructive: 70% 0.185 25;
  --destructive-foreground: 18% 0.004 345;
  --border: 34% 0.007 345;
  --input: 31% 0.008 345;
  --ring: 76% 0.170 355;
  --sidebar-bg: 20% 0.004 345;
}

:root {
  --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-display: clamp(2rem, 4vw, 3.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 180ms;
  --dur-long: 300ms;

  --rule-hair: 1px;
  --rule-fine: 2px;
  --radius-card: 0.125rem;
  --radius-input: 0.125rem;
  --radius-pill: 999px;
  --radius: var(--radius-card);
  --shadow-card: none;
  --shadow-popover: 0 12px 28px oklch(10% 0.004 345 / 0.28);

  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}
