/* خيط - صفحات الموقع (الرئيسية، القصص، عن، الخصوصية). من غير خطوط خارجية عشان السرعة. */
:root {
  --petrol-950: #08171b;
  --petrol-900: #0d2227;
  --petrol-800: #14333a;
  --petrol-600: #2c5660;
  --mist: #9db4b3;
  --text: #e9eeec;
  --paper: #e6dcc4;
  --ink: #2a2118;
  --thread: #d23c2f;
  --lamp: #e7a63a;
  --radius: 10px;
  --font-display: "Amiri", "Noto Naskh Arabic", "Scheherazade New", "Traditional Arabic", "Geeza Pro", "Times New Roman", serif;
  --font-body: "Segoe UI", "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, "Geeza Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--petrol-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--lamp); text-underline-offset: 0.25em; }
a:hover { color: #f3c163; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--lamp); color: var(--ink); padding: 0.5rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }

/* ----- الهيدر ----- */
.site-header { border-bottom: 1px solid var(--petrol-800); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.brand { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); text-decoration: none; line-height: 1; position: relative; padding-bottom: 0.35rem; }
.brand::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--thread); border-radius: 2px; }
.brand:hover { color: var(--text); }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.95rem; }
.site-nav a { color: var(--mist); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* ----- الأزرار ----- */
.btn { display: inline-block; background: var(--thread); color: #fff; font: inherit; font-weight: 700; padding: 0.8rem 1.6rem; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; min-height: 48px; }
.btn:hover { background: #e24a3c; color: #fff; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--petrol-600); }
.btn.ghost:hover { background: var(--petrol-800); color: var(--text); }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ----- الهيرو ----- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.35; margin: 0 0 1rem; font-weight: 700; text-wrap: balance; }
.lede { color: var(--mist); font-size: 1.15rem; max-width: 34rem; margin: 0; }

.board { width: 100%; height: auto; max-width: 28rem; margin-inline: auto; }
.board .card { fill: var(--paper); }
.board .pin { fill: var(--lamp); }
.board .big { font-family: var(--font-display); font-size: 32px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.board .small { font-family: var(--font-body); font-size: 15px; fill: #5a4a38; text-anchor: middle; }
.board .thread { fill: none; stroke: var(--thread); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s 0.4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ----- أقسام ----- */
section { padding-block: clamp(2rem, 5vw, 3.5rem); }
h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 1.25rem; line-height: 1.4; }
h3 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.4rem; line-height: 1.5; }
.band { background: var(--petrol-950); }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1.5rem; max-width: 44rem; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 3.4rem; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0.1rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--thread); color: #fff; font-weight: 700; }
.steps p { margin: 0; color: var(--mist); }

.case { display: grid; gap: 1.5rem; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); border-inline-start: 8px solid var(--thread); }
@media (min-width: 46rem) { .case { grid-template-columns: 1fr auto; align-items: center; } }
.case h3 { color: var(--ink); font-size: 1.8rem; }
.case p { margin: 0 0 0.75rem; }
.case a { color: var(--ink); font-weight: 700; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0; font-size: 0.95rem; }
.facts dt { color: #6b5a44; }
.facts dd { margin: 0; font-weight: 700; }
.soon { color: var(--mist); margin-top: 1.25rem; }
.hero .facts { align-self: start; }

details { border-bottom: 1px solid var(--petrol-800); padding-block: 0.9rem; max-width: 46rem; }
summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
details p { margin: 0.6rem 0 0; color: var(--mist); }

.crumbs { font-size: 0.9rem; color: var(--mist); padding-block: 1rem 0; }
.crumbs ol { list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0; flex-wrap: wrap; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 0.5rem; }
.crumbs a { color: var(--mist); }

.site-footer { border-top: 1px solid var(--petrol-800); padding-block: 2rem; color: var(--mist); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--mist); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board .thread { animation: none; stroke-dashoffset: 0; }
}
