/* JT design tokens · 书卷三稿 (S3). Load first; page stylesheets read only these variables.
   Same variable names as C3, new values: paper ground, 远山紫 for the one primary action / "current", 霞鹜文楷 for
   headings and Chinese definitions, Source Serif 4 for English words and numbers, 0.5px rules, small radii, no card shadows
   at rest; pressable things are matte and show an edge — see "Press & motion".
   The learning-content colours (记忆 / 用法 / 近义 / 反义 / 易混 / 相关 / 词族) and familiarity colours are unchanged:
   the user approved them on the learning page. Rule: one colour = one meaning across the whole site; the brand colour
   (远山紫, taken from the mountains in the background painting) is deliberately not green / amber / red, which already
   mean 掌握 / 学习中 / 陌生. */
@import url("/assets/css/jt-fonts.css?v=94d0997d75988fb2");

:root {
  color-scheme: light;

  /* Base: ink on paper */
  --jt-ground: #F4EFE4;        /* 纸 · page background on every page */
  --jt-paper: #F4EFE4;
  --jt-surface: #FAF7F0;       /* 笺 · panels, cards, reading areas */
  --jt-sunken: #EDE6D9;        /* inputs, segmented controls, empty tracks */
  --jt-ink: #2C2A25;           /* 墨 · body text */
  --jt-ink-2: #5F5A50;         /* secondary text */
  --jt-muted: #6B655A;         /* 淡墨 · meta text (5.0:1 on paper) */
  --jt-faint: #8F887B;         /* disabled / "already the first unit" */
  --jt-line: #D6CCBA;          /* hairlines inside panels */
  --jt-line-strong: #B9AE98;   /* 界线 · rules, double rule, leader dots */
  --jt-panel-line: #CFC5B2;    /* panel borders */
  --jt-brand: #6B5C6E;         /* 远山紫 · primary action, current location, bookmark ribbon */
  --jt-brand-ink: #574A5B;     /* hover / pressed */
  --jt-brand-soft: #EAE3E8;    /* light fill for the current item */
  --jt-on-brand: #F7F3EA;      /* text on 远山紫 (5.8:1) */

  /* Mastery stages (bookshelf spines, unit bars): 已掌握 · 巩固中 · 学习中 */
  --jt-stage-m: #4E6A49;
  --jt-stage-c: #98A887;
  --jt-stage-l: #C8A464;
  --jt-spine: #E6DECF;
  --jt-spine-line: #BFB39C;
  --jt-shelf: #5F5A50;

  /* Learning-page content roles (approved, unchanged) */
  --jt-mem: #7E5408;  --jt-mem-bg: #FBF1DB;  --jt-mem-line: #E7D2A6;  /* 记忆 / 本单元词 */
  --jt-use: #0A5F55;  --jt-use-bg: #E1F0ED;                          /* 用法 / 解析 */
  --jt-syn: #2B612F;  --jt-syn-bg: #E6F1E2;                          /* 近义 */
  --jt-ant: #962D48;  --jt-ant-bg: #FAE6EA;                          /* 反义 */
  --jt-con: #9A450D;  --jt-con-bg: #FCEADB;                          /* 易混 */
  --jt-rel: #23508A;  --jt-rel-bg: #E4ECF8;                          /* 相关 */
  --jt-fam: #5F3A93;  --jt-fam-bg: #EEE7F7;  --jt-fam-line: #C9B8E3; /* 词族 / 辅助 */

  /* Familiarity (approved): 掌握 green · 半熟 amber · 陌生 rose */
  --jt-known: #2B612F;    --jt-known-bg: #E6F1E2;
  --jt-vague: #7E5408;    --jt-vague-bg: #FBF1DB;
  --jt-unknown: #962D48;  --jt-unknown-bg: #FAE6EA;

  /* Practice answer states (unchanged, owned by the practice line) */
  --jt-correct: #1E7A45;  --jt-correct-bg: #E6F4EA;  --jt-correct-line: #8CC3A2;
  --jt-wrong: #B23A32;    --jt-wrong-bg: #FCEBEA;    --jt-wrong-line: #E6A3A0;
  --jt-selected: #4A6A8F; --jt-selected-bg: #E8EEF6; --jt-selected-line: #A9BCD3;
  --jt-explain: var(--jt-use);  --jt-explain-bg: var(--jt-use-bg);
  --jt-unitword: var(--jt-mem); --jt-unitword-bg: var(--jt-mem-bg);
  --jt-assist: var(--jt-fam);   --jt-assist-bg: var(--jt-fam-bg);

  /* Type: 霞鹜文楷 for headings + Chinese definitions; Source Serif 4 for English words and every number;
     the system UI sans (PingFang on Apple devices) for body text and buttons. */
  --jt-display: "JT Kai", "Source Serif 4", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --jt-serif: "Source Serif 4", "JT Kai", "Iowan Old Style", "Songti SC", Georgia, serif;
  --jt-num: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --jt-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --jt-ipa: "Charis SIL", "Doulos SIL", "Lucida Sans Unicode", serif;
  /* scale: 12 · 13 · 15 · 17 · 20 · 24 · 32 */
  --jt-fs-xs: 12px; --jt-fs-sm: 13px; --jt-fs-md: 15px; --jt-fs-read: 17px; --jt-fs-lg: 20px; --jt-fs-xl: 24px; --jt-fs-xxl: 32px;
  --jt-lh-ui: 1.55; --jt-lh-read: 1.75;
  --jt-track-head: .06em;      /* letter-spacing for kai headings */
  --jt-track-btn: .16em;       /* letter-spacing for the primary button label */

  /* Shape & space: small radii, hairlines, no card shadows */
  --jt-r-chip: 3px; --jt-r-control: 3px; --jt-r-panel: 4px; --jt-r-pill: 999px;
  --jt-hair: .5px;
  --jt-s1: 4px; --jt-s2: 8px; --jt-s3: 12px; --jt-s4: 16px; --jt-s5: 24px; --jt-s6: 32px;
  --jt-topbar-h: 54px;
  --jt-tabbar-h: 58px;
  --jt-float-shadow: 0 8px 24px rgba(44, 42, 37, 0.14);   /* only for menus and dialogs that float */
  --jt-focus: 0 0 0 2px var(--jt-ground), 0 0 0 4px var(--jt-brand);

  /* Press & motion. Matte, like a cloth-bound cover or a printed card: no gloss, no light-to-dark gradients, no blurred
     shadows on anything you press. A pressable thing shows its edge (a 1px hard line under it) and, on the solid button,
     a blind-stamped frame line 3px inside the edge. The response is motion, not shine: ink rises through the button from
     the bottom, paper buttons take a violet wash the same way, arrows move, a press sinks 1px onto the page. */
  --jt-ease: cubic-bezier(.2,.75,.25,1);
  --jt-ease-out: cubic-bezier(.16,1,.3,1);
  --jt-dur: .18s;
  --jt-rise: .34s;                          /* how long the ink takes to fill a button */
  --jt-btn-fill: #6B5C6E;                   /* 远山紫, flat */
  --jt-btn-ink: #574A5B;                    /* the darker ink that rises on hover */
  --jt-btn-fill-press: #4F4352;
  --jt-btn-edge: 0 1px 0 #4A3F4D;           /* the cover's thickness */
  --jt-btn-frame: rgba(247,243,234,.30);    /* blind-stamped frame line */
  --jt-btn-frame-hover: rgba(247,243,234,.48);
  --jt-btn-bg: linear-gradient(var(--jt-btn-ink), var(--jt-btn-ink)) 50% 100% / 100% 0 no-repeat, var(--jt-btn-fill);
  --jt-paper-fill: #FAF7F0;
  --jt-paper-wash: #F1EBEE;                 /* paper with a breath of 远山紫, rises on hover */
  --jt-paper-press: #E8E1E6;
  --jt-paper-line: #C9BEAD;                 /* border of a paper button */
  --jt-paper-edge: 0 1px 0 rgba(95,90,80,.17);
  --jt-paper-bg: linear-gradient(var(--jt-paper-wash), var(--jt-paper-wash)) 50% 100% / 100% 0 no-repeat, var(--jt-paper-fill);
  --jt-lift: 0 12px 22px -16px rgba(44,42,37,.36);   /* a paper card picked up on hover (cards only, never buttons) */
  --jt-hover-wash: rgba(234,227,232,.55);   /* row hover: a breath of 远山紫 on paper */
}
