/* ===========================================================
   Aura Wellness — Design tokens
   Nguồn duy nhất cho màu, type, spacing, radius, shadow.
   =========================================================== */

:root {
  /* --- Bảng màu thương hiệu --- */
  --forest:       #1B3A2F;
  --forest-deep:  #0F241C;
  --gold:         #C9A961;
  --gold-soft:    #E3D3AC;
  --cream:        #F7F3EA;
  --sand:         #E8DFD0;
  --ink:          #2A2A26;
  --ink-soft:     #6B6B62;

  /* --- Màu trạng thái (hoà với palette, không dùng màu mặc định) --- */
  --ok:    #4A7C59;
  --warn:  #B8894A;
  --risk:  #A3543D;

  /* Biến thể nhạt cho nền chip/badge */
  --ok-bg:    #E4EDE6;
  --warn-bg:  #F6EADB;
  --risk-bg:  #F4E3DD;
  --ok-ink:   #2E5638;
  --warn-ink: #7E5A28;
  --risk-ink: #7A3826;

  /* --- Nền / bề mặt --- */
  --surface:        #FFFFFF;
  --surface-2:      var(--cream);
  --surface-3:      var(--sand);
  --line:           #DED5C4;
  --line-strong:    #C6BBA6;
  --overlay:        rgba(15, 36, 28, .55);

  /* --- Typography --- */
  --font-display: "Playfair Display", "Times New Roman", Georgia, "Noto Serif", serif;
  --font-ui: "Be Vietnam Pro", "Segoe UI", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;

  --fs-3xl: 2.25rem;   /* 36 */
  --fs-2xl: 1.75rem;   /* 28 */
  --fs-xl:  1.375rem;  /* 22 */
  --fs-lg:  1.125rem;  /* 18 */
  --fs-md:  1rem;      /* 16 */
  --fs-sm:  .875rem;   /* 14 */
  --fs-xs:  .8125rem;  /* 13 */
  --fs-2xs: .6875rem;  /* 11 */

  --lh-tight: 1.2;
  --lh-snug:  1.35;
  --lh-base:  1.55;

  --fw-reg: 400;
  --fw-med: 500;
  --fw-sem: 600;
  --fw-bold: 700;

  /* --- Spacing (thang 4px) --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;

  /* --- Radius --- */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  /* --- Shadow --- */
  --sh-1: 0 1px 2px rgba(27, 58, 47, .06), 0 1px 3px rgba(27, 58, 47, .05);
  --sh-2: 0 2px 6px rgba(27, 58, 47, .08), 0 6px 16px rgba(27, 58, 47, .06);
  --sh-3: 0 8px 24px rgba(27, 58, 47, .14), 0 2px 6px rgba(27, 58, 47, .08);
  --sh-inset-gold: inset 0 0 0 1px var(--gold);

  /* --- Vùng chạm / layout --- */
  --tap: 48px;           /* vùng chạm tối thiểu console spa */
  --tap-sm: 40px;
  --bottomnav-h: 64px;
  --topbar-h: 56px;
  --maxw-app: 460px;
  --maxw-admin: 1440px;

  /* --- Motion --- */
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 340ms;
  --ease: cubic-bezier(.32, .72, .35, 1);
}

/* Tôn trọng prefers-reduced-motion ở cấp token */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur: 1ms;
    --dur-slow: 1ms;
  }
}
