@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&family=Noto+Naskh+Arabic:wght@500;600;700&display=swap");

:root {
  --ink: #1f2b1c;
  --ink-2: #31412a;
  --olive: #596143;
  --olive-soft: #7a8060;
  --brown: #563b28;
  --brown-dark: #2b1b12;
  --cream: #f5ecd8;
  --cream-2: #e7d6b7;
  --paper: #fffaf0;
  --gold: #b89a62;
  --gold-soft: #d9c49b;
  --white: #fffdf8;
  --shadow: 0 22px 60px rgba(38, 27, 16, 0.16);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: #293027;
  font-family: Vazirmatn, Arial, sans-serif;
  direction: rtl;
  line-height: 1.9;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1180px, 92vw);
  margin: auto;
}
.section {
  padding: 92px 0;
  position: relative;
}
.section-title {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.3;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-kicker {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}
.muted {
  color: #6d685f;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 30px rgba(31, 43, 28, 0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--brown);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: #fff;
  color: var(--ink);
}
.btn-cream {
  background: var(--cream);
  color: var(--ink);
}
.btn-cream:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 82px;
  display: flex;
  align-items: center;
  background: rgba(28, 38, 24, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}
.site-header.scrolled {
  background: rgba(22, 30, 19, 0.96);
  height: 70px;
}
.nav-wrap {
  width: min(1280px, 94vw);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  width: 145px;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.22));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #f6ecd8;
  font-size: 0.92rem;
}
.nav-links a {
  position: relative;
}
.nav-links a:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--gold-soft);
  transition: 0.3s;
}
.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}
.header-buy {
  font-size: 0.86rem;
  padding: 9px 16px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.35rem;
}
.drawer {
  position: fixed;
  z-index: 1100;
  top: 82px;
  right: 0;
  width: min(30vw, 360px);
  height: calc(100vh - 82px);
  padding: 30px;
  background: rgba(25, 35, 21, 0.98);
  transform: translateX(110%);
  transition: transform 0.35s ease;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.22);
}
.drawer.open {
  transform: none;
}
.drawer a {
  display: flex;
  padding: 13px 0;
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.backdrop {
  position: fixed;
  z-index: 1050;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.backdrop.show {
  opacity: 1;
  visibility: visible;
}
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 110px 0 60px;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(25, 34, 20, 0.97) 0%,
      rgba(31, 43, 28, 0.85) 47%,
      rgba(31, 43, 28, 0.2) 100%
    ),
    url("../assets/poster.webp") center/cover no-repeat;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 68% 30%,
    rgba(214, 183, 121, 0.15),
    transparent 24%
  );
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.hero-copy {
  max-width: 600px;
}
.hero h1 {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 1.05;
  margin: 0 0 16px;
  color: #f7ebd2;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.22);
}
.hero p {
  font-size: 1.05rem;
  color: #eee2cc;
  max-width: 510px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-book {
  justify-self: center;
  position: relative;
  perspective: 1000px;
}
.hero-book img {
  width: min(320px, 30vw);
  border-radius: 4px 14px 14px 4px;
  box-shadow:
    -22px 24px 0 rgba(0, 0, 0, 0.12),
    var(--shadow);
  transform: rotateY(-11deg) rotateZ(1deg);
  transition: 0.5s;
}
.hero-book:hover img {
  transform: rotateY(-3deg) rotateZ(0);
}
.hero-ornament {
  color: var(--gold-soft);
  font-size: 1.5rem;
  margin: 18px 0;
}
.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #d8c6a1;
  animation: float 2s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translate(-50%, 8px);
  }
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-visual img {
  border-radius: 0 80px 0 80px;
  box-shadow: var(--shadow);
  max-height: 620px;
  object-fit: cover;
  width: 100%;
}
.paper-card {
  background: linear-gradient(135deg, #fffdf7, #f1e4cb);
  padding: 42px;
  border: 1px solid rgba(184, 154, 98, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-feature {
  background: var(--ink);
  color: #f5ecd8;
  overflow: hidden;
}
.book-feature:before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(217, 196, 155, 0.14);
  border-radius: 50%;
  left: -180px;
  bottom: -220px;
}
.book-feature .section-title {
  color: #f7ead0;
}
.book-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 26px 0;
}
.spec {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.poem-quote {
  background: #f0e2c6;
  border-right: 4px solid var(--gold);
  padding: 26px 30px;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 1.35rem;
  border-radius: 18px;
  line-height: 2.2;
}
.skills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.skill {
  background: #fffdf8;
  border: 1px solid #e6d7bb;
  border-radius: 18px;
  padding: 24px 12px;
  text-align: center;
  transition: 0.3s;
}
.skill:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}
.skill i {
  font-size: 2rem;
  color: var(--olive);
  margin-bottom: 8px;
}
.cta {
  padding: 38px 0;
  background: var(--paper);
}
.cta-inner {
  background: linear-gradient(100deg, var(--ink), #263421);
  color: #fff;
  border-radius: 28px;
  padding: 34px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}
.cta h2 {
  margin: 0;
  font-family: "Noto Naskh Arabic", serif;
}
.site-footer {
  background: #162014;
  color: #d8d2c4;
  padding: 45px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
}
.footer-logo {
  width: 150px;
  margin-bottom: 14px;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: 0.3s;
}
.socials a:hover {
  background: var(--gold);
  color: var(--ink);
}
.copyright {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #a9aa9f;
}
.page-hero {
  padding: 150px 0 80px;
  background:
    linear-gradient(120deg, rgba(24, 33, 20, 0.97), rgba(66, 55, 34, 0.78)),
    url("../assets/poster.webp") center/cover;
  color: #fff;
}
.page-hero h1 {
  font-family: "Noto Naskh Arabic", serif;
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin: 0;
}
.page-hero p {
  color: #eadcc1;
  max-width: 650px;
}
.prose {
  font-size: 1rem;
}
.prose p {
  margin: 0 0 18px;
}
.timeline {
  position: relative;
  padding-right: 28px;
}
.timeline:before {
  content: "";
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold);
}
.timeline-item {
  position: relative;
  padding: 0 24px 28px 0;
}
.timeline-item:before {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--olive);
  border: 3px solid var(--cream-2);
}
.book-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.sticky-cover {
  position: sticky;
  top: 105px;
}
.sticky-cover img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.buy-box {
  margin-top: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eadbc0;
  border-radius: 18px;
}
.note {
  font-size: 0.82rem;
  color: #777;
  margin-top: 12px;
}
.poems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.poem-card {
  background: #fffdf7;
  border: 1px solid #e6d7bc;
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  transition: 0.35s;
}
.poem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.poem-card:before {
  content: "“";
  position: absolute;
  left: 18px;
  top: -30px;
  font-family: serif;
  font-size: 9rem;
  color: rgba(184, 154, 98, 0.14);
}
.poem-card h2 {
  font-family: "Noto Naskh Arabic", serif;
  color: var(--brown);
  font-size: 1.8rem;
  margin: 0 0 10px;
}
.poem-card p {
  white-space: pre-line;
  position: relative;
  z-index: 1;
  color: #4e5048;
  line-height: 2.1;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.to-top {
  position: fixed;
  z-index: 900;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 850px) {
  .site-header {
    height: 72px;
  }
  .nav-wrap {
    width: 92vw;
  }
  .brand {
    width: 120px;
  }
  .nav-links,
  .header-buy {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .drawer {
    top: 72px;
    height: calc(100vh - 72px);
    width: min(88vw, 360px);
  }
  .hero {
    padding-top: 100px;
    background-position: 35% center;
  }
  .hero-grid,
  .split,
  .book-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero-copy {
    order: 1;
  }
  .hero-book {
    order: 2;
  }
  .hero-book img {
    width: min(290px, 70vw);
  }
  .section {
    padding: 70px 0;
  }
  .skills {
    grid-template-columns: repeat(2, 1fr);
  }
  .poems-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-inner {
    padding: 30px;
    display: block;
  }
  .cta-inner .btn {
    margin-top: 16px;
  }
  .sticky-cover {
    position: static;
    max-width: 340px;
    margin: auto;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .paper-card {
    padding: 28px;
  }
  .book-specs {
    grid-template-columns: 1fr;
  }
  .skills {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
}
