:root {
  --g:       #4ADE80;
  --gt:      #16A34A;
  --gbg:     #F0FDF4;
  --gborder: #BBF7D0;
  --bg:      #FFFFFF;
  --s1:      #F9F9F9;
  --s2:      #F3F4F6;
  --s3:      #E5E7EB;
  --border:  #E5E7EB;
  --text:    #0F0F0F;
  --muted:   #6B7280;
  --dim:     #9CA3AF;
  --copy:    #374151; /* secondary body copy */
  --prose:   #1F2937; /* long-form article text */
  --on-g:    #0F0F0F; /* text on a green or category fill; stays dark in both themes */
  --tint:    100%;    /* strongest green tint behind text that uses --text */
  color-scheme: light;
  --font-h: 'Space Grotesk', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --font-b: 'Inter', sans-serif;

  /* Category colours (learn.mayur.life). Fill / text-on-white pairs. Learnings = brand green. */
  --blog:         #FBBF24;
  --blog-t:       #B45309;
  --blog-bg:      #FFFBEB;
  --blog-border:  #FDE68A;
  --paper:        #60A5FA;
  --paper-t:      #1D4ED8;
  --paper-bg:     #EFF6FF;
  --paper-border: #BFDBFE;
}

/* Dark theme. data-theme is set in each layout's <head>: the visitor's saved choice, or else the device setting.
   White stays the default; only the tokens change. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --gt:      #4ADE80;
    --gbg:     #0F1F15;
    --gborder: #24573A;
    --bg:      #0F0F0F;
    --s1:      #171717;
    --s2:      #1F1F1F;
    --s3:      #2E2E2E;
    --border:  #2E2E2E;
    --text:    #F5F5F5;
    --muted:   #A3A3A3;
    --dim:     #737373;
    --copy:    #D4D4D4;
    --prose:   #E5E5E5;
    --tint:    50%;
    --blog-t:       #FBBF24;
    --blog-bg:      #1F1808;
    --blog-border:  #5C4508;
    --paper-t:      #60A5FA;
    --paper-bg:     #0C1626;
    --paper-border: #1E3A66;
}
