/* Self-hosted webfonts (Google Fonts woff2 subsets, font-display: swap).
   Arabic display: Amiri 700 · Arabic body: IBM Plex Sans Arabic 400/500/700
   Latin display: Playfair Display (variable) · Latin body: Inter (variable) */
@font-face{
  font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;
  src:url('/assets/fonts/plex-arabic-400-arabic.woff2') format('woff2');
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face{
  font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;
  src:url('/assets/fonts/plex-arabic-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;
  src:url('/assets/fonts/plex-arabic-500-arabic.woff2') format('woff2');
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face{
  font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;
  src:url('/assets/fonts/plex-arabic-500-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;
  src:url('/assets/fonts/plex-arabic-700-arabic.woff2') format('woff2');
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face{
  font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;
  src:url('/assets/fonts/plex-arabic-700-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Amiri';font-style:normal;font-weight:700;font-display:swap;
  src:url('/assets/fonts/amiri-700-arabic.woff2') format('woff2');
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;
  src:url('/assets/fonts/inter-var-latin.woff2') format('woff2');
}
@font-face{
  font-family:'Playfair Display';font-style:normal;font-weight:400 900;font-display:swap;
  src:url('/assets/fonts/playfair-var-latin.woff2') format('woff2');
}

/* ============================================================
   MoKhames — mokhames.com
   Art direction: cinematic black, molten gold, editorial ledger.
   One accent (gold), ivory type, hairline rules, numbered sections.
   ============================================================ */

:root{
  --bg:#080706;
  --bg-2:#0d0b08;
  --panel:#12100b;
  --panel-2:#171410;
  --ivory:#f2e9d5;
  --ivory-2:#d8ccab;
  --muted:#a3987d;
  --faint:#6f6650;
  --gold:#c19a2e;
  --gold-2:#e9cd7a;
  --gold-deep:#8a6d1d;
  --line:rgba(193,154,46,.18);
  --line-soft:rgba(242,233,213,.08);
  --shadow:0 24px 60px rgba(0,0,0,.55);
  --font-body:"Inter","IBM Plex Sans Arabic","Segoe UI",Tahoma,"Helvetica Neue",Arial,sans-serif;
  --font-display:"Playfair Display","Amiri",Georgia,serif;
  --font-mono:ui-monospace,"SF Mono","Cascadia Mono",Consolas,"Liberation Mono",monospace;
  --measure:68ch;
  --head-h:72px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
html:focus-within{scroll-behavior:smooth}

body{
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(193,154,46,.13), rgba(193,154,46,0) 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(193,154,46,.05), rgba(193,154,46,0) 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment:fixed;
  color:var(--ivory);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  overflow-x:hidden;
}
/* film grain */
body::after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:60;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
::selection{background:var(--gold);color:#171106}

a{color:var(--gold-2);text-decoration:none}
a:hover{color:var(--ivory)}
img{max-width:100%;display:block}

.wrap{max-width:1180px;margin-inline:auto;padding-inline:24px}
.narrow{max-width:820px;margin-inline:auto;padding-inline:24px}

/* ---------- header ---------- */
header.site{
  position:sticky;top:0;z-index:50;height:var(--head-h);
  display:flex;align-items:center;
  background:rgba(8,7,6,.82);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
header.site .wrap{width:100%;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:baseline;gap:10px;color:var(--ivory);white-space:nowrap}
.brand:hover{color:var(--ivory)}
.brand .mark{
  font-family:var(--font-display);font-weight:700;font-size:1.42rem;letter-spacing:.01em;line-height:1;
}
.brand .mark b{color:var(--gold-2);font-weight:700}
.brand .dot{color:var(--gold);font-size:1.42rem;line-height:0;transform:translateY(2px)}
.brand small{font-family:var(--font-mono);font-size:.62rem;letter-spacing:.24em;color:var(--muted);text-transform:uppercase}
nav.main{display:flex;gap:26px;margin-inline-start:auto;align-items:center}
nav.main a{
  color:var(--ivory-2);font-size:.95rem;font-weight:600;padding:6px 2px;position:relative;
}
nav.main a::after{
  content:"";position:absolute;inset-inline-start:0;bottom:0;height:1px;width:0;background:var(--gold);transition:width .35s ease;
}
nav.main a:hover{color:var(--ivory)}
nav.main a:hover::after{width:100%}
.lang{
  font-family:var(--font-mono);font-size:.8rem;letter-spacing:.08em;line-height:1.3;
  display:inline-flex;align-items:center;
  border:1px solid var(--line);border-radius:999px;padding:7px 16px;color:var(--gold-2);
  transition:border-color .3s ease,background .3s ease,color .3s ease;white-space:nowrap;
}
.lang:hover{border-color:var(--gold);background:rgba(193,154,46,.1);color:var(--ivory)}

/* ---------- generic ---------- */
.kicker{
  font-family:var(--font-mono);font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);display:flex;align-items:center;gap:14px;
}
.kicker::before{content:"";width:38px;height:1px;background:var(--gold);flex:none}
.kicker.center{justify-content:center}
.kicker.center::after{content:"";width:38px;height:1px;background:var(--gold);flex:none}

.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-weight:700;font-size:.98rem;line-height:1;
  padding:15px 30px;border-radius:999px;border:1px solid var(--gold);
  transition:transform .3s ease,box-shadow .3s ease,background .3s ease,color .3s ease;
}
.btn.gold{background:linear-gradient(180deg,var(--gold-2),var(--gold));color:#1a1405;box-shadow:0 10px 30px rgba(193,154,46,.25)}
.btn.gold:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(193,154,46,.35);color:#1a1405}
.btn.ghost{background:transparent;color:var(--gold-2)}
.btn.ghost:hover{background:rgba(193,154,46,.1);color:var(--ivory);transform:translateY(-2px)}

section.block{padding:92px 0 8px}
.sec-head{margin-bottom:44px}
.sec-head .no{
  font-family:var(--font-mono);color:var(--gold);font-size:.85rem;letter-spacing:.3em;
  display:block;margin-bottom:14px;
}
.sec-head h2{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.9rem,4.4vw,2.9rem);line-height:1.3;color:var(--ivory);
}
html[lang="ar"] .sec-head h2{line-height:1.5}
.sec-head p{color:var(--muted);max-width:62ch;margin-top:12px}
.rule{height:1px;border:0;background:linear-gradient(90deg,transparent,var(--gold-dim,rgba(193,154,46,.4)),transparent);margin:84px 0 0}

/* ---------- hero ---------- */
.hero{padding:84px 0 30px;position:relative}
.hero .grid{display:grid;grid-template-columns:1.25fr .75fr;gap:56px;align-items:center}
.hero .name{
  font-family:var(--font-display);font-weight:700;color:var(--ivory);
  font-size:clamp(3.4rem,9.5vw,6.6rem);line-height:1.04;letter-spacing:-.01em;margin:22px 0 4px;
}
.hero .name .gold{color:var(--gold-2)}
.hero .name-ar{
  font-size:clamp(1.5rem,3.6vw,2.2rem);font-weight:800;color:var(--ivory-2);line-height:1.5;
}
.hero .promise{
  font-size:clamp(1.13rem,2.3vw,1.38rem);line-height:2;color:var(--ivory-2);
  max-width:34ch;margin-top:26px;
}
html[lang="en"] .hero .promise{line-height:1.75}
.hero .cta{display:flex;gap:16px;flex-wrap:wrap;margin-top:38px}
.hero figure{position:relative;justify-self:center;width:min(340px,80vw)}
.hero figure .frame{
  border:1px solid rgba(193,154,46,.45);border-radius:18px;overflow:hidden;background:var(--panel);
  box-shadow:16px 16px 0 0 var(--bg-2),16px 16px 0 1px rgba(193,154,46,.35),var(--shadow);
  position:relative;z-index:2;
}
html[dir="rtl"] .hero figure .frame{
  box-shadow:-16px 16px 0 0 var(--bg-2),-16px 16px 0 1px rgba(193,154,46,.35),var(--shadow);
}
.hero figure img{width:100%;height:auto}
.hero figcaption{
  margin-top:30px;text-align:center;color:var(--muted);font-size:.88rem;line-height:1.8;
}
.hero figcaption b{color:var(--gold-2);font-weight:700}

.ticker{
  margin-top:74px;border-block:1px solid var(--line);padding:16px 0;
  display:flex;gap:14px;justify-content:center;flex-wrap:wrap;
  font-family:var(--font-mono);font-size:.8rem;letter-spacing:.18em;color:var(--muted);text-transform:uppercase;
}
.ticker span{display:flex;align-items:center;gap:14px}
.ticker i{color:var(--gold);font-style:normal}

/* ---------- cards ---------- */
.grid-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.card{
  background:linear-gradient(180deg,var(--panel-2),var(--panel));
  border:1px solid var(--line-soft);border-radius:16px;padding:30px 28px 26px;
  display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden;
  transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;
}
.card::before{
  content:"";position:absolute;top:0;inset-inline-start:0;width:100%;height:2px;
  background:linear-gradient(90deg,var(--gold),transparent 70%);opacity:0;transition:opacity .35s ease;
}
.card:hover{transform:translateY(-5px);border-color:rgba(193,154,46,.5);box-shadow:0 22px 44px rgba(0,0,0,.5)}
.card:hover::before{opacity:1}
.card .tag{
  font-family:var(--font-mono);font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--gold);display:flex;justify-content:space-between;gap:10px;
}
.card .tag time{color:var(--faint);letter-spacing:.05em}
.card h3{font-size:1.28rem;line-height:1.55;font-weight:800;color:var(--ivory)}
html[lang="en"] .card h3{font-family:var(--font-display);font-weight:700;line-height:1.35}
.card p{color:var(--muted);font-size:.95rem;line-height:1.85;flex:1}
.card .go{font-weight:700;font-size:.92rem;color:var(--gold-2);display:inline-flex;gap:8px;align-items:center}
.card .go .arr{transition:transform .3s ease}
.card:hover .go .arr{transform:translateX(-4px)}
html[dir="ltr"] .card:hover .go .arr{transform:translateX(4px)}
html[dir="ltr"] .card .go .arr{display:inline-block;transform:scaleX(-1)}
html[dir="ltr"] .card:hover .go .arr{transform:scaleX(-1) translateX(4px)}

/* card thumbnail (cover art, full-bleed to the card's top edge) */
.card .media{
  display:block;margin:-30px -28px 0;border-bottom:1px solid var(--line);
  overflow:hidden;background:var(--panel);
}
.card .media img{
  width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;
  transition:transform .6s ease;
}
.card:hover .media img{transform:scale(1.045)}

/* feature card (repo of the day) */
.feature{
  display:grid;grid-template-columns:.9fr 1.1fr;gap:0;border:1px solid var(--line);border-radius:20px;overflow:hidden;
  background:linear-gradient(135deg,rgba(193,154,46,.1),rgba(193,154,46,0) 45%),var(--panel);
}
.feature .side{
  padding:44px 40px;border-inline-end:1px solid var(--line);
  display:flex;flex-direction:column;justify-content:center;gap:14px;
}
.feature .side .big{
  font-family:var(--font-display);font-size:clamp(2.2rem,5vw,3.4rem);font-weight:700;line-height:1.15;color:var(--ivory);
}
.feature .side .big em{font-style:normal;color:var(--gold-2)}
.feature .body{padding:44px 40px;display:flex;flex-direction:column;gap:14px;justify-content:center}
.feature .body p{color:var(--ivory-2);line-height:1.95}
.feature .body .meta{font-family:var(--font-mono);font-size:.78rem;color:var(--muted);letter-spacing:.06em}
.feature .media{
  display:block;border:1px solid rgba(193,154,46,.45);border-radius:14px;overflow:hidden;background:var(--panel);
}
.feature .media img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}

/* teasers */
.teasers{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.teaser{
  border:1px solid var(--line-soft);border-radius:16px;padding:34px 30px;color:var(--ivory);
  background:rgba(255,255,255,.012);display:block;
  transition:border-color .35s ease,background .35s ease,transform .35s ease;
}
.teaser:hover{border-color:rgba(193,154,46,.55);background:rgba(193,154,46,.05);transform:translateY(-4px);color:var(--ivory)}
.teaser .no{font-family:var(--font-mono);color:var(--gold);font-size:.8rem;letter-spacing:.28em}
.teaser h3{font-size:1.45rem;font-weight:800;margin:14px 0 8px;line-height:1.5}
html[lang="en"] .teaser h3{font-family:var(--font-display);font-weight:700}
.teaser p{color:var(--muted);font-size:.95rem;line-height:1.85}

/* ---------- newsletter ---------- */
.newsletter{
  margin:96px 0 0;border:1px solid var(--line);border-radius:22px;overflow:hidden;position:relative;
  background:
    radial-gradient(600px 300px at 50% -30%, rgba(193,154,46,.16), rgba(193,154,46,0) 65%),
    linear-gradient(180deg,var(--panel-2),var(--panel));
  padding:58px 30px;text-align:center;
}
.newsletter h2{font-family:var(--font-display);font-size:clamp(1.7rem,4vw,2.5rem);font-weight:700;line-height:1.4}
html[lang="ar"] .newsletter h2{line-height:1.6}
.newsletter p{color:var(--muted);max-width:52ch;margin:14px auto 0;line-height:1.9}
.newsletter form{margin:30px auto 0;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;max-width:560px}
.newsletter input[type="email"]{
  flex:1;min-width:250px;background:#0a0906;border:1px solid var(--line);border-radius:999px;
  padding:15px 24px;color:var(--ivory);font-family:var(--font-body);font-size:1rem;outline:none;
  transition:border-color .3s ease, box-shadow .3s ease;
}
.newsletter input[type="email"]:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(193,154,46,.15)}
.newsletter button{
  cursor:pointer;font-family:var(--font-body);
}
.newsletter .fine{font-size:.8rem;color:var(--faint);margin-top:16px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- article ---------- */
.article-hero{padding:70px 0 10px}
.article-hero .badge{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--font-mono);font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-2);border:1px solid var(--line);border-radius:999px;padding:8px 18px;
  background:rgba(193,154,46,.07);
}
.article-hero .badge::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 12px var(--gold)}
.article-hero h1{
  font-size:clamp(2rem,5.4vw,3.3rem);font-weight:800;line-height:1.45;color:var(--ivory);margin:26px 0 14px;
}
html[lang="en"] .article-hero h1{font-family:var(--font-display);font-weight:700;line-height:1.22}
.article-hero .meta{font-family:var(--font-mono);font-size:.82rem;color:var(--muted);letter-spacing:.05em;display:flex;gap:18px;flex-wrap:wrap}
.article-hero .lead{font-size:1.2rem;line-height:2.05;color:var(--ivory-2);margin-top:24px}
html[lang="en"] .article-hero .lead{line-height:1.8}

/* article cover (hero image under the article header) */
.cover{
  margin:36px 0 4px;border:1px solid rgba(193,154,46,.45);border-radius:18px;
  overflow:hidden;background:var(--panel);box-shadow:var(--shadow);
}
.cover img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}

.facts{
  margin:40px 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel);
}
.facts .fh{
  padding:16px 26px;border-bottom:1px solid var(--line);
  font-family:var(--font-mono);font-size:.76rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);
  display:flex;align-items:center;gap:12px;background:rgba(193,154,46,.05);
}
.facts dl{display:grid;grid-template-columns:repeat(2,1fr)}
.facts .cell{padding:18px 26px;border-bottom:1px solid var(--line-soft)}
.facts .cell:nth-child(odd){border-inline-end:1px solid var(--line-soft)}
.facts dt{font-size:.8rem;color:var(--faint);font-weight:700;letter-spacing:.04em;margin-bottom:2px}
.facts dd{font-size:1.06rem;font-weight:700;color:var(--ivory)}
.facts dd .mono{font-family:var(--font-mono);font-weight:400;font-size:.98rem}

.prose{padding-bottom:10px}
.prose h2{
  font-size:1.55rem;font-weight:800;line-height:1.55;color:var(--ivory);
  margin:52px 0 16px;display:flex;align-items:baseline;gap:14px;
}
html[lang="en"] .prose h2{font-family:var(--font-display);font-weight:700;line-height:1.35}
.prose h2 .n{font-family:var(--font-mono);font-size:.85rem;color:var(--gold);letter-spacing:.15em;flex:none}
.prose p{color:var(--ivory-2);line-height:2.02;margin-bottom:18px;max-width:var(--measure)}
html[lang="en"] .prose p{line-height:1.82}
.prose ul{list-style:none;margin:6px 0 22px;max-width:var(--measure)}
.prose li{
  color:var(--ivory-2);line-height:1.95;padding-inline-start:30px;position:relative;margin-bottom:12px;
}
html[lang="en"] .prose li{line-height:1.75}
.prose li::before{
  content:"";position:absolute;inset-inline-start:2px;top:.72em;width:14px;height:1px;background:var(--gold);
}
.prose li b,.prose p b{color:var(--ivory)}
.prose code{font-family:var(--font-mono);font-size:.9em;color:var(--gold-2);background:rgba(193,154,46,.08);padding:1px 7px;border-radius:6px;direction:ltr;unicode-bidi:embed}

.verdict{
  margin:46px 0 8px;border:1px solid var(--line);border-inline-start:3px solid var(--gold);
  background:linear-gradient(90deg,rgba(193,154,46,.08),rgba(193,154,46,0) 60%),var(--panel);
  border-radius:14px;padding:30px 32px;
}
.verdict .vh{font-family:var(--font-mono);font-size:.76rem;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);margin-bottom:10px}
.verdict p{font-size:1.12rem;line-height:2;color:var(--ivory);max-width:62ch}
html[lang="en"] .verdict p{line-height:1.8}

.src-links{display:flex;gap:14px;flex-wrap:wrap;margin:38px 0 6px}
.back-link{display:inline-flex;gap:9px;align-items:center;font-weight:700;color:var(--gold-2);margin-top:44px}

/* ---------- listing hero ---------- */
.page-hero{padding:76px 0 6px}
.page-hero h1{
  font-size:clamp(2.3rem,6vw,3.8rem);font-weight:800;line-height:1.4;color:var(--ivory);margin:20px 0 14px;
}
html[lang="en"] .page-hero h1{font-family:var(--font-display);font-weight:700;line-height:1.18}
.page-hero .lead{font-size:1.15rem;color:var(--ivory-2);line-height:2;max-width:60ch}
html[lang="en"] .page-hero .lead{line-height:1.8}

/* ---------- footer ---------- */
footer.site{margin-top:110px;border-top:1px solid var(--line);background:rgba(0,0,0,.35)}
footer.site .wrap{padding-top:56px;padding-bottom:44px}
.foot-grid{display:grid;grid-template-columns:1.3fr .7fr .7fr;gap:40px}
.foot-grid h4{font-family:var(--font-mono);font-size:.74rem;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);margin-bottom:18px}
.foot-grid a{display:block;color:var(--muted);padding:5px 0;font-size:.95rem;width:fit-content}
.foot-grid a:hover{color:var(--gold-2)}
.foot-brand .mark{font-family:var(--font-display);font-size:1.7rem;font-weight:700;color:var(--ivory)}
.foot-brand .mark b{color:var(--gold-2)}
.foot-brand p{color:var(--muted);font-size:.94rem;line-height:1.9;max-width:36ch;margin-top:10px}
.foot-bottom{
  border-top:1px solid var(--line-soft);margin-top:44px;padding-top:22px;
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  color:var(--faint);font-size:.85rem;
}
.foot-bottom .mono{font-family:var(--font-mono);letter-spacing:.06em}

/* ---------- 404 ---------- */
.err{min-height:62vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:80px 24px}
.err .code{font-family:var(--font-display);font-size:clamp(5rem,16vw,10rem);line-height:1;color:transparent;-webkit-text-stroke:1px var(--gold);font-weight:700}
.err h1{font-size:1.6rem;font-weight:800;margin:22px 0 10px}
.err p{color:var(--muted);margin-bottom:30px}


/* ---------- Arabic display type (Amiri, self-hosted) ---------- */
html[lang="ar"] .sec-head h2,
html[lang="ar"] .newsletter h2,
html[lang="ar"] .article-hero h1,
html[lang="ar"] .prose h2,
html[lang="ar"] .page-hero h1,
html[lang="ar"] .teaser h3,
html[lang="ar"] .card h3,
html[lang="ar"] .err h1{font-family:"Amiri","Playfair Display",serif;font-weight:700}
html[lang="ar"] .hero .name-ar{font-family:"Amiri","Playfair Display",serif;font-weight:700}

/* ---------- reveal (hidden state only when JS is available) ---------- */
html.js .rv{opacity:0;transform:translateY(16px);transition:opacity .8s ease,transform .8s ease}
html.js .rv.in{opacity:1;transform:none}
.rv.d1{transition-delay:.08s}.rv.d2{transition-delay:.16s}.rv.d3{transition-delay:.24s}

/* ---------- responsive ---------- */
@media (max-width:960px){
  .hero .grid{grid-template-columns:1fr;gap:44px}
  .hero figure{justify-self:start}
  html[dir="rtl"] .hero figure{justify-self:end}
  .grid-cards{grid-template-columns:repeat(2,1fr)}
  .feature{grid-template-columns:1fr}
  .feature .side{border-inline-end:0;border-bottom:1px solid var(--line)}
  .teasers{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  body{font-size:16px}
  nav.main a:not(.lang){display:none}
  .brand small{display:none}
  .grid-cards{grid-template-columns:1fr}
  .facts dl{grid-template-columns:1fr}
  .facts .cell:nth-child(odd){border-inline-end:0}
  .hero{padding-top:54px}
  section.block{padding-top:64px}
  .newsletter form{flex-direction:column}
  .newsletter button{width:100%;justify-content:center}
  .foot-grid{grid-template-columns:1fr}
  .verdict{padding:24px 22px}
  .feature .side,.feature .body{padding:32px 26px}
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  html.js .rv{opacity:1;transform:none}
}
