/* ============================================================
   base.css
   متغيّرات الهوية، التهيئة الأساسية، الخطوط
   ============================================================ */

:root {
  --maroon-darkest: #240606;
  --maroon-dark: #3a0d0d;
  --maroon: #561616;
  --maroon-light: #73221f;
  --gold: #d4af37;
  --gold-light: #f3dd92;
  --gold-deep: #a87f24;
  --cream: #f6eccf;
  --ink: #2a0808;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);

  --topbar-h: 62px;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Cairo', 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  background: var(--maroon-darkest);
  color: var(--cream);
  line-height: 1.8;
  letter-spacing: normal;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(212, 175, 55, .10), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 22px);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.site-title {
  font-family: 'Reem Kufi', 'Amiri', 'Cairo', serif;
  line-height: 1.35;
  letter-spacing: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.gold-text {
  color: var(--gold);
}

/* الأرقام والكلمات اللاتينية داخل نص عربي — عزل اتجاهي */
.ltr {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* تقليل الحركة لمن يفضّل ذلك */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* حالات التركيز — وصولية لوحة المفاتيح */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
