/* ==========================================================================
   Rami Jewels - design tokens
   A fully dark theme in black, white and silver. The interface carries no
   colour of its own; only the photography does.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Blacks, from the deepest up */
  --void: #000;
  --bg: #050505;
  --bg-1: #0b0b0c;
  --bg-2: #111113;
  --bg-3: #19191c;
  --bg-4: #232327;

  /* Lines and greys */
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .22);
  --grey-1: #8d8d92;
  --grey-2: #b4b4b9;
  --grey-3: #d9d9dc;

  /* Light */
  --white: #fff;
  --text: #f4f4f5;
  --text-soft: #c7c7cb;
  --text-mute: #8d8d92;
  --ink: #050505;

  /* Silver: the only "accent", used for hairlines, sheen and focus */
  --silver: #c9ccd1;
  --silver-hi: #f1f2f4;
  --silver-lo: #7d8088;
  --sheen: linear-gradient(110deg, #6f7278 0%, #e9ebee 28%, #9a9ea6 46%, #ffffff 58%, #8b8f97 78%, #d8dbe0 100%);

  /* Product photographs are shot on white; they sit on a pale plate. */
  --plate: #f3f3f2;

  --focus: var(--white);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-display-ar: "Amiri", "Noto Naskh Arabic", serif;
  --font-body-ar: "Almarai", "Tahoma", sans-serif;

  --fs-xs: .72rem;
  --fs-sm: .8125rem;
  --fs-base: .95rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.3rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  --fs-2xl: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-3xl: clamp(2.8rem, 1.6rem + 4.6vw, 5.6rem);
  --fs-hero: clamp(3rem, 1.4rem + 6.4vw, 7.5rem);

  --tracking-wide: .16em;
  --tracking-wider: .32em;

  /* Space */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 5rem;
  --s-9: 7.5rem;

  --gutter: clamp(1rem, .4rem + 2.4vw, 3rem);
  --container: 1480px;
  --container-narrow: 980px;

  /* Shape and motion */
  --radius: 0;
  --shadow: 0 30px 60px rgba(0, 0, 0, .55);
  --glow: 0 0 40px rgba(255, 255, 255, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .45s;

  --header-h: 132px;
}

/* Arabic uses its own faces and no letter-spacing (it breaks joined script). */
:root[lang="ar"] {
  --font-display: var(--font-display-ar);
  --font-body: var(--font-body-ar);
  --tracking-wide: 0;
  --tracking-wider: 0;
}

@media (max-width: 1199px) {
  :root { --header-h: 68px; }
}
