@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #0b0c0f;
  --ink-soft: #111319;
  --panel: #15171e;
  --panel-light: #1b1d24;
  --gold: #c9a663;
  --gold-bright: #e0c17f;
  --gold-dim: #8b7142;
  --paper: #f0e8d8;
  --muted: #b4ad9e;
  --line: rgba(201, 166, 99, 0.24);
  --font-ar: "Amiri", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-family: var(--font-ar);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 8% 18%, rgba(118, 83, 37, 0.15), transparent 29rem),
    radial-gradient(ellipse at 92% 67%, rgba(63, 74, 95, 0.12), transparent 34rem),
    linear-gradient(180deg, #0b0c0f 0%, #101116 52%, #0b0c0f 100%);
  font-family: var(--font-ar);
  line-height: 1.85;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image: repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,.025) 29px, transparent 30px 58px);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; }
.page-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  padding: 8px 14px;
  transform: translateY(-150%);
  color: var(--ink);
  background: var(--gold-bright);
  border-radius: 6px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-seal { display: grid; width: 42px; height: 42px; place-items: center; color: var(--gold); }
.brand-seal svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.15; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.brand-copy strong { color: var(--paper); font-size: 1.03rem; font-weight: 700; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: .68rem; letter-spacing: .07em; }
.header-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.header-nav a { color: #d7d0c3; font-size: .87rem; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.header-nav a:hover { color: var(--gold-bright); }
.header-nav .nav-download { padding: 8px 17px; color: var(--gold-bright); border: 1px solid var(--gold-dim); border-radius: 999px; }
.header-nav .nav-download:hover { color: var(--ink); background: var(--gold-bright); border-color: var(--gold-bright); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  align-items: center;
  gap: clamp(42px, 8vw, 112px);
  padding-block: clamp(54px, 9vw, 104px) 76px;
}
.hero::before {
  position: absolute;
  top: 14%;
  right: 38%;
  width: min(44vw, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 166, 99, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.hero::after {
  position: absolute;
  top: 21%;
  right: 41%;
  width: min(35vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 166, 99, .06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 630px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: var(--gold);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .055em;
}
.eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--gold-dim); }
.eyebrow-dot { color: var(--gold-bright); font-size: .82rem; }
h1, h2, p, figure { margin-top: 0; }
h1 {
  margin-bottom: 4px;
  color: #f4ecdc;
  font-size: clamp(3.25rem, 7vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.23;
  text-shadow: 0 5px 32px rgba(0,0,0,.45);
}
h1 span { color: var(--gold-bright); }
.hero-tagline { margin: 0 0 25px; color: #cdb783; font-size: clamp(1.13rem, 2.2vw, 1.55rem); }
.hero-description { max-width: 56ch; margin-bottom: 22px; color: #c9c3b8; font-size: 1.04rem; line-height: 2.05; }
.story-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 27px; }
.story-tags span { padding: 4px 12px; color: #d5c6a8; background: rgba(201,166,99,.07); border: 1px solid rgba(201,166,99,.2); border-radius: 999px; font-size: .75rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 11px 21px;
  text-decoration: none;
  font-size: .96rem;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.button-primary { color: #20190e; background: linear-gradient(135deg, #e4ca8b, #bd9652); border: 1px solid #e2c784; border-radius: 5px; box-shadow: 0 8px 28px rgba(175, 134, 63, .17); }
.button-primary:hover { background: linear-gradient(135deg, #f0d99e, #caa260); box-shadow: 0 11px 34px rgba(175, 134, 63, .26); }
.button svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button small { padding-inline-start: 10px; border-inline-start: 1px solid rgba(32,25,14,.35); font-family: Arial, sans-serif; font-size: .72rem; letter-spacing: .05em; }
.text-link { color: #d9ceb8; font-size: .9rem; text-decoration: none; }
.text-link span { display: inline-block; margin-inline-start: 4px; color: var(--gold); transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }
.download-note { margin: 11px 0 0; color: #9b958a; font-size: .75rem; }

.cover-frame { position: relative; z-index: 1; width: min(100%, 370px); justify-self: center; margin: 0; text-align: center; }
.cover-glow { position: absolute; inset: 8% -10% 16%; z-index: -1; background: radial-gradient(ellipse, rgba(193,145,66,.27), transparent 67%); filter: blur(28px); }
.cover-image { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid rgba(217,181,110,.57); box-shadow: 0 28px 76px rgba(0,0,0,.58), 0 0 0 7px rgba(201,166,99,.035); }
.cover-frame figcaption { margin-top: 12px; color: #a9a295; font-size: .72rem; letter-spacing: .03em; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 17px; width: min(460px, 60%); }
.ornament span { height: 1px; flex: 1; background: linear-gradient(to left, transparent, var(--gold-dim), transparent); }
.ornament b { color: var(--gold); font-size: .8rem; font-weight: 400; }
.details-section { padding-block: 62px 58px; }
.section-heading { margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 6px; }
h2 { margin-bottom: 0; color: #eee5d4; font-size: clamp(1.65rem, 3.5vw, 2.35rem); line-height: 1.5; }
.details-grid { display: grid; grid-template-columns: minmax(230px, .74fr) minmax(0, 1.26fr); gap: clamp(32px, 7vw, 90px); align-items: start; }
.details-lead { margin: 0; padding-inline-start: 20px; color: #e0d4bd; border-inline-start: 2px solid var(--gold-dim); font-size: 1.16rem; line-height: 2.05; }
.details-body { color: #bdb7ab; font-size: .96rem; line-height: 2; }
.details-body p { margin-bottom: 13px; }
.details-body strong { color: var(--gold-bright); font-weight: 700; }
.book-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 38px; border: 1px solid var(--line); background: var(--line); }
.book-facts > div { display: flex; align-items: center; gap: 13px; min-height: 83px; padding: 14px 20px; background: rgba(15,16,21,.94); }
.fact-icon { color: var(--gold); font-size: 1.35rem; }
.book-facts div span:last-child { display: grid; line-height: 1.5; }
.book-facts small { color: #928c80; font-size: .72rem; }
.book-facts strong { color: #e6ddcd; font-size: .92rem; font-weight: 600; }

.author-section { padding-block: 30px 78px; }
.author-card { position: relative; display: flex; align-items: center; gap: clamp(24px, 5vw, 60px); padding: clamp(26px, 5vw, 54px); overflow: hidden; background: linear-gradient(115deg, rgba(21,23,30,.94), rgba(18,19,24,.76)); border: 1px solid var(--line); }
.author-card::before { position: absolute; top: -75px; left: 4%; width: 230px; height: 230px; border: 1px solid rgba(201,166,99,.09); border-radius: 50%; content: ""; }
.author-monogram { position: relative; display: flex; flex: 0 0 112px; align-items: center; justify-content: center; width: 112px; height: 112px; color: var(--gold-bright); border: 1px solid var(--gold-dim); border-radius: 50%; background: radial-gradient(circle, rgba(201,166,99,.11), transparent 68%); font-size: 2.5rem; }
.author-monogram::before, .author-monogram::after { position: absolute; inset: 7px; border: 1px solid rgba(201,166,99,.22); border-radius: 50%; content: ""; }
.author-monogram::after { inset: -6px; border-style: dashed; opacity: .45; }
.author-monogram span { transform: translateX(4px); }
.author-monogram i { margin-top: 14px; margin-inline-start: -4px; font-size: 1.5rem; font-style: normal; }
.author-copy { position: relative; max-width: 680px; }
.author-copy .eyebrow { margin-bottom: 4px; }
.author-copy h2 { margin-bottom: 8px; }
.author-copy p:last-child { margin-bottom: 0; color: #bdb7ab; font-size: .96rem; line-height: 2; }
.author-copy strong { color: var(--gold-bright); }
.author-star { align-self: flex-start; margin-inline-start: auto; color: rgba(201,166,99,.56); font-size: 1.15rem; }

.closing-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 270px; margin-bottom: 72px; padding: 42px 20px; text-align: center; background: radial-gradient(ellipse at center, rgba(166,127,60,.11), transparent 68%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing-cta .eyebrow { margin-bottom: 2px; }
.closing-cta h2 { margin-bottom: 19px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; color: #999286; border-top: 1px solid var(--line); font-size: .78rem; }
.site-footer p { margin: 0; }
.footer-brand { color: #dfd3bc; font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-top { color: #c8b88f; text-decoration: none; }
.back-top:hover { color: var(--gold-bright); }

@media (max-width: 780px) {
  .site-header { width: min(100% - 36px, 620px); min-height: 72px; }
  .brand-seal { width: 36px; height: 36px; }
  .header-nav { gap: 15px; }
  .header-nav a { font-size: .78rem; }
  .header-nav .nav-download { padding: 6px 12px; }
  .page-shell { width: min(100% - 38px, 620px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(220px, .76fr); gap: 28px; padding-block: 58px 52px; }
  .hero-description { font-size: .96rem; }
  .cover-frame { width: min(100%, 300px); }
  .details-grid { gap: 30px; }
  .book-facts > div { padding-inline: 13px; }
}

@media (max-width: 620px) {
  .site-header { align-items: center; width: calc(100% - 30px); min-height: 68px; }
  .brand { gap: 8px; }
  .brand-seal { width: 31px; height: 31px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy small { font-size: .6rem; }
  .header-nav { gap: 11px; }
  .header-nav a { font-size: .72rem; }
  .header-nav a:first-child { display: none; }
  .header-nav .nav-download { padding: 5px 10px; }
  .page-shell { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 38px 42px; }
  .hero-art, .cover-frame { grid-row: 1; }
  .hero-copy { grid-row: 2; }
  .cover-frame { width: min(72%, 290px); }
  .cover-frame figcaption { margin-top: 8px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions { justify-content: center; }
  .hero-description { margin-inline: auto; }
  .story-tags { justify-content: center; }
  .hero::before { top: 1%; right: 15%; width: 70vw; }
  .hero::after { top: 4%; right: 20%; width: 58vw; }
  h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-tagline { margin-bottom: 17px; }
  .hero-actions { gap: 16px; }
  .details-section { padding-block: 46px 38px; }
  .details-grid { grid-template-columns: 1fr; gap: 22px; }
  .details-lead { font-size: 1.08rem; }
  .book-facts { grid-template-columns: 1fr; }
  .book-facts > div { min-height: 66px; padding-inline: 17px; }
  .author-section { padding-block: 24px 54px; }
  .author-card { flex-direction: column; align-items: flex-start; gap: 23px; padding: 27px 22px; }
  .author-monogram { width: 86px; height: 86px; flex-basis: 86px; font-size: 2rem; }
  .author-monogram i { font-size: 1.25rem; }
  .author-star { position: absolute; top: 26px; left: 22px; }
  .closing-cta { min-height: 230px; margin-bottom: 48px; }
  .site-footer { flex-wrap: wrap; justify-content: center; min-height: 110px; padding-block: 18px; text-align: center; }
  .site-footer > * { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
