/* ==========================================================================
   Nexora design tokens — editorial system, paper and charcoal

   Deliberate constraints that define this design:
   · Two surfaces, alternating down the page: warm paper and warm charcoal.
     Not a theme toggle — a page uses both, in a fixed rhythm.
   · Structure comes from hairline rules and borders, never from drop shadows
     or glows.
   · Corners are near-square. No pills, no large radii.
   · Cobalt is the single brand colour; coral is used sparingly for emphasis.
   ========================================================================== */

:root {
  /* --- Light surfaces ---------------------------------------------------- */
  --nx-paper: #F6F4EF;
  --nx-paper-2: #EDE9E0;
  --nx-sand: #E4DDCD;
  --nx-white: #FFFFFF;

  /* --- Ink (text on paper) ----------------------------------------------- */
  --nx-ink: #1A1A18;
  --nx-ink-2: #56534C;
  --nx-ink-3: #6A665D;

  /* --- Dark surfaces -------------------------------------------------------
     Warm charcoal, not a blue-black. Paired with a periwinkle accent rather
     than gold, so a dark section never reads as the usual dark-and-gold. */
  --nx-slab: #23211D;
  --nx-slab-2: #2F2C27;

  --nx-on-slab: #F2EFE7;
  --nx-on-slab-2: rgba(242, 239, 231, 0.66);
  --nx-on-slab-3: rgba(242, 239, 231, 0.6);
  --nx-rule-slab: rgba(242, 239, 231, 0.15);
  --nx-rule-slab-strong: rgba(242, 239, 231, 0.3);

  /* --- Brand ------------------------------------------------------------ */
  --nx-blue: #2340D8;
  --nx-blue-deep: #16278A;
  --nx-blue-wash: #E5E8FB;
  /* Cobalt is too dark to read on charcoal; this is its counterpart there. */
  --nx-blue-lit: #8AA0FF;
  --nx-blue-btn-slab: #3E5BFF;
  --nx-coral: #E84921;
  --nx-coral-wash: #FBE7E1;

  /* --- Rules ------------------------------------------------------------ */
  --nx-rule: #D8D2C6;
  --nx-rule-strong: #B4ADA0;

  /* --- Type ------------------------------------------------------------- */
  --nx-font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --nx-font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --nx-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --nx-step--2: clamp(0.7rem, 0.68rem + 0.1vw, 0.76rem);
  --nx-step--1: clamp(0.84rem, 0.8rem + 0.18vw, 0.95rem);
  --nx-step-0: clamp(1rem, 0.96rem + 0.22vw, 1.13rem);
  --nx-step-1: clamp(1.19rem, 1.11rem + 0.38vw, 1.48rem);
  --nx-step-2: clamp(1.41rem, 1.29rem + 0.62vw, 1.94rem);
  --nx-step-3: clamp(1.68rem, 1.49rem + 0.96vw, 2.54rem);
  --nx-step-4: clamp(2rem, 1.71rem + 1.44vw, 3.33rem);
  --nx-step-5: clamp(2.38rem, 1.96rem + 2.11vw, 4.37rem);
  --nx-step-6: clamp(2.83rem, 2.22rem + 3.05vw, 5.72rem);

  /* --- Space ------------------------------------------------------------- */
  --nx-gutter: clamp(1.125rem, 3.2vw, 2.75rem);
  --nx-measure: 84rem;
  --nx-section: clamp(4rem, 8vw, 7.5rem);
  --nx-section-sm: clamp(2.5rem, 5vw, 4rem);

  /* --- Shape (near-square) ------------------------------------------------ */
  --nx-r-xs: 2px;
  --nx-r-sm: 3px;
  --nx-r-md: 4px;
  --nx-r-lg: 6px;

  /* --- Elevation: offset blocks, not blurred shadows ---------------------- */
  --nx-offset: 6px 6px 0 var(--nx-ink);
  --nx-offset-blue: 6px 6px 0 var(--nx-blue);
  --nx-offset-slab: 6px 6px 0 var(--nx-on-slab);

  /* --- Motion -------------------------------------------------------------- */
  --nx-ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --nx-dur-fast: 140ms;
  --nx-dur: 260ms;
  --nx-dur-slow: 520ms;

  /* --- Layers --------------------------------------------------------------- */
  --nx-z-lightbox: 120;
  --nx-z-drawer: 90;
  --nx-z-header: 70;
}
