/* =========================================================================
   ORA — design tokens
   Every colour, size and timing in the site resolves to something here.
   ========================================================================= */

:root {
  /* --- colour ---------------------------------------------------------- */
  /* LUXE THEME: Dark emerald & polished gold — inspired by luxury fragrance houses */
  /* The ladder is deliberately wider than a "correct" dark palette would be.
     Bands only read as separate surfaces if the steps between them clear
     roughly 1.2x relative luminance; at the original 3-step spread every
     section resolved to the same slab and the page lost its rhythm. */
  --c-bg:        #0c1116;  /* deep charcoal-navy, the luxe ground */
  --c-bg-alt:    #131b23;  /* banded sections, one clear step up */
  --c-surface:   #18222d;  /* cards */
  --c-surface-2: #1e2937;  /* raised: popovers, selected states */
  --c-noir:      #070a0d;  /* darkest editorial band */
  --c-noir-soft: #101720;

  --c-ink:       #f5f3f0;  /* headings — cream-white for maximum contrast */
  --c-ink-2:     #d4d0c8;  /* body copy — warm gray-white */
  --c-ink-3:     #a89f94;  /* captions, meta, placeholders */

  --c-gold:      #d4a574;  /* the one accent: polished warm gold */
  --c-gold-2:    #e8b97e;  /* on dark grounds — brighter gold */
  --c-gold-deep: #b8884a;  /* pressed / hover — deeper gold */

  --c-line:      rgb(212 165 116 / 8%);     /* gold-tinted dividers */
  --c-line-2:    rgb(212 165 116 / 14%);
  --c-line-dark: rgb(245 243 240 / 10%);

  --c-sale:      #9c3b2e;
  --c-ok:        #4a6b46;

  /* --- type ------------------------------------------------------------ */
  --f-fa:  "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --f-lat: "Cormorant Garamond", "Times New Roman", georgia, serif;

  /* Fluid scale. Persian sits optically smaller than Latin at the same px,
     so the body sizes run a notch larger than an equivalent LTR design. */
  --t-display: clamp(2.15rem, 1.15rem + 3.5vw, 4rem);
  --t-h1:      clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem);
  --t-h2:      clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  --t-h3:      clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --t-body:    1.0625rem;
  --t-sm:      0.9375rem;
  --t-xs:      0.8125rem;

  /* Persian script needs more leading than Latin to stay readable — the
     descenders and diacritics collide below ~1.8 on body copy. That floor
     is for running text only: carried up into a 4rem display line it reads
     as three unrelated sentences, so leading tightens as the type grows. */
  --lh-display: 1.28;
  --lh-heading: 1.45;
  --lh-body:    1.9;
  --lh-tight:   1.35;

  /* --- space ----------------------------------------------------------- */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.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(1.25rem, 0.5rem + 3vw, 4rem);
  --section: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --maxw:    1440px;
  --maxw-text: 62ch;

  /* --- form ------------------------------------------------------------ */
  --r-sm: 2px;   /* the design is near-square on purpose; luxury reads sharp */
  --r-md: 4px;
  --r-lg: 8px;
  --r-full: 999px;

  --header-h: 76px;

  /* --- motion ---------------------------------------------------------- */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.55, 0, 0.55, 0.2);
  --d-fast:   180ms;
  --d-base:   320ms;
  --d-slow:   620ms;
  --d-reveal: 900ms;

  /* Elevation on a dark ground cannot come from a drop shadow alone: a black
     shadow over a near-black page is invisible. These carry the depth in a
     hairline top rim (the "lit edge" of a raised surface) and use the black
     only as a wide ambient pool underneath. */
  --shadow-card:
    inset 0 1px 0 rgb(245 243 240 / 4%),
    0 1px 2px rgb(0 0 0 / 40%),
    0 14px 34px -18px rgb(0 0 0 / 62%);
  --shadow-lift:
    inset 0 1px 0 rgb(245 243 240 / 7%),
    0 2px 8px rgb(0 0 0 / 45%),
    0 30px 64px -26px rgb(0 0 0 / 78%);
  --shadow-panel:
    0 0 0 1px var(--c-line-2),
    inset 0 1px 0 rgb(245 243 240 / 6%),
    0 40px 96px -32px rgb(0 0 0 / 88%);

  /* A warm gold bloom, used only where the accent needs to feel lit. */
  --glow-gold: 0 8px 28px -10px rgb(212 165 116 / 38%);

  /* --- photography ------------------------------------------------------
     The catalogue is sourced stock: one shot is on beige paper, the next on
     pure white, the next on black. Dropped into a grid untouched they read
     as a scrapbook, which is the single loudest "template" signal on the
     page. Every product/editorial image goes through one grade so the set
     resolves to a common key, and a warm overlay pulls the white grounds
     back toward the page. Tuned to survive on genuinely dark shots too —
     hence the gentle curve rather than a heavy wash. */
  --grade-img: saturate(0.82) contrast(1.06) brightness(0.94);
  --grade-img-hover: saturate(0.92) contrast(1.04) brightness(1);
  --grade-veil: linear-gradient(
    to top,
    rgb(12 17 22 / 42%),
    rgb(12 17 22 / 10%) 46%,
    rgb(12 17 22 / 20%)
  );

  --z-header: 100;
  --z-drawer: 200;
  --z-overlay: 190;
  --z-toast: 300;
  --z-intro: 400;
}

@media (max-width: 768px) {
  :root {
    --header-h: 62px;
    --t-body: 1rem;
  }
}
