/* Doppio design tokens. Single source for static pages. Dashboard mirrors these in oklch. */
:root {
  /* Colour: brand */
  --c-espresso: #2a1810;
  --c-crema: #f7efe2;
  --c-foam: #fffaf2;
  --c-latte: #e8d9c2;
  --c-copper: #c4572b;
  --c-copper-deep: #a8451f;
  --c-pistachio: #6b8f5e;
  --c-saffron: #e0a526;
  --c-berry: #9b2f46;
  /* Colour: warm neutrals */
  --c-bark: #5a4337;      /* secondary text, 7.6:1 on crema */
  --c-mocha: #8a7263;     /* tertiary, large text only */
  --c-roast: #3f2a20;     /* dark surface raised */

  /* Semantic */
  --bg: var(--c-crema);
  --surface: var(--c-foam);
  --ink: var(--c-espresso);
  --ink-2: var(--c-bark);
  --line: var(--c-latte);
  --accent: var(--c-copper);
  --accent-text: var(--c-copper-deep);
  --ok: var(--c-pistachio);
  --warn: var(--c-saffron);
  --bad: var(--c-berry);
  --focus: 0 0 0 3px var(--c-crema), 0 0 0 5px var(--c-copper-deep);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --t-xs: 0.8rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.25rem;
  --t-lg: 1.5625rem;
  --t-xl: 1.953rem;
  --t-2xl: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  --t-3xl: clamp(2.5rem, 1.5rem + 3.6vw, 4rem);
  --t-display: clamp(2.75rem, 1.6rem + 4.2vw, 5rem);

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  /* Shadow (warm) */
  --sh-1: 0 1px 2px rgb(42 24 16 / 0.08);
  --sh-2: 0 6px 18px -6px rgb(42 24 16 / 0.18), 0 1px 3px rgb(42 24 16 / 0.08);
  --sh-3: 0 24px 48px -16px rgb(42 24 16 / 0.28), 0 4px 10px rgb(42 24 16 / 0.08);

  /* Motion */
  --ease-pour: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.34, 1.4, 0.64, 1);
  --d-fast: 160ms; --d-base: 280ms; --d-slow: 520ms; --d-steam: 4200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --d-fast: 1ms; --d-base: 1ms; --d-slow: 1ms; --d-steam: 1ms; }
}
