/* ==========================================================================
   Typography — المراعي، مقياس واضح ومتدرّج بأسلوب هادئ
   ========================================================================== */
body{
  font-family:var(--font);
  font-weight:400;
  font-size:clamp(1rem,.97rem + .16vw,1.0625rem);
  line-height:1.72;
  color:var(--ink-body);
  background:var(--grad-page);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1,h2,h3,h4,h5,h6{
  font-family:var(--font);
  font-weight:800;
  line-height:1.14;
  letter-spacing:-.022em;
  color:var(--ink);
  text-wrap:balance;
}

/* المقياس */
.t-display{
  font-size:clamp(2.05rem,1.5rem + 2.35vw,3.45rem);
  font-weight:800;
  line-height:1.1;
  letter-spacing:-.03em;
}
h1,.t-h1{font-size:clamp(1.95rem,1.4rem + 2.3vw,3.25rem);font-weight:800;letter-spacing:-.028em}
h2,.t-h2{font-size:clamp(1.6rem,1.25rem + 1.55vw,2.5rem);letter-spacing:-.025em}
h3,.t-h3{font-size:clamp(1.25rem,1.1rem + .65vw,1.6rem)}
h4,.t-h4{font-size:1.1rem;font-weight:700}
h5{font-size:1rem;font-weight:700}
h6{font-size:.95rem;font-weight:700}

p{text-wrap:pretty}
p + p{margin-top:1em}

.t-lead{
  font-size:clamp(1.05rem,1rem + .4vw,1.3rem);
  line-height:1.68;
  color:var(--ink-soft);
  font-weight:400;
}
.t-body{color:var(--ink-body)}
.t-small{font-size:.9rem;line-height:1.6}
.t-xs{font-size:.8rem;line-height:1.55}

/* سطر علوي صغير فوق العناوين */
.t-eyebrow{
  display:block;
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.01em;
  color:var(--purple-600);
  margin-block-end:.6rem;
}

/* أرقام لاتينية مستقيمة داخل نص عربي */
.t-num{
  font-variant-numeric:tabular-nums lining-nums;
  direction:ltr;
  display:inline-block;
  unicode-bidi:isolate;
}

.t-accent{color:var(--purple-600)}
.t-deep{color:var(--purple-900)}
.t-muted{color:var(--ink-soft)}
.t-invert{color:var(--ink-invert)}
.t-center{text-align:center}
.t-balance{text-wrap:balance}
.t-nowrap{white-space:nowrap}

/* محتوى المحرّر */
.entry-content > * + *{margin-top:1.25rem}
.entry-content h2{margin-top:2.5rem}
.entry-content h3{margin-top:2rem}
.entry-content a:not([class]){
  color:var(--purple-600);
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
  transition:color var(--t-fast) var(--ease);
}
.entry-content a:not([class]):hover{color:var(--purple-900)}
.entry-content ul:not([class]),
.entry-content ol:not([class]){padding-inline-start:1.35rem}
.entry-content ul:not([class]) li,
.entry-content ol:not([class]) li{margin-top:.5rem}
.entry-content blockquote{
  margin-inline:0;
  padding:1.35rem 1.6rem;
  background:var(--lav-100);
  border-inline-start:3px solid var(--purple-600);
  border-radius:var(--r-md);
  font-size:1.05rem;
  font-weight:400;
  color:var(--purple-900);
}
.entry-content img{border-radius:var(--r-md)}
.entry-content figcaption{
  margin-top:.65rem;
  font-size:.85rem;
  color:var(--ink-soft);
  text-align:center;
}
