* {
  margin: 0;
  padding: 0;
  font-size: 1rem;
}
@font-face {
  font-family: "myfont";
  src: url("/fonts/Bestari.ttf");
}

body {
  direction: rtl;
  scroll-behavior: smooth;
  font-family: "myfont", serif !important;
}

::selection {
  color: white;
  background-color: rgb(101, 101, 101);
}

/* ============================================
   TYPOGRAPHY - Responsive Font Sizes
   اعمال به تگ‌ها - ریسپانسیو با clamp()
   ============================================ */

/* ============================================
   عناوین (Headings)
   ============================================ */

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

h4 {
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.45;
}

h5 {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.5;
}

h6 {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  font-weight: 600;
  line-height: 1.55;
}

/* ============================================
     متن‌های بدنه
     ============================================ */

p {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  font-weight: 400;
  line-height: 1.9;
}

span {
  font-size: inherit;
  line-height: inherit;
}

small {
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  font-weight: 400;
  line-height: 1.7;
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

/* ============================================
     لیست‌ها
     ============================================ */

li {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  line-height: 1.9;
}

/* ============================================
     لینک‌ها
     ============================================ */

a {
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

/* ============================================
     فرم‌ها
     ============================================ */

label {
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  font-weight: 600;
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: clamp(0.88rem, 0.84rem + 0.2vw, 0.98rem);
  line-height: 1.5;
}

button {
  font-weight: 700;
}

/* ============================================
     جدول
     ============================================ */

th {
  font-size: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  font-weight: 700;
  line-height: 1.5;
}

td {
  font-size: clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
  line-height: 1.7;
}

/* ============================================
     نقل‌قول و کد
     ============================================ */

blockquote {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.9;
  font-style: italic;
}

code,
pre {
  font-family: "Courier New", monospace;
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  line-height: 1.7;
}
