/* ————————————————————————————————
   مدونة ماجد — نظام التصميم
   الحبر #1A1A1A · الورق #FDFCF8 · الرمادي #94A3B8 · البرتقالي #C2410C
———————————————————————————————— */

/* خط ثمانية (مستضاف محلياً) — العناوين: Serif Display · النص: Serif Text · الواجهة: Sans */
@font-face { font-family: 'Thmanyah Serif Display'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/thmanyahserifdisplay-Light.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/thmanyahserifdisplay-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/thmanyahserifdisplay-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/thmanyahserifdisplay-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/thmanyahserifdisplay-Black.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Text'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/thmanyahseriftext-Light.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/thmanyahseriftext-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/thmanyahseriftext-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/thmanyahseriftext-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Serif Text'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/thmanyahseriftext-Black.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/thmanyahsans-Light.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/thmanyahsans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/thmanyahsans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/thmanyahsans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Thmanyah Sans'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/thmanyahsans-Black.woff2') format('woff2'); }

:root {
  --paper: #F6F4EE;
  --ink: #1A1A1A;
  --gray: #94A3B8;
  --accent: #C2410C;
  --tint: #7C2D12;            /* البرتقالي الداكن لفلاتر الصور */
  --cream: #FDFCF8;           /* ثابت لا يتغيّر مع الوضع الليلي */
  --dark: #1A1A1A;            /* ثابت لا يتغيّر مع الوضع الليلي */
  --radius: 14px;             /* نعومة البطاقات */
  --radius-l: 18px;
  --pill: 999px;              /* نعومة الأزرار */
  --font-heading: 'Thmanyah Serif Display', serif;
  --font-body: 'Thmanyah Serif Text', serif;
  --font-ui: 'Thmanyah Sans', sans-serif;
  --font: var(--font-body);
}

/* الوضع الليلي */
:root[data-theme="dark"] {
  --paper: #171310;
  --ink: #F2EDE3;
  --gray: #8E99A8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171310;
    --ink: #F2EDE3;
    --gray: #8E99A8;
  }
}

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

html { direction: rtl; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--paper);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); background: none; border: none; cursor: pointer; color: inherit; }

*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--gray); }

/* المسطرة */
.mistarah { height: 0.5px; background: var(--gray); border: none; opacity: 0.5; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }

/* ———— شريط التنقل ———— */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 50;
  transition: background-color .5s, box-shadow .5s;
  background: transparent;
}
.navbar.scrolled { background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(4px); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
/* فوق الهيرو الداكن يكون النص فاتحاً */
.has-hero .navbar:not(.scrolled) { color: var(--cream); }
.theme-btn { width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; transition: color .3s; }
.theme-btn:hover { color: var(--accent); }
.theme-btn svg { width: 1.25rem; height: 1.25rem; }
.theme-btn .icon-sun { display: none; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: block; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: none; }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.navbar .nav-inner { height: 5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--font-ui); font-size: 1.125rem; font-weight: 600; letter-spacing: .025em; }
.menu-btn { width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; transition: color .3s; }
.menu-btn:hover { color: var(--accent); }
.menu-btn svg { width: 1.5rem; height: 1.5rem; }

/* ———— القائمة الكاملة ———— */
.menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--accent);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-head { height: 5rem; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
@media (min-width: 768px) { .menu-head { padding: 0 3rem; } }
.menu-head .brand { font-family: var(--font-ui); color: var(--cream); font-size: 1.125rem; font-weight: 600; }
.menu-close { width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; color: var(--cream); transition: opacity .3s; }
.menu-close:hover { opacity: .7; }
.menu-close svg { width: 1.75rem; height: 1.75rem; }
.menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 2rem; }
@media (min-width: 768px) { .menu-links { padding: 0 5rem; } }
.menu-links a {
  font-family: var(--font-heading);
  display: block; color: var(--cream); font-weight: 700;
  font-size: 2.25rem; padding: 1rem 0;
  border-bottom: 1px solid rgba(253, 252, 248, .2);
  transition: opacity .3s, transform .4s ease, opacity .4s ease;
  opacity: 0; transform: translateX(40px);
}
.menu-overlay.open .menu-links a { opacity: 1; transform: translateX(0); }
.menu-overlay.open .menu-links a:nth-child(1) { transition-delay: .1s; }
.menu-overlay.open .menu-links a:nth-child(2) { transition-delay: .18s; }
.menu-overlay.open .menu-links a:nth-child(3) { transition-delay: .26s; }
.menu-links a:hover { opacity: .7; }
@media (min-width: 768px) { .menu-links a { font-size: 3.75rem; padding: 1.5rem 0; } }
@media (min-width: 1024px) { .menu-links a { font-size: 4.5rem; } }
.menu-foot { padding: 0 2rem 2.5rem; }
@media (min-width: 768px) { .menu-foot { padding: 0 5rem 2.5rem; } }
.menu-foot p { font-family: var(--font-ui); color: rgba(253, 252, 248, .6); font-size: .875rem; }

/* ———— الواجهة الرئيسية ———— */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .hero-fade { position: absolute; inset: 0; background: var(--tint); opacity: .5; }
.hero-ghost {
  display: none; position: absolute; left: 2rem; top: 50%; transform: translateY(-50%);
  font-size: 8rem; font-weight: 700; color: var(--cream); opacity: .1;
  writing-mode: vertical-rl; white-space: nowrap; pointer-events: none;
}
@media (min-width: 1024px) { .hero-ghost { display: block; } }
@media (min-width: 1280px) { .hero-ghost { font-size: 10rem; } }
.hero-content { position: relative; z-index: 10; width: 100%; padding-bottom: 4rem; padding-top: 8rem; }
@media (min-width: 768px) { .hero-content { padding-bottom: 6rem; } }
.hero-content .inner { max-width: 42rem; }
.hero .meta { font-family: var(--font-ui); display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; font-size: .75rem; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.chip { font-family: var(--font-ui); padding: .25rem .875rem; border: 1px solid var(--accent); color: var(--accent); border-radius: var(--pill); }
.hero .chip { border-color: color-mix(in srgb, var(--cream) 70%, transparent); color: var(--cream); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; color: var(--cream); margin-bottom: 1.5rem; line-height: 1.2; }
.hero .excerpt { font-size: 1.125rem; color: color-mix(in srgb, var(--cream) 85%, transparent); line-height: 1.8; margin-bottom: 2rem; max-width: 36rem; }
@media (min-width: 768px) { .hero .excerpt { font-size: 1.25rem; } }
.btn-read { font-family: var(--font-ui);
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1rem; font-weight: 500; color: var(--paper);
  background: var(--ink); padding: 1rem 2rem; border-radius: var(--pill);
  transition: background-color .3s, color .3s;
}
.btn-read:hover { background: var(--accent); color: var(--cream); }
.hero .btn-read { background: var(--cream); color: var(--dark); }
.hero .btn-read:hover { background: var(--accent); color: var(--cream); }
.hero-rule { position: absolute; bottom: 0; right: 0; left: 0; height: .5px; background: rgba(148,163,184,.3); }

/* ———— قسم المقالات ———— */
.articles { padding: 4rem 0; }
@media (min-width: 768px) { .articles { padding: 7rem 0; } }
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 4rem; } }
.section-head h2 { font-family: var(--font-ui); font-size: .875rem; font-weight: 600; color: var(--gray); letter-spacing: .05em; }
.section-head .rule { flex: 1; height: .5px; background: rgba(148,163,184,.3); }
.post-grid { display: grid; grid-template-columns: 1fr; column-gap: 4rem; row-gap: 3rem; }
@media (min-width: 768px) { .post-grid { grid-template-columns: 1fr 1fr; column-gap: 5rem; row-gap: 4rem; } }

/* بطاقة المقالة — صف أفقي هادئ: الصورة يميناً والعنوان يسارها */
.post-card { display: flex; align-items: flex-start; gap: 1.5rem; }
.post-card .thumb { position: relative; width: 6.5rem; height: 6.5rem; flex-shrink: 0; overflow: hidden; border-radius: var(--radius); }
@media (min-width: 768px) { .post-card .thumb { width: 7.5rem; height: 7.5rem; } }
.post-card .thumb::after { content: ''; position: absolute; inset: 0; background: var(--tint); opacity: .5; border-radius: inherit; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .card-body { padding-top: .25rem; min-width: 0; }
.post-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: .75rem; line-height: 1.4; transition: color .3s; }
@media (min-width: 768px) { .post-card h3 { font-size: 1.375rem; } }
.post-card:hover h3 { color: var(--accent); }
.post-card .meta { font-family: var(--font-ui); display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .75rem; color: var(--gray); }

/* ———— قسم الاقتباس ———— */
.pull-quote-section { position: relative; padding: 5rem 0; background: var(--dark); overflow: hidden; }
@media (min-width: 768px) { .pull-quote-section { padding: 8rem 0; } }
.pull-quote-section .inner { max-width: 56rem; margin: 0 auto; padding: 0 2rem; text-align: center; }
@media (min-width: 768px) { .pull-quote-section .inner { padding: 0 4rem; } }
.pull-quote-section .marker { display: block; color: var(--accent); font-size: 1.875rem; }
.pull-quote-section .marker.top { margin-bottom: 1.5rem; }
.pull-quote-section .marker.bottom { margin-top: 1.5rem; }
.pull-quote-section blockquote { font-size: 1.5rem; color: var(--cream); line-height: 1.8; }
@media (min-width: 768px) { .pull-quote-section blockquote { font-size: 1.875rem; } }
@media (min-width: 1024px) { .pull-quote-section blockquote { font-size: 2.25rem; } }

/* ———— التذييل ———— */
.footer { background: var(--dark); color: var(--cream); border-top: 1px solid color-mix(in srgb, var(--gray) 15%, transparent); }
.footer .inner { padding: 4rem 0; }
@media (min-width: 768px) { .footer .inner { padding: 6rem 0; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.footer .desc { color: var(--gray); font-size: 1rem; line-height: 1.8; }
.footer h4 { font-family: var(--font-ui); font-size: .875rem; font-weight: 600; color: var(--gray); letter-spacing: .05em; margin-bottom: 1rem; }
.footer nav { display: flex; flex-direction: column; gap: .75rem; }
.footer nav a { font-family: var(--font-ui); color: rgba(253,252,248,.8); transition: color .3s; }
.footer nav a:hover { color: var(--accent); }
.footer .mistarah { margin: 3rem 0; opacity: .2; }
.footer-bottom { font-family: var(--font-ui); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--gray); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ———— الأرشيف ———— */
.page { padding-top: 7rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .page { padding-top: 9rem; padding-bottom: 6rem; } }
.archive h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.archive .sub { font-family: var(--font-ui); font-size: 1.125rem; color: var(--gray); margin-bottom: 2.5rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filter-row.senses { align-items: center; margin-bottom: 3.5rem; }
.filter-row .senses-label { font-family: var(--font-ui); font-size: .75rem; color: var(--gray); margin-left: .5rem; }
.filter-btn { font-family: var(--font-ui);
  font-size: .75rem; padding: .375rem .75rem; min-height: 44px;
  border: 1px solid rgba(148,163,184,.3); color: var(--gray); border-radius: var(--pill);
  transition: color .3s, border-color .3s, background-color .3s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(194,65,12,.05); }
.filter-btn.sense { border-color: rgba(148,163,184,.2); }
.filter-btn.sense.active { border-color: var(--ink); color: var(--ink); background: rgba(26,26,26,.05); }

.year-group { position: relative; margin-bottom: 6rem; }
.year-head { display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .year-head { gap: 3rem; } }
.year-head .year { font-size: 3.75rem; font-weight: 700; color: color-mix(in srgb, var(--ink) 7%, transparent); line-height: 1; flex-shrink: 0; }
@media (min-width: 768px) { .year-head .year { font-size: 6rem; } }
.year-head .rule-wrap { flex: 1; padding-top: 1rem; }

.archive-row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid rgba(148,163,184,.1);
  transition: border-color .3s; position: relative; z-index: 10;
}
@media (min-width: 768px) { .archive-row { gap: 2rem; } }
.archive-row:hover { border-color: rgba(194,65,12,.3); }
.archive-row .date { font-family: var(--font-ui); font-size: .75rem; color: var(--gray); flex-shrink: 0; width: 5rem; }
@media (min-width: 768px) { .archive-row .date { width: 6rem; } }
.archive-row .cat { font-family: var(--font-ui); font-size: .75rem; color: var(--gray); flex-shrink: 0; }
.archive-row h3 { font-size: 1.25rem; font-weight: 500; color: var(--ink); flex: 1; transition: color .3s; }
@media (min-width: 768px) { .archive-row h3 { font-size: 1.5rem; } }
.archive-row:hover h3 { color: var(--accent); }
.archive-row .rt { font-family: var(--font-ui); font-size: .75rem; color: var(--gray); flex-shrink: 0; display: none; }
@media (min-width: 768px) { .archive-row .rt { display: block; } }
.archive-empty { font-size: 1rem; color: var(--gray); text-align: center; padding: 5rem 0; }

.ghost-img {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 350px; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .3s;
}
.ghost-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); }
.ghost-img.visible { opacity: .1; }
@media (min-width: 1024px) { .ghost-img { display: block; } }

/* ———— عني ———— */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.about-image { position: relative; order: 2; }
@media (min-width: 1024px) { .about-image { order: 1; } }
.about-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-l); }
.about-image .fade { position: absolute; bottom: 0; right: 0; left: 0; height: 33%; background: linear-gradient(to top, var(--paper), transparent); }
.about-content { order: 1; }
@media (min-width: 1024px) { .about-content { order: 2; padding-top: 3rem; } }
.about-content .label { font-family: var(--font-ui); display: block; font-size: .875rem; font-weight: 600; color: var(--gray); letter-spacing: .05em; margin-bottom: 1rem; }
.about-content h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; color: var(--ink); margin-bottom: 2rem; line-height: 1.2; }
.about-content .mistarah { margin: 2rem 0; }
.about-text p { font-size: 1.125rem; color: color-mix(in srgb, var(--ink) 80%, transparent); line-height: 1.8; }
.about-text p + p { margin-top: 1.5rem; }
.stats { display: flex; gap: 2rem; }
@media (min-width: 768px) { .stats { gap: 3rem; } }
.stats .value { font-family: var(--font-ui); display: block; font-size: 1.875rem; font-weight: 700; color: var(--ink); }
@media (min-width: 768px) { .stats .value { font-size: 2.25rem; } }
.stats .label { font-family: var(--font-ui); font-size: .75rem; color: var(--gray); }
.about-quote {
  font-size: 1.25rem; color: color-mix(in srgb, var(--ink) 60%, transparent); font-style: italic; line-height: 1.8;
  border-right: 3px solid var(--accent); padding-right: 1.5rem;
}

/* ———— صفحة المقالة ———— */
.progress-track { position: fixed; top: 0; right: 0; width: 4px; height: 100%; z-index: 40; background: var(--paper); }
.progress-track .bar { width: 100%; height: 0; background: var(--accent); transition: height .15s; }
.post-header { padding-top: 7rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .post-header { padding-top: 9rem; padding-bottom: 4rem; } }
.post-header .inner, .post-figure, .post-pull { max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .post-header .inner, .post-figure, .post-pull { padding: 0 3rem; } }
.back-link { font-family: var(--font-ui);
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  font-size: .875rem; color: var(--gray); margin-bottom: 2rem; transition: color .3s;
}
.back-link:hover { color: var(--accent); }
.post-header .meta { font-family: var(--font-ui); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; font-size: .75rem; color: var(--gray); }
.post-header h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 2rem; }
.post-figure { max-width: 64rem; margin-bottom: 3rem; }
.post-figure .cover { position: relative; overflow: hidden; border-radius: var(--radius-l); }
.post-figure .cover::after { content: ''; position: absolute; inset: 0; background: var(--tint); opacity: .5; }
.post-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.post-pull { max-width: 64rem; margin-bottom: 3rem; }
.post-pull blockquote {
  font-size: 1.5rem; color: var(--accent); line-height: 1.8;
  border-right: 3px solid var(--accent); padding: .5rem 1.5rem .5rem 0;
}
@media (min-width: 768px) { .post-pull blockquote { font-size: 1.875rem; } }
.post-body { max-width: 800px; margin: 0 auto; padding: 0 1.5rem 4rem; }
@media (min-width: 768px) { .post-body { padding: 0 2rem 6rem; } }
.end-marker { display: flex; justify-content: center; padding: 3rem 0; color: var(--accent); font-size: 1.125rem; }
.post-rule { max-width: 56rem; margin: 0 auto; }

/* محتوى المقالة */
.prose-arabic p { margin-bottom: 1.5rem; font-size: 1.25rem; line-height: 1.8; }
.prose-arabic h2 { font-size: 1.75rem; font-weight: 700; margin-top: 3rem; margin-bottom: 1.5rem; }
.prose-arabic h3 { font-size: 1.35rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; }
.prose-arabic blockquote {
  font-size: 1.5rem; font-style: italic; color: var(--accent);
  border-right: 3px solid var(--accent); padding-right: 1.5rem;
  margin: 2.5rem 0;
}
.prose-arabic ul { list-style: none; padding-right: 1.5rem; margin-bottom: 1.5rem; }
.prose-arabic ul li::before { content: '■'; font-size: .5em; color: var(--accent); margin-left: .75rem; vertical-align: middle; }
.prose-arabic a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose-arabic img { margin: 2rem 0; max-width: 100%; }

/* ———— حركة الظهور ———— */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
}


/* ———— النشرة البريدية ———— */
.newsletter { padding: 4rem 0 5rem; }
@media (min-width: 768px) { .newsletter { padding: 5rem 0 7rem; } }
.newsletter .inner { max-width: 36rem; margin: 0 auto; text-align: center; }
.newsletter .label { font-family: var(--font-ui); display: block; font-size: .875rem; font-weight: 600; color: var(--gray); letter-spacing: .05em; margin-bottom: 1rem; }
.newsletter h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.newsletter p { font-size: 1.05rem; color: color-mix(in srgb, var(--ink) 65%, transparent); margin-bottom: 2rem; }
.newsletter form { display: flex; gap: .625rem; max-width: 28rem; margin: 0 auto; }
.newsletter input {
  font-family: var(--font-ui); flex: 1; min-width: 0; min-height: 48px;
  font-size: .95rem; color: var(--ink); background: transparent;
  border: 1px solid color-mix(in srgb, var(--gray) 45%, transparent);
  border-radius: var(--pill); padding: 0 1.375rem; outline: none;
  transition: border-color .3s;
}
.newsletter input::placeholder { color: var(--gray); }
.newsletter input:focus { border-color: var(--accent); }
.newsletter button {
  font-family: var(--font-ui); min-height: 48px; font-size: .95rem; font-weight: 600;
  color: var(--paper); background: var(--ink); border-radius: var(--pill);
  padding: 0 1.75rem; transition: background-color .3s, color .3s; flex-shrink: 0;
}
.newsletter button:hover { background: var(--accent); color: var(--cream); }
.newsletter .note { font-family: var(--font-ui); font-size: .8rem; color: var(--gray); margin: 1rem 0 0; }
@media (max-width: 480px) { .newsletter form { flex-direction: column; } }


/* هوامش أوسع تحت الهيرو */
.articles .container { padding: 0 2rem; }
@media (min-width: 768px) { .articles .container { padding: 0 7rem; } }
@media (min-width: 1280px) { .articles .container { padding: 0 11rem; } }

/* ———— شريط البحث ———— */
.nav-search { position: relative; flex: 1; max-width: 21rem; margin: 0 1.5rem; display: none; }
@media (min-width: 768px) { .nav-search { display: block; } }
.nav-search .s-icon {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; color: var(--gray); pointer-events: none;
}
.nav-search input {
  font-family: var(--font-ui); width: 100%; min-height: 42px;
  font-size: .875rem; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid transparent; border-radius: var(--pill);
  padding: 0 2.75rem 0 1.25rem; outline: none;
  transition: border-color .3s, background-color .3s;
}
.nav-search input::placeholder { color: var(--gray); }
.nav-search input:focus { border-color: var(--accent); background: var(--paper); }
.has-hero .navbar:not(.scrolled) .nav-search input {
  background: color-mix(in srgb, var(--cream) 14%, transparent); color: var(--cream);
}
.has-hero .navbar:not(.scrolled) .nav-search input::placeholder { color: color-mix(in srgb, var(--cream) 65%, transparent); }
.has-hero .navbar:not(.scrolled) .nav-search .s-icon { color: color-mix(in srgb, var(--cream) 65%, transparent); }
.has-hero .navbar:not(.scrolled) .nav-search input:focus { background: color-mix(in srgb, var(--cream) 22%, transparent); }
.search-results {
  position: absolute; top: calc(100% + .5rem); right: 0; left: 0;
  background: var(--paper); border: 1px solid color-mix(in srgb, var(--gray) 30%, transparent);
  border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(20,15,8,.35);
}
.search-results a {
  display: block; padding: .75rem 1.125rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gray) 15%, transparent);
  transition: background-color .2s;
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.search-results .r-title { display: block; font-family: var(--font-heading); font-size: .95rem; font-weight: 700; color: var(--ink); }
.search-results .r-meta { display: block; font-family: var(--font-ui); font-size: .72rem; color: var(--gray); margin-top: .1rem; }
.search-results .r-none { display: block; padding: .875rem 1.125rem; font-family: var(--font-ui); font-size: .85rem; color: var(--gray); }
