/* Troky landing — design tokens (nguồn: packages/design-tokens/tokens.json)
   Mọi mã màu hex chỉ nằm ở file này. */
:root {
  /* Thương hiệu */
  --forest: #103d2e;
  --deep: #0a2a20;
  --moss: #1f6049;
  --moss-soft: #2f7d60;
  --cream: #fff4de;
  --paper: #fffbf0;
  --amber: #ffb22e;
  --amber-hot: #ff9f1c;
  --amber-light: #ffc95a;
  --bloom: #f08a7e; /* hoa giấy — chỉ dùng làm điểm nhấn minh họa */

  /* Trạng thái phòng (đúng token của dashboard) */
  --st-vacant: #10b981;   --st-vacant-bg: #ecfdf5;   --st-vacant-tx: #065f46;
  --st-occupied: #3b82f6; --st-occupied-bg: #eff6ff; --st-occupied-tx: #1e40af;
  --st-maint: #ef4444;    --st-maint-bg: #fef2f2;    --st-maint-tx: #991b1b;
  --st-reserved: #f59e0b; --st-reserved-bg: #fffbeb; --st-reserved-tx: #92400e;
  --st-clean: #7c3aed;    --st-clean-bg: #f5f3ff;    --st-clean-tx: #5b21b6;

  /* Chữ & đường kẻ — đổi theo ngày/đêm */
  --ink: var(--forest);
  --ink-2: rgba(16, 61, 46, 0.78);
  --line: rgba(16, 61, 46, 0.2);
  --card: var(--paper);
  --sky: #fff4de; /* JS nội suy theo giờ trong ngày */

  /* Chữ */
  --font-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Patrick Hand", "Be Vietnam Pro", cursive;

  /* Nhịp 4/8 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;

  /* Bo góc */
  --r-s: 10px; --r-m: 18px; --r-l: 28px;

  /* Chuyển động: một bộ token dùng chung */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 160ms; --dur-2: 320ms; --dur-3: 640ms;

  --shadow-paper: 0 1px 0 rgba(16, 61, 46, 0.1), 0 14px 28px -16px rgba(16, 61, 46, 0.45);
  --shadow-lift: 0 2px 0 rgba(16, 61, 46, 0.12), 0 22px 40px -18px rgba(16, 61, 46, 0.5);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Vùng an toàn: tai thỏ / Dynamic Island / thanh Home trên iPhone (0 trên máy không có) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --nav-h: 68px;
}

.is-night {
  --ink: var(--cream);
  --ink-2: rgba(255, 244, 222, 0.82);
  --line: rgba(255, 244, 222, 0.22);
  --card: color-mix(in srgb, var(--forest) 88%, var(--moss));
}
