@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

/* ── Brand fonts (uploaded) ─────────────────────────────────────── */
@font-face {
  font-family: 'Atelier Femme Serif';
  src: url('/assets/fonts/atelier-femme-serif.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atelier Femme Serif';
  src: url('/assets/fonts/atelier-femme-italic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('/assets/fonts/made-evolve-sans-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('/assets/fonts/made-evolve-sans-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MADE Evolve Sans';
  src: url('/assets/fonts/made-evolve-sans-bold.otf') format('opentype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(0.975 0.008 85);
  --foreground: oklch(0.24 0.012 60);
  --card: oklch(0.99 0.005 85);
  --card-foreground: oklch(0.24 0.012 60);
  --popover: oklch(0.99 0.005 85);
  --popover-foreground: oklch(0.24 0.012 60);
  --primary: oklch(0.27 0.014 60);
  --primary-foreground: oklch(0.975 0.008 85);
  --secondary: oklch(0.94 0.012 85);
  --secondary-foreground: oklch(0.27 0.014 60);
  --muted: oklch(0.94 0.012 85);
  --muted-foreground: oklch(0.52 0.02 70);
  --accent: oklch(0.94 0.012 85);
  --accent-foreground: oklch(0.27 0.014 60);
  --destructive: oklch(0.52 0.16 25);
  --destructive-foreground: oklch(0.985 0.005 85);
  --border: oklch(0.89 0.014 85);
  --input: oklch(0.89 0.014 85);
  --ring: oklch(0.72 0.08 80);
  --success: oklch(0.55 0.09 150);
  --warning: oklch(0.72 0.11 80);
  --chart-1: oklch(0.72 0.09 80);
  --chart-2: oklch(0.27 0.014 60);
  --chart-3: oklch(0.6 0.03 70);
  --chart-4: oklch(0.82 0.06 85);
  --chart-5: oklch(0.45 0.02 60);
  --sidebar: oklch(0.955 0.01 85);
  --sidebar-foreground: oklch(0.24 0.012 60);
  --sidebar-primary: oklch(0.27 0.014 60);
  --sidebar-primary-foreground: oklch(0.975 0.008 85);
  --sidebar-accent: oklch(0.92 0.014 85);
  --sidebar-accent-foreground: oklch(0.27 0.014 60);
  --sidebar-border: oklch(0.89 0.014 85);
  --sidebar-ring: oklch(0.72 0.08 80);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.955 0.01 85);
  --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.995 0.004 85);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.94 0.01 85);
  --border-muted: oklch(0.915 0.012 85);
  --border-strong: oklch(0.78 0.02 80);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.015 65);

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

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.72 0.08 80 / 0.4);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.52 0.16 25);
  --error-foreground: oklch(0.985 0.005 85);

  /* ── radius ───────────────────────────────────────────────────── */
  --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", Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 500;
  --line-height-display: 1.05;
  --tracking-display: -0.01em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(60, 45, 20, 0.04);
  --shadow-md: 0 4px 14px rgba(60, 45, 20, 0.06);
  --shadow-lg: 0 14px 36px rgba(60, 45, 20, 0.1);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 240ms;
  --duration-slow: 400ms;
  --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.19 0.01 60);
  --foreground: oklch(0.94 0.012 85);
  --card: oklch(0.225 0.011 60);
  --card-foreground: oklch(0.94 0.012 85);
  --popover: oklch(0.225 0.011 60);
  --popover-foreground: oklch(0.94 0.012 85);
  --primary: oklch(0.9 0.02 85);
  --primary-foreground: oklch(0.21 0.012 60);
  --secondary: oklch(0.28 0.012 60);
  --secondary-foreground: oklch(0.94 0.012 85);
  --muted: oklch(0.28 0.012 60);
  --muted-foreground: oklch(0.68 0.02 75);
  --accent: oklch(0.28 0.012 60);
  --accent-foreground: oklch(0.94 0.012 85);
  --destructive: oklch(0.66 0.15 25);
  --destructive-foreground: oklch(0.985 0.005 85);
  --border: oklch(1 0.01 85 / 11%);
  --input: oklch(1 0.01 85 / 15%);
  --ring: oklch(0.76 0.09 80);
  --success: oklch(0.7 0.09 150);
  --warning: oklch(0.8 0.11 80);
  --chart-1: oklch(0.78 0.09 80);
  --chart-2: oklch(0.9 0.02 85);
  --chart-3: oklch(0.62 0.03 70);
  --chart-4: oklch(0.5 0.05 85);
  --chart-5: oklch(0.72 0.02 60);
  --sidebar: oklch(0.17 0.01 60);
  --sidebar-foreground: oklch(0.94 0.012 85);
  --sidebar-primary: oklch(0.78 0.09 80);
  --sidebar-primary-foreground: oklch(0.21 0.012 60);
  --sidebar-accent: oklch(0.26 0.012 60);
  --sidebar-accent-foreground: oklch(0.94 0.012 85);
  --sidebar-border: oklch(1 0.01 85 / 10%);
  --sidebar-ring: oklch(0.76 0.09 80);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.215 0.01 60);
  --surface-elevated: oklch(0.27 0.012 60);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(1 0.01 85 / 6%);
  --border-muted: oklch(1 0.01 85 / 8%);
  --border-strong: oklch(1 0.01 85 / 22%);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.76 0.015 75);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.76 0.09 80 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.66 0.15 25);
  --error-foreground: oklch(0.985 0.005 85);
}

/* Stencil Tweaks */
@font-face {
  font-family: 'Atelier Femme Serif';
  src: url('/assets/fonts/atelier-femme-serif.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* ── brand typography ──────────────────────────────────────── */
  --font-display: 'Atelier Femme Serif', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'MADE Evolve Sans', Inter, ui-sans-serif, system-ui, sans-serif;

  /* ── brand palette ─────────────────────────────────────────── */
  --background: #f1eee6;            /* warm cream page */
  --background-secondary: #eae5da;  /* offset sections */
  --foreground: #3d2e27;            /* espresso text */
  --foreground-secondary: #5c4a40;
  --muted-foreground: #86756a;
  --card: #f7f4ee;
  --card-foreground: #3d2e27;
  --popover: #f7f4ee;
  --popover-foreground: #3d2e27;
  --surface-elevated: #faf8f3;
  --primary: #3a1414;               /* deep oxblood */
  --primary-foreground: #f7f4ee;
  --secondary: #e7e1d5;             /* taupe surface */
  --secondary-foreground: #3d2e27;
  --muted: #e7e1d5;
  --accent: #e2dacb;               /* subtle hover tint, not the brand colour */
  --accent-foreground: #3a1414;
  --border: #ddd4c5;
  --border-subtle: #e6ded1;
  --border-muted: #e0d7c8;
  --border-strong: #bda694;         /* taupe hairlines */
  --input: #d7cdbc;
  --ring: #87634b;                  /* mocha focus */
  --focus-ring: color-mix(in srgb, #87634b 40%, transparent);

  /* ── warm-gold accent (mocha, lifted to read as colour) ──────── */
  --accent-gold: #9a7250;           /* mocha, a touch brighter */
  --accent-gold-foreground: #f7f4ee;
  --accent-gold-soft: color-mix(in srgb, #9a7250 13%, var(--background));
  --accent-gold-tint: color-mix(in srgb, #9a7250 7%, var(--background));

  /* ── blush (oxblood lifted into a warm wine tint) ────────────── */
  --blush: #7a2e2e;                 /* wine — the oxblood, but visible */
  --blush-soft: color-mix(in srgb, #7a2e2e 12%, var(--background));
  --blush-tint: color-mix(in srgb, #7a2e2e 6%, var(--background));

  /* ── warm page glow (radial washes behind content) ───────────── */
  --page-glow:
    radial-gradient(70rem 40rem at 82% -8%, color-mix(in srgb, #9a7250 15%, transparent), transparent 60%),
    radial-gradient(60rem 38rem at -10% 4%, color-mix(in srgb, #7a2e2e 9%, transparent), transparent 58%);

  /* richer chart hues drawn from the brand five */
  --chart-1: #9a7250;   /* mocha  */
  --chart-2: #3a1414;   /* oxblood */
  --chart-3: #bda694;   /* taupe  */
  --chart-4: #7a2e2e;   /* wine   */
  --chart-5: #5c4a40;   /* cocoa  */
}

/* /Stencil Tweaks */