/* Hallmark · theme: vantage (by selection) · brand: 青麓科技 CYDEER · genre: modern-minimal
   Brand anchor: #1B3B68 (logo dark blue) · signal: #418DC1 (logo cyan highlight)
   vantage: terrain/steel → adapted to brand */

:root {
  color-scheme: dark;

  /* === Vantage paper: blue-black ground === */
  --color-paper: oklch(13.5% 0.012 235);
  --color-paper-2: oklch(17% 0.014 235);
  --color-paper-3: oklch(21% 0.016 235);

  /* === Ink: steel on dark === */
  --color-ink: oklch(95% 0.006 230);
  --color-ink-2: oklch(82% 0.012 230);
  --color-muted: oklch(66% 0.016 230);

  /* === Rules: hairlines === */
  --color-rule: oklch(27% 0.014 235);
  --color-rule-2: oklch(34% 0.016 235);

  /* === Brand accent: 青麓青 === */
  --color-accent: oklch(62% 0.15 230);
  --color-accent-hi: oklch(70% 0.16 230);
  --color-accent-ink: oklch(15% 0.02 235);
  --color-focus: oklch(62% 0.18 230);

  /* === Brand dark blue (for light-mode sections) === */
  --color-brand: oklch(30% 0.08 250);

  /* === Point cloud colours === */
  --point-lo: oklch(42% 0.04 245);
  --point-mid: oklch(70% 0.04 232);
  --point-hi: oklch(96% 0.02 215);

  /* === Slots (placeholder areas) === */
  --color-slot: oklch(21% 0.016 235);

  /* === Typography === */
  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;

  /* === Type scale (1.25 ratio from 16px) === */
  --text-display: 5.25rem;      /* 84px */
  --text-display-s: 3.75rem;    /* 60px */
  --text-section: 3.25rem;      /* 52px */
  --text-title: 1.5625rem;      /* 25px */
  --text-lead: 1.3125rem;       /* 21px */
  --text-md: 1rem;              /* 16px */
  --text-sm: 0.875rem;          /* 14px */

  /* === Tracking & weights === */
  --tracking-display: -0.02em;
  --display-weight: 700;
  --body-weight: 400;

  /* === Layout === */
  --container: 1440px;
  --gutter: 64px;
  --gap-columns: 32px;
  --radius-card: 4px;
  --radius-pill: 999px;
  --rule-hair: 1px;
  --tick: 10px;

  /* === Spacing scale === */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;

  /* === Section gaps === */
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 176px;

  /* === Motion === */
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* === Z-index === */
  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* === Nav height === */
  --nav-height: 72px;
}

/* === Light mode overrides — 仅由用户手动切换 (html[data-theme="light"]) 触发 ===
   不跟随系统 prefers-color-scheme，避免手机白天/夜间自动变脸 */
html[data-theme="light"] {
    color-scheme: light;
    --color-paper: oklch(97% 0.008 230);
    --color-paper-2: oklch(94% 0.010 230);
    --color-paper-3: oklch(90% 0.012 230);
    --color-ink: oklch(18% 0.012 230);
    --color-ink-2: oklch(28% 0.014 230);
    --color-muted: oklch(48% 0.014 230);
    --color-rule: oklch(82% 0.010 230);
    --color-rule-2: oklch(72% 0.012 230);
    --color-accent: oklch(51% 0.14 230);
    --color-accent-hi: oklch(45% 0.13 230);
    --color-accent-ink: oklch(95% 0.008 230);
    --color-focus: oklch(55% 0.16 230);
    --color-brand: oklch(30% 0.08 250);
    --color-slot: oklch(88% 0.012 230);
}
