:root {
  --font-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-display: "Amiri", "Noto Naskh Arabic", "Scheherazade New", serif;
}

@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/noto-naskh-arabic-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/noto-naskh-arabic-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/noto-naskh-arabic-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fs-micro: 0.78rem;
  --fs-small: clamp(0.88rem, 0.84rem + 0.18vw, 0.98rem);
  --fs-body: clamp(1rem, 0.96rem + 0.22vw, 1.13rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.48vw, 1.35rem);
  --fs-h4: clamp(1.18rem, 1.08rem + 0.55vw, 1.5rem);
  --fs-h3: clamp(1.45rem, 1.18rem + 1.25vw, 2.1rem);
  --fs-h2: clamp(2rem, 1.38rem + 2.6vw, 3.4rem);
  --fs-h1: clamp(2.55rem, 1.55rem + 4vw, 5.2rem);
  --leading-tight: 1.08;
  --leading-copy: 1.85;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--leading-copy);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.ali-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

p {
  max-width: 72ch;
}

a {
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}
