/* =========================================================
   tokens.css: the ONE place for colours, sizes and shadows.
   Every other stylesheet only uses these variables.
   ========================================================= */
:root {
  color-scheme: light;

  /* brand */
  --brand: #f26b1d;
  --brand-strong: #d9560b;
  --brand-soft: #fff1e6;
  --brand-line: #fbd3b4;
  --brand-grad: linear-gradient(135deg, #ff8a3d 0%, #f26b1d 55%, #e5530c 100%);

  /* surfaces */
  --bg: #f5f6fa;
  --bg-tint: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #f0f2f8;
  --overlay: rgba(15, 20, 35, .45);

  /* text */
  --ink: #131826;
  --ink-2: #343c4f;
  --mute: #5d667a;
  --faint: #8c94a6;
  --on-brand: #ffffff;

  /* lines */
  --line: #e3e6ef;
  --line-strong: #cfd4e2;

  /* status */
  --ok: #15803d;      --ok-soft: #e6f6ec;     --ok-line: #b7e3c6;
  --warn: #b45309;    --warn-soft: #fff4de;   --warn-line: #f5d9a3;
  --bad: #c0261d;     --bad-soft: #fdeceb;    --bad-line: #f6bdb8;
  --info: #2556d9;    --info-soft: #e9efff;   --info-line: #c3d3fb;
  --link: #2556d9;

  /* code */
  --code-bg: #0e1424;
  --code-bar: #161e33;
  --code-line: #252f4a;
  --code-ink: #e4eaf6;
  --code-mute: #8392b1;
  --c-key: #7dd3fc;  --c-str: #86efac;  --c-num: #fcd34d;  --c-bool: #c4b5fd;
  --c-com: #7b8aa8;  --c-kw: #fda4af;   --c-fn: #67e8f9;   --c-url: #7dd3fc;

  /* shape */
  --r-xs: 6px;  --r-sm: 10px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* depth */
  --sh-xs: 0 1px 2px rgba(19, 24, 38, .05);
  --sh-sm: 0 1px 2px rgba(19, 24, 38, .05), 0 4px 14px rgba(19, 24, 38, .05);
  --sh-md: 0 2px 4px rgba(19, 24, 38, .05), 0 12px 32px rgba(19, 24, 38, .08);
  --sh-lg: 0 8px 16px rgba(19, 24, 38, .06), 0 28px 60px rgba(19, 24, 38, .14);
  --sh-brand: 0 8px 22px rgba(242, 107, 29, .32);
  --ring: 0 0 0 3px rgba(242, 107, 29, .28);

  /* type */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Hind Siliguri", "Noto Sans Bengali", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* layout */
  --nav-h: 64px;
  --wrap: 1120px;
  --wrap-wide: 1280px;
  --gutter: 20px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .15s;
  --t: .25s;
}

/* ---------- dark theme: automatic, or forced with data-theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #ff7a2e;  --brand-strong: #ff9552;  --brand-soft: #2b1a0f;  --brand-line: #5a3417;
  --bg: #0a0e17;  --bg-tint: #0e1320;
  --surface: #111827;  --surface-2: #151d2f;  --surface-3: #1b2540;
  --overlay: rgba(0, 0, 0, .6);
  --ink: #eef1f8;  --ink-2: #ccd3e3;  --mute: #9aa4bb;  --faint: #6f7a93;
  --line: #222c44;  --line-strong: #323f60;
  --ok: #4ade80;   --ok-soft: #0f2a1a;   --ok-line: #1e5b36;
  --warn: #fbbf24; --warn-soft: #2d2208; --warn-line: #6a4f10;
  --bad: #f87171;  --bad-soft: #321212;  --bad-line: #7a2a2a;
  --info: #7ca2ff; --info-soft: #14203f; --info-line: #2d4684;
  --link: #8db0ff;
  --code-bg: #070b14;  --code-bar: #0f1628;  --code-line: #1c2640;
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
  --sh-md: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .4);
  --sh-lg: 0 8px 16px rgba(0, 0, 0, .4), 0 28px 60px rgba(0, 0, 0, .55);
  --sh-brand: 0 8px 22px rgba(255, 122, 46, .25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #ff7a2e;  --brand-strong: #ff9552;  --brand-soft: #2b1a0f;  --brand-line: #5a3417;
    --bg: #0a0e17;  --bg-tint: #0e1320;
    --surface: #111827;  --surface-2: #151d2f;  --surface-3: #1b2540;
    --overlay: rgba(0, 0, 0, .6);
    --ink: #eef1f8;  --ink-2: #ccd3e3;  --mute: #9aa4bb;  --faint: #6f7a93;
    --line: #222c44;  --line-strong: #323f60;
    --ok: #4ade80;   --ok-soft: #0f2a1a;   --ok-line: #1e5b36;
    --warn: #fbbf24; --warn-soft: #2d2208; --warn-line: #6a4f10;
    --bad: #f87171;  --bad-soft: #321212;  --bad-line: #7a2a2a;
    --info: #7ca2ff; --info-soft: #14203f; --info-line: #2d4684;
    --link: #8db0ff;
    --code-bg: #070b14;  --code-bar: #0f1628;  --code-line: #1c2640;
    --sh-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
    --sh-md: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .4);
    --sh-lg: 0 8px 16px rgba(0, 0, 0, .4), 0 28px 60px rgba(0, 0, 0, .55);
    --sh-brand: 0 8px 22px rgba(255, 122, 46, .25);
  }
}
