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

@font-face {
  font-family: 'JWTypeHandRegular';
  src:
    url('/assets/fonts/JWTypeHandRegular.woff2') format('woff2'),
    url('/assets/fonts/JWTypeHandRegular.woff') format('woff');
  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: #FFFFFF;
  --secondary: #B5A99A;
  --secondary-foreground: #1A1A1A;
  --muted: #F1ECE6;
  --muted-foreground: #6F6458;
  --accent: #FFEEEA;
  --accent-foreground: #1A1A1A;
  --destructive: oklch(0.55 0.17 30);
  --destructive-foreground: oklch(0.98 0.01 88);
  --border: #E6DED4;
  --input: #E6DED4;
  --ring: #FF6F61;
  --success: oklch(0.56 0.12 150);
  --warning: oklch(0.72 0.13 70);
  --chart-1: #FF6F61;
  --chart-2: #B5A99A;
  --chart-3: oklch(0.55 0.06 150);
  --chart-4: oklch(0.45 0.02 60);
  --chart-5: oklch(0.75 0.04 70);
  --sidebar: #F6F2ED;
  --sidebar-foreground: #1A1A1A;
  --sidebar-primary: #FF6F61;
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: #F1ECE6;
  --sidebar-accent-foreground: #1A1A1A;
  --sidebar-border: #E6DED4;
  --sidebar-ring: #FF6F61;

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: #F6F2ED;
  --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: #EFE9E2;
  --border-muted: #EAE3D9;
  --border-strong: #B5A99A;

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: #4A4540;

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: #F0584A;
  --primary-muted: color-mix(in srgb, var(--primary) 16%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 9%,  var(--background));
  --primary-tint:  color-mix(in srgb, 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.55 0.17 30);
  --error-foreground: oklch(0.98 0.01 88);

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

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "JWTypeHandRegular", "Playfair Display", Georgia, serif;
  --font-sans: "Lora", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 400;
  --line-height-display: 1.2;
  --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.03 60 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.3 0.03 60 / 0.08);
  --shadow-lg: 0 14px 36px oklch(0.3 0.03 60 / 0.12);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 340ms;
  --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.015 70);
  --foreground: oklch(0.95 0.012 85);
  --card: oklch(0.245 0.017 70);
  --card-foreground: oklch(0.95 0.012 85);
  --popover: oklch(0.245 0.017 70);
  --popover-foreground: oklch(0.95 0.012 85);
  --primary: oklch(0.72 0.14 25);
  --primary-foreground: #FFFFFF;
  --secondary: oklch(0.75 0.025 80);
  --secondary-foreground: #1A1A1A;
  --muted: oklch(0.3 0.018 70);
  --muted-foreground: oklch(0.7 0.02 75);
  --accent: oklch(0.31 0.025 120);
  --accent-foreground: oklch(0.95 0.012 85);
  --destructive: oklch(0.68 0.16 30);
  --destructive-foreground: oklch(0.98 0.01 88);
  --border: oklch(1 0 0 / 11%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.72 0.14 25);
  --success: oklch(0.72 0.12 150);
  --warning: oklch(0.8 0.13 75);
  --chart-1: oklch(0.72 0.14 25);
  --chart-2: oklch(0.75 0.025 80);
  --chart-3: oklch(0.8 0.13 75);
  --chart-4: oklch(0.7 0.1 40);
  --chart-5: oklch(0.65 0.04 95);
  --sidebar: oklch(0.175 0.014 70);
  --sidebar-foreground: oklch(0.95 0.012 85);
  --sidebar-primary: oklch(0.72 0.14 25);
  --sidebar-primary-foreground: #FFFFFF;
  --sidebar-accent: oklch(0.28 0.018 70);
  --sidebar-accent-foreground: oklch(0.95 0.012 85);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.72 0.14 25);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.225 0.016 70);
  --surface-elevated: oklch(0.29 0.018 70);

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

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.78 0.015 80);

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

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.72 0.14 38 / 0.45);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.68 0.16 30);
  --error-foreground: oklch(0.98 0.01 88);
}

/* Stencil Tweaks */
:root {
  --background: #FFFCF9;
  --foreground: #1A1A1A;
  --primary: #FF6F61;
  --font-display: 'JWTypeHandRegular', 'Playfair Display', serif;
  --font-sans: 'Lora', serif;
  --font-weight-display: 400;
}
/* /Stencil Tweaks */