/*
  Storetoise theme — the ONLY place color, radius and font values live.
  Rules for using them: docs/design-system/README.md
  Imported from application.css right after `@import "tailwindcss";`
*/

@plugin "daisyui" {
  themes: storetoise --default, storetoise-dark --prefersdark;
}

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

  --color-primary: #152633;
  --color-primary-content: #ffffff;
  --color-secondary: #4f5c66;
  --color-secondary-content: #ffffff;
  --color-accent: #32894b;
  --color-accent-content: #ffffff;
  --color-neutral: #0c161e;
  --color-neutral-content: #e7e9ea;
  --color-base-100: #ffffff;
  --color-base-200: #e7e9ea;
  --color-base-300: #c4c8cc;
  --color-base-content: #152633;
  --color-info: #3a6fa8;
  --color-info-content: #ffffff;
  --color-success: #32894b;
  --color-success-content: #ffffff;
  --color-warning: #b8862f;
  --color-warning-content: #0c161e; /* was #ffffff: ~3:1 on this amber, failed WCAG AA */
  --color-error: #b3423a;
  --color-error-content: #ffffff;

  --radius-selector: 0.5rem;
  --radius-field: 0.5rem;
  --radius-box: 0.75rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;

  --surface: #ffffff;
  --tile: #e7e9ea;
  --brand-green: #29773F;
  --occupied: #152633;
  --on-dark-accent: #7FC795;
  --on-dark-muted: #c4c8cc;
}

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

  --color-primary: #e7e9ea;
  --color-primary-content: #0c161e;
  --color-secondary: #a9b2b9;
  --color-secondary-content: #0c161e;
  --color-accent: #4FAE6A;
  --color-accent-content: #0c161e;
  --color-neutral: #152633;
  --color-neutral-content: #e7e9ea;
  --color-base-100: #0c161e;
  --color-base-200: #111f2a;
  --color-base-300: #2b3c48;
  --color-base-content: #e7e9ea;
  --color-info: #6a9bd1;
  --color-info-content: #0c161e;
  --color-success: #4FAE6A;
  --color-success-content: #0c161e;
  --color-warning: #b8862f;
  --color-warning-content: #0c161e;
  --color-error: #e0736a;
  --color-error-content: #0c161e;

  --radius-selector: 0.5rem;
  --radius-field: 0.5rem;
  --radius-box: 0.75rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;

  --surface: #152633;
  --tile: #0c161e;
  --brand-green: #6FBF86;
  --occupied: #4f6a7d;
  --on-dark-accent: #7FC795;
  --on-dark-muted: #c4c8cc;
}

/* Custom tokens as Tailwind colors: bg-surface, bg-tile, text-brand-green, bg-occupied, text-on-dark-accent, text-on-dark-muted.
   If daisyUI drops the non --color-* properties above, move them into plain
   [data-theme="storetoise"] / [data-theme="storetoise-dark"] rules and keep this block. */
@theme inline {
  --color-surface: var(--surface);
  --color-tile: var(--tile);
  --color-brand-green: var(--brand-green);
  --color-occupied: var(--occupied);
  --color-on-dark-accent: var(--on-dark-accent);
  --color-on-dark-muted: var(--on-dark-muted);
}

/* `dark:` follows the daisyUI theme attribute, not only the OS setting */
@custom-variant dark (&:where([data-theme=storetoise-dark], [data-theme=storetoise-dark] *));

@theme {
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
}
