/* Sahay design tokens. Shared by the app (/app) and the landing page (/).
   Names are a contract (docs/superpowers/plans/2026-11-19-sahay-frontend.md): add, never rename.
   Dark ("calm future" ink night) is the default; light comes from the system or data-theme="light".
   Fonts are loaded by each page from Google Fonts (the only allowed stylesheet origin). */

:root {
  color-scheme: dark;

  /* Surfaces */
  --ink-0: #0B0E14;
  --ink-1: #121826;
  --ink-2: #1B2333;
  --ink-3: #26304A;
  --glass: rgba(255, 255, 255, .06);
  --glass-strong: rgba(18, 24, 38, .78);
  --glass-border: rgba(255, 255, 255, .14);
  /* Boundary of anything you can press or that floats over content: >= 3:1 against --ink-0. */
  --edge: rgba(255, 255, 255, .42);

  /* Text */
  --text-hi: #F5F2EA;
  --text-lo: #A9B1C2;

  /* Meaning (always paired with an icon, never colour alone) */
  --marigold: #FFB020;   /* the agent, primary action */
  --saffron: #FF7A1A;
  --leaf: #3DDC97;       /* done, yes */
  --coral: #FF6B6B;      /* needs you */
  --cyan: #4FD1E8;       /* the vendor side */
  /* Same hues when used as text on the current surface. */
  --marigold-text: #FFC14D;
  --leaf-text: #5BE3A8;
  --coral-text: #FF8A8A;
  --cyan-text: #6FDCEF;
  --on-accent: #1A1204;  /* text on marigold / leaf fills */
  --on-coral: #2A0707;

  --aurora-a: rgba(255, 176, 32, .16);
  --aurora-b: rgba(79, 209, 232, .10);
  --aurora-c: rgba(255, 107, 107, .08);

  /* Type */
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-deva: "Noto Sans Devanagari", "Instrument Sans", sans-serif;
  --font-kn: "Noto Sans Kannada", "Instrument Sans", sans-serif;
  --fs-body: 1.125rem;   /* 18px floor for owner-facing text */
  --fs-small: 1rem;
  --fs-lead: 1.375rem;
  --fs-title: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-number: clamp(2rem, 1.4rem + 3vw, 3.5rem);

  /* Shape */
  --r-pill: 999px;
  --r-blob: 42% 58% 55% 45% / 48% 42% 58% 52%;
  --r-soft: 28px;
  --r-card: 32px;

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --touch: 56px;   /* minimum touch target */
  --touch-lg: 72px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --t-fast: 150ms;
  --t-med: 200ms;
  --t-slow: 300ms;

  --shadow-float: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --glow-marigold: 0 0 0 1px rgba(255, 176, 32, .5), 0 10px 40px -8px rgba(255, 140, 26, .55);
  --focus: 0 0 0 3px var(--ink-0), 0 0 0 6px var(--marigold);
}

/* Light theme: the same meanings on a cool daylight surface (not cream). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink-0: #EEF1F6;
    --ink-1: #FFFFFF;
    --ink-2: #E2E7F0;
    --ink-3: #CBD3E1;
    --glass: rgba(18, 24, 38, .045);
    --glass-strong: rgba(255, 255, 255, .82);
    --glass-border: rgba(18, 24, 38, .12);
    --edge: rgba(18, 24, 38, .45);
    --text-hi: #121826;
    --text-lo: #4A5468;
    --marigold-text: #8A5200;
    --leaf-text: #0B7A4B;
    --coral-text: #B42318;
    --cyan-text: #0B6F82;
    --aurora-a: rgba(255, 176, 32, .22);
    --aurora-b: rgba(79, 209, 232, .16);
    --aurora-c: rgba(255, 107, 107, .10);
    --shadow-float: 0 18px 44px -20px rgba(18, 24, 38, .38);
    --focus: 0 0 0 3px var(--ink-1), 0 0 0 6px #B86E00;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink-0: #EEF1F6;
  --ink-1: #FFFFFF;
  --ink-2: #E2E7F0;
  --ink-3: #CBD3E1;
  --glass: rgba(18, 24, 38, .045);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(18, 24, 38, .12);
  --edge: rgba(18, 24, 38, .45);
  --text-hi: #121826;
  --text-lo: #4A5468;
  --marigold-text: #8A5200;
  --leaf-text: #0B7A4B;
  --coral-text: #B42318;
  --cyan-text: #0B6F82;
  --aurora-a: rgba(255, 176, 32, .22);
  --aurora-b: rgba(79, 209, 232, .16);
  --aurora-c: rgba(255, 107, 107, .10);
  --shadow-float: 0 18px 44px -20px rgba(18, 24, 38, .38);
  --focus: 0 0 0 3px var(--ink-1), 0 0 0 6px #B86E00;
}

/* Indic text always uses its own face. */
:lang(hi) { font-family: var(--font-deva); }
:lang(kn) { font-family: var(--font-kn); }
