/* ============================================================================
   CCBONLINE INC. / 中加商业在线 — Design tokens
   Source of truth: CCBONLINE VI V3.1-R1 (2026-11-19), inheriting VI V3.0.
   Transcribed from the brand system. Do not invent new brand colours.
   Layer 1 of 3: tokens + font faces + element defaults.
   ============================================================================ */

/* ---------- Fonts (self-hosted, woff2) ----------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/InterDisplay-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/InterDisplay-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/NotoSansSC-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/NotoSansSC-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/NotoSansSC-Bold.woff2') format('woff2');
}

:root {
  /* ---------- Brand core (VI V3.1 §07) ---------------------------------- */
  --ink: #182f3b;          /* Deep Ink — type, entity bar, thesis band, CTA band */
  --teal: #087e75;         /* Atlantic Teal — accent only */
  --paper: #f7f5f0;        /* Warm Paper — inverse text, recessed bands */
  --fog: #dfe6e1;          /* Fog — all hairlines */

  /* ---------- Logo-only extension colours (not site palette) ----------- */
  --inverse-mint: #78ceb6;
  --inverse-cjk: #9ddacb;
  --white: #ffffff;

  /* ---------- Derived neutrals ----------------------------------------- */
  --ink-90: #2c4049;
  --ink-70: #5a6c73;
  --ink-55: #7c8a8f;
  --ink-40: #9fa9ac;
  --paper-2: #efede6;
  --fog-soft: #e9eeea;
  --teal-ink: #0a5f59;
  --teal-tint: #e4efec;

  /* ---------- Semantic ------------------------------------------------- */
  --fg1: var(--ink);
  --fg2: var(--ink-70);
  --fg3: var(--ink-55);
  --fg-invert: var(--paper);
  --bg: var(--white);
  --bg-deep: var(--ink);
  --bg-recessed: var(--paper);
  --rule: var(--fog);
  --rule-strong: var(--ink);
  --rule-soft: #edeae2;

  /* ---------- Type families -------------------------------------------- */
  --font-en: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter Display', 'Inter', 'Noto Sans SC', sans-serif;
  --font-cjk: 'Noto Sans SC', 'Inter', sans-serif;

  /* ---------- Type scale ----------------------------------------------- */
  --t-display: 64px;
  --t-h1: 48px;
  --t-h2: 32px;
  --t-h3: 24px;
  --t-h4: 20px;
  --t-lead: 18px;
  --t-body: 16px;
  --t-small: 14px;
  --t-micro: 12px;
  --t-micro-xs: 11px;

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;
  --lh-en: 1.6;

  --tr-display: -0.02em;
  --tr-h: -0.015em;
  --tr-eyebrow: 0.14em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* ---------- Spacing (8pt) -------------------------------------------- */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  /* ---------- Layout --------------------------------------------------- */
  --gutter: 48px;
  --measure: 62ch;
  --page-max: 1200px;
  --plate-max: 1080px;

  /* ---------- Radii: brand is rectilinear ------------------------------ */
  --r-0: 0px;
  --r-1: 2px;
  --r-icon: 4px;
  --r-pill: 999px;

  /* ---------- Elevation: essentially none; overlays only --------------- */
  --shadow-none: none;
  --shadow-overlay: 0 18px 44px rgba(24, 47, 59, 0.14), 0 2px 6px rgba(24, 47, 59, 0.08);

  /* ---------- Motion --------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0, 0.1, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
}

/* ---------- Element defaults ------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-en);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-h);
  text-wrap: pretty;
}

p {
  margin: 0 0 var(--s-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-ink); }

.cjk, [lang="zh"], [lang="zh-CN"] {
  font-family: var(--font-cjk);
  line-height: var(--lh-body);
  letter-spacing: 0;
}

/* Numeric / tabular — figures, steps, table numerals */
.tnum { font-variant-numeric: tabular-nums; }

/* Anything toggled by script */
[hidden] { display: none !important; }

/* Honour reduced motion: colour and opacity only anyway, but stop smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
