/* === Continuum design tokens — v8 "Living Thread" rebrand === */
:root {
  /* Backgrounds — obsidian canvas with a blue-violet undertone */
  --bg-deepest: #06070F;    /* deepest */
  --bg-primary: #0A0B16;    /* near black */
  --bg-elevated: #12142A;   /* elevated surface */
  --bg-card: #14162E;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.06);

  /* Text — cool pearl */
  --text-primary: #F3F1FF;
  --text-secondary: #ADA9CC;
  --text-muted: #6F6C8C;
  --text-faded: #3C3A52;

  /* === Brand signature — "the living thread" ===
     An iridescent cool spectrum (the continuous thread of a life) +
     one warm human accent (amber) reserved for "owned by you" moments. */
  --iris:        #9D7CFF;   /* primary luminous violet */
  --iris-bright: #C4B0FF;
  --iris-deep:   #6B4FCF;
  --azure:       #4FA8FF;   /* mid-spectrum blue */
  --aqua:        #34E6E0;   /* cyan-aqua */
  --mint:        #6FEFC0;   /* mint terminus */
  --amber:       #FFC27A;   /* warm human accent — CTAs, the .continue thread */
  --amber-bright:#FFD9AE;
  --amber-deep:  #C98E4E;
  --danger:      #FF6B7A;   /* revoked / failed / destructive. The palette's one necessary
                               addition: without it, a revoked grant and a pending one are
                               told apart by wording alone, which fails at a glance. */
  /* Surface ramp. Elevation on obsidian is lightness plus a hairline, never a shadow:
     a drop shadow on a near-black field reads as a smudge. */
  --e1: #0B0D1A;
  --e2: #10131F;
  --e3: #161A2A;
  --thread:      linear-gradient(105deg, #9D7CFF 0%, #4FA8FF 36%, #34E6E0 68%, #6FEFC0 100%);
  --thread-soft: linear-gradient(105deg, rgba(157,124,255,0.18), rgba(79,168,255,0.14), rgba(52,230,224,0.14), rgba(111,239,192,0.16));

  /* Legacy token names remapped to the new palette
     (so every existing var(--gold)/var(--teal) usage adopts the new identity instantly) */
  --gold: var(--iris);            /* primary accent → iris */
  --gold-bright: var(--iris-bright);
  --gold-deep: var(--iris-deep);
  --teal: var(--aqua);            /* secondary accent → aqua */
  --teal-bright: var(--mint);
  --teal-deep: #1C7E84;
  --ember: var(--amber);          /* warm accent → amber */
  --rose: #FF8CC8;
  --cream: #F3F1FF;

  /* Functional */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(157, 124, 255, 0.30);          /* iris-tinted */
  --border-gold-strong: rgba(157, 124, 255, 0.58);
  --border-iris: rgba(157, 124, 255, 0.30);
  --border-aqua: rgba(52, 230, 224, 0.28);
  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 60px rgba(79, 168, 255, 0.10);
  --shadow-glow-strong: 0 0 120px rgba(124, 92, 255, 0.18);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.62);

  /* Life OS signature colors — a living spectrum, tuned brighter for the obsidian canvas */
  --os-health: #5BE0D6;
  --os-fitness: #FF9E7A;
  --os-nutrition: #BFE07B;
  --os-financial: #FFC27A;
  --os-credit: #FFD79A;
  --os-career: #6E9BFF;
  --os-family: #FF8CC8;
  --os-relationships: #FF9FD0;
  --os-recovery: #7FD6F0;
  --os-reentry: #B79CFF;
  --os-veteran: #7FC9A8;
  --os-education: #A78BFF;
  --os-housing: #E0B57F;
  --os-transportation: #5BD6C8;
  --os-business: #FFC27A;
  --os-investment: #D6E06E;
  --os-shopping: #FFB07A;
  --os-travel: #5BD6E6;
  --os-wellness: #C4A0FF;
  --os-legal: #9CA0C8;
  --os-creative: #FF9FE0;
  --os-spiritual: #E6D49A;
  --os-hobby: #8FEFC8;
  --os-social: #FFC79A;

  /* Typography — the editorial triad (premium, distinctive) is preserved:
     Cormorant Garamond display, Plus Jakarta Sans body, JetBrains Mono data. */
  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --text-hero: clamp(48px, 9vw, 128px);
  --text-h1: clamp(40px, 6.5vw, 88px);
  --text-h2: clamp(32px, 5vw, 64px);
  --text-h3: clamp(24px, 3.5vw, 44px);
  --text-h4: clamp(20px, 2.5vw, 28px);
  --text-eyebrow: 12px;
  --text-body-lg: 19px;
  --text-body: 16px;
  --text-sm: 14px;
  --text-xs: 12px;

  /* Tracking (letter-spacing) — heavy negative on display, slight negative on body, positive on eyebrows */
  --track-display: -0.04em;
  --track-h1: -0.035em;
  --track-h2: -0.03em;
  --track-h3: -0.025em;
  --track-body: -0.011em;
  --track-eyebrow: 0.16em;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;
  --space-12: 200px;

  /* Layout */
  --container-max: 1440px;
  --container-narrow: 880px;
  --container-prose: 720px;

  /* Radii */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
