/* ==========================================================================
   Design tokens — edit these to restyle the whole site.
   ========================================================================== */

:root {
  /* Colour — light */
  --bg: #f7f7f5;
  --dot: rgba(11, 11, 12, 0.09);
  --panel: rgba(11, 11, 12, 0.035);
  --panel-strong: rgba(11, 11, 12, 0.06);
  --surface: #ffffff;
  --line: rgba(11, 11, 12, 0.08);
  --text: #0b0b0c;
  --muted: #5d5d62;
  --faint: #8b8b90;
  /* Brand palette — primary green, secondary blue, tertiary orange.
     Green #007F45 and blue #2A6FD6 are Mimmo Marfuggi's; all pass 4.5:1 on --bg.
     Green fill takes white text (5.1:1). Orange ink #C2410C for small text. */
  --primary: #007f45;  --primary-ink: #007f45;  --primary-fill: #007f45;
  --orange:  #cc4800;  --orange-ink:  #c2410c;  --orange-fill:  #cc4800;
  --blue:    #2a6fd6;  --blue-ink:    #2a6fd6;  --blue-fill:    #2a6fd6;
  --green:   #007f45;  --green-ink:   #007f45;  --green-fill:   #007f45;
  --on-primary: #ffffff;   /* text on primary fill */
  --on-green: #ffffff;     /* text on green fill */
  --accent-1: var(--primary);
  --accent-2: var(--blue);
  --accent-3: var(--orange);
  --before: var(--orange);
  --after: var(--green);
  --todo: #fff1a8;

  /* Type */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Clash Display", "Geist", system-ui, sans-serif;   /* Marc Partridge's heading font */
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 975px;
  --gutter: 24px;
  --sidebar: 176px;
  --header-h: 64px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111112;
    --dot: rgba(255, 255, 255, 0.07);
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --surface: #1a1a1c;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f2f2f0;
    --muted: #a3a3a8;
    --faint: #75757a;
    /* Dark: lighter text tones for contrast; fills keep the light-mode value with white text. */
    --primary: #00ca61;  --primary-ink: #00ca61;  --primary-fill: #007f45;
    --orange:  #ff7a33;  --orange-ink:  #ff7a33;  --orange-fill:  #cc4800;
    --blue:    #5fa7ff;  --blue-ink:    #5fa7ff;  --blue-fill:    #5fa7ff;
    --green:   #00ca61;  --green-ink:   #00ca61;  --green-fill:   #00ca61;
    --on-green: #111112;
    --todo: #5a4b12;
  }
}

:root[data-theme="dark"] {
  --bg: #111112;
  --dot: rgba(255, 255, 255, 0.07);
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --surface: #1a1a1c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2f0;
  --muted: #a3a3a8;
  --faint: #75757a;
  /* Dark: lighter text tones for contrast; fills keep the light-mode value with white text. */
  --primary: #00ca61;  --primary-ink: #00ca61;  --primary-fill: #007f45;
  --orange:  #ff7a33;  --orange-ink:  #ff7a33;  --orange-fill:  #cc4800;
  --blue:    #5fa7ff;  --blue-ink:    #5fa7ff;  --blue-fill:    #5fa7ff;
  --green:   #00ca61;  --green-ink:   #00ca61;  --green-fill:   #00ca61;
  --on-green: #111112;
  --todo: #5a4b12;
}
