/* ============================================================
   BOLETAIRES.CAT — Design Tokens · Digital Herbarium
   ============================================================ */

:root {
  /* --- Surface Hierarchy (forest-floor paper stack) --- */
  --surface:                   #fcf9f0;
  --surface-bright:            #fcf9f0;
  --surface-dim:               #dddad1;
  --surface-container-lowest:  #ffffff;
  --surface-container-low:     #f6f3ea;
  --surface-container:         #f1eee5;
  --surface-container-high:    #ebe8df;
  --surface-container-highest: #e5e2da;
  --surface-variant:           #e5e2da;

  /* --- Primary (deep forest green) --- */
  --primary:                   #17340e;
  --on-primary:                #ffffff;
  --primary-container:         #2d4b22;
  --on-primary-container:      #97bb87;
  --primary-fixed:             #c8edb5;
  --primary-fixed-dim:         #add19b;
  --inverse-primary:           #add19b;

  /* --- Secondary (warm amber/oak) --- */
  --secondary:                 #805533;
  --on-secondary:              #ffffff;
  --secondary-container:       #fdc39a;
  --on-secondary-container:    #794e2e;
  --secondary-fixed:           #ffdcc5;
  --secondary-fixed-dim:       #f4bb92;
  --on-secondary-fixed:        #301400;

  /* --- Tertiary (lichen yellow-green) --- */
  --tertiary:                  #283100;
  --on-tertiary:               #ffffff;
  --tertiary-container:        #3c4903;
  --on-tertiary-container:     #a8b969;
  --tertiary-fixed:            #daeb95;
  --tertiary-fixed-dim:        #bece7c;
  --on-tertiary-fixed:         #181e00;

  /* --- Error --- */
  --error:                     #ba1a1a;
  --on-error:                  #ffffff;
  --error-container:           #ffdad6;
  --on-error-container:        #93000a;

  /* --- Background & On-Surface --- */
  --background:                #fcf9f0;
  --on-background:             #1c1c17;
  --on-surface:                #1c1c17;
  --on-surface-variant:        #43483f;

  /* --- Outlines (ghost borders only — never 100% opacity) --- */
  --outline:                   #73796e;
  --outline-variant:           #c3c8bc;

  /* --- Inverse --- */
  --inverse-surface:           #31312b;
  --inverse-on-surface:        #f4f1e8;

  /* --- Edibility (legacy var names for JS badge compatibility) --- */
  --color-excellent:           #17340e;
  --color-excellent-bg:        #c8edb5;
  --color-good:                #304e25;
  --color-good-bg:             #daeb95;
  --color-mediocre:            #653d1e;
  --color-mediocre-bg:         #ffdcc5;
  --color-caution:             #7c4009;
  --color-caution-bg:          #ffdcc5;
  --color-inedible:            #43483f;
  --color-inedible-bg:         #e5e2da;
  --color-toxic:               #93000a;
  --color-toxic-bg:            #ffdad6;

  /* --- Typography --- */
  --font-display: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'Manrope', system-ui, sans-serif; /* labels reuse body */

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Line heights */
  --leading-tight:   1.2;
  --leading-snug:    1.375;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* --- Spacing --- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* --- Layout --- */
  --container-max: 1280px;
  --container-pad: var(--space-8);
  --nav-height:    68px;
  --section-pad:   var(--space-20);

  /* --- Radii (no sharp corners — xl minimum for cards) --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-full: 9999px;

  /* --- Ambient Shadows (tonal, not hard) --- */
  --shadow-sm:         0 2px 16px rgba(28,28,23,0.05);
  --shadow-card:       0 4px 40px -4px rgba(28,28,23,0.06);
  --shadow-card-hover: 0 16px 48px -8px rgba(28,28,23,0.12);
  --shadow-nav:        0 2px 24px rgba(28,28,23,0.07);
  --shadow-modal:      0 32px 80px rgba(28,28,23,0.18);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* --- Z-index --- */
  --z-nav:     100;
  --z-modal:   200;
  --z-tooltip: 300;

  /* --- Season colors --- */
  --color-lichen: #bece7c;
  --color-spore:  #f4bb92;
}
