/* Culinary Routes – design tokens.
   Warm paper, dark ink, and a transit palette for the lines.
   Dark mode follows the system unless the visitor picks a theme. */

:root {
  color-scheme: light;

  --paper: #f6f0e4;
  --paper-2: #fdfaf3;
  --paper-3: #ede4d2;
  --paper-4: #e3d8c3;
  --ink: #1f1b16;
  --ink-2: #5e574c;
  --ink-3: #8a8275;
  --rule: #e3d9c7;
  --shadow: 0 1px 2px rgba(60, 40, 10, 0.06), 0 12px 32px -12px rgba(60, 40, 10, 0.18);
  --shadow-lg: 0 2px 4px rgba(60, 40, 10, 0.08), 0 30px 60px -24px rgba(60, 40, 10, 0.35);

  --c-tomato: #e2573a;
  --c-saffron: #e39a2e;
  --c-basil: #3e9a5e;
  --c-blueberry: #3d6fd6;
  --c-plum: #8e4fa8;
  --c-cocoa: #8a5a3c;
  --c-teal: #1f9e99;
  --c-rose: #d9668a;
  --c-olive: #7d8f2e;
  --c-slate: #5b6b7f;

  --accent: var(--c-tomato);
  --accent-ink: #fff;
  --flow: rgba(255, 255, 255, 0.78);
  --band-alpha: 0.07;

  --cat-produce: #4da66a;
  --cat-dairy: #e9c46a;
  --cat-protein: #d9775b;
  --cat-grain: #c9a46a;
  --cat-sweet: #d96c8c;
  --cat-fat: #d8c24b;
  --cat-spice: #b08968;
  --cat-liquid: #4f86d6;
  --cat-pantry: #9b7bc2;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141210;
    --paper-2: #1d1a16;
    --paper-3: #26221d;
    --paper-4: #332d26;
    --ink: #f3ecdf;
    --ink-2: #bdb3a2;
    --ink-3: #8f8678;
    --rule: #2e2922;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
    --c-tomato: #f0735a;
    --c-saffron: #f0b24d;
    --c-basil: #5dba7a;
    --c-blueberry: #6b93ee;
    --c-plum: #b07ccb;
    --c-cocoa: #bb8a66;
    --c-teal: #41bdb7;
    --c-rose: #e88aa8;
    --c-olive: #a2b54b;
    --c-slate: #8a9bb0;
    --accent-ink: #1a110c;
    --flow: rgba(255, 255, 255, 0.55);
    --band-alpha: 0.1;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141210;
  --paper-2: #1d1a16;
  --paper-3: #26221d;
  --paper-4: #332d26;
  --ink: #f3ecdf;
  --ink-2: #bdb3a2;
  --ink-3: #8f8678;
  --rule: #2e2922;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  --c-tomato: #f0735a;
  --c-saffron: #f0b24d;
  --c-basil: #5dba7a;
  --c-blueberry: #6b93ee;
  --c-plum: #b07ccb;
  --c-cocoa: #bb8a66;
  --c-teal: #41bdb7;
  --c-rose: #e88aa8;
  --c-olive: #a2b54b;
  --c-slate: #8a9bb0;
  --accent-ink: #1a110c;
  --flow: rgba(255, 255, 255, 0.55);
  --band-alpha: 0.1;
}
