/* ==========================================================================
   Arinox · 夜明 —— token 子集
   来源：D:\Code-Projects\Arinox\tokens（原始值直取，浏览器里用 oklch 表达）
   这一层只放变量，不写布局。改颜色只改这里。
   ========================================================================== */

/* ---- 字体（自托管，不依赖 Google Fonts，国内直连） ---- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026, U+00D7;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2026;
}

:root {
  /* ---- 三种声音 ---- */
  --ax-font-display: "Newsreader", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --ax-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --ax-font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --ax-weight-regular: 400;
  --ax-weight-medium: 500;
  --ax-weight-semibold: 600;

  /* 字号：20px 以上才用衬线 */
  --ax-text-xs: 12px;
  --ax-text-sm: 13px;
  --ax-text-base: 14px;
  --ax-text-md: 16px;
  --ax-text-lg: 20px;
  --ax-text-xl: 24px;
  --ax-text-2xl: 32px;
  --ax-text-3xl: 48px;

  --ax-leading-tight: 1.15;
  --ax-leading-snug: 1.35;
  --ax-leading-normal: 1.6;
  --ax-leading-relaxed: 1.85;

  --ax-tracking-display: -0.02em;
  --ax-tracking-caps: 0.14em;

  /* ---- 4px 体系 ---- */
  --ax-space-0: 0px;
  --ax-space-1: 4px;
  --ax-space-2: 8px;
  --ax-space-3: 12px;
  --ax-space-4: 16px;
  --ax-space-5: 20px;
  --ax-space-6: 24px;
  --ax-space-8: 32px;
  --ax-space-10: 40px;
  --ax-space-12: 48px;
  --ax-space-16: 64px;
  --ax-space-24: 96px;

  --ax-radius-sm: 4px;
  --ax-radius-md: 8px;
  --ax-radius-lg: 12px;
  --ax-radius-full: 9999px;

  /* ---- 动效 ---- */
  --ax-dur-fast: 120ms;
  --ax-dur-base: 200ms;
  --ax-dur-slow: 320ms;
  --ax-dur-dawn: 900ms;
  --ax-stagger: 60ms;
  --ax-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ax-ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --ax-ease-exit: cubic-bezier(0.4, 0, 1, 1);

  /* ---- 夜 · Nyx ---- */
  --ax-bg: oklch(0.145 0.018 268);
  --ax-bg-subtle: oklch(0.165 0.018 268);
  --ax-surface: oklch(0.185 0.018 268);
  --ax-surface-raised: oklch(0.225 0.018 268);
  --ax-border: oklch(0.265 0.018 268);
  --ax-border-strong: oklch(0.33 0.018 268);
  --ax-text: oklch(0.95 0.018 268);
  --ax-text-muted: oklch(0.73 0.018 268);
  --ax-text-subtle: oklch(0.62 0.018 268);
  /* 「未点亮」的文字：比 subtle 再暗一级，留给被光扫过的段落 */
  --ax-text-faint: oklch(0.55 0.02 268);

  /* 光：Arinox 唯一的强调色 */
  --ax-accent: oklch(0.82 0.08 230);
  --ax-accent-strong: oklch(0.9 0.06 230);
  --ax-accent-fg: oklch(0.145 0.018 268);
  --ax-accent-subtle: oklch(0.26 0.03 235);
  --ax-glow: oklch(0.82 0.08 230 / 0.55);
  --ax-glow-soft: oklch(0.82 0.08 230 / 0.18);
  --ax-focus: oklch(0.82 0.08 230 / 0.3);

  /* 天亮时的地平线暖光 */
  --ax-ember: oklch(0.78 0.14 55);
  --ax-ember-soft: oklch(0.86 0.09 62);

  /* 图表分类色（Arinox night）：只用来识别数据，不表达状态 */
  --ax-chart-1: oklch(0.74 0.1 235);
  --ax-chart-2: oklch(0.72 0.09 175);
  --ax-chart-3: oklch(0.74 0.1 300);
  --ax-chart-4: oklch(0.76 0.1 85);
  --ax-chart-5: oklch(0.74 0.1 355);

  /* 滚动进度：0 = 深夜，1 = 天明（由 site.js 写入） */
  --dawn: 0;
}

/* 系统偏好浅色时，也不切成白昼：这是一页「夜明」的叙事，始终从夜开始。 */
