:root {
  --pine-deep: #1f3a2e;
  --moss-leaf: #4f6d4a;
  --linen-paper: #f4eddc;
  --sand-warm: #e6d7b5;
  --clay-glow: #b9793f;
  --ink-soft: #26332b;
  --font-head: "Noto Serif Devanagari", "Lora", serif;
  --font-text: "Noto Sans Devanagari", "Mulish", sans-serif;
  --radius-soft: 16px;
  --arch-radius: 999px 999px 0 0;
  --shadow-warm: 0 24px 48px -22px rgba(31, 58, 46, 0.45);
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-text);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  background-color: var(--linen-paper);
  background-image: radial-gradient(rgba(31, 58, 46, 0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}

main {
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--pine-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
}

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

a {
  color: var(--moss-leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--clay-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Screen 1: hero ---------- */

.reader-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(79, 109, 74, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(230, 215, 181, 0.9), transparent 50%),
    var(--linen-paper);
}

.reader-hero-copy {
  max-width: 38rem;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--moss-leaf);
  border-top: 1px solid var(--moss-leaf);
  padding-top: 0.6rem;
  margin-bottom: 1.2rem;
}

.reader-hero-sub {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.hero-cover-row {
  margin: 2rem 0;
}

.reader-hero-media {
  margin: 0;
  width: 100%;
}

.arch-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--arch-radius);
  overflow: hidden;
  background: var(--sand-warm);
  box-shadow: var(--shadow-warm);
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reader-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-text);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--linen-paper);
  background: var(--pine-deep);
  border-radius: var(--radius-soft);
  text-decoration: none;
  box-shadow: 0 14px 24px -12px rgba(31, 58, 46, 0.7);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.reader-cta:hover {
  background: var(--moss-leaf);
  transform: translateY(-2px);
}

.reader-cta:focus-visible {
  outline: 3px solid var(--clay-glow);
  outline-offset: 4px;
}

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

.spine-cover {
  position: relative;
  width: min(16rem, 70vw);
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.2rem 1.4rem 1.4rem 2.2rem;
  border-radius: 4px 14px 14px 4px;
  color: var(--linen-paper);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    linear-gradient(170deg, #2e5242 0%, var(--pine-deep) 55%, #142821 100%);
  box-shadow: 0 30px 50px -20px rgba(20, 35, 28, 0.65), inset 6px 0 0 var(--clay-glow);
}

.spine-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.08));
}

.spine-cover::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(244, 237, 220, 0.35);
  border-radius: 8px 10px 10px 4px;
  pointer-events: none;
}

.spine-cover-kicker,
.spine-cover-sub {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.spine-cover-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
}

.spine-cover-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand-warm);
}

.spine-cover--small {
  width: min(11rem, 60vw);
  margin-bottom: 1.5rem;
}

.spine-cover--small .spine-cover-title {
  font-size: 1.2rem;
}

/* ---------- Screens 2 and 3 ---------- */

.problem-band,
.chapter-band {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem;
}

.problem-band {
  background:
    radial-gradient(circle at 90% 80%, rgba(79, 109, 74, 0.14), transparent 45%),
    var(--sand-warm);
}

.chapter-band {
  background:
    radial-gradient(circle at 10% 20%, rgba(185, 121, 63, 0.18), transparent 40%),
    var(--linen-paper);
}

.problem-visual,
.chapter-visual {
  margin: 0;
}

.problem-copy,
.chapter-copy {
  max-width: 38rem;
}

.problem-list {
  padding-left: 1.4rem;
  margin: 0 0 1.5rem;
}

.problem-list li {
  margin-bottom: 0.9rem;
  padding-left: 0.3rem;
  font-weight: 600;
  color: var(--pine-deep);
}

.problem-list li::marker {
  color: var(--clay-glow);
  font-family: var(--font-head);
}

.problem-quote {
  margin: 2rem 0 0;
  padding: 1.6rem 1.8rem;
  border-left: 4px solid var(--clay-glow);
  background: rgba(244, 237, 220, 0.6);
  border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
}

.problem-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--pine-deep);
  margin-bottom: 0.6rem;
}

.problem-quote cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--moss-leaf);
}

.chapter-list {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.chapter-item {
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(31, 58, 46, 0.18);
  border-radius: var(--radius-soft);
}

.chapter-item h3 {
  margin-bottom: 0.4rem;
}

.chapter-item p {
  margin: 0;
}

.features-strip {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(31, 58, 46, 0.25);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.features-list li {
  position: relative;
  padding-left: 1.6rem;
}

.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50% 0 50% 0;
  background: var(--moss-leaf);
}

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

.order-band {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem;
  background:
    radial-gradient(circle at 15% 15%, rgba(79, 109, 74, 0.16), transparent 45%),
    var(--linen-paper);
}

.order-info {
  max-width: 38rem;
}

.order-lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
}

.order-note {
  font-size: 0.95rem;
  color: var(--moss-leaf);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  width: 100%;
  max-width: 34rem;
  padding: 2rem 1.6rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(31, 58, 46, 0.2);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-warm);
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-field label {
  font-weight: 600;
  color: var(--pine-deep);
}

.order-field input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-text);
  font-size: 1.125rem;
  color: var(--ink-soft);
  background: #fffdf7;
  border: 2px solid var(--moss-leaf);
  border-radius: 14px;
}

.order-field input::placeholder {
  color: #7a8478;
  opacity: 1;
}

.order-field input:focus-visible {
  outline: 3px solid var(--clay-glow);
  outline-offset: 2px;
  border-color: var(--pine-deep);
}

.order-submit {
  min-height: 3.5rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-text);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--linen-paper);
  background: var(--pine-deep);
  border: none;
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.order-submit:hover {
  background: var(--moss-leaf);
}

.order-submit:focus-visible {
  outline: 3px solid var(--clay-glow);
  outline-offset: 3px;
}

.consent-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

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

.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  background: var(--pine-deep);
  color: var(--sand-warm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2rem;
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: var(--linen-paper);
  font-size: 1rem;
}

.site-footer p {
  max-width: 40rem;
  margin: 0.4rem auto;
  font-size: 0.95rem;
}

.footer-copy {
  font-weight: 600;
  color: var(--linen-paper);
}

.footer-disclaimer {
  opacity: 0.85;
}

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

.legal-page {
  min-height: 100svh;
  background-color: var(--linen-paper);
  background-image: radial-gradient(rgba(31, 58, 46, 0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}

.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--pine-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--clay-glow);
}

.legal-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--clay-glow);
}

.legal-section {
  padding-top: 1.6rem;
  margin-top: 1.6rem;
  border-top: 1px solid rgba(31, 58, 46, 0.2);
}

.legal-section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 600;
}

.legal-section p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.legal-section:first-of-type {
  margin-top: 2rem;
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .reader-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem 6vw;
  }

  .reader-hero-copy {
    flex: 1 1 50%;
  }

  .reader-hero-media {
    flex: 0 1 40%;
    max-width: 34rem;
  }

  .problem-band,
  .chapter-band,
  .order-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 4rem 6vw;
  }

  .problem-visual,
  .chapter-visual {
    flex: 0 1 42%;
    max-width: 32rem;
  }

  .problem-copy,
  .chapter-copy {
    flex: 1 1 50%;
  }

  .chapter-band .chapter-visual {
    order: 2;
  }

  .order-band {
    justify-content: space-around;
  }

  .order-info {
    flex: 0 1 40%;
  }

  .order-form {
    flex: 0 1 42%;
  }
}

@media (min-width: 1400px) {
  .reader-hero-media {
    max-width: 40rem;
  }

  .problem-visual,
  .chapter-visual {
    max-width: 38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-cta,
  .order-submit {
    transition: none;
  }
}