/**
 * Huawei Chen design tokens. All values are native CSS custom properties.
 */
:root {
  color-scheme: light;

  /* Brand palette. */
  --hc-brand-primary: #18273f;
  --hc-brand-secondary: #d42b16;
  --hc-brand-accent: #f2a43c;
  --hc-brand-sunflower: #e8c12d;
  --hc-brand-leaf: #679736;

  /* Semantic colours: use these for components and page surfaces. */
  --hc-color-background: #fffbf3;
  --hc-color-surface: #fff;
  --hc-color-text: #1c2530;
  --hc-color-text-muted: #655d54;
  --hc-color-heading: #18273f;
  --hc-color-border: #e8ded0;
  --hc-color-link: #a52a1b;
  --hc-color-link-hover: #7b1f16;
  --hc-color-focus: #a52a1b;
  --hc-color-accent-text: #86540e;
  --hc-color-action: #b52c17;
  --hc-color-action-hover: #8f2115;
  --hc-color-on-action: #fff;

  /* Font stacks require no external downloads. */
  --hc-font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --hc-font-heading: Georgia, 'Noto Serif SC', 'Songti SC', SimSun, serif;
  --hc-font-code: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
  --hc-text-xs: .75rem;
  --hc-text-sm: .875rem;
  --hc-text-base: 1rem;
  --hc-text-lg: 1.125rem;
  --hc-text-xl: 1.25rem;
  --hc-text-2xl: 1.5rem;
  --hc-text-3xl: 2rem;
  --hc-text-4xl: 2.5rem;
  --hc-leading-heading: 1.3;
  --hc-leading-body: 1.6;
  --hc-leading-article: 1.8;

  --hc-space-xs: .25rem;
  --hc-space-sm: .5rem;
  --hc-space-md: 1rem;
  --hc-space-lg: 1.5rem;
  --hc-space-xl: 2rem;
  --hc-space-2xl: 3rem;
  --hc-space-3xl: 4rem;
  --hc-radius-sm: .25rem;
  --hc-radius-md: .5rem;
  --hc-radius-lg: .75rem;
  --hc-radius-xl: 1rem;

  --hc-container: 80rem;
  --hc-article-width: 47.5rem;
  --hc-sidebar-width: 18rem;
  --hc-gutter: clamp(1rem, 3vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --hc-color-background: #111a2b;
    --hc-color-surface: #1b2a3b;
    --hc-color-text: #f7f1e8;
    --hc-color-text-muted: #d1c5b2;
    --hc-color-heading: #fff8eb;
    --hc-color-border: #435066;
    --hc-color-link: #ffc66d;
    --hc-color-link-hover: #ffe1a3;
    --hc-color-focus: #ffc66d;
    --hc-color-accent-text: #ffc66d;
    --hc-color-action: #f5ae42;
    --hc-color-action-hover: #ffd48b;
    --hc-color-on-action: #18273f;
  }
}
