/* ═══════════════════════════════════════════════════════════
   ग्रेव्हयार्ड — neo-brutalist, palette lifted from the cover
   navy #151B2F canvas · amber #F2941B brush · bone #F4EDE1
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy:    #151B2F;
  --navy-2:  #1E2742;
  --navy-3:  #0C1120;
  --ink:     #080B14;
  --amber:   #F2941B;
  --amber-2: #FFB347;
  --bone:    #F4EDE1;
  --bone-2:  #E4DACA;
  --crow:    #CFD6E2;
  --blood:   #C2341F;
  --green:   #1F9D55;

  --bd: 3px;
  --shadow-ink:   6px 6px 0 var(--ink);
  --shadow-amber: 6px 6px 0 var(--amber);
  --shadow-bone:  6px 6px 0 var(--bone);

  --space-1: .5rem;  --space-2: 1rem;   --space-3: 1.5rem;
  --space-4: 2rem;   --space-5: 3rem;   --space-6: 4rem;
  --wrap: 1180px;

  --display: 'Anek Devanagari', 'Noto Sans Devanagari', system-ui, sans-serif;
  --body: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bone);
  background: var(--navy);
  /* woven-canvas grain, echoing the cover stock */
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(0,0,0,.05) 0 1px, transparent 1px 3px);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

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

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--amber-2);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--ink);
  padding: .75rem 1.25rem; font-weight: 700; border: var(--bd) solid var(--ink);
}
.skip:focus { left: .5rem; top: .5rem; }

/* ── type scale ─────────────────────────────────────────── */

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: normal;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
.h2 span { color: var(--amber); -webkit-text-stroke: 1.5px var(--ink); }
.h2--light { color: var(--bone); }
.h2--light span { -webkit-text-stroke: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: normal;
  background: var(--amber);
  color: var(--ink);
  border: var(--bd) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: .3rem .85rem;
  margin: 0 0 var(--space-3);
  transform: rotate(-1.5deg);
}

/* ── ticker ─────────────────────────────────────────────── */

.ticker {
  background: var(--amber);
  color: var(--ink);
  border-bottom: var(--bd) solid var(--ink);
  overflow: hidden;
  padding: .55rem 0;
  line-height: 1.9;
  font-family: var(--display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: normal;
}
.ticker__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker__track span { padding-right: 2rem; white-space: nowrap; }
.ticker b { color: var(--navy); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── nav ────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--space-3);
  padding: .7rem clamp(1rem, 4vw, 2rem);
  background: var(--navy-3);
  border-bottom: var(--bd) solid var(--ink);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.crow { width: 38px; height: 29px; fill: var(--bone); flex: none; }
.nav__name {
  font-family: var(--display); font-weight: 800;
  font-size: 1.5rem; color: var(--amber); line-height: 1;
}
.nav__links { display: flex; gap: var(--space-3); }
.nav__links a {
  text-decoration: none; font-weight: 600; color: var(--crow);
  padding: .25rem 0; border-bottom: 3px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__links a:hover { color: var(--amber); border-bottom-color: var(--amber); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ── buttons: hard shadow + mechanical press ────────────── */

.btn {
  --sh: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 800;
  font-size: 1rem; line-height: 1;
  min-height: 46px;
  padding: .8rem 1.4rem;
  text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--amber);
  border: var(--bd) solid var(--ink);
  box-shadow: 5px 5px 0 var(--sh);
  transition: transform .12s ease, box-shadow .12s ease, background .18s ease;
}
.btn:hover { background: var(--amber-2); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--sh); }
.btn--sm { font-size: .9rem; padding: .55rem 1rem; min-height: 40px; box-shadow: 4px 4px 0 var(--sh); }
.btn--lg { font-size: 1.15rem; padding: 1rem 1.8rem; min-height: 56px; }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent; color: var(--bone);
  border-color: var(--bone); box-shadow: 5px 5px 0 var(--amber);
}
.btn--ghost:hover { background: var(--bone); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .wa { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ── hero ───────────────────────────────────────────────── */

.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 var(--space-6); position: relative; }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: var(--bd); background: var(--ink);
}
.hero__grid {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.title {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wdth' 112;
  font-size: clamp(3.5rem, 15vw, 7.5rem);
  line-height: 1.08;
  letter-spacing: normal;
  margin: 0;
  color: var(--amber);
  text-shadow: 5px 5px 0 var(--ink), 10px 10px 0 rgba(242,148,27,.18);
}
.title span { color: var(--bone); }

.tagline {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  color: var(--ink); background: var(--bone);
  display: inline-block; padding: .25rem .8rem;
  border: var(--bd) solid var(--ink);
  margin: var(--space-2) 0 var(--space-2);
  transform: rotate(-.7deg);
}
.byline { margin: 0 0 var(--space-2); color: var(--crow); font-size: 1.05rem; }
.byline strong { color: var(--bone); }
.lede { margin: 0 0 var(--space-4); max-width: 46ch; color: var(--crow); font-size: 1.1rem; }

.pricebox {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--bone); color: var(--ink);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-amber);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  width: fit-content; max-width: 100%;
}
.pricebox__amt {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: 1;
}
.pricebox .rupee { font-size: .6em; vertical-align: .22em; margin-right: .04em; }
.pricebox__meta { display: flex; flex-direction: column; line-height: 1.3; border-left: var(--bd) solid var(--ink); padding-left: var(--space-3); }
.pricebox__meta strong { font-size: 1rem; }
.pricebox__meta span { font-size: .9rem; color: #4A4335; }

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero__art { position: relative; justify-self: center; }
.bookframe {
  border: var(--bd) solid var(--ink);
  box-shadow: 14px 14px 0 var(--amber), 14px 14px 0 3px var(--ink);
  background: var(--navy-2);
  transform: rotate(1.6deg);
  max-width: 400px;
}
.bookframe img { width: 100%; }
.stamp {
  position: absolute; top: -18px; left: -22px;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--blood); color: #fff;
  border: var(--bd) solid var(--ink);
  display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: .82rem; line-height: 1.15;
  transform: rotate(-14deg);
  box-shadow: 4px 4px 0 var(--ink);
}
@media (max-width: 900px) { .stamp { left: auto; right: -10px; } }

/* ── facts strip ────────────────────────────────────────── */

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--amber); color: var(--ink);
  border-bottom: var(--bd) solid var(--ink);
}
.fact {
  padding: var(--space-3) var(--space-2); text-align: center;
  border-right: var(--bd) solid var(--ink);
}
.fact:last-child { border-right: 0; }
.fact__k { display: block; font-size: .8rem; font-weight: 700; opacity: .72; }
.fact__v { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.1rem, 3.6vw, 1.7rem); line-height: 1.2; }
@media (max-width: 620px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: var(--bd) solid var(--ink); }
}

/* ── about (bone section) ───────────────────────────────── */

.about {
  background: var(--bone); color: var(--ink);
  padding: var(--space-6) 0;
  border-bottom: var(--bd) solid var(--ink);
}
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .about__grid { grid-template-columns: 1fr; } }
.about__text p { margin: 0 0 var(--space-2); max-width: 60ch; }
.about__text .big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem); line-height: 1.45;
  border-left: 8px solid var(--amber); padding-left: var(--space-2);
  margin-bottom: var(--space-3);
}
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: var(--space-3) 0 0; }
.pills li {
  background: var(--navy); color: var(--bone);
  border: var(--bd) solid var(--ink); box-shadow: 4px 4px 0 var(--amber);
  padding: .4rem .9rem; font-weight: 600; font-size: .95rem;
}
.coverfig { margin: 0; justify-self: center; max-width: 340px; }
.coverfig picture img {
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-ink);
  transform: rotate(-2deg);
}
.coverfig figcaption {
  margin-top: var(--space-3); text-align: center;
  font-size: .85rem; font-weight: 700; opacity: .6;
}

/* ── poet (navy section) ────────────────────────────────── */

.poet { padding: var(--space-6) 0; text-align: center; border-bottom: var(--bd) solid var(--ink); }
.quote {
  margin: 0 auto var(--space-4); max-width: 34ch;
  border: var(--bd) solid var(--bone); box-shadow: var(--shadow-amber);
  padding: var(--space-3);
  transform: rotate(-1deg);
}
.quote p { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 4vw, 2rem); margin: 0; color: var(--amber); line-height: 1.3; }
.quote cite { font-style: normal; font-size: .95rem; color: var(--crow); }
.poet__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 4.5vw, 2.1rem); margin: 0 0 .4rem; }
.poet__name span { color: var(--amber); }
.poet__bio { margin: 0 auto; max-width: 56ch; color: var(--crow); }

/* ── order ──────────────────────────────────────────────── */

.order { padding: var(--space-6) 0; background: var(--navy-3); }
.order__head { text-align: center; margin-bottom: var(--space-5); }
.order__head p { margin: 0 auto; max-width: 56ch; color: var(--crow); }
.order__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--space-4); align-items: start; }
@media (max-width: 880px) { .order__grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bone); color: var(--ink);
  border: var(--bd) solid var(--ink);
  box-shadow: var(--shadow-amber);
  padding: clamp(1.25rem, 3.5vw, 2rem);
}
.card--side { background: var(--navy-2); color: var(--bone); border-color: var(--bone); }
.card--side h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0 0 var(--space-3); color: var(--amber); }

.field { margin-bottom: var(--space-3); }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2); }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem;
}
.field label i { color: var(--blood); font-style: normal; }
.field label small { font-weight: 500; opacity: .6; }

.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem;
  padding: .7rem .8rem; min-height: 46px;
  color: var(--ink); background: #fff;
  border: var(--bd) solid var(--ink); border-radius: 0;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8C8373; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--amber); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--blood); box-shadow: 4px 4px 0 var(--blood); }

.err { min-height: 0; margin: .3rem 0 0; font-size: .875rem; font-weight: 600; color: var(--blood); }
.err:empty { display: none; }
.err--form { margin-top: var(--space-2); text-align: center; }

.stepper { display: flex; width: fit-content; border: var(--bd) solid var(--ink); background: #fff; }
.stepper__btn {
  width: 48px; min-height: 46px; font-size: 1.5rem; line-height: 1;
  background: var(--bone-2); color: var(--ink); border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 800;
  transition: background .15s ease;
}
.stepper__btn:hover { background: var(--amber); }
.stepper input {
  width: 72px; text-align: center; font-weight: 700; font-size: 1.1rem;
  border: 0; border-inline: var(--bd) solid var(--ink); min-height: 46px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.total {
  background: var(--navy); color: var(--bone);
  border: var(--bd) solid var(--ink);
  padding: var(--space-2); margin: var(--space-3) 0;
}
.total__row { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; font-size: .98rem; }
.total__row .free { color: var(--green); font-weight: 700; background: #fff; padding: 0 .4rem; }
.total__row--big {
  border-top: var(--bd) solid var(--bone); margin-top: .4rem; padding-top: .6rem;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--amber);
}

.formnote { font-size: .85rem; text-align: center; margin: var(--space-2) 0 0; color: #5A5244; }

.steps { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.steps li { display: flex; gap: .8rem; align-items: flex-start; }
.steps b {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--amber); color: var(--ink); border: var(--bd) solid var(--ink);
  font-family: var(--display); font-weight: 800;
}
.steps strong { display: block; line-height: 1.3; }
.steps span { display: block; font-size: .9rem; color: var(--crow); line-height: 1.4; }
.sidecall { border-top: var(--bd) solid var(--bone); padding-top: var(--space-3); }
.sidecall > span { display: block; font-weight: 700; margin-bottom: .5rem; }

/* ── footer ─────────────────────────────────────────────── */

.foot { background: var(--ink); border-top: var(--bd) solid var(--amber); padding: var(--space-5) 0 calc(var(--space-3) + env(safe-area-inset-bottom)); }
.foot__grid { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }
.foot__title { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--amber); margin: 0; }
.foot__sub { margin: .15rem 0 0; color: var(--crow); font-size: .95rem; }
.foot__k { font-size: .85rem; font-weight: 700; color: var(--crow); margin: 0 0 .4rem; }
.foot__wa { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--bone); text-decoration: none; border-bottom: 3px solid var(--amber); }
.foot__wa:hover { color: var(--amber); }
.foot__copy { text-align: center; color: #6B7488; font-size: .85rem; margin: var(--space-4) 0 0; }

/* ── sticky mobile buy bar ──────────────────────────────── */

.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: none; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--navy-3); border-top: var(--bd) solid var(--amber);
  transform: translateY(110%); transition: transform .25s ease;
}
.stickybar.is-on { transform: translateY(0); }
.stickybar__price { line-height: 1.15; }
.stickybar__price strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--amber); }
.stickybar__price span { font-size: .78rem; color: var(--crow); }
@media (max-width: 760px) {
  .stickybar { display: flex; }
  body { padding-bottom: 78px; }
}

/* ── toast ──────────────────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  transform: translate(-50%, 160%);
  background: var(--bone); color: var(--ink);
  border: var(--bd) solid var(--ink); box-shadow: var(--shadow-amber);
  padding: .8rem 1.2rem; font-weight: 700; max-width: min(92vw, 420px);
  transition: transform .28s cubic-bezier(.2,.9,.3,1.2);
}
.toast.is-on { transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 90px; } }

/* ── scroll reveal ──────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
