/* Infos Corporation — design tokens (website 2027)
   Palette "Luminous Infos": evolves the brand blue toward WGSN/Coloro 2027 Luminous Blue,
   promotes the logo's amber dot to the single ownable accent.
   Contrast (WCAG): ink/bg 16.6:1 · primary/bg 6.0:1 · white/primary 6.5:1 · white/navy 16.9:1
   · amber/navy 9.4:1. RULE: never put white text on amber (1.8:1).
   RULE: amber is a text/icon colour on navy / navy-700 only (1.7:1 on --c-bg). */

:root {
  /* colour */
  --c-primary: #1F4FE0;
  --c-primary-700: #173DB3;
  --c-primary-100: #E3EAFF;
  --c-primary-300: #6B8BFF;  /* diagram strokes, hero nodes (decorative) */
  --c-navy: #0B1B3F;
  --c-navy-700: #13265A;
  --c-amber: #F5B700;
  --c-amber-100: #FFF4CC;
  --c-amber-400: #FFC51F;   /* amber hover only */
  --c-on-amber: #0B1B3F;
  --c-bg: #F4F7FB;
  --c-surface: #FFFFFF;
  --c-ink: #0F172A;
  --c-muted: #5B6B85;
  --c-line: #D9E1EE;
  --c-teal: #0E8C7A;       /* fills, charts, >=18pt text only */
  --c-success: #1B7F4D;
  --c-danger: #B42318;

  /* typography */
  --ff-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-th: "IBM Plex Sans Thai", "Inter", "Thonburi", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* fluid type scale (Utopia-style), 360px -> 1440px */
  --step--1: clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.30vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.30rem + 0.90vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.50vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.80rem + 2.60vw, 3.7rem);

  --lh-tight: 1.15;
  --lh-body: 1.6;
  --lh-th: 1.75;

  /* spacing (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(11, 27, 63, 0.06), 0 1px 3px rgba(11, 27, 63, 0.08);
  --shadow-2: 0 6px 20px rgba(11, 27, 63, 0.10);
  --shadow-3: 0 18px 50px rgba(11, 27, 63, 0.16);

  /* layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --nav-h: 72px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.5s;
  --dur-fast: 0.2s;

  color-scheme: light;
}

/* Dark band: components recolour by inheritance */
.band--navy {
  --c-bg: var(--c-navy);
  --c-surface: var(--c-navy-700);
  --c-ink: #FFFFFF;
  --c-muted: #B7C3DA;
  --c-line: rgba(255, 255, 255, 0.14);
  --c-primary-100: rgba(255, 255, 255, 0.08);
  --shadow-1: none;
  --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

.band--primary {
  --c-bg: var(--c-primary);
  --c-surface: var(--c-primary-700);
  --c-ink: #FFFFFF;
  --c-muted: #DCE4FF;
  --c-line: rgba(255, 255, 255, 0.2);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur: 0.01ms;
    --dur-fast: 0.01ms;
  }
}
