{
  // Portal design tokens — SSOT for CSS vars + JS consumers.
  // Loaded via Bun's jsonc loader (comments + trailing commas OK).
  // @see https://bun.com/docs/bundler/loaders#jsonc
  // Sync → theme-tokens.css: bun run portal:theme:sync

  "version": "1.0.0",
  "colorSchemeDefault": "dark",

  "dark": {
    "bg": "#0d1117",
    "surface": "#161b22",
    "surfaceHover": "#1c2333",
    "border": "#30363d",
    "text": "#e6edf3",
    "textDim": "#8b949e",
    "accent": "#58a6ff",
    "accentGlow": "rgba(88, 166, 255, 0.15)",
    "green": "#3fb950",
    "yellow": "#d29922",
    "red": "#f85149",
    "gradientSubtle": "radial-gradient(ellipse at top, #1a2332 0%, var(--bg) 55%)",
  },

  "light": {
    "bg": "#ffffff",
    "surface": "#f6f8fa",
    "surfaceHover": "#eaeef2",
    "border": "#d0d7de",
    "text": "#1f2328",
    "textDim": "#656d76",
    "accent": "#0969da",
    "accentGlow": "rgba(9, 105, 218, 0.12)",
    "green": "#1a7f37",
    "yellow": "#9a6700",
    "red": "#cf222e",
    "gradientSubtle": "radial-gradient(ellipse at top, #eef2f7 0%, var(--bg) 55%)",
  },

  "fonts": {
    "sans": "'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
    "brand": "'Inter', var(--font-sans)",
    "mono": "'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', ui-monospace, monospace",
  },

  "layout": {
    "radius": "8px",
    "max": "75rem",
    "padInline": "clamp(1rem, 3vw, 1.5rem)",
    "padBlock": "clamp(1.25rem, 4vw, 2rem)",
    "fontHero": "clamp(1.35rem, 1.15rem + 1.1vw, 1.75rem)",
    "fontMetric": "clamp(1.35rem, 1.1rem + 1vw, 1.75rem)",
  },
}
