/* ============================================================
   Claude theme · tokens
   Anthropic/Claude palette bridge for css I (neumorphism) and
   css II (nav motion). css I / css II files stay untouched;
   their custom properties are re-pointed here.
   ============================================================ */

:root {
  /* --- Claude paper & ink --- */
  --c-paper: #faf9f5;
  --c-paper-2: #f2efe6;
  --c-paper-3: #e8e4d8;
  --c-panel: #fffdf8;
  --c-ink: #1f1e1d;
  --c-ink-2: #3d3a34;
  --c-ink-3: #5e5b52;
  --c-muted: #87847a;
  --c-faint: #a8a394;
  --c-line: #e3ded2;
  --c-line-2: #cfc8b8;

  /* --- Claude accents --- */
  --c-clay: #cc785c;
  --c-clay-dk: #a9532f;
  --c-clay-lt: #e9c4b1;
  --c-clay-wash: rgba(204, 120, 92, 0.1);
  --c-oak: #b08a5a;
  --c-sage: #6f8b67;

  /* --- Type --- */
  --c-font-display: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
  --c-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --c-font-label: "Nunito", "Noto Sans SC", "PingFang SC", sans-serif;

  /* --- css I: neumorphismI palette --- */
  --neu-bg: #f0ede4;
  --neu-bg-light: #fffdf8;
  --neu-shadow-dark: #d5cebf;
  --neu-shadow-light: #ffffff;
  --neu-accent: #cc785c;
  --neu-text: #1f1e1d;
  --neu-text-muted: #87847a;

  /* --- css I: neumorphismII panel palette --- */
  --neu2-canvas: #f0ede4;
  --neu2-panel: rgba(252, 250, 245, 0.9);
  --neu2-border: #fffdf8;
  --neu2-shadow: rgba(90, 74, 54, 0.16);
  --neu2-track: #d5cebf;
  --neu2-ink: #1f1e1d;
  --neu2-muted: #87847a;

  /* --- css II: nav motion tokens (#th, #ind, .sgw) --- */
  --rw: linear-gradient(165deg, #fffdf8, #efeae0);
  --hl: rgba(255, 255, 255, 0.95);
  --sh: rgba(90, 74, 54, 0.2);
  --sp: cubic-bezier(0.34, 1.26, 0.44, 1);
  --ou: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- Neutralise the old monochrome liquid-glass tokens --- */
  --ip-ink: #faf9f5;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --accent-cool: #e3ded2;
  --accent-warm: #b08a5a;
  --surface: #fffdf8;
  --surface-2: #f2efe6;
  --glass: linear-gradient(160deg, #fffdf8, #f2efe6);
  --liquid-surface: var(--glass);
  --liquid-edge: 4px 4px 12px var(--neu-shadow-dark), -4px -4px 12px var(--neu-shadow-light);
  --stage-glass: var(--glass);
  --taste-glass: var(--glass);
  --taste-edge: var(--liquid-edge);

  /* --- Page-level ink tokens used by 听音取向 / 声场图鉴 / mobile shell --- */
  --bg: #faf9f5;
  --ink: #1f1e1d;
  --ink-soft: #3d3a34;
  --ink-faint: #87847a;
  --ink-dim: #5e5b52;
  --paper: #fffdf8;
  --paper-soft: #f2efe6;
  --paper-muted: #e8e4d8;
  --line: #e3ded2;
  --line-strong: #cfc8b8;
  --accent: #cc785c;
  --acc: #1f1e1d;
  --accent-soft: rgba(204, 120, 92, 0.12);
  --good: #6f8b67;
  --warn: #b08a5a;
  --bad: #a9532f;
  --shadow-soft: 6px 6px 14px var(--neu-shadow-dark), -6px -6px 14px var(--neu-shadow-light);
  --shadow-lift: 10px 10px 26px var(--neu-shadow-dark), -10px -10px 26px var(--neu-shadow-light);

  /* --- Doc palette used by document-solid.css (re-pointed, file not linked) --- */
  --doc-black: #f5f3ec;
  --doc-nav: #fffdf8;
  --doc-nav-soft: #f2efe6;
  --doc-paper: #fffdf8;
  --doc-paper-soft: #f6f3ea;
  --doc-paper-muted: #ece7db;
  --doc-ink: #1f1e1d;
  --doc-ink-soft: #3d3a34;
  --doc-ink-faint: #87847a;
  --doc-line: #e3ded2;
  --doc-line-strong: #cfc8b8;
}

html {
  background: var(--c-paper);
  color-scheme: light;
}

body {
  color: var(--c-ink);
  color-scheme: light;
}

::selection {
  background: var(--c-clay);
  color: var(--c-paper);
}

:focus-visible {
  outline: 2px solid var(--c-clay);
  outline-offset: 3px;
}

/* Warm scrollbar for every scroll container in the site */
* {
  scrollbar-color: var(--c-line-2) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--c-line-2);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-faint);
}
