/* ============================================================
 * AI 電商員工 — Design Tokens v2
 * Source of truth: web/design-tokens.json
 * ============================================================ */

:root {
  /* ---- Brand ---- */
  --c-brand:           #1B3A52;
  --c-brand-hover:     #15314A;
  --c-brand-soft:      #E3ECF4;
  --c-brand-tint:      #F4F8FB;
  --c-accent:          #E67A3C;
  --c-accent-hover:    #D26426;
  --c-accent-soft:     #FCEFE3;

  /* ---- Neutrals (cream-warm scale) ---- */
  --c-white:           #FFFFFF;
  --c-bg:              #FAF7F2;     /* page background — warm off-white */
  --c-surface:         #FFFFFF;     /* cards */
  --c-surface-alt:     #F3EFE8;     /* alternate sections */
  --c-border:          #E7E1D6;
  --c-border-strong:   #D2C9B9;
  --c-muted:           #A39A8A;
  --c-text-subtle:     #6F665A;
  --c-text-body:       #4D463C;
  --c-text:            #332E27;     /* primary text */
  --c-text-strong:     #1F1B16;
  --c-ink:             #0F0D0A;

  /* ---- Semantic ---- */
  --c-success:         #2D7A5A;
  --c-success-soft:    #DCEEE5;
  --c-warn:            #C18A1A;
  --c-warn-soft:       #FBF1D8;
  --c-danger:          #B53F3F;
  --c-danger-soft:     #F7DDDD;
  --c-info:            #2E5878;
  --c-info-soft:       #DCE7F0;

  /* ---- Typography ---- */
  --ff-sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
             "Yu Gothic", "Noto Sans JP", "PingFang TC", "Microsoft JhengHei",
             system-ui, -apple-system, sans-serif;
  --ff-display: var(--ff-sans);
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  30px;
  --fs-3xl:  36px;
  --fs-4xl:  44px;
  --fs-5xl:  56px;
  --fs-6xl:  72px;

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

  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-normal:  1.55;
  --lh-relaxed: 1.75;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-wider:  0.08em;

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

  /* ---- Radius ---- */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* ---- Shadows (soft, warm-tinted) ---- */
  --shadow-xs:    0 1px 2px rgba(27, 58, 82, 0.05);
  --shadow-sm:    0 2px 6px rgba(27, 58, 82, 0.06), 0 1px 2px rgba(27, 58, 82, 0.04);
  --shadow-md:    0 6px 16px rgba(27, 58, 82, 0.08), 0 2px 4px rgba(27, 58, 82, 0.04);
  --shadow-lg:    0 16px 32px rgba(27, 58, 82, 0.10), 0 4px 8px rgba(27, 58, 82, 0.06);
  --shadow-xl:    0 24px 48px rgba(27, 58, 82, 0.14), 0 8px 16px rgba(27, 58, 82, 0.06);
  --shadow-focus: 0 0 0 3px rgba(230, 122, 60, 0.35);
  --shadow-ring:  0 0 0 1px rgba(27, 58, 82, 0.08);

  /* ---- Motion ---- */
  --motion-fast:   150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-base:   250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-slow:   400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-index ---- */
  --z-base:    0;
  --z-raised:  10;
  --z-nav:     50;
  --z-overlay: 100;
  --z-modal:   200;
  --z-toast:   300;

  /* ---- Layout ---- */
  --container-max:    1200px;
  --container-narrow: 880px;
  --container-text:   680px;
  --gutter:           24px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast:   0ms;
    --motion-base:   0ms;
    --motion-slow:   0ms;
    --motion-spring: 0ms;
  }
}
