/* Design tokens: commodities-gold. Refined, deep neutral (charcoal) with a gold accent on warm ivory paper.
   Gold is a FILL or BORDER only, never small text on light. Links use deep bronze for contrast.
   Contrast (hand-calculated, AA): ink on paper ~16:1, bronze link on paper ~7:1, paper on charcoal header ~15:1,
   ink on gold fill ~7:1, gold on charcoal ~8:1, error-700 on white ~6.5:1, success-700 on success-bg ~6:1.
   Type: system stacks, serif headings for a refined feel, 1.25 scale. Names such as --color-navy-* are what the
   shared layout CSS reads: here navy-800 is charcoal and navy-700 is bronze. */
:root {
  --color-paper: #f7f4ec;
  --color-surface: #ffffff;
  --color-ink: #1c1a16;
  --color-navy-800: #23211c;
  --color-navy-700: #6b4a08;
  --color-safety: #d4a017;
  --color-gold-300: #ecd48a;
  --color-gold-100: #f6ecc9;
  --color-steel-700: #54504a;
  --color-steel-300: #cfc8b8;
  --color-steel-100: #e9e4d6;
  --color-error-700: #b3261e;
  --color-error-bg: #fdecea;
  --color-warning-800: #7a4a00;
  --color-warning-bg: #fff1d6;
  --color-success-700: #1e6b45;
  --color-success-bg: #e6f4ec;
  --color-focus: #0b63ce;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-md: 1.3rem;
  --text-lg: 1.65rem;
  --text-xl: 2.1rem;
  --text-2xl: 2.7rem;
  --leading-tight: 1.2;
  --leading-body: 1.65;
  --weight-heading: 700;

  --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;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --border-width: 1px;
  --shadow-card: 0 1px 3px rgba(28, 26, 22, 0.14), 0 6px 16px rgba(28, 26, 22, 0.06);
  --content-width: 66rem;
  --measure: 64ch;

  --field-height: 3rem;
  --field-border: var(--border-width) solid var(--color-steel-700);
  --field-border-error: var(--border-width) solid var(--color-error-700);
  --focus-ring: 3px solid var(--color-focus);
}
