@import url("https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Carlito:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.967 0.013 106.6);            /* cloud #F5F5EB */
  --foreground: oklch(0.282 0.082 28.7);                    /* body text #4A1510 */
  --card: oklch(0.995 0.004 95);             /* soft white: cards and panels on cloud */
  --card-foreground: oklch(0.282 0.082 28.7);
  --popover: oklch(0.994 0.007 88.6);
  --popover-foreground: oklch(0.282 0.082 28.7);
  --primary: oklch(0.342 0.119 28.6);               /* deep burgundy #69140F, the anchor */
  --primary-foreground: oklch(0.967 0.013 106.6);    /* cloud */
  --secondary: oklch(0.860 0.035 67.3);        /* cream #E1CDB9: feature sections */
  --secondary-foreground: oklch(0.235 0 0);
  --muted: oklch(0.944 0.031 57.9);
  --muted-foreground: oklch(0.407 0.072 32.5);           /* body text, softened #6B3A30 */
  --accent: oklch(0.944 0.031 57.9);
  --accent-foreground: oklch(0.235 0 0);
  --destructive: oklch(0.52 0.17 30);
  --destructive-foreground: oklch(0.985 0.008 70);
  --border: oklch(0.80 0.042 62);                 /* deeper cream, card edges */
  --input: oklch(0.80 0.042 62);
  --ring: oklch(0.342 0.119 28.6);                  /* burgundy */
  --success: oklch(0.50 0.10 150);
  --warning: oklch(0.587 0.148 38.6);
  --chart-1: oklch(0.587 0.148 38.6);
  --chart-2: oklch(0.339 0.117 28.1);
  --chart-3: oklch(0.778 0.084 333.1);
  --chart-4: oklch(0.770 0.140 53.2);
  --chart-5: oklch(0.667 0.177 28.8);
  --sidebar: oklch(0.339 0.117 28.1);
  --sidebar-foreground: oklch(0.973 0.013 106.6);
  --sidebar-primary: oklch(0.770 0.140 53.2);
  --sidebar-primary-foreground: oklch(0.339 0.117 28.1);
  --sidebar-accent: oklch(0.39 0.12 28);
  --sidebar-accent-foreground: oklch(0.973 0.013 106.6);
  --sidebar-border: oklch(0.42 0.11 28);
  --sidebar-ring: oklch(0.587 0.148 38.6);

  /* ── Emberlin accents ─────────────────────────────────────────── */
  --terracotta: oklch(0.587 0.148 38.6);            /* brick #C35733: headings, icons */
  --lavender: oklch(0.778 0.084 333.1);           /* lavender #D8A3CE */
  --lavender-foreground: oklch(0.339 0.117 28.1);   /* amber text on lavender */
  --tangerine: oklch(0.770 0.140 53.2);           /* tangerine #F99958 */
  --tangerine-foreground: oklch(0.339 0.117 28.1);
  --peach: oklch(0.944 0.031 57.9);                /* peach #FDE8D9 */
  --coral: oklch(0.667 0.177 28.8);                /* coral #ED6051 */

  /* ── Sunset (Nov 20 restyle): hero and closing band gradient, big headlines ── */
  --brick: oklch(0.510 0.145 37.4);               /* warm brick #A8401F: big headlines */
  --sunset-lavender: oklch(0.893 0.038 332.6);    /* #ECD3E7 */
  --sunset-blush: oklch(0.919 0.028 9.4);         /* #F6DDE0 */
  --sunset-rose: oklch(0.927 0.031 43.1);         /* #FAE1D7 */
  --sunset-peach: oklch(0.893 0.060 55.5);        /* #FCD2B6 */
  --chip: oklch(0.944 0.031 57.9);                /* cream chip inside the buttons */
  --lilac: oklch(0.913 0.027 333.3);              /* soft lavender #EEDCEA: "Is this for you" panel */

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.860 0.035 67.3);
  --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 70);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.910 0.022 69.8);
  --border-muted: oklch(0.860 0.035 67.3);
  --border-strong: oklch(0.75 0.07 40);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.282 0.082 28.7);            /* body text #4A1510 */

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: oklch(0.290 0.099 28.4);           /* #520F0B */
  --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.342 0.119 28.6 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.17 30);
  --error-foreground: oklch(0.985 0.008 70);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 0.25rem;
  --radius-none: 0rem;
  --radius-sm: 0.125rem;
  --radius-lg: 0.25rem;
  --radius-xl: 0.375rem;
  --radius-full: 9999px;
  --radius-soft: 1.5rem;                          /* photos and cards on the sales page */

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Cormorant Infant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Calibri, Carlito, "Segoe UI", Candara, "Gill Sans", ui-sans-serif, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 300;
  --line-height-display: 1.1;
  --tracking-display: 0em;
  --font-weight-body: 400;
  --line-height-body: 1.7;
  --tracking-body: 0.005em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(103, 20, 16, 0.06);
  --shadow-md: 0 4px 14px rgba(103, 20, 16, 0.08);
  --shadow-lg: 0 14px 36px rgba(103, 20, 16, 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --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.21 0.02 40);
  --foreground: oklch(0.95 0.014 70);
  --card: oklch(0.26 0.025 35);
  --card-foreground: oklch(0.95 0.014 70);
  --popover: oklch(0.26 0.025 35);
  --popover-foreground: oklch(0.95 0.014 70);
  --primary: oklch(0.88 0.04 45);
  --primary-foreground: oklch(0.257 0.060 3.6);
  --secondary: oklch(0.30 0.03 30);
  --secondary-foreground: oklch(0.95 0.014 70);
  --muted: oklch(0.30 0.03 30);
  --muted-foreground: oklch(0.76 0.02 55);
  --accent: oklch(0.31 0.03 30);
  --accent-foreground: oklch(0.95 0.014 70);
  --destructive: oklch(0.66 0.17 30);
  --destructive-foreground: oklch(0.985 0.008 70);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.70 0.13 40);
  --success: oklch(0.70 0.11 150);
  --warning: oklch(0.72 0.13 40);
  --chart-1: oklch(0.70 0.13 40);
  --chart-2: oklch(0.80 0.06 10);
  --chart-3: oklch(0.778 0.084 333.1);
  --chart-4: oklch(0.85 0.05 45);
  --chart-5: oklch(0.76 0.02 55);
  --sidebar: oklch(0.18 0.03 10);
  --sidebar-foreground: oklch(0.95 0.014 70);
  --sidebar-primary: oklch(0.70 0.13 40);
  --sidebar-primary-foreground: oklch(0.18 0.03 10);
  --sidebar-accent: oklch(0.25 0.04 10);
  --sidebar-accent-foreground: oklch(0.95 0.014 70);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.70 0.13 40);

  /* ── Emberlin accents ─────────────────────────────────────────── */
  --terracotta: oklch(0.72 0.13 42);
  --lavender: oklch(0.45 0.07 333);
  --lavender-foreground: oklch(0.95 0.014 70);
  --tangerine: oklch(0.770 0.140 53.2);
  --tangerine-foreground: oklch(0.283 0.096 27.9);
  --peach: oklch(0.28 0.04 40);
  --coral: oklch(0.70 0.16 29);

  /* ── Sunset ───────────────────────────────────────────────────── */
  --brick: oklch(0.74 0.12 42);
  --sunset-lavender: oklch(0.30 0.04 332);
  --sunset-blush: oklch(0.28 0.035 10);
  --sunset-rose: oklch(0.27 0.035 40);
  --sunset-peach: oklch(0.27 0.045 55);
  --chip: oklch(0.257 0.060 3.6);
  --lilac: oklch(0.30 0.04 332);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.25 0.025 35);
  --surface-elevated: oklch(0.30 0.03 30);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0 0 / 6%);
  --border-muted: oklch(1 0 0 / 9%);
  --border-strong: oklch(1 0 0 / 22%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.84 0.015 60);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 8%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.70 0.13 40 / 0.5);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.66 0.17 30);
  --error-foreground: oklch(0.985 0.008 70);
}
