/* Plannative design tokens, shared by application.tailwind.css (public site)
   and vendor_application.tailwind.css (signed-in shells). Import it after
   tailwindcss and the daisyui plugin.

   Contrast (WCAG 2.2 AA): every colour below passes 4.5:1 as text on
   base-100, base-200 and on its own 8–10% tint (daisyUI soft badges/alerts),
   and its *-content colour passes on the filled version. Gold is the
   exception: it is too light to be text on cream, so the brand gold stays
   for fills and decoration, and gold *text* uses --accent-ink instead
   (text-accent-ink, and the soft/outline accent badges below). */

@theme {
  --font-display: "Fraunces", serif;
  --font-sans: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

@theme inline {
  --color-accent-ink: var(--accent-ink);
}

@plugin "daisyui/theme" {
  name: "trove";
  default: true;
  prefersdark: false;
  color-scheme: light;

  /* base — warm near-white, so the jewel accents pop */
  --color-base-100: #FFFCF9;
  --color-base-200: #F8EFE6;
  --color-base-300: #EAE0D0;
  --color-base-content: #241934; /* deep aubergine ink */

  /* primary = berry, main CTAs (Send inquiry, Save changes) */
  --color-primary: #C4275E;
  --color-primary-content: #FFFFFF;

  /* secondary = jewel teal, supporting emphasis */
  --color-secondary: #0E7863;
  --color-secondary-content: #FFFFFF;

  /* accent = warm gold, used sparingly — the seal/verified mark, celebratory
     touches. Fill only; see --accent-ink for gold text. */
  --color-accent: #D9A62A;
  --color-accent-content: #241934;
  --accent-ink: #846418;

  /* neutral = deep aubergine, nav/dark surfaces */
  --color-neutral: #241934;
  --color-neutral-content: #F8EFE6;

  /* semantic */
  --color-info: #3158F3;
  --color-success: #0B7954;
  --color-warning: #846418;
  --color-error: #CA2121;
  --color-info-content: #FFFFFF;
  --color-success-content: #FFFFFF;
  --color-warning-content: #FFFFFF;
  --color-error-content: #FFFFFF;

  --radius-selector: 0.375rem;
  --radius-field: 0.5rem;
  --radius-box: 0.85rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;
}

@plugin "daisyui/theme" {
  name: "trove-dark";
  default: false;
  prefersdark: true;
  color-scheme: dark;

  /* base — dark aubergine surfaces, stepping up in lightness, warm cream text */
  --color-base-100: #1A1224;
  --color-base-200: #241934;
  --color-base-300: #33243F;
  --color-base-content: #F3E9DC;

  /* same jewel family, brightened so they stay vivid on dark surfaces */
  --color-primary: #EF6095;
  --color-primary-content: #1A1224;

  --color-secondary: #15A589;
  --color-secondary-content: #1A1224;

  --color-accent: #E5B93A;
  --color-accent-content: #1A1224;
  --accent-ink: #E5B93A;

  --color-neutral: #120B1A;
  --color-neutral-content: #F3E9DC;

  --color-info: #728BFF;
  --color-success: #17B482;
  --color-warning: #E5B93A;
  --color-error: #F26363;
  --color-info-content: #1A1224;
  --color-success-content: #1A1224;
  --color-warning-content: #1A1224;
  --color-error-content: #1A1224;

  --radius-selector: 0.375rem;
  --radius-field: 0.5rem;
  --radius-box: 0.85rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;
}

/* daisyUI paints soft and outline badges in the badge colour itself, which
   fails for gold on cream, and for neutral (near-black) on the dark theme. */
.badge-accent:is(.badge-soft, .badge-outline) {
  color: var(--accent-ink);
}
.badge-neutral:is(.badge-soft, .badge-outline) {
  color: var(--color-base-content);
}

/* Honour the OS "reduce motion" setting everywhere (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
