@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=DM+Sans:opsz,wght@9..40,400..600&display=swap");

/* License to Vibe: warm ivory paper, espresso and soft-black ink, a restrained oxblood accent.
   Cormorant Garamond titles over DM Sans instruction text. Tailored, nearly square corners. */

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.954 0.011 76.6);
  --foreground: oklch(0.223 0.008 31.2);
  --card: oklch(0.972 0.008 78);
  --card-foreground: oklch(0.223 0.008 31.2);
  --popover: oklch(0.972 0.008 78);
  --popover-foreground: oklch(0.223 0.008 31.2);
  --primary: oklch(0.39 0.092 25.8);
  --primary-foreground: oklch(0.965 0.009 78);
  --secondary: oklch(0.913 0.017 76.1);
  --secondary-foreground: oklch(0.307 0.023 40.6);
  --muted: oklch(0.925 0.014 76);
  --muted-foreground: oklch(0.46 0.02 48);
  --accent: oklch(0.928 0.014 76);
  --accent-foreground: oklch(0.307 0.023 40.6);
  --destructive: oklch(0.45 0.13 25);
  --destructive-foreground: oklch(0.965 0.009 78);
  --border: oklch(0.84 0.019 72);
  --input: oklch(0.8 0.022 72);
  --ring: oklch(0.39 0.092 25.8);
  --success: oklch(0.48 0.07 120);
  --warning: oklch(0.6 0.1 62);
  --chart-1: oklch(0.39 0.092 25.8);
  --chart-2: oklch(0.307 0.023 40.6);
  --chart-3: oklch(0.742 0.028 71.1);
  --chart-4: oklch(0.6 0.1 62);
  --chart-5: oklch(0.48 0.07 120);
  --sidebar: oklch(0.913 0.017 76.1);
  --sidebar-foreground: oklch(0.223 0.008 31.2);
  --sidebar-primary: oklch(0.39 0.092 25.8);
  --sidebar-primary-foreground: oklch(0.965 0.009 78);
  --sidebar-accent: oklch(0.89 0.018 75);
  --sidebar-accent-foreground: oklch(0.223 0.008 31.2);
  --sidebar-border: oklch(0.84 0.019 72);
  --sidebar-ring: oklch(0.39 0.092 25.8);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.913 0.017 76.1);
  --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(0.985 0.005 80);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.9 0.014 76);
  --border-muted: oklch(0.87 0.017 74);
  --border-strong: oklch(0.742 0.028 71.1);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.307 0.023 40.6);

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

  /* ── highlight: antique gold, a fill only (never text) ── */
  --highlight: oklch(0.74 0.075 82);
  --highlight-foreground: oklch(0.223 0.008 31.2);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.39 0.092 25.8 / 0.45);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.45 0.13 25);
  --error-foreground: oklch(0.965 0.009 78);

  /* ── radius: tailored, nearly square ─────────────────────────── */
  --radius: 0.125rem;
  --radius-none: 0rem;
  --radius-sm: 0.0625rem;
  --radius-lg: 0.1875rem;
  --radius-xl: 0.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, ui-serif, serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.1;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows: barely there ────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.22 0.01 31 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.22 0.01 31 / 0.07);
  --shadow-lg: 0 18px 44px oklch(0.22 0.01 31 / 0.1);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --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.2 0.008 31);
  --foreground: oklch(0.94 0.011 76.6);
  --card: oklch(0.24 0.01 35);
  --card-foreground: oklch(0.94 0.011 76.6);
  --popover: oklch(0.24 0.01 35);
  --popover-foreground: oklch(0.94 0.011 76.6);
  --primary: oklch(0.7 0.1 25);
  --primary-foreground: oklch(0.2 0.008 31);
  --secondary: oklch(0.28 0.014 38);
  --secondary-foreground: oklch(0.94 0.011 76.6);
  --muted: oklch(0.27 0.012 38);
  --muted-foreground: oklch(0.77 0.025 71);
  --accent: oklch(0.28 0.014 38);
  --accent-foreground: oklch(0.94 0.011 76.6);
  --destructive: oklch(0.68 0.13 25);
  --destructive-foreground: oklch(0.2 0.008 31);
  --border: oklch(0.94 0.011 76.6 / 14%);
  --input: oklch(0.94 0.011 76.6 / 20%);
  --ring: oklch(0.7 0.1 25);
  --success: oklch(0.72 0.08 120);
  --warning: oklch(0.76 0.1 65);
  --chart-1: oklch(0.7 0.1 25);
  --chart-2: oklch(0.94 0.011 76.6);
  --chart-3: oklch(0.742 0.028 71.1);
  --chart-4: oklch(0.76 0.1 65);
  --chart-5: oklch(0.72 0.08 120);
  --sidebar: oklch(0.22 0.009 33);
  --sidebar-foreground: oklch(0.94 0.011 76.6);
  --sidebar-primary: oklch(0.7 0.1 25);
  --sidebar-primary-foreground: oklch(0.2 0.008 31);
  --sidebar-accent: oklch(0.28 0.014 38);
  --sidebar-accent-foreground: oklch(0.94 0.011 76.6);
  --sidebar-border: oklch(0.94 0.011 76.6 / 14%);
  --sidebar-ring: oklch(0.7 0.1 25);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.22 0.009 33);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 11%, var(--background));
  --surface-elevated: oklch(0.27 0.012 38);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.94 0.011 76.6 / 7%);
  --border-muted: oklch(0.94 0.011 76.6 / 10%);
  --border-strong: oklch(0.94 0.011 76.6 / 26%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.86 0.016 74);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 20%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 11%, var(--background));
  --primary-tint: color-mix(in srgb, var(--primary) 7%, var(--background));

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.74 0.075 82);
  --highlight-foreground: oklch(0.2 0.008 31);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.7 0.1 25 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.7 0.13 25);
  --error-foreground: oklch(0.2 0.008 31);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.125rem;
  --radius-none: 0rem;
  --radius-sm: 0.0625rem;
  --radius-lg: 0.1875rem;
  --radius-xl: 0.25rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.1;
  --tracking-display: -0.015em;
  --font-weight-body: 450;
  --line-height-body: 1.68;
  --tracking-body: 0.012em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.1 0.01 31 / 0.4);
  --shadow-md: 0 4px 14px oklch(0.1 0.01 31 / 0.45);
  --shadow-lg: 0 18px 44px oklch(0.1 0.01 31 / 0.55);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --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;
}
