/*
  Eliana "Living Intelligence" token system.
  Dimensional, luminous, quietly powerful, editorial. Not a SaaS admin palette.

  Two families are reserved as decorative/brand accents (plum + teal) and are
  never reused for operational danger. Danger (critical/warning) lives in a
  completely separate red/orange family. Amber ("expected limit") is a third,
  distinct hue-family again -- reaching a safety limit is normal operation,
  not a warning, and must not read as one.
*/

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  /* ---- Canvas / surfaces ---- */
  --canvas: #06101b;
  --canvas-deep: #030914;
  --surface-elevated: #0b1a29;
  --surface-elevated-2: #102439;
  --hairline: rgba(138, 213, 241, 0.12);
  --hairline-strong: rgba(155, 222, 246, 0.24);

  /* ---- Text ---- */
  --ivory: #f4f7f8;
  --champagne: #dfcfaa;
  --text-primary: var(--ivory);
  --text-secondary: #b7c7d2;
  --text-quiet: #748a99;
  --text-on-elevated: var(--ivory);

  /* ---- Brand accents (decorative + narrative meaning; never = danger) ---- */
  --plum: #ae91e8;
  --plum-dim: #7d66b5;
  --plum-wash: rgba(174, 145, 232, 0.13);
  --cyan: #53d9ff;
  --cyan-bright: #9beaff;
  --cyan-dim: #258cb1;
  --cyan-wash: rgba(83, 217, 255, 0.13);
  --teal: var(--cyan);
  --teal-dim: var(--cyan-dim);
  --teal-wash: var(--cyan-wash);

  /* ---- Operational status (separate hue families, status only) ---- */
  --positive: #6fe4ba;
  --positive-wash: rgba(123, 211, 153, 0.14);
  --informational: var(--teal);
  --informational-wash: var(--teal-wash);
  --expected-limit: #d9a441;
  --expected-limit-wash: rgba(217, 164, 65, 0.16);
  --warning: #e08a3c;
  --warning-wash: rgba(224, 138, 60, 0.16);
  --critical: #e2564c;
  --critical-wash: rgba(226, 86, 76, 0.16);
  --awaiting-decision: var(--plum);
  --awaiting-decision-wash: var(--plum-wash);
  --in-progress: var(--teal);
  --in-progress-wash: var(--teal-wash);
  --stale: #7b8380;
  --stale-wash: rgba(123, 131, 128, 0.16);

  /* ---- Focus ---- */
  --focus-ring: #8be7ff;
  --focus-ring-offset: 2px;

  /* ---- Type families ---- */
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* ---- Type scale (fluid) ---- */
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-wide: 0.06em;
  --tracking-wider: 0.12em;

  /* ---- Spacing (4/8 grid) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ---- Radii (used deliberately, not everywhere) ---- */
  --radius-sm: 3px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-panel: 0 24px 70px rgba(0, 3, 10, .28);
  --edge-glow: 0 0 34px rgba(58, 205, 255, .09);

  /* ---- Motion ---- */
  --ease-settle: cubic-bezier(0.22, 0.72, 0.18, 1);
  --ease-spring: cubic-bezier(0.2, 1.4, 0.3, 1);
  --duration-fast: 140ms;
  --duration-base: 260ms;
  --duration-slow: 480ms;

  /* ---- Layout ---- */
  --content-max: 76rem;
  --reading-max: 62ch;
}
