/* Vietnam 2026 Companion — design tokens.
   The subject is the Vietnamese street: enamel house-number plaques (cobalt,
   white numerals), lantern light, rice paper. Light mode is the daytime
   street; dark mode is the night train. Every screen derives from these. */

:root {
  /* surfaces and ink */
  --paper: #f7f6f1;
  --paper-2: #efede6;
  --paper-3: #e6e3da;
  --ink: #141b2e;
  --ink-2: #4a5168;
  --ink-3: #868ca0;
  --line: #dcd9d0;

  /* the plaque and the lantern */
  --cobalt: #1e4fa3;
  --cobalt-deep: #163c7e;
  --cobalt-ink: #ffffff;
  --lantern: #f2a93b;
  --lantern-ink: #5a3a00;
  --lacquer: #b3261e;
  --jade: #2f7d6a;
  --jade-soft: #dcefe8;
  --lacquer-soft: #f6dedc;
  --lantern-soft: #fbe9c6;

  /* one colour per city, used by the calendar and day headers */
  --city-saigon: #d9534f;
  --city-hoi-an: #e89b2c;
  --city-da-nang: #2a9d8f;
  --city-hue: #7b5ea7;
  --city-hanoi: #1e4fa3;
  --city-sapa: #4f7942;
  --city-ninh-binh: #8a6d3b;
  --city-transit: #868ca0;

  /* one colour per place kind, used by the map and place chips */
  --kind-hotel: #1e4fa3;
  --kind-restaurant: #d9534f;
  --kind-street-food: #d9534f;
  --kind-cafe: #a66a2c;
  --kind-sight: #7b5ea7;
  --kind-market: #e89b2c;
  --kind-station: #141b2e;
  --kind-airport: #141b2e;
  --kind-walk-point: #2f7d6a;
  --kind-other: #868ca0;

  /* type: one variable family, two voices (display: condensed + heavy; text: opsz 12) */
  --font: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-xs: 12px;
  --t-sm: 14px;
  --t-md: 17px;
  --t-lg: 21px;
  --t-xl: 28px;
  --t-2xl: 38px;
  --t-3xl: 54px;
  --lh-tight: 1.05;
  --lh-text: 1.45;

  /* space, radius, elevation */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --r1: 4px;
  --r2: 10px;
  --r3: 16px;
  --shadow: 0 1px 2px rgba(20, 27, 46, 0.08), 0 8px 20px -10px rgba(20, 27, 46, 0.22);
  --tap: 44px;
  --tabbar: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0f1526;
    --paper-2: #161e33;
    --paper-3: #1f2942;
    --ink: #eceae3;
    --ink-2: #b6bac8;
    --ink-3: #7e8498;
    --line: #283150;
    --cobalt: #2e63c8;
    --cobalt-deep: #224da0;
    --lantern-ink: #ffd58a;
    --lacquer: #e0564d;
    --jade: #4fb39a;
    --jade-soft: #163a32;
    --lacquer-soft: #4a1f1c;
    --lantern-soft: #4a3510;
    --city-hanoi: #4f7fe0;
    --kind-hotel: #4f7fe0;
    --kind-station: #eceae3;
    --kind-airport: #eceae3;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme='dark'] {
  --paper: #0f1526;
  --paper-2: #161e33;
  --paper-3: #1f2942;
  --ink: #eceae3;
  --ink-2: #b6bac8;
  --ink-3: #7e8498;
  --line: #283150;
  --cobalt: #2e63c8;
  --cobalt-deep: #224da0;
  --lantern-ink: #ffd58a;
  --lacquer: #e0564d;
  --jade: #4fb39a;
  --jade-soft: #163a32;
  --lacquer-soft: #4a1f1c;
  --lantern-soft: #4a3510;
  --city-hanoi: #4f7fe0;
  --kind-hotel: #4f7fe0;
  --kind-station: #eceae3;
  --kind-airport: #eceae3;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
