/* 字讀 TextView — 設計變數與三種配色主題（淺色 / 米黃護眼 / 深色） */
:root {
  --brand-navy: #13243b;
  --brand-mint: #76e2c1;
  --brand-white: #f8fafc;

  --bg: #edf2f7;
  --surface: #f8fafc;
  --surface-elevated: #ffffff;
  --ink: #13243b;
  --muted: #4b6178;
  --border: #cbd7e3;
  --border-soft: #dce5ee;
  --hover: #e1f5ee;
  --accent: #76e2c1;
  --accent-ink: #13243b;
  --focus: #206653;
  --badge-bg: rgba(118, 226, 193, 0.24);
  --badge-ink: #175444;

  --shadow-sm: 0 2px 8px rgba(19, 36, 59, 0.06);
  --shadow-md: 0 12px 32px rgba(19, 36, 59, 0.09);
  --shadow-lg: 0 24px 56px rgba(19, 36, 59, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif TC', 'PMingLiU', 'Songti TC', Georgia, serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;

  color-scheme: light;
}

html[data-site-theme="sepia"] {
  --bg: #e7dbc5;
  --surface: #f2e8d5;
  --surface-elevated: #f8f1e4;
  --ink: #342a20;
  --muted: #635342;
  --border: #cbb99a;
  --border-soft: #d9cbb1;
  --hover: #eaddc6;
  --accent: #c4e6d7;
  --accent-ink: #1d3a32;
  --focus: #235c50;
  --badge-bg: rgba(35, 92, 80, 0.12);
  --badge-ink: #235c50;

  --shadow-sm: 0 2px 8px rgba(52, 42, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(52, 42, 32, 0.1);
  --shadow-lg: 0 24px 56px rgba(52, 42, 32, 0.14);
  color-scheme: light;
}

html[data-site-theme="dark"] {
  --bg: #0d192a;
  --surface: #13243b;
  --surface-elevated: #182d49;
  --ink: #ecf3fb;
  --muted: #afbed0;
  --border: #2c415a;
  --border-soft: #22354c;
  --hover: #213750;
  --accent: #76e2c1;
  --accent-ink: #13243b;
  --focus: #76e2c1;
  --badge-bg: rgba(118, 226, 193, 0.14);
  --badge-ink: #76e2c1;

  --shadow-sm: 0 2px 10px rgba(3, 9, 18, 0.32);
  --shadow-md: 0 16px 36px rgba(3, 9, 18, 0.42);
  --shadow-lg: 0 28px 60px rgba(3, 9, 18, 0.54);
  color-scheme: dark;
}
