:root {
  --night-ink: #0d141d;
  --midnight-slate: #17212d;
  --deep-harbor: #101b28;
  --lamp-parchment: #f1e7d0;
  --brass-glow: #c9a24a;
  --dusty-mist: #a9b4c4;
  --shelf-line: rgba(241, 231, 208, 0.14);
  --cover-radius: 3px;
  --soft-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --font-heading: "Noto Nastaliq Urdu", serif;
  --font-text: "Noto Sans Arabic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--night-ink);
  color: var(--lamp-parchment);
  font-family: var(--font-text);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.8;
  margin: 0 0 0.6em;
  color: var(--lamp-parchment);
}

p {
  margin: 0 0 1.1em;
  max-width: 38rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--brass-glow);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.reader-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 78% 35%, rgba(201, 162, 74, 0.2), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(169, 180, 196, 0.08), transparent 40%),
    var(--night-ink);
}

.reader-hero__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.reader-hero__kicker {
  color: var(--brass-glow);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.reader-hero__title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.reader-hero__subtitle {
  color: var(--dusty-mist);
  margin-bottom: 2rem;
}

.reader-hero__visual {
  position: relative;
  padding-bottom: 2rem;
}

.reader-hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--cover-radius);
  box-shadow: var(--soft-shadow);
}

.reader-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 1rem 2.2rem;
  background: var(--brass-glow);
  color: var(--night-ink);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s ease;
}

.reader-cta:hover {
  background: var(--lamp-parchment);
}

/* ---------- Book cover (pure CSS) ---------- */

.cover-book {
  position: relative;
  display: flex;
  width: min(62vw, 270px);
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #22406a 0%, #112238 60%, #0a1420 100%);
  border-radius: var(--cover-radius);
  box-shadow: var(--soft-shadow), inset 0 0 0 1px rgba(201, 162, 74, 0.5);
}

.reader-hero__visual .cover-book {
  position: absolute;
  inset-inline-start: -1.25rem;
  bottom: 0;
  width: min(48%, 230px);
}

.cover-spine {
  width: 9%;
  background: linear-gradient(90deg, #070d15, #1d2f47);
  border-radius: 3px 0 0 3px;
  box-shadow: inset -2px 0 0 rgba(201, 162, 74, 0.45);
}

.cover-face {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem;
  text-align: center;
}

.cover-kicker {
  font-size: 0.95rem;
  color: var(--brass-glow);
}

.cover-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.8;
  color: var(--lamp-parchment);
}

.cover-author {
  font-size: 1rem;
  color: var(--brass-glow);
  border-top: 1px solid var(--brass-glow);
  padding-top: 0.6rem;
}

.cover-book--small {
  width: min(56%, 200px);
  margin-top: 2rem;
}

/* ---------- Screen 2 ---------- */

.shelf-about {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--deep-harbor);
  border-top: 1px solid var(--shelf-line);
}

.shelf-about__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.shelf-about__media {
  position: relative;
  padding-bottom: 2.5rem;
}

.shelf-about__main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--cover-radius);
  box-shadow: var(--soft-shadow);
}

.shelf-about__small {
  position: absolute;
  width: 42%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  bottom: 0;
  inset-inline-end: -0.75rem;
  border: 6px solid var(--deep-harbor);
  border-radius: var(--cover-radius);
}

.shelf-about__title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
}

.shelf-about__subtitle {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--brass-glow);
  margin-top: 1.6rem;
}

.shelf-about__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 38rem;
  border-top: 1px solid var(--shelf-line);
}

.shelf-about__list li {
  padding: 1rem 0 1rem 1rem;
  border-bottom: 1px solid var(--shelf-line);
  border-inline-start: 3px solid var(--brass-glow);
  padding-inline-start: 1rem;
}

/* ---------- Screen 3 ---------- */

.chapter-band {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 162, 74, 0.12), transparent 40%),
    var(--night-ink);
}

.chapter-band__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.chapter-band__title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
}

.chapter-band__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  max-width: 38rem;
}

.chapter-band__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--shelf-line);
}

.chapter-band__list h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.2em;
}

.chapter-band__list p {
  margin: 0;
  color: var(--dusty-mist);
}

.chapter-band__num {
  flex: 0 0 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brass-glow);
  border-radius: 2px;
  color: var(--brass-glow);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.chapter-band__quote {
  margin: 0;
  max-width: 38rem;
  padding: 1.75rem 2rem;
  background: var(--midnight-slate);
  border-inline-start: 3px solid var(--brass-glow);
}

.chapter-band__quote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.9;
  color: var(--lamp-parchment);
}

.chapter-band__media {
  display: grid;
  gap: 1rem;
}

.chapter-band__main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--cover-radius);
  box-shadow: var(--soft-shadow);
}

.chapter-band__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.chapter-band__pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--cover-radius);
}

/* ---------- Screen 4: order ---------- */

.order-desk {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--deep-harbor);
  border-top: 1px solid var(--shelf-line);
}

.order-desk__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: start;
}

.order-desk__title {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
}

.order-desk__form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--midnight-slate);
  border-radius: var(--cover-radius);
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--shelf-line);
}

.order-desk__form label {
  font-size: 1.1rem;
  color: var(--dusty-mist);
}

.order-desk__form input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-text);
  font-size: 1.125rem;
  color: var(--lamp-parchment);
  background: var(--night-ink);
  border: 1px solid rgba(241, 231, 208, 0.25);
  border-radius: 2px;
}

.order-desk__form input::placeholder {
  color: #66768c;
}

.order-desk__submit {
  min-height: 3.5rem;
  margin-top: 0.8rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-text);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--night-ink);
  background: var(--brass-glow);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.order-desk__submit:hover {
  background: var(--lamp-parchment);
}

.order-desk__consent {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--dusty-mist);
  margin: 0.6rem 0 0;
}

.order-desk__consent a,
.reader-footer a {
  color: var(--brass-glow);
}

/* ---------- Footer ---------- */

.reader-footer {
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--shelf-line);
  text-align: center;
  font-size: 0.95rem;
  color: var(--dusty-mist);
  background: var(--night-ink);
}

.reader-footer p {
  margin: 0.4rem auto;
  max-width: 46rem;
}

.reader-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.reader-footer__note {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- Legal pages ---------- */

.legal-page {
  min-height: 100svh;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem);
  background: var(--night-ink);
}

.legal-page__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-page__intro {
  color: var(--dusty-mist);
}

.legal-page__section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--shelf-line);
}

.legal-page__section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--brass-glow);
}

.legal-page__section p {
  margin: 0;
}

.legal-page__back {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--brass-glow);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-glow);
  padding-bottom: 0.2rem;
}

.legal-page__back:hover {
  color: var(--lamp-parchment);
  border-color: var(--lamp-parchment);
}

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  .reader-hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .shelf-about__inner,
  .chapter-band__inner {
    grid-template-columns: 1fr 1fr;
  }

  .shelf-about__media {
    order: 2;
  }

  .shelf-about__text {
    order: 1;
  }

  .chapter-band__media {
    order: -1;
  }

  .order-desk__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 359px) {
  .reader-cta {
    width: 100%;
    padding-inline: 1rem;
  }
}