{
  "$schema": "https://design-tokens.github.io/community-group/format/",
  "color": {
    "brand": {
      "navy": {
        "$value": "#071246",
        "$type": "color",
        "$description": "Canonical brand navy. Logo, primary CTA, hero overlay. hsl(229 82% 15%)."
      }
    },
    "surface": {
      "background": {
        "$value": "hsl(228, 33%, 99%)",
        "$type": "color",
        "$description": "App background."
      },
      "card": {
        "$value": "#FFFFFF",
        "$type": "color",
        "$description": "Card / header surface."
      },
      "popover": {
        "$value": "#FFFFFF",
        "$type": "color"
      }
    },
    "text": {
      "foreground": {
        "$value": "hsl(226, 33%, 18%)",
        "$type": "color"
      },
      "muted-foreground": {
        "$value": "hsl(228, 30%, 48%)",
        "$type": "color",
        "$description": "Secondary copy. 5.5:1 to background."
      },
      "primary-foreground": {
        "$value": "#FFFFFF",
        "$type": "color",
        "$description": "Text on brand navy."
      }
    },
    "primary": {
      "default": {
        "$value": "{color.brand.navy}",
        "$type": "color"
      },
      "foreground": {
        "$value": "#FFFFFF",
        "$type": "color"
      }
    },
    "secondary": {
      "default": {
        "$value": "hsl(227, 32%, 88%)",
        "$type": "color"
      },
      "foreground": {
        "$value": "hsl(226, 33%, 18%)",
        "$type": "color"
      }
    },
    "muted": {
      "default": {
        "$value": "hsl(225, 31%, 95%)",
        "$type": "color"
      },
      "foreground": {
        "$value": "hsl(228, 30%, 48%)",
        "$type": "color"
      }
    },
    "accent": {
      "default": {
        "$value": "hsl(225, 33%, 93%)",
        "$type": "color"
      },
      "foreground": {
        "$value": "{color.brand.navy}",
        "$type": "color"
      }
    },
    "border": {
      "default": {
        "$value": "hsl(227, 30%, 91%)",
        "$type": "color"
      },
      "input": {
        "$value": "hsl(227, 22%, 61%)",
        "$type": "color",
        "$description": "Form-control border. 3:1 (WCAG 1.4.11). Not for hairlines."
      },
      "ring": {
        "$value": "{color.brand.navy}",
        "$type": "color"
      },
      "ring-offset": {
        "$value": "hsl(228, 33%, 99%)",
        "$type": "color",
        "$description": "Gap between control and focus ring."
      }
    },
    "destructive": {
      "default": {
        "$value": "hsl(0, 72%, 45%)",
        "$type": "color",
        "$description": "Fill under white text. 5.8:1."
      },
      "foreground": {
        "$value": "#FFFFFF",
        "$type": "color"
      },
      "text": {
        "$value": "hsl(0, 68%, 46%)",
        "$type": "color",
        "$description": "Error messages as text."
      },
      "accent": {
        "$value": "hsl(0, 82%, 65%)",
        "$type": "color",
        "$description": "Original brand red #EE5959. Borders and icons only, never under text."
      }
    },
    "chart": {
      "1": {
        "$value": "{color.brand.navy}",
        "$type": "color"
      },
      "2": {
        "$value": "hsl(228, 82%, 28%)",
        "$type": "color"
      },
      "3": {
        "$value": "hsl(228, 83%, 66%)",
        "$type": "color"
      },
      "4": {
        "$value": "hsl(228, 82%, 78%)",
        "$type": "color"
      },
      "5": {
        "$value": "hsl(226, 32%, 71%)",
        "$type": "color"
      }
    },
    "warning": {
      "default": {
        "$value": "hsl(48, 100%, 96%)",
        "$type": "color",
        "$description": "Transitional-state surface (≈ amber-50)."
      },
      "border": {
        "$value": "hsl(46, 97%, 65%)",
        "$type": "color"
      },
      "foreground": {
        "$value": "hsl(22, 78%, 26%)",
        "$type": "color",
        "$description": "Text on warning. 8.9:1."
      },
      "accent": {
        "$value": "hsl(32, 95%, 44%)",
        "$type": "color",
        "$description": "Icons only."
      }
    },
    "success": {
      "default": {
        "$value": "hsl(142, 76%, 36%)",
        "$type": "color",
        "$description": "Icons and indicator dots only — 3.3:1 to white, not for text."
      },
      "foreground": {
        "$value": "hsl(142, 76%, 26%)",
        "$type": "color",
        "$description": "Text-safe success green — 5.7:1 on background."
      }
    },
    "brand-telegram": {
      "$value": "hsl(200, 100%, 40%)",
      "$type": "color",
      "$description": "Telegram #0088CC. Icon fills and tinted tiles only — 3.9:1, fails as text."
    },
    "utility": {
      "skeleton": {
        "$value": "hsl(227, 32%, 88%)",
        "$type": "color",
        "$description": "Loading placeholder. 1.35:1 — visible without animation."
      },
      "overlay": {
        "$value": "hsl(226, 33%, 18%)",
        "$type": "color",
        "$description": "Modal scrim, used at 40% opacity."
      }
    }
  },
  "shadow": {
    "mesto": {
      "$value": {
        "offsetX": "0px",
        "offsetY": "2px",
        "blur": "6px",
        "spread": "0px",
        "color": "rgba(0, 0, 0, 0.08)"
      },
      "$type": "shadow",
      "$description": "Header, primary CTA, hover of a clickable card."
    },
    "mesto-lg": {
      "$value": [
        {
          "offsetX": "0px",
          "offsetY": "8px",
          "blur": "24px",
          "spread": "-4px",
          "color": "rgba(7, 18, 70, 0.14)"
        },
        {
          "offsetX": "0px",
          "offsetY": "2px",
          "blur": "6px",
          "spread": "0px",
          "color": "rgba(7, 18, 70, 0.08)"
        }
      ],
      "$type": "shadow",
      "$description": "Floating surfaces: popover, dialog, toast."
    }
  },
  "duration": {
    "fast": {
      "$value": "150ms",
      "$type": "duration"
    },
    "base": {
      "$value": "200ms",
      "$type": "duration"
    }
  },
  "z-index": {
    "sticky": {
      "$value": 10,
      "$type": "number"
    },
    "dropdown": {
      "$value": 20,
      "$type": "number"
    },
    "header": {
      "$value": 30,
      "$type": "number"
    },
    "overlay": {
      "$value": 40,
      "$type": "number"
    },
    "toast": {
      "$value": 50,
      "$type": "number"
    },
    "skip": {
      "$value": 60,
      "$type": "number"
    }
  }
}
