/* sus.lessons — brand guideline v1.0 অনুযায়ী
   কাগজ, কালি, মেরুন আর সোনালি। ≈ 60 cream · 20 maroon · 12 ink · 5 gold · 3 orange
   বাংলা লেখায় কখনো letter-spacing নয় — যুক্তাক্ষর ভেঙে যায়। */

:root {
  --cream: #ece4d6;
  --maroon: #3e2228;
  --maroon-2: #4d2b32;
  --gold: #d6a35c;
  --orange: #d05a23;
  --ink: #2a2420;
  --paper: #fbf7ef;
  --light: #f3e6d3;
  --teal: #24575a;
  --thumb-gold: #e8b26a;
  --muted: #6b5d50;
  --line: rgba(62, 34, 40, 0.14);

  --display: "Tiro Bangla", serif;
  --text: "Anek Bangla", system-ui, sans-serif;
  --latin: "Lora", Georgia, serif;

  --r: 22px;
  --r-lg: 30px;
  --shadow: 0 1px 2px rgba(62, 34, 40, 0.06);
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.75 var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
/* কাগজের দানা — random noise, multiply, 7% */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
mark { background: none; color: var(--orange); font-weight: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.3; margin: 0; color: var(--ink); }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── ব্র্যান্ড মার্ক ── */
.wordmark { font: italic 600 1.15rem/1 var(--latin); color: var(--maroon); white-space: nowrap; }
.avatar {
  --s: 44px;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  padding: 2px;
  background: var(--maroon);
  box-shadow: 0 0 0 1.5px var(--gold);
  flex: none;
  display: inline-block;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ── লেবেল / পিল / চিপ ── */
.eyebrow {
  font: 500 0.78rem/1 var(--latin);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 12px;
}
.law { font: 500 0.72rem/1 var(--latin); letter-spacing: 0.18em; color: var(--maroon); border: 1px solid var(--gold); padding: 6px 9px; border-radius: 99px; background: var(--paper); }
.chip { font: 600 0.78rem/1 var(--text); padding: 6px 10px; border-radius: 99px; background: var(--light); color: var(--muted); }
.chip-free { background: var(--teal); color: var(--paper); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; font: 700 0.95rem/1.2 var(--text); text-decoration: none; }
.pill-maroon { background: var(--maroon); color: var(--paper); }
.pill-maroon mark { color: var(--thumb-gold); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font: 600 0.9rem/1.2 var(--text); color: var(--maroon); }
.tag-now { background: var(--paper); border: 1.5px solid var(--maroon); }
.tag-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.tag-past { border: 1.5px dashed var(--maroon); background: transparent; }
.tag-past::before { content: "◷"; font-size: 0.95em; }

/* ── বোতাম ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 99px; border: 0; cursor: pointer;
  font: 700 1rem/1.2 var(--text); text-decoration: none; text-align: center;
  transition: background 0.15s, opacity 0.15s;
}
.btn:active { opacity: 0.85; }
.btn-maroon { background: var(--maroon); color: var(--paper); }
.btn-maroon:hover { background: var(--maroon-2); }
.btn-gold { background: var(--gold); color: var(--maroon); }
.btn-ghost { background: transparent; color: var(--maroon); box-shadow: inset 0 0 0 1.5px var(--maroon); }
.btn-paper { background: var(--paper); color: var(--maroon); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* ── হেডার ── */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(236, 228, 214, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 99px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--maroon); background: var(--light); }
.nav a[aria-current] { color: var(--maroon); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.nav .nav-follow { color: var(--paper); margin-left: 8px; }
.nav .nav-follow:hover { background: var(--maroon-2); color: var(--paper); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--paper); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--maroon); transition: transform 0.2s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .open .nav { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav .nav-follow { margin: 8px 0 0; justify-content: center; }
  .brand .wordmark { font-size: 1.05rem; }
}

/* ── সেকশন ── */
.section { padding: clamp(40px, 7vw, 72px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: clamp(18px, 3vw, 30px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 6px; }
.section-link { font-weight: 700; color: var(--maroon); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }
.divider { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 18px 0; }

/* ── হিরো ── */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.22; }
.hero .lede { font-size: 1.15rem; color: var(--muted); margin: 22px 0 30px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.phone {
  position: relative; aspect-ratio: 9 / 16; width: min(300px, 100%); margin-inline: auto;
  border-radius: 28px; overflow: hidden; background: var(--maroon);
  border: 1px solid var(--line);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual { display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
}

/* ── কথোপকথনের বাক্স (caption box) ── */
.speaker { display: inline-flex; align-items: center; gap: 6px; font: 700 0.85rem/1 var(--text); color: var(--teal); }
.speaker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.caption-box { background: var(--paper); border-radius: var(--r-lg); padding: 20px 26px 22px; margin: 28px 0; box-shadow: var(--shadow); text-align: center; }
.caption-box p { font: 400 clamp(1.35rem, 2.6vw, 1.7rem)/1.45 var(--display); margin-top: 8px; }

/* ── গল্পের কার্ড ── */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.story-card { display: flex; flex-direction: column; }
.sc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--light); display: block; border-radius: var(--r); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.5s ease; }
.story-card:hover .sc-media img { transform: scale(1.035); }
.sc-blank { display: grid; place-items: center; height: 100%; background: var(--maroon); }
.sc-blank .wordmark { color: var(--gold); }
.sc-kind { position: absolute; top: 14px; left: 14px; background: var(--maroon); color: var(--paper); font: 700 0.78rem/1 var(--text); padding: 7px 11px; border-radius: 99px; }
.sc-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sc-body h3 { font-size: 1.4rem; }
.sc-body h3 a { text-decoration: none; }
.sc-body p { color: var(--muted); font-size: 0.98rem; }
.sc-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--orange); text-decoration: none; font-size: 0.95rem; }

/* ── স্লাইড গল্পের রেল ── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; margin: 0 -16px; scrollbar-width: thin; }
.slide-card { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--maroon); text-decoration: none; color: var(--paper); display: block; }
.slide-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.slide-card:hover img { transform: scale(1.04); }
.slide-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(42, 20, 24, 0.92)); }
.slide-card-pill { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1; background: rgba(240, 232, 219, 0.82); padding: 6px 14px; border-radius: 99px; }
.slide-card-pill .wordmark { font-size: 0.8rem; }
.slide-card-text { position: absolute; left: 16px; right: 16px; bottom: 44px; z-index: 1; font: 400 1.2rem/1.4 var(--display); color: var(--paper); }
.slide-card-text mark { color: var(--thumb-gold); }
.slide-card-count { position: absolute; left: 16px; bottom: 16px; z-index: 1; font: 700 0.8rem/1 var(--text); color: var(--gold); }

/* ── মেরুন বই মক ── */
.book-mock { aspect-ratio: 2 / 3; border-radius: 6px 14px 14px 6px; background: linear-gradient(100deg, #2f181d 0 5%, var(--maroon) 7% 100%); padding: 10px; position: relative; box-shadow: inset 5px 0 0 rgba(0, 0, 0, 0.18); }
.book-mock.has-img { padding: 0; overflow: hidden; background: var(--maroon); }
.book-mock.has-img img { width: 100%; height: 100%; object-fit: cover; }
.bm-frame { height: 100%; border: 1.5px solid var(--gold); border-radius: 4px 10px 10px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; text-align: center; }
.bm-mark { font: italic 600 0.62rem/1 var(--latin); color: var(--gold); position: absolute; top: 22px; }
.bm-title { font: 600 1.25rem/1.15 var(--latin); color: var(--paper); }
.bm-rule { width: 34px; height: 1.5px; background: var(--gold); }
.bm-bn { font: 400 0.95rem/1.35 var(--display); color: var(--thumb-gold); }
.bm-author { font: italic 500 0.78rem/1 var(--latin); color: var(--light); position: absolute; bottom: 22px; }
.book-mock.lg .bm-title { font-size: 2rem; }
.book-mock.lg .bm-bn { font-size: 1.3rem; }
.book-mock.lg .bm-mark { font-size: 0.85rem; top: 32px; }
.book-mock.lg .bm-author { font-size: 1rem; bottom: 32px; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 24px; }
.book-card a { text-decoration: none; }
.bc-body { padding-top: 16px; }
.bc-author { font: italic 500 0.88rem/1.2 var(--latin); color: var(--muted); }
.bc-body h3 { font: 600 1.15rem/1.3 var(--latin); margin-top: 4px; }
.bc-bn { font-family: var(--display); color: var(--maroon); margin-top: 2px; }
.bc-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* ── আজকের বই (মেরুন) ── */
.today { background: var(--maroon); color: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 56px); }
.today-grid > a, .book-callout, .book-hero a { text-decoration: none; }
.today-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; }
.today .eyebrow { color: var(--gold); }
.today h2 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.today h2 mark { color: var(--thumb-gold); }
.today .lede { color: var(--light); margin: 14px 0 22px; opacity: 0.9; }
.laws { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.laws li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; padding: 14px 18px; border-radius: 16px; background: rgba(251, 247, 239, 0.06); border: 1px solid rgba(214, 163, 92, 0.25); }
.laws .law { background: transparent; color: var(--gold); border-color: rgba(214, 163, 92, 0.6); grid-row: span 2; align-self: center; }
.laws b { font: 600 1rem/1.3 var(--latin); color: var(--paper); }
.laws span { color: var(--light); opacity: 0.85; font-size: 0.95rem; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-grid .book-mock { max-width: 150px; margin-inline: auto; }
  .today-grid .book-mock .bm-title { font-size: 1.15rem; }
  .today-grid .book-mock .bm-bn { font-size: 0.85rem; }
  .today-grid .book-mock .bm-mark, .today-grid .book-mock .bm-author { display: none; }
}

/* ── এন্ড কার্ড ── */
.end-card { background: var(--maroon); border-radius: var(--r-lg); padding: 10px; margin: clamp(40px, 7vw, 72px) 0; }
.end-frame { border: 1px solid rgba(214, 163, 92, 0.6); border-radius: 22px; padding: clamp(36px, 6vw, 70px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.end-frame .wordmark { color: var(--light); font-size: 1rem; }
.end-line { font: 400 clamp(1.7rem, 4vw, 2.6rem)/1.4 var(--display); color: var(--paper); margin-top: 26px; max-width: 22ch; }
.end-line mark { color: var(--thumb-gold); }
.end-rule { width: 70px; height: 1.5px; background: var(--gold); margin: 26px 0 18px; }
.end-sub { color: var(--light); font-weight: 600; }
.follow-pill { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; background: var(--paper); color: var(--maroon); padding: 6px 22px 6px 6px; border-radius: 99px; text-decoration: none; font-weight: 600; transition: transform 0.15s; }
.follow-pill:hover { transform: scale(1.03); }
.follow-pill b { font: italic 600 1.02rem var(--latin); }

/* ── গল্প পড়ার পাতা ── */
.read-head { padding: 48px 0 24px; text-align: center; }
.read-head .sc-meta { justify-content: center; margin-bottom: 18px; }
.read-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 20ch; margin-inline: auto; }
.read-head .lede { color: var(--muted); max-width: 54ch; margin: 18px auto 0; font-size: 1.08rem; }
.read-head .byline { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 0.92rem; color: var(--muted); }
.read-cover { width: min(880px, 100% - 32px); margin: 10px auto 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.read-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.prose { width: min(680px, 100% - 32px); margin: 44px auto 0; font-size: 1.12rem; line-height: 1.9; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 1.7rem; margin: 1.8em 0 0.6em; color: var(--maroon); }
.prose h2::after { content: ""; display: block; width: 46px; height: 2px; background: var(--gold); margin-top: 10px; }
.prose figure { margin: 30px 0; }
.prose figure img { border-radius: var(--r); }
.prose figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose .rule { border: 0; text-align: center; margin: 36px 0; }
.prose .rule::before { content: "· · ·"; color: var(--gold); letter-spacing: 0.5em; font-family: var(--latin); }
.statement { margin: 34px 0; background: var(--maroon); color: var(--paper); border-radius: var(--r-lg); padding: 34px 30px; font: 400 clamp(1.4rem, 3vw, 1.9rem)/1.45 var(--display); text-align: center; }
.statement mark { color: var(--thumb-gold); }

.book-callout { width: min(680px, 100% - 32px); margin: 40px auto 0; display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: center; background: var(--paper); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); text-decoration: none; }
.book-callout .eyebrow { margin-bottom: 6px; }
.book-callout .bm-frame { gap: 5px; padding: 8px 6px; }
.book-callout .bm-title { font-size: 0.82rem; }
.book-callout .bm-bn { font-size: 0.66rem; }
.book-callout .bm-mark, .book-callout .bm-author { display: none; }
.book-callout h3 { font: 600 1.25rem/1.25 var(--latin); }
.book-callout p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

/* ── স্লাইড ভিউয়ার ── */
.viewer { width: min(460px, 100% - 32px); margin: 8px auto 0; }
.deck { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: var(--maroon); box-shadow: 0 30px 60px -30px rgba(62, 34, 40, 0.7); touch-action: pan-y; user-select: none; }
.track { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.24, 1); }
.slide { flex: 0 0 100%; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.slide .caption-box { position: relative; margin: 0 16px 22px; padding: 16px 20px 18px; }
.slide .caption-box p { font-size: clamp(1.15rem, 4.6vw, 1.45rem); }
.slide.text-only { justify-content: center; background: var(--cream); }
.slide.text-only .caption-box { box-shadow: none; background: transparent; }
.slide.end { background: var(--maroon); justify-content: center; align-items: stretch; padding: 14px; }
.slide.end .end-frame { height: 100%; justify-content: center; padding: 24px 18px; }
.slide.end .end-line { font-size: clamp(1.35rem, 5vw, 1.8rem); }
.deck-pill { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3; background: rgba(240, 232, 219, 0.82); padding: 6px 14px; border-radius: 99px; pointer-events: none; transition: opacity 0.3s; }
.deck-pill .wordmark { font-size: 0.82rem; }
.deck.at-end .deck-pill { opacity: 0; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 6px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(62, 34, 40, 0.22); cursor: pointer; transition: width 0.25s, background 0.25s; }
.dots button[aria-current="true"] { width: 24px; background: var(--orange); }
.deck-nav { position: absolute; top: 50%; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(251, 247, 239, 0.9); color: var(--maroon); font-size: 1.3rem; cursor: pointer; transform: translateY(-50%); box-shadow: var(--shadow); }
.deck-nav[disabled] { opacity: 0; pointer-events: none; }
.deck-prev { left: 10px; }
.deck-next { right: 10px; }
.viewer-hint { text-align: center; font-size: 0.86rem; color: var(--muted); }

/* ── বইয়ের পাতা ── */
.book-hero { display: grid; grid-template-columns: 320px 1fr; gap: clamp(30px, 6vw, 72px); align-items: start; padding: 56px 0 20px; }
.book-hero .bc-author { font-size: 1.05rem; }
.book-hero h1 { font: 600 clamp(2rem, 4.5vw, 3.2rem)/1.15 var(--latin); margin: 6px 0 4px; }
.book-hero .bn-title { font: 400 1.5rem/1.4 var(--display); color: var(--maroon); }
.book-hero .hook { font: 400 1.6rem/1.45 var(--display); margin: 24px 0 10px; }
.book-hero .lede { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; }
.book-hero .laws li { background: var(--paper); border-color: var(--line); }
.book-hero .laws .law { color: var(--maroon); }
.book-hero .laws b { color: var(--ink); }
.book-hero .laws span { color: var(--muted); }
.free-box { background: var(--paper); border: 1.5px dashed var(--teal); border-radius: var(--r); padding: 18px 20px; margin: 20px 0; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.free-box p { color: var(--teal); font-weight: 600; }
@media (max-width: 800px) {
  .book-hero { grid-template-columns: 1fr; }
  .book-hero > a, .book-hero > .book-mock { max-width: 240px; margin-inline: auto; }
}

/* ── ফিল্টার ── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters a { text-decoration: none; padding: 9px 18px; border-radius: 99px; font-weight: 600; background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.filters a[aria-current] { background: var(--maroon); color: var(--paper); box-shadow: none; }
.page-head { padding: 52px 0 10px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 56ch; font-size: 1.08rem; }

/* ── সাপোর্ট ডায়ালগ ── */
.support { border: 0; border-radius: 30px; padding: 34px 28px 26px; width: min(440px, 100% - 32px); background: var(--cream); color: var(--ink); text-align: center; box-shadow: 0 40px 80px -30px rgba(42, 20, 24, 0.7); }
.support::backdrop { background: rgba(42, 20, 24, 0.55); backdrop-filter: blur(3px); }
.support h2 { font-size: 1.7rem; margin: 16px 0 8px; }
.support > p { color: var(--muted); }
.support .close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; font-size: 1rem; color: var(--maroon); }
.pay-list { display: grid; gap: 8px; margin: 20px 0 6px; }
.pay-row { display: flex; align-items: center; gap: 10px; background: var(--paper); padding: 10px 10px 10px 16px; border-radius: 16px; text-align: left; }
.pay-row span { font-weight: 700; color: var(--maroon); min-width: 52px; }
.pay-row code { flex: 1; font: 600 0.95rem/1.2 ui-monospace, monospace; overflow-wrap: anywhere; }
.btn-mini { border: 0; border-radius: 99px; padding: 8px 14px; background: var(--maroon); color: var(--paper); font: 700 0.85rem var(--text); cursor: pointer; }
.support-actions { display: grid; gap: 10px; margin-top: 18px; }
.support .note { font-size: 0.86rem; color: var(--muted); margin-top: 14px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; background: var(--maroon); color: var(--paper); padding: 12px 22px; border-radius: 99px; font-weight: 600; z-index: 200; transition: 0.25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── ফুটার ── */
#site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 44px 0 30px; }
.foot { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.foot p { color: var(--muted); font-family: var(--display); font-size: 1.15rem; }
.foot-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; }
.foot-nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.foot-nav a:hover { color: var(--maroon); }
.foot-small { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 0.82rem; }

/* ── মোবাইল ── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar { height: 60px; }
  .nav { top: 60px; }
  #site-header .avatar { --s: 34px; }
  .hero { padding: 36px 0 12px; }
  .hero h1 { font-size: 2.35rem; }
  .hero .lede { font-size: 1.02rem; margin: 14px 0 22px; }
  .hero-actions .btn { flex: 1; padding: 13px 16px; }
  .section-head h2 { font-size: 1.65rem; }
  .section-head p { display: none; }
  .story-grid { gap: 30px; }
  .sc-media { aspect-ratio: 16 / 10; }
  .sc-body h3 { font-size: 1.25rem; }
  .rail { grid-auto-columns: 62vw; gap: 12px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .bm-title { font-size: 1rem; }
  .bm-bn { font-size: 0.8rem; }
  .bm-mark, .bm-author { display: none; }
  .bc-body { padding-top: 10px; }
  .bc-body h3 { font-size: 1rem; }
  .bc-author { font-size: 0.8rem; }
  .today .lede { margin: 10px 0 18px; }
  .laws li { grid-template-columns: 1fr; padding: 12px 14px; gap: 6px; }
  .laws .law { grid-row: auto; justify-self: start; }
  .buy-row .btn { flex: 1; }
  .page-head { padding: 32px 0 6px; }
  .page-head p { font-size: 1rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px; scrollbar-width: none; }
  .filters a { white-space: nowrap; }
  .read-head { padding: 30px 0 16px; }
  .read-cover { border-radius: var(--r); }
  .prose { margin-top: 28px; font-size: 1.05rem; line-height: 1.85; }
  .caption-box { padding: 16px 18px 18px; border-radius: var(--r); }
  .statement { padding: 26px 20px; border-radius: var(--r); }
  .book-callout { grid-template-columns: 70px 1fr; gap: 14px; padding: 14px; border-radius: var(--r); }
  .book-hero { padding-top: 28px; gap: 24px; }
  .book-hero > .book-mock { max-width: 170px; }
  .book-hero .hook { font-size: 1.3rem; margin-top: 16px; }
  .end-line { font-size: 1.55rem; }
  .foot { gap: 18px; }
  .foot-nav { gap: 4px 16px; }
}

/* ── লোডিং / খালি ── */
.skeleton { background: linear-gradient(90deg, var(--light), var(--paper), var(--light)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r-lg); min-height: 280px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h2 { margin-bottom: 10px; }

/* ── ঢোকার অ্যানিমেশন: ২২px উঠে আসা ── */
.rise { opacity: 0; transform: translateY(22px); animation: rise 0.5s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
