:root {
  --ink: #101010;
  --paper: #fff;
  --accent: #0098fd;
  --accent-ink: #005994;
  --line: #d0d0d0;
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; }
h2 { font-size: clamp(2.65rem, 5vw, 4.9rem); letter-spacing: -.045em; }
.shell { width: min(1330px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 3; transform: translateY(-120%); background: white; padding: .65rem 1rem; }
.skip:focus { transform: none; }
.header { background: var(--ink); color: var(--paper); border-bottom: 1px solid #373737; }
.header-inner, nav, .brand { display: flex; align-items: center; }
.header-inner { min-height: 89px; justify-content: space-between; gap: 24px; }
.brand img { width: clamp(145px, 15vw, 210px); height: auto; }
nav { gap: clamp(18px, 3vw, 42px); font-size: .87rem; font-weight: 600; }
nav a:hover, nav a[aria-current], .text-link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 7px; }
.nav-contact { padding: .56rem 1.12rem; border: 1px solid var(--accent); border-radius: 99px; }
.hero { position: relative; overflow: hidden; background: #101010 radial-gradient(ellipse at 75% 60%, #0098fd15, transparent 60%); color: var(--paper); }
.hero-grid { min-height: clamp(660px, 52vw, 840px); display: grid; grid-template-columns: .92fr 1.08fr; gap: 26px; align-items: center; padding-block: 58px 70px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent-ink); font-size: .68rem; font-weight: 700; letter-spacing: .18em; margin-bottom: 19px; }
.eyebrow span { width: 25px; height: 1px; background: currentColor; flex: 0 0 auto; }
h1 { font-size: clamp(3.3rem, 6.6vw, 7.2rem); letter-spacing: -.06em; line-height: .91; }
h1 em { color: var(--accent); font-weight: 500; }
.subtitle { font: italic 500 clamp(1.25rem, 2vw, 1.85rem)/1.2 var(--serif); margin-top: 23px; }
.intro { max-width: 415px; margin-top: 15px; color: #d0d0d0; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 27px; }
.button, .hero .text-link { display: inline-flex; align-items: center; gap: 15px; padding: .8rem 1.22rem; border-radius: 99px; border: 1px solid var(--accent); font-weight: 700; font-size: .85rem; }
.button { background: var(--accent); color: var(--ink); box-shadow: inset 0 1px 5px #fff3, 0 4px 12px #2f271626; }
.button:hover { background: #49b6ff; }
.hero .text-link { background: #101010a8; }
.text-link { display: inline-flex; gap: .5rem; align-items: center; font-size: .88rem; font-weight: 700; }
.hero-art { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; min-width: 0; padding: 25px 0 38px; }
.hero-art img { width: min(100%, 660px); height: auto; filter: drop-shadow(12px 22px 15px #40301f48); }
.book-plinth { position: absolute; z-index: -1; width: 96%; height: 15%; bottom: 11%; border-radius: 50%; border: 1px solid #555; background: linear-gradient(#393939 58%, #777 62%, #333 74%, #171717); box-shadow: 0 12px 20px #60472c40; }
.hero-art figcaption { color: var(--paper); background: #101010; border: 1px solid var(--line); border-radius: 99px; padding: 7px 13px; font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-align: center; }
.hero-art figcaption span { color: var(--accent); padding-inline: .3rem; }
.memoir { padding-block: clamp(60px, 8vw, 115px); background: #f7f7f7; border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(85px, .38fr) 1fr 1.1fr; align-items: center; gap: clamp(24px, 4vw, 58px); }
.memoir-cover { width: min(100%, 145px); box-shadow: 5px 7px 0 #0098fd; }
.split h2 { font-size: clamp(2.45rem, 4vw, 3.85rem); }
.split .text-link, .about .text-link { margin-top: 15px; color: var(--accent-ink); }
.section { padding-block: clamp(62px, 7vw, 106px); }
.books-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-intro { margin-top: 12px; }
.rail-controls { display: flex; gap: 8px; flex-shrink: 0; }
.rail-controls[hidden] { display: none; }
.rail-controls button { width: 45px; height: 45px; border: 1px solid var(--accent); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.rail-controls button:hover:not(:disabled) { background: var(--ink); color: white; }
.rail-controls button:disabled { opacity: .4; cursor: default; }
.book-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; margin-top: 28px; padding-bottom: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--accent) #ececec; }
.book { scroll-snap-align: start; }
.book:focus-visible { outline-offset: -2px; }
.cover { position: relative; isolation: isolate; display: grid; place-items: center; padding: 23px 14px 31px; background: #ededed; }
.book:nth-child(3n+2) .cover { background: #e5e5e5; }
.book:nth-child(3n+3) .cover { background: #f2f2f2; }
.cover::before { content: ""; position: absolute; z-index: -1; bottom: 15px; width: 82%; height: 19%; background: linear-gradient(#faf5ec 55%, #d7c4a4 56%, #ece0ca); border-radius: 50%; box-shadow: 0 6px 12px #4e3f241c; }
.cover img { height: clamp(145px, 16vw, 235px); width: auto; max-width: 85%; object-fit: contain; box-shadow: 5px 7px 13px #27211344; transition: transform .2s; }
.book:hover img { transform: translateY(-4px); }
.book h3, .journal h3 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); margin: 13px 0 7px; }
.book span, .journal a span { color: var(--accent-ink); font-size: .8rem; font-weight: 700; }
.book:hover span, .journal a:hover span { text-decoration: underline; }
.about { background: #101010 radial-gradient(ellipse at 75% 60%, #0098fd15, transparent 60%); color: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(0, .78fr) 1fr; gap: clamp(35px, 9vw, 140px); align-items: center; }
.about figure { max-width: 455px; padding: 10px 10px 0; border: 1px solid #0098fd77; }
.about img { width: 100%; aspect-ratio: 5/5; object-fit: cover; object-position: center 31%; }
.about figcaption { padding: 11px 1px; font-size: .62rem; font-weight: 700; letter-spacing: .18em; }
.about h2 + p { margin-top: 20px; }
.about p + p { margin-top: 12px; }
.hero .eyebrow, .about .eyebrow, .about .text-link, .book-feature .eyebrow, .testimonials .eyebrow, footer .eyebrow { color: #0098fd; }
.journal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin-top: 30px; }
.journal img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
footer { background: #101010; color: var(--paper); padding: 60px 0 22px; }
footer p:not(.eyebrow) { margin: 12px 0 22px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #ffffff40; margin-top: 46px; padding-top: 18px; font-size: .85rem; }
.split p + p { margin-top: 12px; }
.awards { background: #f7f7f7; }
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.award-grid > div { border-top: 3px solid var(--accent); background: white; padding: 25px; }
.award-grid span { display: block; color: var(--accent-ink); font-weight: 700; margin-bottom: 9px; }
.award-grid h3 { font-size: clamp(1.5rem, 3vw, 2.35rem); }
.book p, .journal-grid p { font-size: .9rem; margin: 10px 0; }
.book-feature {
  padding-block: clamp(56px, 7vw, 115px);
  color: white;
  background: radial-gradient(ellipse at 75% 45%, var(--feature-tone, #222), #101010 76%);
  border-top: 1px solid #ffffff20;
}
.book-feature--reverse { background-position: center; background-image: radial-gradient(ellipse at 25% 45%, var(--feature-tone), #101010 76%); }
.book-feature .shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(28px, 6vw, 90px); }
.book-feature .shell > div { max-width: 460px; }
@media (min-width: 681px) {
  .book-feature--reverse .shell > div { grid-column: 2; grid-row: 1; }
  .book-feature--reverse .book-feature-cover { grid-column: 1; grid-row: 1; }
}
.book-feature-cover { justify-self: center; width: min(100%, clamp(215px, 24vw, 340px)); height: auto; border: 1px solid #ffffff40; border-radius: 3px; box-shadow: 12px 18px 32px #0009; }
.book-feature h2 + p { margin: 16px 0 22px; }
.testimonials { color: white; background: #101010 url("assets/legacy/reader-bg.webp") center / cover; }
.reader-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.reader-grid figure { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: clamp(16px, 3vw, 32px); border: 1px solid #ffffff38; background: #ffffff08; }
.reader-grid figcaption { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.reader-grid img { border-radius: 50%; }
.testimonials .text-link { color: var(--accent); }
.footer-bottom { align-items: center; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 64px); }
  .hero-grid { min-height: 480px; }
  .book-grid { grid-auto-columns: calc((100% - 44px) / 3); }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 13px; padding-block: 13px; }
  nav { flex-wrap: wrap; gap: 6px 15px; }
  .nav-contact { border: 0; padding: 0; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 43px 20px; gap: 16px; }
  h1 { font-size: clamp(2.7rem, 10.2vw, 4.5rem); }
  .hero-art { max-width: 435px; margin-inline: auto; padding: 0 0 9px; }
  .hero-art img { width: 90%; }
  .split { grid-template-columns: auto 1fr; gap: 14px 17px; }
  .split > div:last-child { grid-column: 1 / -1; }
  .memoir-cover { width: 56px; }
  .book-grid { grid-auto-columns: calc((100% - 28px) / 2.1); gap: 14px; }
  .cover { padding-inline: 7px; }
  .cover img { height: clamp(124px, 29vw, 165px); }
  .rail-controls button { width: 37px; height: 37px; }
  .award-grid, .reader-grid { grid-template-columns: 1fr; }
  .book-feature .shell { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover img { transition: none; }
}

/* Navigation and responsive refinements */
html { scroll-padding-top: 96px; }
.header { position: sticky; top: 0; z-index: 5; background: #101010f5; backdrop-filter: blur(12px); }
.skip { z-index: 10; }
.menu-toggle { display: none; }
.hero-grid { grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); }
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 10%;
  background: radial-gradient(ellipse, #0098fd24, transparent 68%);
  pointer-events: none;
}
.hero-art img { filter: drop-shadow(12px 22px 20px #0009); }
.journal-grid a { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.journal-grid a span { margin-top: auto; }
.book-grid .book { display: flex; flex-direction: column; }
.book-grid .book span { margin-top: auto; }
.reader-grid figure { border-radius: 12px; }
.award-grid > div { border-radius: 0 0 8px 8px; }
.actions > a { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .button, .hero .text-link, .nav-contact, .rail-controls button, .reader-grid figure {
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  }
  .actions a span { transition: transform .2s ease; }
}
@media (hover: hover) {
  .actions a:hover span { transform: translateX(3px); }
  .nav-contact:hover, .hero .text-link:hover { background: #0098fd22; }
  .reader-grid figure:hover { border-color: #0098fd88; }
  .journal-grid a:hover { border-color: var(--accent-ink); }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 66px; flex-wrap: wrap; padding-block: 10px; gap: 8px 16px; }
  .header-inner nav { width: 100%; flex-wrap: wrap; gap: 0 14px; }
  .header-inner nav a { padding-block: 9px; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid #ffffff55; border-radius: 99px; background: transparent; color: white; cursor: pointer; }
  .menu-toggle:not([hidden]) + nav { display: none; }
  .menu-toggle[aria-expanded="true"] + nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 0 10px; }
  .header-inner .nav-contact { padding-inline: 0; border: 0; }
}
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { width: min(100%, 435px); }
  .about figure { width: min(100%, 420px); }
  .split h2 { font-size: clamp(1.95rem, 7vw, 2.75rem); }
}
@media (max-width: 370px) {
  .actions { align-items: stretch; flex-direction: column; }
  .journal-grid { grid-template-columns: 1fr; }
  .books-heading { flex-wrap: wrap; }
}

.memoir-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(16px, 2.3vw, 30px);
  max-width: 415px;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #ffffff29;
  list-style: none;
}
.memoir-themes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e5e5e5;
  font-size: .85rem;
  font-weight: 600;
}
.memoir-themes svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-wordmark { font: 600 clamp(.98rem, 2.15vw, 1.6rem)/1.2 var(--serif); }
.bengali { font-family: "Noto Sans Bengali", sans-serif; }
.author-portrait img {
  width: min(100%, 470px);
  border: 1px solid #0098fd55;
  border-radius: 4px;
}
.author-portrait figcaption { margin-top: 14px; letter-spacing: .04em; }
.author-portrait figcaption a:hover { text-decoration: underline; }
.book-feature .bengali { color: #0098fd; margin-bottom: 8px; }
.book-feature p + .button { margin-top: 22px; }
.writing .text-link { margin-top: 16px; }

.series { background: #eef7fd; }
.series-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.series-stops a {
  display: inline-flex;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--accent-ink);
  border-radius: 99px;
  color: var(--accent-ink);
  font-weight: 600;
}
.series-stops a:hover { background: var(--accent-ink); color: white; }
.screen-work { background: #f2f6fa; }
.screen-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.screen-work-grid article {
  padding: clamp(20px, 3vw, 40px);
  border-top: 3px solid var(--accent);
  background: white;
}
.screen-work-grid h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.screen-work-grid p { margin: 12px 0 16px; }
.screen-work-grid .text-link { color: var(--accent-ink); display: inline; }
@media (max-width: 680px) {
  .screen-work-grid { grid-template-columns: 1fr; }
}

.site-footer {
  border-top: 2px solid var(--accent);
  padding-block: clamp(64px, 8vw, 124px) clamp(30px, 4vw, 60px);
}
.site-footer .footer-bottom {
  margin-top: clamp(42px, 6vw, 88px);
  padding-top: clamp(20px, 2.5vw, 36px);
}

/* English / বাংলা segmented control, matching the reference header. */
.language-switcher { display: inline-flex; flex-shrink: 0; padding: 4px; gap: 2px; border: 1px solid #ffffff55; border-radius: 9px; background: #ffffff06; }
.language-switcher[hidden] { display: none; }
.language-switcher button { min-height: 44px; padding: 8px 11px; border: 0; border-radius: 5px; background: transparent; color: #e5e5e5; font: 500 .875rem/1.5 var(--sans); cursor: pointer; }
.language-switcher button[lang="bn"] { font-family: "Noto Sans Bengali", sans-serif; }
.language-switcher button[aria-pressed="true"] { background: white; color: #101010; box-shadow: 0 1px 4px #0003; }
.language-switcher button:hover:not([aria-pressed="true"]) { background: #ffffff15; }
.header-inner > nav { margin-left: auto; }
html[lang="bn"] { --sans: "Noto Sans Bengali", sans-serif; --serif: "Noto Sans Bengali", serif; }
html[lang="bn"] h1 { line-height: 1.3; letter-spacing: -.035em; }
html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.35; letter-spacing: -.025em; }
html[lang="bn"] .eyebrow { letter-spacing: .025em; line-height: 1.8; }
html[lang="bn"] .author-wordmark { line-height: 1.6; }
html[lang="bn"] .hero-copy > .subtitle,
html[lang="bn"] .book > p.bengali,
html[lang="bn"] .book-feature h2 + p.bengali,
html[lang="bn"] .footer-grid > div > p.bengali { display: none; }
@media (max-width: 1100px) and (min-width: 821px) {
  .header-inner { gap: 16px; }
  .header-inner > nav { gap: 16px; }
  .author-wordmark { font-size: 1.15rem; }
}
@media (max-width: 820px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto auto; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .language-switcher { grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
  .header-inner > nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
}
@media (max-width: 460px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner > .brand { grid-column: 1 / -1; }
  .language-switcher { grid-column: 1; grid-row: 2; justify-self: start; }
  .menu-toggle { grid-column: 2; grid-row: 2; }
  .header-inner > nav { grid-row: 3; }
  html { scroll-padding-top: 130px; }
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer p:not(.eyebrow) { margin: 8px 0 0; color: #d0d0d0; }
.footer-nav { display: grid; align-content: start; gap: 10px; }
.footer-nav h2 { color: var(--accent); font: 700 .86rem/1.4 var(--sans); letter-spacing: 0; }
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div { grid-column: 1 / -1; }
}
