/* ==========================================================================
   Axiom Science Design System — Aligned with Kyanic / Anthropic Editorial System
   Xuan Paper Dot-Matrix Canvas (#FAF9EB) + Pine-Soot Ink (#141413) + v0 Life Science Plates
   ========================================================================== */

@font-face {
  font-family: 'AnthropicSans';
  src: url('../assets/fonts/reference-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AnthropicSans Fallback';
  src: local('Arial');
  ascent-override: 92.99%;
  descent-override: 24.13%;
  line-gap-override: 0%;
  size-adjust: 106.73%;
}

@font-face {
  font-family: 'AnthropicSerif';
  src: url('../assets/fonts/reference-serif.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AnthropicSerif Fallback';
  src: local('Georgia');
  ascent-override: 96.05%;
  descent-override: 24.92%;
  line-gap-override: 0%;
  size-adjust: 103.33%;
}

:root {
  /* --- Archival Xuan Paper Substrate (Exact Match to Kyanic) --- */
  --paper: #FAF9EB;              /* 宣纸微暖白 */
  --paper-dot: #C4C3B4;          /* 石墨微点 */
  --paper-dot-step: 42px;        /* 正交微点阵步距 */
  --surface: #F2F0E1;            /* 素宣浅米 */
  --surface-hover: #EAE8D7;      /* 轻触浅米 */
  --popover: #FDFCF4;            /* 素纸浮层 */

  /* --- Pine-Soot Ink Hierarchy --- */
  --ink: #141413;                /* 松烟墨 / Primary foreground */
  --ink-body: #30302E;           /* Secondary foreground */
  --ink-muted: #5E5D59;          /* Tertiary foreground */
  --ink-faint: #87867F;          /* Subtle indicator */

  /* --- Darkroom Charcoal Footer (Exact Match to Kyanic #141413 Obsidian Palette) --- */
  --darkroom: #141413;
  --darkroom-ink: #FAF9EB;
  --darkroom-secondary: #B0AEA5;
  --darkroom-muted: #87867F;
  --darkroom-dim: #4D4C48;
  --darkroom-border: #3D3D3A;
  --darkroom-rule: rgba(250, 249, 235, 0.12);

  /* --- Whisper-Thin Hairlines --- */
  --hairline: #E0DFCF;
  --hairline-strong: rgba(20, 20, 19, 0.22);

  /* --- Restrained Mineral Pigments (Strictly for subtle brand breath & error state) --- */
  --cinnabar: #D46B4C;
  --cinnabar-deep: #9B3529;
  --malachite: #4E9268;
  --azurite: #5E8FC0;

  /* --- Typography Stacks (Exact Match to Kyanic) --- */
  --font-sans: 'AnthropicSans', 'AnthropicSans Fallback', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'AnthropicSerif', 'AnthropicSerif Fallback', 'Songti SC', 'Noto Serif SC', 'STSong', Georgia, serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* --- Layout Rhythm (Exact Match to Kyanic 1920px Grid, 80/48/32px Gutters) --- */
  --gutter: 80px;
  --max-width: 1920px;
  --header-height: 84px;

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1279px) {
  :root {
    --gutter: 48px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 32px;
  }
}
