/* ========================================================================
   TradeFlow Design System — Tokens
   Dark, plain-accent direction. Single source of truth.
   ======================================================================== */

:root {
  /* ---- Surface ---- */
  --bg:           #0f0e0c;   /* page background */
  --bg-tint:      #1a1815;   /* alt section bg */
  --bg-deep:      #262320;   /* card surfaces */
  --paper:        #16140f;   /* elevated surface */

  /* ---- Ink ---- */
  --ink:          #f5efe5;   /* primary text */
  --ink-soft:     #b8ad9c;   /* secondary text */
  --ink-muted:    #7a7060;   /* tertiary / labels */
  --line:         #2a2723;   /* hairline borders */

  /* ---- Accent ---- */
  --accent:       #ff8a4c;   /* primary accent (orange) */
  --accent-deep:  #c2410c;   /* hover / pressed */
  --accent-soft:  #3a2418;   /* tinted backgrounds */

  /* ---- Inverse panel (light-on-dark blocks) ---- */
  --invert-bg:        #f5efe5;
  --invert-fg:        #0f0e0c;
  --invert-fg-soft:   rgba(15, 14, 12, 0.7);
  --invert-fg-muted:  rgba(15, 14, 12, 0.55);
  --invert-card-bg:   rgba(15, 14, 12, 0.04);
  --invert-card-border: rgba(15, 14, 12, 0.1);
  --invert-accent:    #c2410c;

  /* ---- Status ---- */
  --success:      #4ade80;

  /* ---- Type ---- */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --text-xs:  12px;
  --text-sm:  14px;
  --text-md:  16px;
  --text-lg:  19px;
  --text-xl:  24px;
  --text-2xl: 32px;
  --text-3xl: 46px;
  --text-4xl: 64px;
  --text-5xl: 76px;

  /* ---- Spacing ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Radii ---- */
  --radius-sm:  6px;
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* ---- Layout ---- */
  --container: 1200px;
  --gutter:    28px;
}

/* ========================================================================
   Base resets + typographic primitives
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: var(--text-md);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono); }
.italic { font-style: italic; }
