/* ==========================================================================
   لقطة | LAQTA Studio — Typography CSS (منظومة الطباعة والخطوط السينمائية)
   ========================================================================== */

/* 1. استيراد خطوط Google المعتمدة في سطر واحد */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Bodoni+Moda:ital,wght@0,400;0,500;0,700;1,400&family=Cairo:wght@300;400;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* 2. الخط الأساسي لجسم الصفحة (Cairo) */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

/* 3. العناوين الدرامية (Amiri) مع سلم الأحجام الدقيق */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

/* 4. فقرات النصوص (Cairo) ومقدمة المشهد */
p {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  max-width: 65ch;
  margin-bottom: 1.5rem;
}

p.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.75;
  color: var(--text-secondary);
}

/* 5. النصوص التفاعلية على الخلفية العاجية الدافئة (#F5F1E8) */
[data-on-warm] p,
[data-on-warm] h1,
[data-on-warm] h2,
[data-on-warm] h3,
[data-on-warm] h4 {
  color: var(--text-dark);
}

/* 6. النصوص التقنية وبيانات المشهد (Space Mono) */
.type-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.scene-marker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-accent);
}

/* 7. مؤشر التسجيل السينمائي (REC Indicator) */
.rec-indicator {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-rec);
}

/* 8. الأرقام الكبيرة والعدادات السينمائية (Bodoni Moda) */
.scene-number {
  font-family: var(--font-numeric);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 400;
  line-height: 0.8;
  color: var(--gold-dim);
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
}

.stat-number {
  font-family: var(--font-numeric);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-accent);
  font-variant-numeric: tabular-nums;
}

.reel-counter {
  font-family: var(--font-numeric);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 9. تأثير الكشف كلمة بكلمة (Word-by-word reveal) للبيان الدرامي */
.word-reveal > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-mid) var(--ease-cinematic),
              transform var(--duration-mid) var(--ease-cinematic);
  transition-delay: calc(var(--i, 0) * 0.06s);
}

.word-reveal.is-visible > span {
  opacity: 1;
  transform: none;
}

/* 10. إبطال تأثير الكشف عند تفعيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .word-reveal > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
