/* ==========================================================================
   NEMA X — DESIGN TOKENS
   Single source of truth. Every page links this file first.
   Source: Master Specification §1.
   ========================================================================== */

:root{
  /* ---- color ---- */
  --paper:        #EDEAE3;
  --paper-2:      #E3DFD5;
  --paper-3:      #DCD6C7;
  --ink:          #1C1B17;
  --ink-2:        #262420;
  --ink-soft:     #4A4842;
  --line:         #C9C4B7;
  --line-dark:    #3A3933;
  --bronze:       #4E5C4C;
  --bronze-deep:  #374236;
  --brass:        #A8845E;
  --stamp:        #A13D2C;
  --stamp-on-dark:#DE8267;
  --on-dark:      #C9C4B7;
  --on-dark-soft: #ADA99C;
  --accent-on-dark:#9FB39A;
  --ivory-warm:   #E7E0D4;

  /* ---- globe — dark architectural model (Archive → Project Locations).
     These are fallback/reference values only — NEMA X → Globe always sets
     the real ones inline per-request (archive-project.php), same pattern
     as every other admin-driven visual system in this theme. ---- */
  --globe-sphere:       #2A2621;
  --globe-land:         #5C5548;
  --globe-land-project: #8C7654;
  --globe-land-selected:var(--stamp);
  --globe-land-hover:   #B08D5E;
  --globe-border:       #D8C9A8;
  --globe-marker:       var(--stamp);

  /* ---- type families ---- */
  --f-display:'Source Serif 4', Georgia, serif;
  --f-body:'Archivo', -apple-system, sans-serif;
  --f-mono:'Courier Prime', ui-monospace, monospace;
  /* None of the three families above ship Arabic glyphs (Source Serif 4,
     Archivo and Courier Prime are Latin/Greek/Cyrillic-only on Google
     Fonts). Pulling in a proper Arabic pairing is a new font dependency —
     out of scope for this pass per the multilingual brief's own stop
     condition; a same-quality recommendation (Google Fonts "IBM Plex Sans
     Arabic" alongside a "Noto Kufi Arabic" display cut) is flagged in the
     final report instead. Until then, this is a safe, OS-native fallback
     stack — every platform's own default UI font already renders Arabic
     correctly, so nothing here can ever show missing-glyph boxes. Applied
     only under .is-rtl (assets/css/rtl.css); English pages never see it. */
  --f-arabic:'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', Arial, sans-serif;

  /* ---- layout ---- */
  --edge: clamp(20px, 5vw, 80px);
  --rail-edge: 26px;
  --max: 1560px;
  --gut: clamp(16px, 3vw, 28px);

  /* ---- spacing scale ---- */
  --s-1:4px; --s-2:8px; --s-3:14px; --s-4:22px; --s-5:36px; --s-6:56px; --s-7:96px; --s-8:150px;

  /* ---- section rhythm — five presets, nothing outside them ---- */
  --pad-tight:    clamp(70px, 10vw, 120px);
  --pad-standard: clamp(90px, 12vw, 150px);
  --pad-loose:    clamp(110px, 16vw, 190px);
  --pad-lead:     clamp(50px, 8vw, 90px);
  --pad-beat:     clamp(44px, 7vw, 72px);

  /* ---- typographic rhythm ---- */
  --lh-mega:      .96;
  --lh-watermark: .9;
  --lh-read:      1.5;
  --lh-body:      1.75;
  --lh-data:      1.9;
  --ls-mega:      -.02em;
  --ls-head:      -.012em;
  --ls-read:      -.005em;
  --ls-wide:      .12em;
  --ls-label:     .08em;
  --ls-tight:     .04em;

  /* ---- motion — two curves, six durations, no exceptions ---- */
  --ease-instrument: cubic-bezier(.4,0,.2,1);
  --ease-contact:     cubic-bezier(.16,1,.3,1);
  --i1:120ms; --i2:240ms; --i3:360ms; --i4:600ms; --i5:900ms; --i6:1200ms;
}
