/* KOLKOLK shared visual source. Load before kolkol.css on every page. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-warm: var(--surface);
  --fg: #171c26;
  --fg-2: var(--fg);
  --muted: #4d5663;
  --meta: var(--muted);
  --border: #e2e5e9;
  --border-soft: var(--border);
  --accent: #2f6feb;
  --accent-on: #ffffff;
  --accent-hover: #255ecb;
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --success: #15803d;
  --warn: #9a6700;
  --danger: #dc2626;
  --danger-on: #ffffff;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", monospace;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 48px;
  --text-4xl: 64px;
  --leading-body: 1.625;
  --leading-tight: 1.2;
  --tracking-display: -0.01em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-20: 80px;
  --section-y-desktop: 80px;
  --section-y-tablet: 48px;
  --section-y-phone: 32px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 2px 8px color-mix(in oklab, var(--fg), transparent 92%);
  --focus-ring: 0 0 0 3px var(--accent);
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1480px;
  --container-gutter-desktop: 24px;
  --container-gutter-tablet: 16px;
  --container-gutter-phone: 12px;
  --surface-soft: #f0f1f3;
  --control-border: #7a838f;
  --link: #1e55bd;
  --selected: #edf3ff;
  --success-bg: #effaf2;
  --warn-bg: #fff8e7;
  --danger-bg: #fff1f1;
  --radius-tag: 6px;
  --glass-bg: rgb(255 255 255 / 50%);
  --glass-line: rgb(255 255 255 / 50%);
  --glass-ink: #090c10;
  --glass-muted: #11151b;
  --glass-text-shadow: none;
  --glass-icon-shadow: none;
  --glass-like: #58061d;
  --glass-blur: 18px;
  --z-base: 0;
  --z-sticky: 20;
  --z-menu: 40;
  --z-backdrop: 60;
  --z-modal: 70;
  --z-toast: 80;
  --z-tooltip: 90;
}

html[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #181b21;
  --fg: #f4f6f8;
  --muted: #a8afb9;
  --border: #323740;
  --surface-soft: #22262e;
  --control-border: #7a8594;
  --accent: #6d9cff;
  --accent-on: #0f1115;
  --accent-hover: #82aaff;
  --accent-active: #92b5ff;
  --link: #8ab4ff;
  --selected: #1b2d4d;
  --success-bg: #132c20;
  --warn-bg: #322b19;
  --danger-bg: #361e24;
  --success: #74d69a;
  --warn: #f3cc69;
  --danger: #ff9e9e;
  --danger-on: #0f1115;
  --elev-raised: 0 2px 8px rgb(0 0 0 / 8%);
  --glass-bg: rgb(24 27 33 / 50%);
  --glass-line: rgb(255 255 255 / 18%);
  --glass-ink: #ffffff;
  --glass-muted: #ffffff;
  /* Keep the approved 50% material. A fine dark edge protects text over bright artwork. */
  --glass-text-shadow: -1px 0 1px #101419, 1px 0 1px #101419, 0 -1px 1px #101419, 0 1px 1px #101419;
  --glass-icon-shadow: drop-shadow(0 1px 1px #101419) drop-shadow(0 -1px 1px #101419);
  --glass-like: #ffd4df;
}
