/* البورصة والأقتصاد - landing page
   Dark, RTL, mobile-first. No framework. */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/cairo-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;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/cairo-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0e14;
  --bg-soft: #0e141d;
  --card: #131b27;
  --card-hi: #17202e;
  --line: #1f2a3a;
  --text: #e9edf3;
  --muted: #98a4b5;
  --accent: #ffa726;
  --accent-ink: #1a1206;
  --radius: 14px;
  --wrap: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute;
  right: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  z-index: 9;
}
.skip:focus { right: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */

.head {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 20, .92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand-mark { color: var(--accent); flex: none; }

.brand-name { color: var(--text); }

.head-link {
  font-size: .85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
}
.head-link:hover { color: var(--text); border-color: #2c3a4e; }

/* ---------- hero ---------- */

.hero {
  padding: 34px 0 26px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 167, 38, .10), transparent 60%),
    radial-gradient(70% 90% at 0% 10%, rgba(56, 189, 248, .06), transparent 60%);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}

.lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 46ch;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 999px;
  transition: transform .12s ease, filter .12s ease;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: translateY(1px); }
.cta-arrow { font-size: 1.1rem; line-height: 1; }

.cta-note {
  margin: 10px 0 0;
  font-size: .76rem;
  color: #77828f;
  text-align: center;
}

/* ---------- posts ---------- */

.posts { padding: 28px 0 8px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.sec-head h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.sec-note {
  font-size: .74rem;
  color: var(--muted);
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.post:hover, .post:active {
  background: var(--card-hi);
  border-color: #2f3f56;
}

.post-date {
  display: block;
  font-size: .74rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.post-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 6px;
}

.post-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.75;
}

.post-more {
  display: inline-block;
  margin-top: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
}

.post-skel {
  height: 96px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hi) 37%, var(--card) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .post-skel { animation: none; }
  .cta, .post { transition: none; }
}

.all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: .88rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.all-link:hover { color: var(--text); border-color: var(--line); }

/* ---------- footer ---------- */

.foot {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  text-align: center;
}

.foot-brand {
  margin: 0 0 6px;
  font-size: .9rem;
  font-weight: 700;
}

.foot-author {
  margin: 0 0 8px;
  font-size: .8rem;
  color: var(--muted);
}

.foot-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.foot-social a {
  font-size: .78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}
.foot-social a:hover { color: var(--text); }

.foot-disclaimer {
  margin: 0 auto 10px;
  max-width: 40ch;
  font-size: .74rem;
  line-height: 1.7;
  color: #77828f;
}

.foot-copy {
  margin: 0;
  font-size: .72rem;
  color: #5f6a78;
}

/* ---------- desktop ---------- */

@media (min-width: 820px) {
  .wrap { padding: 0 28px; }
  .hero { padding: 72px 0 56px; }
  .lede { font-size: 1.08rem; }
  .cta { width: auto; min-width: 260px; }
  .posts { padding: 40px 0 8px; }
  .post { padding: 18px 20px; }
  .post-title { font-size: 1.1rem; }
  .post-excerpt { font-size: .92rem; }
  .cta-note { text-align: right; }
  .foot { margin-top: 44px; }
}
