@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=DM+Serif+Display:ital@0;1&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter+Tight:wght@400;500;700&display=swap');


:root {
  /* ── typography ────────────────────────────────────────────── */
  --font-display: 'DM Sans', sans-serif;
  --font-sans: 'Inter Tight', sans-serif;
  /* Editorial serif — reserved for the public media kit page. */
  --font-editorial: 'Fraunces', Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  /* DoveHub public landing — editorial serif display. */
  --font-dove-serif: 'DM Serif Display', Georgia, serif;
  --font-dove-sans: 'DM Sans', system-ui, sans-serif;

  /* ── DoveHub landing palette (dark editorial, warm amber) ───── */
  --dh-bg: oklch(12% 0.015 60);
  --dh-near-black: oklch(10% 0.012 60);
  --dh-surface: oklch(94% 0.018 75);
  --dh-accent: oklch(78% 0.13 80);
  --dh-accent-hover: oklch(72% 0.135 78);
  --dh-neutral: oklch(38% 0.025 70);
  --dh-cream: oklch(92% 0.02 80);
  --dh-cream-dim: oklch(78% 0.02 78);
  --dh-ink: oklch(18% 0.018 65);
  --dh-ink-dim: oklch(38% 0.02 68);

  --font-weight-display: 700;
  --line-height-display: 1.1;
  --tracking-display: -0.025em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadcn base tokens ────────────────────────────────────────
     Woodland-cottage palette: warm parchment page, walnut-dark ink,
     muted gold accent, forest-green success, brick-red danger. */
  --background: #F5F0E8;
  --foreground: #1C1A16;
  --card: #FFFFFF;
  --card-foreground: #1C1A16;
  --popover: #FFFFFF;
  --popover-foreground: #1C1A16;
  --primary: #947F57;
  --primary-foreground: #FFFFFF;
  --secondary: color-mix(in srgb, var(--foreground) 4%, var(--background));
  --secondary-foreground: #1C1A16;
  --muted: color-mix(in srgb, var(--foreground) 4%, var(--background));
  --muted-foreground: #6B5E4A;
  --accent: color-mix(in srgb, var(--foreground) 5%, var(--background));
  --accent-foreground: var(--foreground);
  --destructive: #7A2E2E;
  --destructive-foreground: #FFFFFF;
  --border: #DDD5C4;
  --input: #DDD5C4;
  --ring: color-mix(in srgb, var(--primary) 55%, var(--background));
  --success: #4A6741;
  --warning: #8B6914;

  /* ── sidebar — dark walnut ─────────────────────────────────── */
  --sidebar: #1C1A16;
  --sidebar-foreground: #E8E0D0;
  --sidebar-primary: #947F57;
  --sidebar-primary-foreground: #1C1A16;
  --sidebar-accent: color-mix(in srgb, #E8E0D0 8%, #1C1A16);
  --sidebar-accent-foreground: #E8E0D0;
  --sidebar-border: color-mix(in srgb, #E8E0D0 12%, #1C1A16);
  --sidebar-ring: #947F57;

  /* ── surface hierarchy ─────────────────────────────────────── */
  --background-secondary: color-mix(in srgb, var(--foreground) 3%, var(--background));
  --surface-hover: color-mix(in srgb, var(--foreground) 5%, var(--background));
  --surface-active: color-mix(in srgb, var(--foreground) 8%, var(--background));
  --surface-elevated: var(--card);

  /* ── border hierarchy ──────────────────────────────────────── */
  --border-subtle: color-mix(in srgb, var(--foreground) 6%, var(--background));
  --border-muted: color-mix(in srgb, var(--foreground) 9%, var(--background));
  --border-strong: color-mix(in srgb, var(--foreground) 22%, var(--background));

  /* ── text hierarchy ────────────────────────────────────────── */
  --foreground-secondary: color-mix(in srgb, var(--foreground) 60%, var(--background));

  /* ── primary depth ─────────────────────────────────────────── */
  --primary-hover: color-mix(in srgb, var(--primary) 85%, var(--foreground));
  --primary-muted: color-mix(in srgb, var(--primary) 20%, var(--background));
  --primary-soft: color-mix(in srgb, var(--primary) 10%, var(--background));
  --primary-tint: color-mix(in srgb, var(--primary) 6%, var(--background));

  /* ── focus & error ─────────────────────────────────────────── */
  --focus-ring: color-mix(in srgb, var(--primary) 40%, transparent);
  --error: #7A2E2E;
  --error-foreground: #FFFFFF;

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

  /* ── shadows ───────────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  /* ── motion ────────────────────────────────────────────────── */
  --duration-fast: 100ms;
  --duration-normal: 180ms;
  --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 palette — taken from the DoveHub landing page ─────────
   Near-black walnut page, cream ink, warm amber gold. The app's own
   screens never add the .dark class; the hosted sign-in and sign-up
   pages use this block when their colour scheme is set to dark. */
.dark {
  --background: oklch(12% 0.015 60);
  --foreground: oklch(92% 0.02 80);
  --card: oklch(16% 0.016 62);
  --card-foreground: oklch(92% 0.02 80);
  --popover: oklch(17% 0.016 62);
  --popover-foreground: oklch(92% 0.02 80);
  --primary: oklch(78% 0.13 80);
  --primary-foreground: oklch(14% 0.015 60);
  --secondary: oklch(19% 0.017 62);
  --secondary-foreground: oklch(92% 0.02 80);
  --muted: oklch(19% 0.017 62);
  --muted-foreground: oklch(78% 0.02 78);
  --accent: oklch(21% 0.018 63);
  --accent-foreground: oklch(92% 0.02 80);
  --destructive: oklch(50% 0.15 25);
  --destructive-foreground: oklch(98% 0.005 80);
  --border: oklch(28% 0.02 65);
  --input: oklch(30% 0.02 65);
  --ring: oklch(60% 0.1 78);
  --success: oklch(72% 0.11 140);
  --warning: oklch(80% 0.14 85);

  --sidebar: oklch(10% 0.012 60);
  --sidebar-foreground: oklch(92% 0.02 80);
  --sidebar-primary: oklch(78% 0.13 80);
  --sidebar-primary-foreground: oklch(14% 0.015 60);
  --sidebar-accent: oklch(18% 0.016 62);
  --sidebar-accent-foreground: oklch(92% 0.02 80);
  --sidebar-border: oklch(24% 0.018 64);
  --sidebar-ring: oklch(78% 0.13 80);

  --background-secondary: oklch(14% 0.016 61);
  --surface-hover: oklch(21% 0.018 63);
  --surface-active: oklch(25% 0.02 64);
  --surface-elevated: oklch(19% 0.017 62);

  --border-subtle: oklch(20% 0.017 62);
  --border-muted: oklch(24% 0.018 64);
  --border-strong: oklch(38% 0.025 70);

  --foreground-secondary: oklch(84% 0.02 79);

  --primary-hover: oklch(72% 0.135 78);
  --primary-muted: oklch(30% 0.06 78);
  --primary-soft: oklch(22% 0.04 75);
  --primary-tint: oklch(17% 0.025 70);

  --focus-ring: oklch(78% 0.13 80 / 0.45);
  --error: oklch(70% 0.14 27);
  --error-foreground: oklch(14% 0.015 60);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}
