/* O宝 官网 · 设计 token
   取值来源 docs/design-standard.md + assets/brand/obaby-icon.svg
   浅色是品牌底色（奶油 + 陶土），深色是夜间模式，两套变量同名 */

:root {
  color-scheme: light;

  /* 品牌 */
  --brand: #b4452b;
  --brand-hi: #d56b4a;
  --brand-deep: #8f2f1c;
  --brand-soft: rgba(180, 69, 43, 0.08);
  --brand-softer: rgba(180, 69, 43, 0.04);
  --ink: #1c1917;

  /* 底色与层次 */
  --bg: #f7f5f2;
  --bg-2: #f1ede7;
  --bg-3: #e8e1d8;
  --surface: #fffdfa;
  --surface-2: #fbf8f3;
  --line: rgba(28, 25, 23, 0.10);
  --line-2: rgba(28, 25, 23, 0.055);
  --line-strong: rgba(28, 25, 23, 0.18);

  /* 文字 */
  --text: #1c1917;
  --text-2: #5c554f;
  --text-3: #8a8078;
  --text-4: #b3a9a0;

  /* 语义 */
  --ok: #2f9e6a;
  --warn: #d98a1f;
  --err: #d0342c;

  /* 阴影：贴纸感 */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 2px 6px rgba(28, 25, 23, 0.035);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.07), 0 2px 6px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 24px 60px rgba(28, 25, 23, 0.12), 0 8px 20px rgba(28, 25, 23, 0.05);
  --shadow-brand: 0 8px 22px rgba(180, 69, 43, 0.22);
  --ring: 0 0 0 4px rgba(180, 69, 43, 0.13);

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* 版式 */
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --maxw: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --brand: #d97757;
  --brand-hi: #e78c6a;
  --brand-deep: #b4452b;
  --brand-soft: rgba(217, 119, 87, 0.14);
  --brand-softer: rgba(217, 119, 87, 0.07);
  --ink: #f4f1ed;

  --bg: #12110f;
  --bg-2: #171512;
  --bg-3: #1e1b18;
  --surface: #1a1816;
  --surface-2: #211e1b;
  --line: rgba(245, 240, 235, 0.10);
  --line-2: rgba(245, 240, 235, 0.055);
  --line-strong: rgba(245, 240, 235, 0.20);

  --text: #f4f1ed;
  --text-2: #c9c3bc;
  --text-3: #9f968d;
  --text-4: #6f675f;

  --ok: #4ec98b;
  --warn: #f0b04a;
  --err: #f2726a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.5);
  --shadow-brand: 0 8px 26px rgba(217, 119, 87, 0.2);
  --ring: 0 0 0 4px rgba(217, 119, 87, 0.18);
}
