/* LazyCEO design tokens.
   Palette: deep navy + clean white + sky blue (chosen 2026-11-04).
   Font: Sarabun for everything (chosen 2026-11-04).
   Every component uses the semantic tokens below, never raw colours. */

:root {
  --c-paper: oklch(99.2% 0.002 250);
  --c-paper-deep: oklch(95.6% 0.012 250);
  --c-card: oklch(100% 0 0);
  --c-ink: oklch(25% 0.085 264);
  --c-ink-soft: oklch(42% 0.05 262);
  --c-ink-mute: oklch(57% 0.03 262);
  --c-night: oklch(24% 0.095 266);
  --c-night-2: oklch(30% 0.1 266);
  --c-on-night: oklch(98% 0.005 250);
  --c-on-night-soft: oklch(82% 0.035 250);
  --signal: oklch(80% 0.11 225);
  --signal-deep: oklch(52% 0.16 255);
  --ai: oklch(72% 0.12 190);

  --font-head: "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", system-ui, sans-serif;
  --weight-head: 700;
  --weight-accent: 400;
  --leading-body: 1.75;
  --leading-head: 1.3;
}

/* Semantic tokens. Light surfaces are the default; .on-night flips them. */
:root,
.on-paper {
  --paper: var(--c-paper);
  --paper-deep: var(--c-paper-deep);
  --card: var(--c-card);
  --ink: var(--c-ink);
  --ink-soft: var(--c-ink-soft);
  --ink-mute: var(--c-ink-mute);
  --ink-contrast: var(--c-paper);
  --accent-text: var(--signal-deep);
  --line: color-mix(in oklch, var(--c-ink) 14%, transparent);
  --ai-soft: color-mix(in oklch, var(--ai) 16%, transparent);
}
.on-paper { color: var(--ink); }
.on-night {
  --card: var(--c-night-2);
  --ink: var(--c-on-night);
  --ink-soft: var(--c-on-night-soft);
  --ink-mute: color-mix(in oklch, var(--c-on-night-soft) 70%, var(--c-night));
  --ink-contrast: var(--c-night);
  --accent-text: var(--signal);
  --line: color-mix(in oklch, var(--c-on-night) 16%, transparent);
  background-color: var(--night);
  color: var(--ink);
}

:root {
  /* fixed roles that do not flip */
  --night: var(--c-night);
  --night-2: var(--c-night-2);
  --on-night: var(--c-on-night);
  --on-night-soft: var(--c-on-night-soft);
  --night-line: color-mix(in oklch, var(--c-on-night) 14%, transparent);
  --on-signal: var(--c-night);

  /* Typography */
  /* Instrument Serif has Latin glyphs only: use it for numbers and the "Lazy" wordmark, never Thai */
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  --text-hero: clamp(2.75rem, 1.4rem + 6.2vw, 6.75rem);
  --text-mega: clamp(3.5rem, 1rem + 11vw, 11rem);

  /* Spacing rhythm: deliberately uneven */
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: clamp(3rem, 2rem + 4vw, 5.5rem);
  --space-section: clamp(5rem, 3rem + 7vw, 11rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --max: 1320px;

  /* Shape + depth (shadows tinted navy) */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 0 oklch(100% 0 0 / 0.6) inset, 0 24px 60px -28px oklch(22% 0.08 262 / 0.38);
  --shadow-float: 0 30px 80px -30px oklch(12% 0.06 262 / 0.6);

  /* Motion */
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 900ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
