/* Imajiva design tokens (redesign Phase 2, APR-034). One source of truth for app and landing.
   Brand palette (CEO brief): Imajiva Violet #7655E8, Creative Coral #FF9569, Playful Lime #D8EEA9,
   Warm Canvas #F8F5EF, Ink Black #26232D. Fonts: Poppins (display) + Inter (UI), SIL OFL 1.1, self-hosted.
   Contrast (WCAG 2.1, checked 2026-11-22): text #26232D on canvas 14.2; muted #5E5A68 on canvas 6.15;
   violet text #5B3BD4 on canvas 6.39; white on violet #7655E8 4.96; dark: text 16.2, muted 8.5, violet #A792FA 7.07.
   Rules: Coral is never a text colour and never carries white text (1.98 / 2.15); use it as a surface with ink text. */

@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700.woff2") format("woff2"); }

:root {
  /* brand */
  --violet: #7655E8; --violet-strong: #5B3BD4; --violet-soft: #ECE7FD;
  --coral: #FF9569; --coral-soft: #FFE8DD;
  --lime: #D8EEA9; --lime-soft: #F0F8DD;
  --canvas: #F8F5EF; --ink: #26232D;

  /* semantic (light) */
  --bg: var(--canvas);
  --surface: #FFFFFF;
  --surface-2: #F1ECE3;
  --text: var(--ink);
  --text-muted: #5E5A68;
  --border: #E5DED2;
  --border-strong: #CFC6B8;
  --primary: var(--violet);
  --primary-hover: var(--violet-strong);
  --on-primary: #FFFFFF;
  --link: var(--violet-strong);
  --accent: var(--coral);            /* surfaces only */
  --on-accent: var(--ink);
  --highlight: var(--lime);          /* surfaces only */
  --on-highlight: var(--ink);
  --success: #1E7347; --success-soft: #E3F2E9;
  --danger: #B3261E;  --danger-soft: #FBE5E2;
  --focus: #5B3BD4;
  --checker-a: #FFFFFF; --checker-b: #EFE9DF;

  /* typography */
  --font-display: "Poppins", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  --fs-xs: 0.75rem;  --fs-sm: 0.875rem; --fs-base: 1rem; --fs-md: 1.125rem; --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;   --fs-2xl: 1.875rem; --fs-3xl: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  --fs-4xl: clamp(2.5rem, 1.8rem + 3vw, 3.75rem); --fs-5xl: clamp(2.75rem, 1.6rem + 5vw, 5rem);
  --lh-tight: 1.08; --lh-snug: 1.25; --lh-body: 1.6;
  --tracking-display: -0.025em;

  /* spacing (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* shape: few radii, used on purpose (brief: avoid rounded cards everywhere) */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --border-w: 1.5px;

  /* depth */
  --sh-1: 0 1px 2px rgba(38, 35, 45, 0.06), 0 1px 1px rgba(38, 35, 45, 0.04);
  --sh-2: 0 8px 24px -12px rgba(38, 35, 45, 0.18);
  --sh-sticker: 0 0 0 4px #FFFFFF, 0 10px 22px -10px rgba(38, 35, 45, 0.35);  /* die-cut sticker edge */
  --sh-press: 3px 3px 0 var(--ink);  /* playful offset for key CTAs */

  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;

  /* layout */
  --container: 1200px; --container-narrow: 720px; --sidebar-w: 248px; --topbar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16141B; --surface: #211E28; --surface-2: #2A2633;
    --text: #F3F0F8; --text-muted: #B4AEC2;
    --border: #36313F; --border-strong: #4A4456;
    --primary: #A792FA; --primary-hover: #BBA9FB; --on-primary: #16141B; --link: #A792FA;
    --violet-soft: #2D2544; --coral-soft: #3A2620; --lime-soft: #263020;
    --success: #7BD3A0; --success-soft: #1D2E24; --danger: #FF8A80; --danger-soft: #3A1F1D;
    --focus: #BBA9FB; --checker-a: #2A2633; --checker-b: #221F29;
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-2: 0 10px 28px -12px rgba(0, 0, 0, 0.6);
    --sh-sticker: 0 0 0 4px #F3F0F8, 0 10px 22px -10px rgba(0, 0, 0, 0.6);
    --sh-press: 3px 3px 0 #000000;
    color-scheme: dark;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; }
}
