@font-face{
  font-family:'Cairo';
  src:url('/assets/fonts/cairo-arabic.woff2') format('woff2');
  font-weight:200 1000;
  font-style:normal;
  font-display:swap;
  unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}

:root{
  --bg:#0d0f14;
  --surface:#151922;
  --surface-2:#1b2130;
  --line:#242b39;
  --text:#e9ecf3;
  --muted:#98a2b3;
  --accent:#e63946;
  --accent-soft:rgba(230,57,70,.12);
  --radius:14px;
}

*{box-sizing:border-box}
html{color-scheme:dark;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Cairo','Segoe UI',Tahoma,'Noto Naskh Arabic',system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  text-rendering:optimizeLegibility;
}
img,svg{max-width:100%}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}

.wrap{max-width:720px;margin:0 auto;padding:0 18px}
.skip{position:absolute;right:-9999px}
.skip:focus{right:12px;top:12px;background:var(--surface);padding:10px 14px;border-radius:10px;z-index:9}

/* header */
.site-head{
  border-bottom:1px solid var(--line);
  background:rgba(13,15,20,.92);
  position:sticky;top:0;z-index:5;
  backdrop-filter:saturate(140%) blur(8px);
}
.head-in{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.12rem;padding:8px 0}
.brand .logo{width:26px;height:26px;color:var(--accent)}
.nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;font-size:.92rem}
.nav::-webkit-scrollbar{display:none}
.nav a{color:var(--muted);padding:7px 10px;border-radius:9px;white-space:nowrap}
.nav a:hover{color:var(--text);background:var(--surface-2)}
.nav a.on{color:var(--text);background:var(--surface-2)}

/* hero */
.hero{padding:30px 0 6px}
.hero-mark{width:52px;height:52px;border-radius:16px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;margin-bottom:16px}
.hero-mark .logo{width:28px;height:28px}
.hero h1{margin:0 0 10px;font-size:clamp(1.55rem,6.4vw,2.25rem);line-height:1.35;font-weight:800;letter-spacing:-.2px}
.lead{margin:0;color:var(--muted);font-size:1.02rem}
.lead strong{color:var(--text);font-weight:700}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}

.btn{display:inline-block;background:var(--accent);color:#fff;font-weight:700;padding:11px 18px;border-radius:12px;font-size:.95rem}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--text)}
.btn.ghost:hover{background:var(--surface-2)}

/* blocks */
.block{margin:30px 0}
.block-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.block h2,.block-head h2{margin:0;font-size:1.18rem;font-weight:800}
.more{color:var(--accent);font-size:.9rem;font-weight:700;white-space:nowrap}
.more:hover{text-decoration:underline}

/* cards */
.cards{display:flex;flex-direction:column;gap:10px}
.card{
  display:flex;align-items:center;gap:12px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:13px 14px;
}
.card:hover{border-color:#33405a;background:var(--surface-2)}
.card-num{
  flex:0 0 auto;width:36px;height:36px;border-radius:11px;
  background:var(--accent-soft);color:var(--accent);
  display:grid;place-items:center;font-weight:800;font-size:.9rem;
}
.card-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.card-body strong{font-weight:700;font-size:1.01rem;line-height:1.5}
.card-ex{color:var(--muted);font-size:.86rem;line-height:1.6;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.card-go{color:var(--muted);font-size:1rem;flex:0 0 auto}

/* page heads */
.crumb{font-size:.85rem;color:var(--muted);margin:22px 0 10px}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--text)}
.crumb span{margin:0 4px}
.page-title{font-size:clamp(1.5rem,5.8vw,2rem);line-height:1.4;margin:6px 0 8px;font-weight:800}
.page-sub{color:var(--muted);margin:0 0 18px}

/* article */
.art-title{font-size:clamp(1.5rem,6vw,2.05rem);line-height:1.45;margin:6px 0 10px;font-weight:800}
.art-meta{color:var(--muted);font-size:.86rem;margin:0 0 6px}
.prose{margin:18px 0;font-size:1.07rem;line-height:2.05;color:#e2e6ef}
.prose p{margin:0 0 1.1em}
.prose a{color:var(--accent);text-decoration:underline}
.prose strong{color:#fff}
.moral{
  margin:22px 0;padding:14px 16px;background:var(--accent-soft);
  border-right:4px solid var(--accent);border-radius:12px;
  font-weight:700;font-size:1.05rem;line-height:1.85;color:#fff;
}
.next{display:flex;flex-direction:column;gap:10px;margin:26px 0 6px}
.next-link{display:flex;flex-direction:column;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px}
.next-link:hover{background:var(--surface-2);border-color:#33405a}
.next-k{color:var(--muted);font-size:.8rem}
.next-link strong{font-size:.98rem;font-weight:700;line-height:1.5}
.back{margin:18px 0 30px;font-size:.9rem}
.back a{color:var(--muted)}
.back a:hover{color:var(--text)}

/* ad slots */
.ad{
  margin:22px 0;min-height:96px;border:1px dashed #2c3547;border-radius:12px;
  display:grid;place-items:center;background:rgba(255,255,255,.015);
  color:#5d6678;font-size:.8rem;letter-spacing:.4px;
}

/* misc */
.about-strip{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px}
.about-strip p{color:var(--muted);margin:8px 0 10px;font-size:.96rem}
.contact-links{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.note{color:var(--muted);font-size:.86rem}

/* footer */
.site-foot{border-top:1px solid var(--line);margin-top:40px;padding:26px 0 40px;color:var(--muted);font-size:.88rem}
.foot-brand{font-weight:800;color:var(--text);margin:0 0 6px;font-size:1rem}
.foot-note{margin:0 0 14px;max-width:46ch}
.foot-nav{display:flex;flex-wrap:wrap;gap:6px 16px;margin-bottom:14px}
.foot-nav a{color:var(--muted)}
.foot-nav a:hover{color:var(--text)}
.foot-copy{margin:0;font-size:.8rem;color:#5d6678}

@media (min-width:768px){
  body{font-size:18px}
  .wrap{padding:0 24px}
  .hero{padding:46px 0 10px}
  .card{padding:16px 18px}
  .card-body strong{font-size:1.06rem}
}

/* keep the free-plan badge from covering the last links */
#netlify-hud,[data-netlify-hud],.netlify-hud{display:none!important}
.site-foot{padding-bottom:88px}
