@import url("https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,400;0,700;1,400;1,700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap");
/* Members for Keeps brand face, used only on its device mockup on the Deal Week page. */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700&display=swap");
/* Y'all brand faces, used only inside the Y'all bonus box on the Day 1 offer page. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap");

/* Emberlin official palette: Brick #c35733, Blush #fadfd8, Tangerine #f99958, Cloud #f7f7ed,
   Amber #671410, Coral #ed6051, Lavender #d8a3ce, Cream #dfccbb */
:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.973 0.013 106.6);
  --foreground: oklch(0.339 0.117 28.1);
  --card: oklch(0.973 0.013 106.6);
  --card-foreground: oklch(0.339 0.117 28.1);
  --popover: oklch(0.973 0.013 106.6);
  --popover-foreground: oklch(0.339 0.117 28.1);
  --primary: oklch(0.339 0.117 28.1);
  --primary-foreground: oklch(0.973 0.013 106.6);
  --secondary: oklch(0.924 0.031 34.9);
  --secondary-foreground: oklch(0.339 0.117 28.1);
  --muted: oklch(0.924 0.031 34.9);
  --muted-foreground: oklch(0.46 0.09 30);
  --accent: oklch(0.924 0.031 34.9);
  --accent-foreground: oklch(0.339 0.117 28.1);
  --destructive: oklch(0.52 0.19 27);
  --destructive-foreground: oklch(0.985 0.01 90);
  --border: oklch(0.856 0.031 64.2);
  --input: oklch(0.856 0.031 64.2);
  --ring: oklch(0.587 0.148 38.6);
  --success: oklch(0.5 0.11 150);
  --warning: oklch(0.72 0.15 60);
  --chart-1: oklch(0.587 0.148 38.6);
  --chart-2: oklch(0.770 0.140 53.2);
  --chart-3: oklch(0.667 0.177 28.8);
  --chart-4: oklch(0.778 0.084 333.1);
  --chart-5: oklch(0.339 0.117 28.1);
  --sidebar: oklch(0.973 0.013 106.6);
  --sidebar-foreground: oklch(0.339 0.117 28.1);
  --sidebar-primary: oklch(0.339 0.117 28.1);
  --sidebar-primary-foreground: oklch(0.973 0.013 106.6);
  --sidebar-accent: oklch(0.924 0.031 34.9);
  --sidebar-accent-foreground: oklch(0.339 0.117 28.1);
  --sidebar-border: oklch(0.856 0.031 64.2);
  --sidebar-ring: oklch(0.587 0.148 38.6);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.924 0.031 34.9);
  --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.973 0.013 106.6);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.924 0.031 34.9);
  --border-muted: oklch(0.856 0.031 64.2);
  --border-strong: oklch(0.587 0.148 38.6);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0.11 29);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, 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) 5%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.587 0.148 38.6 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.5 0.19 27);
  --error-foreground: oklch(0.985 0.01 90);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Cormorant Infant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Carlito, Calibri, "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.05;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows (warm, oxblood-tinted) ───────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(103, 20, 16, 0.06);
  --shadow-md: 0 6px 18px rgba(103, 20, 16, 0.09);
  --shadow-lg: 0 18px 44px rgba(103, 20, 16, 0.14);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.3, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

/* The Reverie Lane design has no dark version, so dark mode uses the same light palette. */
.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.973 0.013 106.6);
  --foreground: oklch(0.339 0.117 28.1);
  --card: oklch(0.973 0.013 106.6);
  --card-foreground: oklch(0.339 0.117 28.1);
  --popover: oklch(0.973 0.013 106.6);
  --popover-foreground: oklch(0.339 0.117 28.1);
  --primary: oklch(0.339 0.117 28.1);
  --primary-foreground: oklch(0.973 0.013 106.6);
  --secondary: oklch(0.924 0.031 34.9);
  --secondary-foreground: oklch(0.339 0.117 28.1);
  --muted: oklch(0.924 0.031 34.9);
  --muted-foreground: oklch(0.46 0.09 30);
  --accent: oklch(0.924 0.031 34.9);
  --accent-foreground: oklch(0.339 0.117 28.1);
  --destructive: oklch(0.52 0.19 27);
  --destructive-foreground: oklch(0.985 0.01 90);
  --border: oklch(0.856 0.031 64.2);
  --input: oklch(0.856 0.031 64.2);
  --ring: oklch(0.587 0.148 38.6);
  --success: oklch(0.5 0.11 150);
  --warning: oklch(0.72 0.15 60);
  --chart-1: oklch(0.587 0.148 38.6);
  --chart-2: oklch(0.770 0.140 53.2);
  --chart-3: oklch(0.667 0.177 28.8);
  --chart-4: oklch(0.778 0.084 333.1);
  --chart-5: oklch(0.339 0.117 28.1);
  --sidebar: oklch(0.973 0.013 106.6);
  --sidebar-foreground: oklch(0.339 0.117 28.1);
  --sidebar-primary: oklch(0.339 0.117 28.1);
  --sidebar-primary-foreground: oklch(0.973 0.013 106.6);
  --sidebar-accent: oklch(0.924 0.031 34.9);
  --sidebar-accent-foreground: oklch(0.339 0.117 28.1);
  --sidebar-border: oklch(0.856 0.031 64.2);
  --sidebar-ring: oklch(0.587 0.148 38.6);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.924 0.031 34.9);
  --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.973 0.013 106.6);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.924 0.031 34.9);
  --border-muted: oklch(0.856 0.031 64.2);
  --border-strong: oklch(0.587 0.148 38.6);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.4 0.11 29);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 88%, 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) 5%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.587 0.148 38.6 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.5 0.19 27);
  --error-foreground: oklch(0.985 0.01 90);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Cormorant Infant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Carlito, Calibri, "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.05;
  --tracking-display: -0.02em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows (warm, oxblood-tinted) ───────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(103, 20, 16, 0.06);
  --shadow-md: 0 6px 18px rgba(103, 20, 16, 0.09);
  --shadow-lg: 0 18px 44px rgba(103, 20, 16, 0.14);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.3, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}
