/* Finca Colibrí brand tokens. Copy this file into any repo that needs the family look.
   Light is the default; dark follows prefers-color-scheme (no JS). The Cabinas accent is
   opt-in: put data-accent="niebla" | "heliconia" | "barro" on any element.
   test/brand.test.js checks the contrast of every pair named in README.md. */

:root {
  color-scheme: light dark;

  /* Raw brand colours (shared with Creaciones Colibrí). Use for fills and decoration. */
  --fc-ink: #2f2b28;
  --fc-cream: #fdf8f3;
  --fc-coral: #f16745;
  --fc-teal: #1f8a70;
  --fc-gold: #f7ba2a;

  /* Text-safe deepenings: coral and teal fail AA as text on cream (2.9 and 4.0). */
  --fc-coral-deep: #b3401f;
  --fc-teal-deep: #17705a;

  /* Semantic, light */
  --bg: #fdf8f3;
  --surface: #ffffff;
  --text: #2f2b28;
  --text-muted: #5c4a4a;
  --line: #e7ddd2;
  --link: #17705a;
  --brand: #17705a;
  --on-brand: #fdf8f3;
  --focus: #2f2b28;
  --coral-text: #b3401f;
  --gold: #f7ba2a;
  --coral: #f16745;
  --teal: #1f8a70;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-l: 1.5rem;
  --radius-m: 1rem;
  --radius-s: 0.5rem;
}

/* Cabinas Colibrí accent candidates (owners pick one). Each defines:
   --accent        text and fills on --bg / --surface
   --on-accent     text placed on an --accent fill
   --accent-soft   tinted card background (--text and --accent both stay AA on it) */
[data-accent="niebla"]    { --accent: #2e6b55; --on-accent: #fdf8f3; --accent-soft: #e3eee8; }
[data-accent="heliconia"] { --accent: #b8341a; --on-accent: #fdf8f3; --accent-soft: #fdeee8; }
[data-accent="barro"]     { --accent: #9c4f2d; --on-accent: #fdf8f3; --accent-soft: #f8ece3; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --surface: #26211e;
    --text: #f6efe7;
    --text-muted: #cbbfb3;
    --line: #40372f;
    --link: #5fd1b0;
    --brand: #5fd1b0;
    --on-brand: #1c1917;
    --focus: #f7ba2a;
    --coral-text: #ff9a7d;
  }
  [data-accent="niebla"]    { --accent: #8fd1b3; --on-accent: #1c1917; --accent-soft: #213129; }
  [data-accent="heliconia"] { --accent: #ff8f70; --on-accent: #1c1917; --accent-soft: #3a2019; }
  [data-accent="barro"]     { --accent: #e8a27c; --on-accent: #1c1917; --accent-soft: #34261c; }
}
