:root {
    /* ---------- brand palette ---------- */
    --c-sand:        #E9E4DC;   /* page canvas          */
    --c-sand-deep:   #DED7CC;   /* alternating band     */
    --c-sage:        #8BA794;   /* primary accent       */
    --c-sage-dark:   #6B8674;
    --c-ash:         #BAC6B8;   /* muted accent         */
    --c-ink:         #2F3456;   /* headings, dark base  */
    --c-ink-soft:    #454B77;
    --c-slate:       #5D6E75;   /* body copy            */
    --c-slate-light: #7C8B91;
    --c-gold:        #C9A961;   /* sparing highlight    */

    --c-surface:     #FFFFFF;
    --c-surface-alt: #F7F5F1;

    /* Existing cinematic-home palette, moved from its CDN configuration.
       RGB channels let local Tailwind utilities retain their opacity suffixes. */
    --c-home-petrol-950: 2 9 13;
    --c-home-petrol-900: 4 15 21;
    --c-home-petrol-850: 7 23 32;
    --c-home-petrol-800: 11 32 43;
    --c-home-petrol-750: 15 41 55;
    --c-home-petrol-700: 20 53 69;
    --c-home-petrol-600: 28 70 91;
    --c-home-petrol-500: 39 93 118;
    --c-home-amber-300: 247 211 153;
    --c-home-amber-400: 242 189 104;
    --c-home-amber-500: 229 164 68;
    --c-home-amber-600: 200 134 40;
    --c-home-amber-700: 163 100 23;

    /* ---------- type scale ----------
       Fluid: each step interpolates between a phone and a wide desktop, so the
       page reads well without a stack of breakpoint overrides. */
    --t-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --t-sm:   clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
    --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --t-lg:   clamp(1.125rem, 1.07rem + 0.28vw, 1.25rem);
    --t-xl:   clamp(1.3rem, 1.2rem + 0.5vw, 1.5rem);
    --t-2xl:  clamp(1.55rem, 1.4rem + 0.75vw, 1.875rem);
    --t-3xl:  clamp(1.9rem, 1.65rem + 1.15vw, 2.5rem);
    --t-4xl:  clamp(2.3rem, 1.9rem + 1.9vw, 3.25rem);
    --t-5xl:  clamp(2.8rem, 2.1rem + 3vw, 4.25rem);

    /* Arabic needs more line height than Latin at the same size. */
    --lh-tight:   1.25;
    --lh-heading: 1.35;
    --lh-body:    1.75;
    --lh-body-ar: 1.95;

    /* ---------- spacing rhythm ---------- */
    --s-section:      clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
    --s-section-tight: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --s-gap:          clamp(1rem, 0.85rem + 0.75vw, 2rem);

    /* ---------- radius ---------- */
    --r-sm:   0.5rem;
    --r-md:   0.875rem;
    --r-lg:   1.25rem;
    --r-xl:   1.75rem;
    --r-pill: 999px;

    /* ---------- elevation ----------
       Tinted with the ink colour rather than pure black so shadows sit in the
       same family as the palette instead of greying it down. */
    --e-1: 0 1px 2px rgb(47 52 86 / .06),
           0 2px 6px rgb(47 52 86 / .05);
    --e-2: 0 2px 4px rgb(47 52 86 / .06),
           0 8px 20px rgb(47 52 86 / .08);
    --e-3: 0 4px 8px rgb(47 52 86 / .07),
           0 16px 40px rgb(47 52 86 / .11);
    --e-4: 0 8px 16px rgb(47 52 86 / .08),
           0 28px 64px rgb(47 52 86 / .16);

    /* ---------- motion ---------- */
    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --dur-fast: .18s;
    --dur:      .3s;
    --dur-slow: .55s;
}
