@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&family=Yellowtail&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.948 0.018 80);
  --foreground: oklch(0.38 0.045 200);
  --card: oklch(0.977 0.01 85);
  --card-foreground: oklch(0.38 0.045 200);
  --popover: oklch(0.977 0.01 85);
  --popover-foreground: oklch(0.38 0.045 200);
  --primary: oklch(0.53 0.155 27);
  --primary-foreground: oklch(0.985 0.008 85);
  --secondary: oklch(0.925 0.023 80);
  --secondary-foreground: oklch(0.38 0.045 200);
  --muted: oklch(0.925 0.023 80);
  --muted-foreground: oklch(0.46 0.035 200);
  --accent: oklch(0.925 0.023 80);
  --accent-foreground: oklch(0.38 0.045 200);
  --destructive: oklch(0.5 0.17 27);
  --destructive-foreground: oklch(0.985 0.008 85);
  --border: oklch(0.877 0.027 80);
  --input: oklch(0.82 0.03 80);
  --ring: oklch(0.51 0.065 198);
  --success: oklch(0.47 0.075 185);
  --warning: oklch(0.52 0.1 70);
  --chart-1: oklch(0.53 0.155 27);
  --chart-2: oklch(0.51 0.065 198);
  --chart-3: oklch(0.7 0.11 75);
  --chart-4: oklch(0.38 0.045 200);
  --chart-5: oklch(0.68 0.09 27);
  --sidebar: oklch(0.977 0.01 85);
  --sidebar-foreground: oklch(0.38 0.045 200);
  --sidebar-primary: oklch(0.53 0.155 27);
  --sidebar-primary-foreground: oklch(0.985 0.008 85);
  --sidebar-accent: oklch(0.925 0.023 80);
  --sidebar-accent-foreground: oklch(0.38 0.045 200);
  --sidebar-border: oklch(0.877 0.027 80);
  --sidebar-ring: oklch(0.51 0.065 198);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.925 0.023 80);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(0.985 0.008 85);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.915 0.022 80);
  --border-muted: oklch(0.895 0.025 80);
  --border-strong: oklch(0.78 0.035 80);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.45 0.06 198);

  /* ── 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));

  /* ── highlight: the theme's second brand colour, a fill only (never text) ── */
  --highlight: oklch(0.51 0.065 198);
  --highlight-foreground: oklch(0.985 0.008 85);

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.51 0.065 198 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.5 0.17 27);
  --error-foreground: oklch(0.985 0.008 85);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Yellowtail, "Brush Script MT", cursive;
  --font-sans: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.2;
  --tracking-display: 0em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.38 0.045 200 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.38 0.045 200 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.38 0.045 200 / 0.12);

  /* ── 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;
}

/* Light only: the invitation is printed on cream whatever the device prefers. */
.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.948 0.018 80);
  --foreground: oklch(0.38 0.045 200);
  --card: oklch(0.977 0.01 85);
  --card-foreground: oklch(0.38 0.045 200);
  --popover: oklch(0.977 0.01 85);
  --popover-foreground: oklch(0.38 0.045 200);
  --primary: oklch(0.53 0.155 27);
  --primary-foreground: oklch(0.985 0.008 85);
  --secondary: oklch(0.925 0.023 80);
  --secondary-foreground: oklch(0.38 0.045 200);
  --muted: oklch(0.925 0.023 80);
  --muted-foreground: oklch(0.46 0.035 200);
  --accent: oklch(0.925 0.023 80);
  --accent-foreground: oklch(0.38 0.045 200);
  --destructive: oklch(0.5 0.17 27);
  --destructive-foreground: oklch(0.985 0.008 85);
  --border: oklch(0.877 0.027 80);
  --input: oklch(0.82 0.03 80);
  --ring: oklch(0.51 0.065 198);
  --success: oklch(0.47 0.075 185);
  --warning: oklch(0.52 0.1 70);
  --chart-1: oklch(0.53 0.155 27);
  --chart-2: oklch(0.51 0.065 198);
  --chart-3: oklch(0.7 0.11 75);
  --chart-4: oklch(0.38 0.045 200);
  --chart-5: oklch(0.68 0.09 27);
  --sidebar: oklch(0.977 0.01 85);
  --sidebar-foreground: oklch(0.38 0.045 200);
  --sidebar-primary: oklch(0.53 0.155 27);
  --sidebar-primary-foreground: oklch(0.985 0.008 85);
  --sidebar-accent: oklch(0.925 0.023 80);
  --sidebar-accent-foreground: oklch(0.38 0.045 200);
  --sidebar-border: oklch(0.877 0.027 80);
  --sidebar-ring: oklch(0.51 0.065 198);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.925 0.023 80);
  --surface-hover:   color-mix(in srgb, var(--foreground) 6%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 10%, var(--background));
  --surface-elevated: oklch(0.985 0.008 85);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.915 0.022 80);
  --border-muted: oklch(0.895 0.025 80);
  --border-strong: oklch(0.78 0.035 80);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.45 0.06 198);

  /* ── primary depth ────────────────────────────────────────────── */
  --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));

  /* ── highlight ────────────────────────────────────────────────── */
  --highlight: oklch(0.51 0.065 198);
  --highlight-foreground: oklch(0.985 0.008 85);

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.51 0.065 198 / 0.4);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.5 0.17 27);
  --error-foreground: oklch(0.985 0.008 85);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.75rem;
  --radius-none: 0rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: Yellowtail, "Brush Script MT", cursive;
  --font-sans: "Josefin Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.2;
  --tracking-display: 0em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0.01em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.38 0.045 200 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.38 0.045 200 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.38 0.045 200 / 0.12);

  /* ── 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;
}
