/* Stencil Fonts */
/* Fonts are self-hosted: app/fonts/app-fonts.css (linked from root.tsx) declares Manrope, DM Sans, Inter, Outfit and Playfair Display. */
/* /Stencil Fonts */

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #fffefd;
  --foreground: #1b1b1b;
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.02 30);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.24 0.02 30);
  --primary: #8a714b;
  --primary-foreground: oklch(0.99 0.01 90);
  --secondary: oklch(0.965 0.03 92);
  --secondary-foreground: oklch(0.36 0.06 20);
  --muted: oklch(0.96 0.012 80);
  --muted-foreground: #1b1b1b;
  --accent: oklch(0.955 0.025 85);
  --accent-foreground: oklch(0.28 0.03 30);
  --destructive: oklch(0.55 0.21 27);
  --destructive-foreground: oklch(0.99 0.01 90);
  --border: oklch(0.90 0.015 70);
  --input: oklch(0.90 0.015 70);
  --ring: #8a714b;
  --success: oklch(0.52 0.14 150);
  --warning: oklch(0.58 0.14 70);
  --chart-1: oklch(0.55 0.16 250);
  --chart-2: oklch(0.52 0.19 355);
  --chart-3: oklch(0.58 0.14 70);
  --chart-4: oklch(0.52 0.14 150);
  --chart-5: oklch(0.62 0.03 40);
  --sidebar: oklch(0.205 0.008 50);
  --sidebar-foreground: oklch(0.93 0.01 85);
  --sidebar-primary: oklch(0.571 0.053 72.7);
  --sidebar-primary-foreground: oklch(0.99 0.01 90);
  --sidebar-accent: oklch(0.27 0.01 50);
  --sidebar-accent-foreground: oklch(0.95 0.01 85);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.571 0.053 72.7);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #f4f2ed;
  --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(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.955 0.012 75);
  --border-muted: oklch(0.93 0.014 72);
  --border-strong: oklch(0.80 0.02 60);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.40 0.025 30);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: #c7aa7e;
  --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.685 0.115 68 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.55 0.21 27);
  --error-foreground: oklch(0.99 0.01 90);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: 'Manrope', sans-serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-weight-display: 700;
  --line-height-display: 1.1;
  --tracking-display: -0.015em;
  --font-weight-body: 400;
  --line-height-body: 1.55;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(60, 30, 20, 0.06), 0 1px 3px rgba(60, 30, 20, 0.04);
  --shadow-md: 0 4px 12px rgba(60, 30, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(60, 30, 20, 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --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.17 0.012 30);
  --foreground: oklch(0.96 0.012 85);
  --card: oklch(0.215 0.014 30);
  --card-foreground: oklch(0.96 0.012 85);
  --popover: oklch(0.215 0.014 30);
  --popover-foreground: oklch(0.96 0.012 85);
  --primary: oklch(0.78 0.115 68);
  --primary-foreground: oklch(0.17 0.02 74);
  --secondary: oklch(0.27 0.016 30);
  --secondary-foreground: oklch(0.94 0.015 85);
  --muted: oklch(0.27 0.016 30);
  --muted-foreground: oklch(0.74 0.015 60);
  --accent: oklch(0.29 0.02 40);
  --accent-foreground: oklch(0.96 0.012 85);
  --destructive: oklch(0.70 0.19 25);
  --destructive-foreground: oklch(0.15 0.02 25);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.78 0.115 68);
  --success: oklch(0.72 0.14 150);
  --warning: oklch(0.80 0.14 75);
  --chart-1: oklch(0.72 0.14 250);
  --chart-2: oklch(0.72 0.17 355);
  --chart-3: oklch(0.80 0.14 75);
  --chart-4: oklch(0.72 0.14 150);
  --chart-5: oklch(0.70 0.03 40);
  --sidebar: oklch(0.16 0.008 50);
  --sidebar-foreground: oklch(0.93 0.01 85);
  --sidebar-primary: oklch(0.571 0.053 72.7);
  --sidebar-primary-foreground: oklch(0.99 0.01 90);
  --sidebar-accent: oklch(0.23 0.012 50);
  --sidebar-accent-foreground: oklch(0.95 0.01 85);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.571 0.053 72.7);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.20 0.012 30);
  --surface-elevated: oklch(0.26 0.015 30);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.80 0.012 70);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.78 0.115 68 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.70 0.19 25);
  --error-foreground: oklch(0.15 0.02 25);
}

/* Stencil Tweaks */
@layer base {
  h1, h2, h3, h4 { font-weight: var(--font-weight-display); }
}

/* /Stencil Tweaks */