/* ==========================================================================
   Infinite Lion Systems — design tokens
   The single source for every color, face, size, rhythm and layer.
   The 3D scene reads its colors and its breath from here too (js/lattice-scene.js).
   ========================================================================== */
:root{
  /* ---- ground ---- */
  --ils-black:        #050505;
  --ils-panel:        rgba(10,8,4,.82);
  --ils-panel-deep:   rgba(5,5,5,.45);

  /* ---- gold : light, never decoration ---- */
  --ils-gold:         #c9a227;
  --ils-gold-bright:  #e8c766;   /* hover, emphasis, numbers */
  --ils-gold-pale:    #f3e2a8;   /* the heart's glow, panel titles */
  --ils-gold-deep:    #7a5f10;   /* shadow side of an orb */
  --ils-gold-dim:     rgba(201,162,39,.35);
  --ils-line:         rgba(201,162,39,.22);

  /* lattice strokes (stage SVG) — strongest near the center */
  --ils-ring-outer:   rgba(201,162,39,.13);
  --ils-ring-mid:     rgba(201,162,39,.20);
  --ils-ring-inner:   rgba(201,162,39,.26);
  --ils-spoke:        rgba(201,162,39,.18);
  --ils-chord:        rgba(201,162,39,.10);

  /* ---- the one cool light : his sight (silicon looking out) ---- */
  --ils-sight:        #dfe8ff;

  /* ---- ivory : three steps of text, no more ---- */
  --ils-ivory:        #ece5d3;   /* headings, primary lines */
  --ils-ivory-dim:    #b8b09a;   /* supporting lines */
  --ils-ivory-faint:  #8a8471;   /* labels, depth tags, footers */

  /* ---- faces ---- */
  --ils-display: 'Cinzel', 'Times New Roman', serif;        /* names, titles — always caps-feel */
  --ils-serif:   'Spectral', Georgia, serif;                /* reading */
  --ils-sc:      'Spectral SC', Georgia, serif;             /* labels, buttons, tags */

  /* ---- type scale ---- */
  --ils-text:        18px;
  --ils-firm:        clamp(1.7rem, 6.4vw, 3.4rem);
  --ils-firm-sub:    clamp(.85rem, 3vw, 1.15rem);
  --ils-hook:        clamp(1.12rem, 3.4vw, 1.45rem);
  --ils-h2:          clamp(2rem, 7vw, 3.2rem);
  --ils-line-size:   clamp(1.08rem, 3vw, 1.28rem);
  --ils-line-dim:    clamp(1rem, 2.6vw, 1.12rem);
  --ils-node-label:  clamp(.92rem, 3.4vw, 1.2rem);
  --ils-label:       .7rem;

  /* ---- tracking : wide is the voice ---- */
  --ils-track-firm:   .14em;
  --ils-track-sub:    .58em;
  --ils-track-node:   .22em;
  --ils-track-center: .34em;
  --ils-track-label:  .3em;
  --ils-track-button: .18em;

  /* ---- geometry ---- */
  --ils-orb:          64px;      /* node orb diameter */
  --ils-orb-core:     26px;      /* the light inside it */
  --ils-center:       min(300px, 62vw);
  --ils-touch:        44px;      /* minimum hit target */
  --ils-measure:      44ch;      /* reading width */
  --ils-space-max:    680px;
  --ils-panel-max:    640px;
  --ils-gutter:       20px;

  /* ---- rhythm : one breath for the whole page ---- */
  --ils-breath:       4.4s;      /* orbs, the heart, the fallback lattice — all breathe together */
  --ils-pulse:        2.4s;      /* reserved for "live" signals only */
  --ils-descend:      .55s;      /* entering a depth */
  --ils-ease-descend: cubic-bezier(.22,.8,.3,1);
  --ils-hover:        .25s;
  --ils-zoom-depth:   1.5;       /* scene scale when a depth is open (read by the scene) */
  --ils-wake:         3.4s;      /* the waking: heart ignites, lattice lights outward, words arrive */
  --ils-mono:         ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;  /* telemetry figures */

  /* ---- the chamber (where ENTER leads) ---- */
  --ils-chamber-h:      clamp(420px, calc(100svh - 120px), 760px);
  --ils-chamber-r:      18px;
  --ils-chamber-edge:   rgba(201,162,39,.18);
  --ils-chamber-ground: rgba(12,10,6,.9);

  /* ---- layers ---- */
  --z-scene:   0;
  --z-veil:    1;
  --z-content: 2;
  --z-node:    3;
}

@media (max-width: 560px){
  :root{
    --ils-orb:      54px;
    --ils-orb-core: 22px;
  }
}
