/* ==========================================================================
   Theme: editorial (warm paper, ink, yellow for Work, terracotta for Life)
   A theme only sets tokens. Copy this file, change the values, and point
   `theme` in src/_data/site.js at the new file name.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Newsreader", ui-serif, "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Base */
  --paper: #faf9f5;
  --surface: #ffffff;
  --ink: #1d1d1b;
  --muted: #5f5e59;
  --line: #e3e0d6;
  --focus: #7a5c00;

  /* Work: dark panel, yellow accent */
  --work-bg: #1d1d1b;
  --work-fg: #f3f1ea;
  --work-muted: #b5b2a8;
  --work-line: #3a3935;
  --work-accent: #f4ca28;        /* fills, rules, dots */
  --work-accent-ink: #7a5c00;    /* accent used as text on light backgrounds */
  --work-on-accent: #1d1d1b;

  /* Life: warm sand panel, terracotta accent */
  --life-bg: #efe8da;
  --life-fg: #1d1d1b;
  --life-muted: #5c574d;
  --life-line: #dcd2bf;
  --life-accent: #b4472e;
  --life-accent-ink: #a23f28;
  --life-on-accent: #ffffff;

  /* Projects: petrol accent */
  --proj-accent: #2f6f8f;
  --proj-accent-ink: #24607d;

  /* Shape */
  --radius: 20px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131311;
    --surface: #1b1b19;
    --ink: #edebe4;
    --muted: #a9a69c;
    --line: #2d2c28;
    --focus: #f4ca28;

    --work-bg: #1f1d14;
    --work-fg: #f3f1ea;
    --work-muted: #b9b39c;
    --work-line: #3a3624;
    --work-accent-ink: #f4ca28;

    --life-bg: #221b17;
    --life-fg: #f1ebe4;
    --life-muted: #bfb1a5;
    --life-line: #3d302a;
    --life-accent: #e0805f;
    --life-accent-ink: #ec9474;
    --life-on-accent: #1d1d1b;
    --proj-accent: #74b6d4;
    --proj-accent-ink: #74b6d4;
  }
}
