@font-face {
  font-family: "Noto Arabic";
  src: url("fonts/prophets-stories/noto-sans-arabic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("fonts/prophets-stories/amiri.ttf") format("truetype");
  font-display: swap;
}

:root {
  --forest: #183e35;
  --forest-deep: #102f2a;
  --moss: #55745b;
  --parchment: #f5eddc;
  --paper: #fffaf0;
  --ink: #24352e;
  --muted: #6d7668;
  --line: rgba(35, 65, 48, 0.15);
  --gold: #c58d43;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--parchment);
  font-family: "Noto Arabic", system-ui, sans-serif;
}

.story-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.story-header { max-width: 720px; margin-bottom: 44px; }

.back-link,
.story-cta {
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.back-link { display: inline-block; margin-bottom: 48px; font-size: .9rem; }
.back-link:hover, .back-link:focus-visible, .story-cta:hover, .story-cta:focus-visible { color: var(--gold); }

.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .85rem; font-weight: 800; }
h1, h2 { font-family: "Amiri", serif; font-weight: 400; }
h1 { margin: 0; color: var(--forest-deep); font-size: clamp(3rem, 8vw, 6.7rem); line-height: .95; }
.intro { margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }

.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.story-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 18px 42px rgba(37, 56, 39, .1); }
.story-art { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--moss); }
.story-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.story-art:hover img, .story-art:focus-visible img { transform: scale(1.04); }
.story-card-body { padding: 20px 20px 22px; }
.story-number { margin: 0 0 10px; color: var(--gold); font-family: system-ui, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .12em; direction: ltr; }
h2 { min-height: 3.2em; margin: 0; color: var(--forest); font-size: 1.55rem; line-height: 1.25; }
.story-card-body > p:not(.story-number) { min-height: 4.5em; margin: 13px 0 20px; color: var(--muted); font-size: .91rem; line-height: 1.9; }
.story-cta { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; }
.story-cta span { font-family: system-ui, sans-serif; font-size: 1.15rem; }

@media (max-width: 980px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .story-shell { width: min(100% - 24px, 420px); padding-top: 18px; }
  .back-link { margin-bottom: 34px; }
  .story-header { margin-bottom: 30px; }
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .story-card-body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) { .story-art img { transition: none; } }
