/* ================================================================
   DESIGN TOKENS
   Single source of truth. Nothing gets a raw value outside here.
================================================================ */
:root {
  /* Brand */
  --sage:        #4A7C59;
  --sage-hover:  #3D6A4A;
  --sage-mid:    #6A9B79;
  --sage-subtle: #E8F2EB;
  --sage-faint:  #F3F8F4;

  /* Surfaces */
  --bg:          #FDFAF6;
  --paper:       #F7F3ED;
  --surface:     #FFFFFF;
  --dark-1:      #1A1A17;
  --dark-2:      #222220;
  --dark-3:      #2A2A27;
  --dark-foot:   #111110;

  /* Text */
  --text-1:      #1A1A17;
  --text-2:      #6B6B65;
  --text-3:      #A3A39B;
  --text-inv:    rgba(255,255,255,0.90);
  --text-inv-2:  rgba(255,255,255,0.55);
  --text-inv-3:  rgba(255,255,255,0.30);

  /* Borders */
  --border:      #E2DDD5;
  --border-dark: rgba(255,255,255,0.08);

  /* Status */
  --good-bg:     #E8F2EB;  --good-text:  #3D6A4A;
  --ok-bg:       #FEF3E2;  --ok-text:    #B86B1A;
  --needs-bg:    #FDE8E8;  --needs-text: #C0392B;

  /* Type scale — 7 stops, mobile-first sizes */
  --t0: 11px;   /* label  */
  --t1: 13px;   /* caption */
  --t2: 15px;   /* body   */
  --t3: 17px;   /* lead   */
  --t4: 21px;   /* title  */
  --t5: 28px;   /* heading */
  --t6: clamp(32px, 6vw, 54px); /* display */

  /* Leading */
  --lh-tight:  1.10;
  --lh-snug:   1.25;
  --lh-normal: 1.55;
  --lh-loose:  1.72;

  /* Radius — 5 values */
  --r1: 8px;
  --r2: 14px;
  --r3: 20px;
  --r4: 28px;
  --r5: 9999px;

  /* Elevation */
  --sh-sm: 0 1px 4px rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.04);
  --sh-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --sh-lg: 0 16px 48px rgba(0,0,0,0.13), 0 4px 14px rgba(0,0,0,0.06);
  --sh-sage: 0 8px 32px rgba(74,124,89,0.22);

  /* Motion */
  --ease: cubic-bezier(0.22,1,0.36,1);
  --fast: 150ms;
  --mid:  250ms;
  --slow: 400ms;

  /* Layout */
  --max-w: 1180px;
  --app-w: 480px;

  /* Fonts */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Touch */
  --touch: 48px;
}