/* Design tokens: Field Trial Plot Plan.
   Plan paper and ink carry the surface; survey red is rationed to actions, selection and the scan line;
   the soil-to-leaf ramp is reserved for data. */
:root {
  /* ground and ink */
  --paper: #F2F3EE;
  --paper-raised: #FAFBF7;
  --paper-sunk: #E6E8E0;
  --rule: #C7CCC2;
  --rule-strong: #8E968C;
  --ink: #1C2420;
  --ink-soft: #4E5A52;
  --ink-faint: #5C675F;

  /* survey red: actions, selection, scan */
  --survey: #C2462E;
  --survey-deep: #A53A25;
  --survey-tint: #F6E4DE;
  --survey-ink: #FFFFFF;

  /* data ramp: bare soil → canopy */
  --soil: #8A5A2B;
  --ochre: #C9A227;
  --leaf: #7BA23F;
  --canopy: #2F6B2F;
  --ramp: linear-gradient(90deg, var(--soil) 0%, var(--ochre) 42%, var(--leaf) 66%, var(--canopy) 100%);

  /* yield classes (text-safe tones of the ramp) */
  --good: #2F6B2F;  --good-bg: #E1ECDA;
  --fair: #7A5F0E;  --fair-bg: #F3EBCB;
  --poor: #7D4B1E;  --poor-bg: #F1E2D3;

  /* type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-xs: 0.75rem;
  --t-sm: 0.8125rem;
  --t-base: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --t-2xl: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  --track-tight: -0.015em;
  --measure: 64ch;

  /* space (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 80px; --s-11: 120px;
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(56px, 9vw, 120px);

  /* surface */
  --radius: 6px;
  --radius-lg: 10px;
  --e1: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 1px 2px rgb(28 36 32 / 0.06);
  --e2: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 6px 16px -6px rgb(28 36 32 / 0.18);
  --e3: 0 18px 40px -16px rgb(28 36 32 / 0.35);
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--survey);

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 140ms;
  --base: 220ms;
}
