/* The Little Seed: design tokens
   Layer 1 primitive (raw values) -> Layer 2 semantic (purpose) -> Layer 3 component.
   Components must use semantic/component tokens, never raw hex. */

:root {
  /* ───────── 1. PRIMITIVE ───────── */

  /* Poppy (from the logo). 500 is decorative only: it is 2.7:1 on white. */
  --poppy-100: #FDF1E2;
  --poppy-300: #F0A84E;
  --poppy-500: #E8831A;
  --poppy-700: #A64F06;   /* white on this = 5.6:1 */
  --poppy-800: #8A4005;

  /* Sage */
  --sage-100: #E6EEE3;
  --sage-200: #D3DDD0;
  --sage-300: #8AAB85;
  --sage-500: #4A6741;
  --sage-700: #3C5636;
  --sage-900: #24361F;

  /* Warm neutrals */
  --white: #FFFFFF;
  --cream-50: #FAF6EE;
  --clay-100: #F1E6D6;
  --clay-200: #E2D6C3;
  --stone-500: #857C70;   /* UI borders: 3:1+ on white/cream */
  --gray-600: #5E5852;
  --charcoal-900: #26231F;

  /* Earth (illustration only) */
  --earth-100: #EFE3D2;
  --earth-300: #CDB08E;
  --earth-500: #8C6A4A;

  /* Amber (shader hero only) */
  --amber-300: #F5C26B;
  --ember-900: #0B0604;
  --ember-700: #3A1F0A;

  /* Type */
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);
  --text-4xl: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);

  /* Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  /* Shape, depth, motion */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(38, 35, 31, 0.08);
  --shadow-md: 0 8px 24px rgba(38, 35, 31, 0.08);
  --shadow-lg: 0 18px 48px rgba(38, 35, 31, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 650ms;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --nav-height: 72px;

  /* ───────── 2. SEMANTIC ───────── */

  --color-bg: var(--white);
  --color-bg-warm: var(--cream-50);
  --color-bg-band: var(--clay-100);
  --color-bg-sage: var(--sage-100);
  --color-bg-accent-soft: var(--poppy-100);
  --color-bg-dark: var(--sage-900);
  --color-surface: var(--white);

  --color-text: var(--charcoal-900);
  --color-text-muted: var(--gray-600);
  --color-heading: var(--charcoal-900);
  --color-accent: var(--sage-700);          /* script accents, links, labels */
  --color-eyebrow: var(--poppy-700);
  --color-decor: var(--poppy-500);          /* decorative only, never text on light */

  --color-cta-bg: var(--poppy-700);
  --color-cta-bg-hover: var(--poppy-800);
  --color-cta-text: var(--white);

  --color-link: var(--sage-700);
  --color-link-hover: var(--poppy-700);
  --color-border: var(--clay-200);
  --color-border-strong: var(--stone-500);  /* form fields */
  --color-focus: var(--poppy-700);

  --color-surface-glass: rgba(255, 255, 255, 0.96);
  --color-divider-on-dark: rgba(255, 255, 255, 0.18);
  --shadow-header: 0 2px 20px rgba(38, 35, 31, 0.08);
  --glass-poppy-bg: rgba(232, 131, 26, 0.12);
  --glass-poppy-bg-hover: rgba(232, 131, 26, 0.22);
  --glass-poppy-border: rgba(240, 168, 78, 0.38);
  --glow-poppy: 0 12px 32px rgba(232, 131, 26, 0.35);
  --ember-veil: rgba(11, 6, 4, 0.62);
  --ember-text-shadow: 0 1px 14px rgba(11, 6, 4, 0.75);
  --slides-shade-strong: rgba(20, 14, 10, 0.82);
  --slides-shade-mid: rgba(20, 14, 10, 0.62);
  --slides-shade-soft: rgba(20, 14, 10, 0.18);
  --slides-track: rgba(255, 255, 255, 0.32);
  --logo-shadow: 0 2px 12px rgba(11, 6, 4, 0.6);

  --color-on-dark: var(--white);
  --color-on-dark-muted: var(--sage-200);
  --color-accent-on-dark: var(--poppy-300);

  /* ───────── 3. COMPONENT ───────── */

  --plant-stem: var(--sage-500);
  --plant-leaf-light: var(--sage-300);
  --plant-leaf-dark: var(--sage-500);
  --plant-petal: var(--poppy-500);
  --plant-petal-light: var(--poppy-300);
  --plant-center: var(--charcoal-900);
  --soil-fill: var(--earth-100);
  --soil-line: var(--earth-300);
  --seed: var(--earth-500);

  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.75rem;
  --btn-min-height: 48px;
  --card-radius: var(--radius-lg);
  --card-pad: var(--space-6);
  --card-border: 1px solid var(--color-border);
  --card-shadow-hover: var(--shadow-lg);
  --field-radius: var(--radius-sm);
  --field-pad: 0.8rem 1rem;
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
}
