/* Design tokens from the Figma foundations. Components never hardcode colors. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #2f6f6b;
  --primary-dark: #235552;
  --primary-darker: #1b4341;
  --primary-soft: #d6e4e2;
  --primary-soft-strong: #bfd5d2;
  --text: #1f2933;
  --text-secondary: #6b7280;
  --success: #3e9b6b;
  --warning: #d9922e;
  --danger: #c4574f;
  --bg: #f7f6f3;
  --surface: #efede8;
  --separator: #e5e7eb;
  --on-primary: #ffffff;

  --success-soft: #dcefe4;
  --warning-soft: #f7e8cf;
  --danger-soft: #f3dad7;

  --font: "Vazirmatn", system-ui, sans-serif;
  --fs-caption: 0.8125rem;
  --fs-body: 1rem;
  --fs-title: 1.25rem;
  --fs-number: 2rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-pill: 999px;
  --shadow-sheet: 0 -8px 32px rgb(31 41 51 / 0.16);

  --nav-height: 76px;
  --focus: 0 0 0 3px rgb(47 111 107 / 0.35);
}

/* Category palette: muted tones around the brand teal. */
.cat-teal { --cat-bg: #cfe0dd; --cat-fg: #2f6f6b; }
.cat-sage { --cat-bg: #d5e6da; --cat-fg: #2f7a52; }
.cat-sand { --cat-bg: #f0e3c4; --cat-fg: #8f6414; }
.cat-clay { --cat-bg: #f2d6d2; --cat-fg: #a64640; }
.cat-sky { --cat-bg: #d3e4f2; --cat-fg: #2f6590; }
.cat-plum { --cat-bg: #e5d8ea; --cat-fg: #7a4a8c; }
.cat-olive { --cat-bg: #e0e6c7; --cat-fg: #667a1f; }
.cat-slate { --cat-bg: #dde0e6; --cat-fg: #4b5563; }
