/*
  injoy home — design tokens (CSS custom properties).
  Source of truth for the redesign. Light theme only (the brand has no dark theme yet).
  Prefix --ij- so the tokens never clash with the app's existing variables.
*/
:root {
  /* ---------- Ink: text, logo, primary buttons ---------- */
  --ij-ink: #1B1B3A;            /* all main text, logo, primary buttons, icons */
  --ij-ink-muted: #4A4A63;      /* secondary text on white / mist (8.6:1 on white) */
  --ij-ink-soft: #3A3A55;       /* secondary text on the home sky gradient (6.9:1) */
  --ij-ink-faint: #6E6E8A;      /* done items, inactive tabs, placeholders (4.9:1 on white) */
  --ij-ink-wash: rgba(27, 27, 58, 0.06); /* secondary button, pressed rows */

  /* ---------- The one accent ---------- */
  --ij-coral: #FF5A3C;          /* the smile; one small detail per screen. Never small text, never big fills */
  --ij-coral-dark: #D63A1E;     /* coral text on white, destructive actions (4.7:1) */
  --ij-coral-tint: #FFF1EC;     /* background of accent chips ("from plan") */
  --ij-coral-on-tint: #B4301A;  /* text on coral-tint (5.6:1) */
  --ij-amber: #FFB020;          /* very rare: stickers, celebrations. Never text */
  --ij-amber-tint: #FFF4DC;     /* warning chip background */
  --ij-amber-on-tint: #7A4E00;  /* warning chip text (6.6:1) */

  /* ---------- Surfaces ---------- */
  --ij-white: #FFFFFF;          /* cards, sheets, tab bar */
  --ij-mist: #F5F2F8;           /* app background behind cards */
  --ij-soft: #F0EDF5;           /* row dividers inside cards, skeletons */
  --ij-lilac-tint: #EDEAF6;     /* neutral chips, selected row, segmented control track */
  --ij-border: #E4E0EC;         /* card borders when a card sits on white */
  --ij-input-border: #D9D4E4;   /* text field border */
  --ij-check-border: #8C87A3;   /* empty checkbox ring, toggles off (3.4:1 — meets 3:1 for controls) */
  --ij-card-on-sky: rgba(255, 255, 255, 0.62); /* cards placed on the home sky */

  /* ---------- Sunset palette (the brand's sky) ---------- */
  --ij-sunset-lavender: #979FD9;
  --ij-sunset-lilac: #B9ACDF;
  --ij-sunset-rose: #E2B5C9;
  --ij-sunset-apricot: #F2C3B9;
  --ij-sunset-peach: #FADFBF;

  /* injoy home owns the warm bottom of the sunset */
  --ij-sky-home: linear-gradient(180deg, #F2C3B9 0%, #FADFBF 100%);
  /* full sunset — only where home stands next to the injoy master brand */
  --ij-sky-full: linear-gradient(180deg, #979FD9 0%, #B9ACDF 30%, #E2B5C9 60%, #F2C3B9 80%, #FADFBF 100%);
  /* sister directions, for reference only */
  --ij-sky-family: linear-gradient(180deg, #E2B5C9 0%, #F2C3B9 100%);
  --ij-sky-school: linear-gradient(180deg, #979FD9 0%, #B9ACDF 100%);

  /* Family members (avatars, owner dots, calendar lanes) — always with ink initials */
  --ij-person-1: #B9ACDF;   /* lilac */
  --ij-person-2: #FADFBF;   /* peach */
  --ij-person-3: #E2B5C9;   /* rose */
  --ij-person-4: #F2C3B9;   /* apricot */
  --ij-person-5: #979FD9;   /* lavender */

  /* ---------- Type ---------- */
  --ij-font-latin: 'Bricolage Grotesque', 'Geologica', system-ui, sans-serif;
  --ij-font-cyr: 'Geologica', system-ui, sans-serif;
  /* The UI font. Russian/Greek UI → Geologica (Bricolage has no Cyrillic/Greek).
     Switch to var(--ij-font-latin) only if the whole UI is English. */
  --ij-font-ui: var(--ij-font-cyr);

  /* Mobile app scale: size / line-height / weight / tracking */
  --ij-text-display: 600 28px/32px var(--ij-font-ui);  /* greeting on Today, splash title; tracking -0.03em */
  --ij-text-title: 600 22px/28px var(--ij-font-ui);    /* screen title; tracking -0.02em */
  --ij-text-section: 600 17px/22px var(--ij-font-ui);  /* section and card titles; tracking -0.01em */
  --ij-text-body: 400 16px/22px var(--ij-font-ui);     /* list items, paragraphs */
  --ij-text-small: 400 14px/20px var(--ij-font-ui);    /* meta: "Лена готовит · 5 порций" */
  --ij-text-label: 500 13px/18px var(--ij-font-ui);    /* field labels, chips */
  --ij-text-overline: 600 11px/14px var(--ij-font-ui); /* "УЖИН · 19:30" — uppercase, tracking 0.06em */
  --ij-text-tab: 500 11px/14px var(--ij-font-ui);      /* bottom tab labels */
  --ij-text-button: 600 15px/20px var(--ij-font-ui);
  --ij-tracking-display: -0.03em;
  --ij-tracking-title: -0.02em;
  --ij-tracking-section: -0.01em;
  --ij-tracking-overline: 0.06em;

  /* ---------- Space (4px grid) ---------- */
  --ij-space-1: 4px;
  --ij-space-2: 8px;
  --ij-space-3: 12px;
  --ij-space-4: 16px;   /* screen side padding on phones, card padding */
  --ij-space-5: 20px;
  --ij-space-6: 24px;   /* gap between cards / sections on phones */
  --ij-space-8: 32px;
  --ij-space-12: 48px;  /* page padding on desktop */
  --ij-space-16: 64px;

  /* ---------- Radius: rounded like the logo's line ends ---------- */
  --ij-radius-thumb: 10px;  /* thumbnails, small tiles */
  --ij-radius-tile: 14px;   /* list groups, banners */
  --ij-radius-card: 20px;   /* cards, sheets (top corners) */
  --ij-radius-icon: 22.37%; /* app-icon squircle approximation */
  --ij-radius-pill: 999px;  /* buttons, inputs, chips, segmented controls, tab indicator */

  /* ---------- Size ---------- */
  --ij-touch: 44px;         /* minimum touch target */
  --ij-button-h: 48px;
  --ij-button-h-sm: 36px;
  --ij-input-h: 48px;
  --ij-row-h: 52px;         /* list row */
  --ij-avatar: 28px;
  --ij-tabbar-h: 64px;      /* + env(safe-area-inset-bottom) */
  --ij-stroke-icon: 2px;    /* line icons at 24px, round caps and joins */

  /* ---------- Elevation: flat by default ---------- */
  --ij-shadow-none: none;                                  /* cards: no shadow, colour does the work */
  --ij-shadow-float: 0 8px 28px rgba(27, 27, 58, 0.14);    /* only floating things: sheets, toasts, FAB, menus */

  /* ---------- Motion ---------- */
  --ij-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ij-duration: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --ij-duration: 0ms; }
}
