/* Yezbi Homestead's color roles. styles.css uses only these roles; the one exception is the map's own artwork (plant pins,
   outlines, parcel lines, the GPS dot), which sits on aerial photos and keeps its colors in both themes.
   test/yezbi-look.test.mjs holds both rules, and test/look-contrast.test.mjs checks every pairing below in both themes.

   November 28, 2026, Derek: "because it's a homestead app, maybe (and I'm going to market it to my food forest nursery),
   maybe we adopt some of its colors and styling for the app. Keep the logo the same color and style, but just the app
   itself: make it more natural, plant, soil, sky look."
   - The palette is the app's own (DESIGN.md: palettes are app-owned), drawn from Food Forest Nursery's brand colors
     (FFN Manager, FFN Content/brand-kit/colors.md, confirmed by Derek on May 29, 2026):
       leaf green #0b6f29 (the nursery's signature green) for actions; sky blue from its info blue #b6dbff and link blue
       #007bf7 for links, focus and info washes; the light leaf #d1e392; harvest sand #cdb07f; terracotta #C47E5A; brick
       red #A0392B; and its ink #2c3e50 for text.
     Where a nursery color is too light for text it is darkened only as far as needed for 4.5:1 (sand, terracotta, sky);
     where it is a fill, it is lightened into a soft wash. The cream paper is a warm step from the nursery's #f8f9fb.
     The nursery has no dark palette, so the Dark values are derived: night soil and forest greens with the same hues.
   - The Yezbi lockup and the header bar are unchanged: they keep the shared tokens (--yz-header-*, --yz-brand-name and
     the wordmark), so --g-header and --g-header-line below stay mapped onto them. Nothing here redefines a --yz- token.
   - appearance.js puts data-yezbi-theme on <html>; color-scheme follows it for form controls. */
:root,
[data-yezbi-theme="light"] {
  /* Surfaces: cream paper, warm white cards, sand washes. */
  --g-paper: #F5F2E8;
  --g-card: #FFFDF8;
  --g-sidebar: #FAF7EE;
  --g-soft: #EDE8D9;
  --g-hover: #E6E0CD;
  --g-line: #D9D1BB;           /* decorative divider */
  --g-control-line: #847A62;   /* field and control edges, 3:1 or better on card, soft and paper */
  /* Text: the nursery's ink, and an olive-gray for quieter words. */
  --g-ink: #2C3E50;
  --g-muted: #5A604F;
  /* Actions, the selected menu item: the nursery's leaf green. Focus and links: sky blue. */
  --g-primary: #0B6F29;
  --g-primary-hover: #095A21;
  --g-on-primary: #FFFFFF;
  --g-primary-soft: #E3EED8;
  --g-primary-on-soft: #0A5A22;
  --g-focus: #2C6DB0;
  --g-sky: #2B6699;
  --g-sky-soft: #E3EEF8;
  /* Plant things (dots, badges, the growing-story line), berries, harvest, soil and warnings. */
  --g-leaf: #4A7322;
  --g-leaf-soft: #EDF2D3;
  --g-berry-soft: #EFE7EE;
  --g-gold: #77591C;
  --g-gold-soft: #F4EAD1;
  --g-emphasis: #9A4A26;
  --g-emphasis-soft: #F6E6DA;
  --g-danger: #A0392B;
  --g-danger-soft: #F7E2DE;
  --g-on-danger: #FFFFFF;
  /* Snackbars. */
  --g-inverse: #263329;
  --g-on-inverse: #F3F1E7;
  /* The Yezbi header bar: unchanged. */
  --g-header: var(--yz-header-bg);
  --g-header-line: var(--yz-header-border);
  /* Shadows and scrims: a red, green, blue triple, used as rgb(var(--g-shadow-rgb) / alpha). */
  --g-shadow-rgb: 46 40 22;
  --g-scrim-rgb: 28 26 16;
  color-scheme: light;
}
[data-yezbi-theme="dark"] {
  /* Night soil and forest. */
  --g-paper: #131915;
  --g-card: #1B231E;
  --g-sidebar: #171E1A;
  --g-soft: #243029;
  --g-hover: #2B3931;
  --g-line: #37453B;
  --g-control-line: #758A79;
  --g-ink: #ECF0E6;
  --g-muted: #B5C0B0;
  --g-primary: #8FD3A0;
  --g-primary-hover: #ABE0B8;
  --g-on-primary: #0C2A16;
  --g-primary-soft: #213B2A;
  --g-primary-on-soft: #BCE6C6;
  --g-focus: #93C3F0;
  --g-sky: #96C6EF;
  --g-sky-soft: #1D2E3B;
  --g-leaf: #B5DB8F;
  --g-leaf-soft: #263820;
  --g-berry-soft: #332A36;
  --g-gold: #E2C788;
  --g-gold-soft: #393122;
  --g-emphasis: #EFB28E;
  --g-emphasis-soft: #3E2B21;
  --g-danger: #F1A293;
  --g-danger-soft: #432826;
  --g-on-danger: #1B231E;
  --g-inverse: #ECF0E6;
  --g-on-inverse: #1B231E;
  --g-header: var(--yz-header-bg);
  --g-header-line: var(--yz-header-border);
  --g-shadow-rgb: 0 0 0;
  --g-scrim-rgb: 0 0 0;
  color-scheme: dark;
}
