/* ==========================================================================
   الأساس — النسخة 4a
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  background: var(--paper);
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.9;
  font-size: 16.5px;
  min-height: 100vh;
  overflow-x: hidden;   /* لا انزلاق أفقي بين 320px و1920px */
}

a { color: var(--green); }
a:hover { color: var(--green-lift); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-inline-start: 1.2em; }
p { text-wrap: pretty; }

/* الأرقام اللاتينية في الجداول والإحصاءات — أرقام جدولية كي لا ترقص. */
[dir="ltr"] { font-variant-numeric: tabular-nums; }

/* ---- التسلسل: بالوزن والحجم فقط، لا بخطّ ثانٍ ---- */
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
h3 { font-size: 29px; font-weight: 500; letter-spacing: -.025em; }

/* الكلمة الخفيفة داخل العنوان — التباين بالوزن لا باللون وحده. */
.lite { font-weight: 200; color: var(--text-muted); }

.kicker {
  font-size: 11px; font-weight: 400; letter-spacing: .3em;
  color: var(--gold-text); margin: 0;
}

.wrap { max-width: var(--wrap); margin-inline: auto; }

/* ---- الوصولية ---- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 22px; font-weight: 400;
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- الحركة ----
   ظهور واحد لكل عنصر · rise/fade عند التحميل · تكبير بطيء للهيرو.
   لا parallax · لا عدّادات · لا carousel. */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slowzoom { from { transform: scale(1.09); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .topbar, .mainnav, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
