@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/* Fully Nourished display face — headings, pull quotes and callouts */
@font-face {
  font-family: 'JW Type Hand';
  src: url('/assets/fonts/JWTypeHandRegular.woff2') format('woff2'),
       url('/assets/fonts/JWTypeHandRegular.woff') format('woff'),
       url('/assets/fonts/JWTypeHandRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: #FFFCF9;
  --foreground: #1A1A1A;
  --card: #FFFFFF;
  --card-foreground: #1A1A1A;
  --popover: #FFFFFF;
  --popover-foreground: #1A1A1A;
  --primary: #FF6F61;
  --primary-foreground: #1A1A1A;
  --secondary: #B5A99A;
  --secondary-foreground: #1A1A1A;
  --muted: #F5EFE9;
  --muted-foreground: #6B6159;
  --accent: #F7EEE8;
  --accent-foreground: #2E2926;
  --destructive: oklch(0.58 0.17 25);
  --destructive-foreground: oklch(0.985 0.005 80);
  --border: #EAE1D8;
  --input: #E3D9CF;
  --ring: #FF6F61;
  --success: oklch(0.6 0.1 150);
  --warning: oklch(0.72 0.12 75);
  --chart-1: #FF6F61;
  --chart-2: #B5A99A;
  --chart-3: #C4574B;
  --chart-4: #F2B3A6;
  --chart-5: #DCD3C8;
  --sidebar: #FBF6F1;
  --sidebar-foreground: #1A1A1A;
  --sidebar-primary: #FF6F61;
  --sidebar-primary-foreground: #1A1A1A;
  --sidebar-accent: #F5ECE4;
  --sidebar-accent-foreground: #2E2926;
  --sidebar-border: #EAE1D8;
  --sidebar-ring: #FF6F61;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #F8F1EA;
  --surface-hover:   color-mix(in srgb, var(--foreground) 5%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 9%, var(--background));
  --surface-elevated: #FFFFFF;

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: #F1EAE2;
  --border-muted: #EDE4DB;
  --border-strong: #C9BDAF;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #46403B;

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in oklch, var(--primary) 88%, var(--foreground));
  --primary-muted: color-mix(in oklch, var(--primary) 14%, var(--background));
  --primary-soft:  color-mix(in oklch, var(--primary) 8%,  var(--background));
  --primary-tint:  color-mix(in oklch, var(--primary) 5%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: rgb(255 111 97 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.58 0.17 25);
  --error-foreground: oklch(0.985 0.005 80);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: 'JW Type Hand', Lora, Georgia, serif;
  --font-sans: Lora, Georgia, 'Times New Roman', serif;
  /* Little asides and labels share the body face — two families only */
  --font-mono: Lora, Georgia, serif;
  --font-weight-display: 400;
  --line-height-display: 1.15;
  --tracking-display: 0em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 40 / 0.06);
  --shadow-md: 0 6px 18px oklch(0.3 0.02 40 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.3 0.02 40 / 0.14);

  /* ── 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.2 0.01 40);
  --foreground: oklch(0.95 0.01 60);
  --card: oklch(0.25 0.012 40);
  --card-foreground: oklch(0.95 0.01 60);
  --popover: oklch(0.25 0.012 40);
  --popover-foreground: oklch(0.95 0.01 60);
  --primary: #FF8A7E;
  --primary-foreground: #1A1A1A;
  --secondary: #C9BFB2;
  --secondary-foreground: #1A1A1A;
  --muted: oklch(0.3 0.012 45);
  --muted-foreground: oklch(0.74 0.014 60);
  --accent: oklch(0.31 0.014 45);
  --accent-foreground: oklch(0.95 0.01 60);
  --destructive: oklch(0.7 0.16 25);
  --destructive-foreground: oklch(0.2 0.012 70);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 14%);
  --ring: #FF8A7E;
  --success: oklch(0.72 0.09 150);
  --warning: oklch(0.8 0.1 75);
  --chart-1: #FF8A7E;
  --chart-2: #C9BFB2;
  --chart-3: #FF6F61;
  --chart-4: #F2B3A6;
  --chart-5: oklch(0.78 0.03 60);
  --sidebar: oklch(0.23 0.011 40);
  --sidebar-foreground: oklch(0.95 0.01 60);
  --sidebar-primary: #FF8A7E;
  --sidebar-primary-foreground: #1A1A1A;
  --sidebar-accent: oklch(0.31 0.014 45);
  --sidebar-accent-foreground: oklch(0.95 0.01 60);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: #FF8A7E;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.23 0.011 40);
  --surface-elevated: oklch(0.29 0.013 40);

  /* ── 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.82 0.012 60);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: rgb(255 138 126 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.7 0.16 25);
  --error-foreground: oklch(0.2 0.012 70);
}

/* Stencil Tweaks */
:root {
  --primary: #FF6F61;
  --background: #FFFCF9;
  --secondary: #B5A99A;
  --secondary-foreground: #1A1A1A;
  --foreground: #1A1A1A;
}
/* /Stencil Tweaks */
