/* ==========================================================================
   نادي كوبر — design tokens
   Every colour, size, duration and shadow in the prototype resolves here.
   A porting agent can lift this file into Blade untouched.
   ========================================================================== */

:root {
  /* --- Ground: the night above the hill ---------------------------------- */
  --night-0:   #04090880;      /* scrim over imagery */
  --night-1:   #060d0c;        /* page background */
  --night-2:   #0b1614;        /* raised surface / header */
  --night-3:   #112320;        /* card */
  --night-4:   #1a332d;        /* card hover / input */
  --hairline:  #21403a;        /* 1px structure that is not a pitch line */

  /* --- Turf --------------------------------------------------------------- */
  --turf-deep:   #0a3f24;
  --turf:        #0e5c33;
  --turf-bright: #17a44f;
  --turf-mow:    #0c4a2b;      /* the darker mower stripe */

  /* --- Chalk: the white pitch lines, and therefore the type --------------- */
  --chalk:      #f2f6f1;       /* 17.6:1 on --night-1 */
  --chalk-soft: #d2ded6;       /* 12.6:1 */
  --chalk-dim:  #9fb2a8;       /*  7.4:1 — the floor for body text */
  --chalk-mute: #7d8f86;       /*  4.8:1 — labels only, never body */
  --chalk-line: #ffffff;       /* literal pitch markings in SVG */

  /* --- Light: the floodlights ------------------------------------------- */
  --flood:      #ffeeba;       /* lamp bloom */
  --flood-soft: #fff7e0;
  --sodium:     #ffbe3d;       /* the CTA. Dark text on top, always. */
  --sodium-hot: #ffa60f;

  /* --- The village: olive, limestone, clay ------------------------------- */
  --olive:      #9db572;
  --olive-deep: #4d6136;
  --clay:       #d1804d;       /* results, the past, the cultural side */
  --limestone:  #e8e2d4;

  /* --- Status ------------------------------------------------------------- */
  --ok:      #45d17e;
  --warn:    #ffbe3d;
  --busy:    #e06a5a;
  --info:    #64b6d8;

  /* --- Surfaces built from the above ------------------------------------- */
  --card-bg:      linear-gradient(168deg, #132724 0%, #0d1a18 100%);
  --card-border:  #21403a;
  --glass:        rgba(17, 35, 32, .72);

  /* --- Type ---------------------------------------------------------------
     Display: Alexandria — a geometric Arabic/Latin grotesque with real weight
     at 800 and no calligraphic baggage; it looks like signage, which is what a
     scoreboard and a stadium gate are.
     Body: IBM Plex Sans Arabic — low stroke contrast, open counters, seven
     weights and a Latin sibling cut from the same skeleton, so the AR and EN
     builds share one texture instead of two.                                */
  --font-display: "Alexandria", "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Noto Naskh Arabic", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  /* Fluid scale, 360px → 1440px. clamp() means no breakpoint owns the type. */
  --t-hero:  clamp(2.5rem, 1.35rem + 5.1vw, 5.75rem);
  --t-xxl:   clamp(2rem, 1.35rem + 2.9vw, 3.5rem);
  --t-xl:    clamp(1.55rem, 1.2rem + 1.55vw, 2.375rem);
  --t-lg:    clamp(1.25rem, 1.1rem + .67vw, 1.625rem);
  --t-md:    clamp(1.0625rem, 1.02rem + .2vw, 1.1875rem);
  --t-base:  clamp(1rem, .975rem + .11vw, 1.0625rem);
  --t-sm:    .9375rem;
  --t-xs:    .8125rem;
  --t-micro: .6875rem;

  --lh-tight: 1.12;
  --lh-head:  1.25;
  --lh-body:  1.75;   /* Arabic needs the air; its ascenders/descenders stack */
  --track-label: .14em;

  /* --- Space: 4px base, named by intent ---------------------------------- */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;
  --gutter: clamp(1rem, .5rem + 2.2vw, 2.5rem);
  --section-y: clamp(3.5rem, 2rem + 7vw, 8rem);
  --measure: 68ch;              /* legal + article body cap */
  --shell: 1320px;

  /* --- Shape --------------------------------------------------------------
     Sharp by default: a pitch is drawn with straight chalk. Radius only where
     a thing is literally round (ball, avatar, pill).                        */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 10px;
  --r-pill: 999px;
  --line: 1px;
  --line-chalk: 2px;

  /* --- Depth: light, not shadow. A floodlit object glows, it does not drop. */
  --lift-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px -12px rgba(0,0,0,.9);
  --lift-2: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 48px -20px rgba(0,0,0,.95);
  --glow-flood: 0 0 60px -10px rgba(255,238,186,.35);
  --glow-sodium: 0 0 0 1px rgba(255,190,61,.4), 0 10px 40px -14px rgba(255,190,61,.65);
  --glow-turf: 0 0 40px -12px rgba(23,164,79,.6);

  /* --- Motion -------------------------------------------------------------
     Three durations and three curves. Anything outside this list is a bug.  */
  --d-tap:   90ms;    /* press feedback */
  --d-quick: 180ms;   /* hover, colour, small state */
  --d-move:  320ms;   /* things that travel: drawers, accordions */
  --d-enter: 620ms;   /* first reveal of content on scroll */
  --d-draw:  1400ms;  /* an SVG line drawing itself */

  --e-out:  cubic-bezier(.16, 1, .3, 1);      /* decelerate — arrivals */
  --e-in:   cubic-bezier(.7, 0, .84, 0);      /* accelerate — exits */
  --e-both: cubic-bezier(.65, .05, .36, 1);   /* travel */
  --e-ball: cubic-bezier(.34, 1.56, .64, 1);  /* one overshoot, for the ball only */

  --z-pitch: 0;
  --z-content: 10;
  --z-header: 60;
  --z-drawer: 70;
  --z-cursor: 9999;
}

/* Motion is opt-in. Everything below falls back to an instant, correct state. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --d-tap: 1ms; --d-quick: 1ms; --d-move: 1ms;
    --d-enter: 1ms; --d-draw: 1ms;
  }
}
