/* LingoFruit Chinese · 灵果中文 — Design Tokens
 * Editorial, calm, print-inspired system. Zero external assets. */

:root {
  /* ---- Surfaces (warm archival paper) ---- */
  --paper: #f6f3eb;
  --surface: #fcfaf4;
  --surface-2: #efeadd;
  --surface-3: #e5dfd0;

  /* ---- Ink (deep botanical green) ---- */
  --ink: #132e26;
  --ink-2: #355046;
  --ink-3: #526a60;
  --ink-4: #73877e;

  /* ---- Hairline rules ---- */
  --rule: rgba(19, 46, 38, 0.13);
  --rule-strong: rgba(19, 46, 38, 0.24);
  --rule-soft: rgba(19, 46, 38, 0.08);
  --gridline: #d8ccb8;

  /* ---- Restrained brand accent (one primary + supporting ochre for pinyin) ---- */
  --accent: #184f39;
  --accent-hover: #0e3827;
  --accent-mid: #467054;
  --accent-soft: #e5eee7;
  --accent-rule: #bdd2c3;

  --ochre: #8b5a2b;
  --ochre-soft: #f5ecdf;
  --ochre-rule: #dfccb3;

  /* ---- Semantic feedback ---- */
  --ok: #246644;
  --ok-bg: #e6f2ea;
  --ok-rule: #bdd8c5;
  --err: #a83c32;
  --err-bg: #f9eae8;
  --err-rule: #e6c2be;
  --warn: #7d5918;
  --warn-bg: #f7f0dc;
  --warn-rule: #e2d1a3;
  --focus: #a35d24;

  /* ---- Typography (system stacks only — zero network fonts) ---- */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Type scale ---- */
  --text-xs: 0.75rem;                      /* 12px */
  --text-sm: 0.875rem;                     /* 14px */
  --text-base: 1rem;                       /* 16px */
  --text-lead: 1.1875rem;                  /* 19px */
  --text-h3: 1.375rem;                     /* 22px */
  --text-h2: clamp(1.75rem, 2.8vw, 2.375rem);
  --text-h1: clamp(2.125rem, 4.2vw, 3.5rem);
  --text-display: clamp(2.75rem, 5.8vw, 5rem);

  --zh-body: 1.375rem;                     /* 22px */
  --zh-lg: 2rem;                           /* 32px */
  --zh-hero: clamp(2.375rem, 4.4vw, 3.875rem);

  /* ---- Spacing (8px grid) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;

  /* ---- Layout ---- */
  --max-home: 1280px;
  --max-page: 1152px;
  --gutter: clamp(16px, 4.5vw, 48px);

  /* ---- Radii (architectural, no pills) ---- */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* ---- Shadows (warm paper shadows, never grey) ---- */
  --shadow-sm: 0 1px 2px rgba(42, 34, 22, 0.05), 0 4px 12px rgba(42, 34, 22, 0.04);
  --shadow-md: 0 4px 10px rgba(42, 34, 22, 0.06), 0 14px 32px rgba(42, 34, 22, 0.07);
  --shadow-lg: 0 10px 24px rgba(26, 22, 14, 0.12), 0 28px 60px rgba(26, 22, 14, 0.16);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-mid: 280ms;
}
