:root {
  /* Determined stage colors. Light field and page are the same tone, so the model is not floating on a second background. */
  --stage: #e4e1d8;
  --font: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1120px;
  --header: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg-app: var(--stage);
  --bg-main: #f7f4ee;
  --bg-sunken: #ebe9e4;
  --line: #e5e2db;
  --line-strong: #d4d0c7;
  --text: #1d1c1a;
  --text-2: #48453f;
  --text-3: #6d6962;
  --accent: #2455d3;
  --ink: #1d1c1a;
  --ink-hover: #36332e;
  --ink-on: #fbfbf9;
  --hover: rgba(42, 34, 20, 0.05);
  --code-bg: rgba(42, 34, 20, 0.065);
  --ok: #1a7746;
  --warn: #965c05;
  --add-bg: #e8f4ec;
  --add-fg: #135f38;
  --del-bg: #fbebea;
  --del-fg: #98251f;
  /* Hero light field: A is the stage the glass sits on, B/C tint its edges.
     The glass only adds light, so the light stage sits a step below the page. */
  --hero-a: #e4e1d8;
  --hero-b: #6a7891;
  --hero-c: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --stage: #12141c;
  --bg-app: var(--stage);
  --bg-main: #1a1c24;
  --bg-sunken: #1f222b;
  --line: #2a2d37;
  --line-strong: #3a3e4a;
  --text: #ededeb;
  --text-2: #c5c2bc;
  --text-3: #9c9890;
  --accent: #7ca6ff;
  --ink: #ededeb;
  --ink-hover: #ffffff;
  --ink-on: #161616;
  --hover: rgba(255, 255, 255, 0.06);
  --code-bg: rgba(255, 255, 255, 0.08);
  --ok: #4cc283;
  --warn: #e0a440;
  --add-bg: rgba(76, 194, 131, 0.12);
  --add-fg: #7fd9a6;
  --del-bg: rgba(240, 102, 92, 0.12);
  --del-fg: #f2948c;
  --hero-a: #12141c;
  --hero-b: #3d4d6c;
  --hero-c: #c9d8e8;
}

