/* =========================================================
   mustreadebooks.com — landing page styles
   Brand palette: terracotta · cream (matches the logo).
   Theme tokens live in :root — tweak these to rebrand.
   ========================================================= */
:root {
  /* --- brand palette (from the logo) --- */
  --terracotta:      #C15B3C;
  --terracotta-deep: #9E4227;
  --terracotta-lite: #E08A5B;
  --cream:           #F4EEE1;
  --gold:            #D9942B;

  --accent:      #A8482B;  /* deep terracotta — solid UI accent, readable on cream */

  --btn:       linear-gradient(125deg, #C15B3C 0%, #A8482B 58%, #8C3A22 100%); /* buttons — white text stays readable */
  --grad:      linear-gradient(120deg, #C15B3C 0%, #D9764A 55%, #E8A06A 100%); /* decorative (brand mark, accents) */
  --grad-text: linear-gradient(115deg, #A8482B 0%, #C15B3C 45%, #C77A20 100%); /* headline highlight: terracotta → warm gold */

  --bg:        #f6f1e7;
  --bg-elev:   #fffdf8;
  --bg-alt:    #efe7d6;
  --text:      #2a2018;
  --text-soft: #6a5c4e;
  --border:    #e7ddca;
  --shadow:    0 24px 60px -24px rgba(80, 45, 25, 0.32);
  --ring:      rgba(193, 91, 60, 0.40);

  --maxw: 1120px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #1b150e;
    --bg-elev:   #262019;
    --bg-alt:    #201a12;
    --text:      #f3ecdf;
    --text-soft: #b6a794;
    --border:    rgba(255, 255, 255, 0.09);
    --shadow:    0 30px 70px -28px rgba(0, 0, 0, 0.8);
    --ring:      rgba(224, 138, 91, 0.5);
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Hind Siliguri", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Latin glyphs render in Sora; Bangla glyphs fall through to Anek Bangla */
h1, h2, h3, .brand__text { font-family: "Sora", "Anek Bangla", "Inter", sans-serif; line-height: 1.28; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: #E79A6A; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: var(--btn-pad);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 20px; height: 20px; }

.btn--primary {
  background: var(--btn);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(168, 72, 43, 0.5);
}
.btn--primary:hover { box-shadow: 0 18px 34px -10px rgba(168, 72, 43, 0.6); }

.btn--ghost {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); }

.btn--lg { --btn-pad: 16px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn--sm { --btn-pad: 9px 16px; font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__text { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__dot { color: var(--accent); }
@media (prefers-color-scheme: dark) { .brand__dot { color: #E79A6A; } }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 4px 12px -3px rgba(168, 72, 43, 0.5);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 7px 6px;
  background:
    linear-gradient(#fdf6ea, #fdf6ea) 0 15% / 100% 2.4px no-repeat,
    linear-gradient(#fdf6ea, #fdf6ea) 0 50% / 100% 2.4px no-repeat,
    linear-gradient(#fdf6ea, #fdf6ea) 0 85% / 66% 2.4px no-repeat;
  border-radius: 1px;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 0.95rem; color: var(--text-soft); font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero__glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(193, 91, 60, 0.22), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 56px;
}
.hero__title { font-size: clamp(2rem, 7vw, 3.7rem); font-weight: 800; margin-bottom: 22px; overflow-wrap: break-word; }
.hero__lead { font-size: 1.14rem; color: var(--text-soft); max-width: 40ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__cta--center { justify-content: center; }
.hero__trust { list-style: none; display: flex; gap: 30px; flex-wrap: wrap; }
.hero__trust li { font-size: 0.92rem; color: var(--text-soft); }
.hero__trust strong { display: block; font-family: "Sora", "Anek Bangla", sans-serif; font-size: 1.5rem; color: var(--text); }

/* ---------- 3D Book ---------- */
.hero__art { display: flex; justify-content: center; perspective: 1600px; }
.book {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 5 / 8;
  transform: rotateY(-22deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: floaty 6s ease-in-out infinite;
}
.hero__art:hover .book { transform: rotateY(-10deg) rotateX(2deg); }
.book__cover {
  width: 100%; height: 100%;
  border-radius: 6px 12px 12px 6px;
  box-shadow: var(--shadow);
  position: relative; z-index: 2;
}
.book__spine {
  position: absolute; top: 0; left: 0; width: 16px; height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0.05));
  border-radius: 6px 0 0 6px;
  transform: translateZ(-1px) translateX(-6px) rotateY(30deg);
  z-index: 1;
}
.book__gloss {
  position: absolute; inset: 0; z-index: 3; border-radius: 6px 12px 12px 6px;
  background: linear-gradient(105deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 32%);
  pointer-events: none;
}
.book__shadow {
  position: absolute; z-index: 0; left: 8%; right: 8%; bottom: -34px; height: 44px;
  background: rgba(80, 45, 25, 0.5);
  filter: blur(26px); border-radius: 50%;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- Strip ---------- */
.strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip__inner p { text-align: center; color: var(--text-soft); font-size: 1rem; }
.strip__inner span { color: var(--text); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__head h2, .cta h2, .inside__copy h2, .author__body h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
.section__sub { color: var(--text-soft); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.55rem; border-radius: 14px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 0.98rem; }

/* ---------- Inside / TOC ---------- */
.inside__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.inside__copy .btn { margin-top: 26px; }
.toc { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.toc li {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 500; font-size: 0.96rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.toc li:hover { border-color: var(--accent); transform: translateX(4px); }
.toc span {
  font-family: "Sora", "Anek Bangla", sans-serif; font-weight: 700;
  color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  font-size: 0.95rem; min-width: 22px;
}

/* ---------- Author ---------- */
.author { display: flex; align-items: center; gap: 40px; max-width: 820px; margin: 0 auto; }
.author__avatar {
  flex: none;
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Sora", "Anek Bangla", sans-serif; font-weight: 800; font-size: 2.2rem; color: #fff;
  background: var(--grad);
  box-shadow: var(--shadow);
}
.author__body p { color: var(--text-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Parts / grouped chapters ---------- */
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 20px; margin-top: 48px; }
.part {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.part:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow); transform: translateY(-4px); }
.part__label {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) { .part__label { color: #E79A6A; } }
.part ol, .part ul { list-style: none; display: grid; gap: 11px; }
.part li { display: flex; gap: 11px; align-items: baseline; font-size: 0.97rem; color: var(--text); }
.part li b {
  font-family: "Sora", "Anek Bangla", sans-serif; font-weight: 700; font-size: 0.9rem;
  min-width: 22px; color: transparent; background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
}
.part li .dot { min-width: 22px; color: var(--accent); font-weight: 700; }
.parts__note { text-align: center; color: var(--text-soft); font-size: 0.98rem; margin-top: 26px; }
.inside__center { text-align: center; margin-top: 40px; }

/* ---------- Signature quote band ---------- */
.quote { padding: 72px 0; }
.quote__inner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: 60px 28px;
  background: linear-gradient(135deg, #6E2F1B 0%, #A8482B 52%, #C15B3C 100%);
  box-shadow: var(--shadow);
}
.quote__inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background: radial-gradient(45% 80% at 78% 12%, rgba(242, 180, 76, 0.22), transparent 60%),
              radial-gradient(50% 90% at 18% 90%, rgba(224, 138, 91, 0.28), transparent 62%);
}
.quote__inner > * { position: relative; z-index: 1; }
.quote__big {
  font-family: "Sora", "Anek Bangla", sans-serif; font-weight: 800; color: #fff;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem); line-height: 1.35;
}
.quote__big .grad-text { background: linear-gradient(115deg, #FBF0DD, #F4C57E); -webkit-background-clip: text; background-clip: text; }
.quote__sub { color: #ecdfca; margin-top: 14px; font-size: 1.05rem; }

/* ---------- Home: centered hero + book shelf ---------- */
.hero--center .container { text-align: center; position: relative; z-index: 1; }
.hero--center .hero__title { max-width: 20ch; margin: 0 auto 22px; }
.hero--center .hero__lead { margin: 0 auto; }

/* Book shelf: 3 cards per row, each card a fixed, uniform height */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; align-items: stretch; }
.bookcard {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
a.bookcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
/* Cover height is pinned, so the card can never blow up regardless of image attributes */
.bookcard__cover { height: 200px; width: auto; border-radius: 4px 9px 9px 4px; box-shadow: var(--shadow); margin-bottom: 18px; }
.bookcard__body h3 { font-size: 1.08rem; line-height: 1.4; }
.bookcard__body p { color: var(--text-soft); font-size: 0.93rem; margin-top: 8px; }
.bookcard__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--accent); }
@media (prefers-color-scheme: dark) { .bookcard__cta { color: #E79A6A; } }
a.bookcard:hover .bookcard__cta { gap: 12px; }

.bookcard--soon { border-style: dashed; }
.bookcard__ph {
  height: 200px; aspect-ratio: 5 / 8; border-radius: 4px 9px 9px 4px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 2rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-alt));
  border: 1px dashed var(--border);
}
.soon-badge {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; display: inline-block;
}
@media (prefers-color-scheme: dark) { .soon-badge { color: #E79A6A; } }
.bookcard--soon .bookcard__body p { margin-top: 0; }

/* ---------- Final CTA ---------- */
.cta { padding: 96px 0; }
.cta__inner {
  position: relative; overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 28px;
  text-align: center;
  padding: 64px 28px;
  box-shadow: var(--shadow);
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background: radial-gradient(60% 120% at 50% 0%, rgba(193, 91, 60, 0.16), transparent 70%);
  pointer-events: none;
}
.cta__inner > * { position: relative; z-index: 1; }
.cta p { color: var(--text-soft); margin-top: 12px; font-size: 1.08rem; }
.cta .hero__cta { margin-top: 30px; }
.cta__fine { font-size: 0.9rem; margin-top: 22px; }

/* ---------- Share nudge (inside CTA) ---------- */
.cta__share { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.cta__share p { color: var(--text-soft); font-size: 1rem; max-width: 48ch; margin: 0 auto 20px; }
.btn--fb { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn--fb:hover { border-color: #1877F2; }
.btn--fb .btn__icon { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__copy { color: var(--text-soft); font-size: 0.9rem; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--text-soft); font-size: 0.9rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__art { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .inside__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .inside__copy .btn { margin-inline: auto; }
  .author { flex-direction: column; text-align: center; gap: 24px; }
  .nav__links { display: none; }
  .shelf { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  .hero__title { font-size: 2.05rem; }
  .hero__lead { font-size: 1.05rem; }
  .brand__text { font-size: 0.98rem; }
  .cards, .toc { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr; max-width: 300px; }
  .btn--lg { width: 100%; justify-content: center; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .section { padding: 64px 0; }
  .quote { padding: 52px 0; }
  .quote__inner { padding: 44px 20px; }
  .cta__inner { padding: 48px 20px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ---------- Motion / accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .book { animation: none; }
}
