:root {
  --ink: #2f2f2f;
  --muted: #6f6f6f;
  --paper: #ffffff;
  --soft: #eeeeee;
  --soft-warm: #e8e3e2;
  --line: #e2e2e2;
  --hero: #686868;
  --accent: #00a895;
  --accent-hover: #789df0;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Gothic A1", Raleway, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 22px;
  color: #555;
  border-bottom: 1px solid var(--line);
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.78rem;
}

.top-bar a {
  color: var(--accent);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--accent-hover);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 22px;
}

.brand {
  color: #111;
  font-family: Prata, Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
  color: #1f1f1f;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(32px, 6vw, 72px);
  min-height: 600px;
  align-items: center;
  overflow: hidden;
  padding: 82px max(22px, calc((100vw - 1180px) / 2 + 22px));
  color: white;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.3)),
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.28), transparent 0 18%, transparent 38%),
    linear-gradient(135deg, #565656, var(--hero));
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.16) 58% 64%, transparent 64%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 74px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin: 0;
  justify-self: end;
}

.hero-photo img,
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo img {
  aspect-ratio: 4 / 5;
  border: 12px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.hero h1 {
  margin: 0;
  font-family: Prata, Georgia, serif;
  font-size: clamp(3.6rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
}

.hero-kicker {
  margin: 28px 0 0;
  color: white;
  font-family: Raleway, Arial, sans-serif;
  font-size: clamp(0.92rem, 2vw, 1.22rem);
  letter-spacing: 0.26em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid currentColor;
  border-radius: 0;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button.primary,
.button.secondary {
  color: white;
  background: transparent;
  border-color: white;
}

.button.primary:hover,
.button.secondary:hover {
  color: var(--ink);
  background: white;
}

.welcome-band {
  background: var(--soft-warm);
}

.inner,
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding-right: 22px;
  padding-left: 22px;
}

.welcome-band .inner {
  padding-top: 42px;
  padding-bottom: 42px;
}

h2 {
  margin: 0;
  color: #3d3d3d;
  font-family: Prata, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.18;
}

.section {
  padding-top: 78px;
  padding-bottom: 84px;
}

.accent-section {
  max-width: none;
  background: var(--soft);
}

.accent-section > * {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.section-heading p:last-child,
.about-copy {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 760px);
  gap: 42px;
  align-items: start;
}

.portrait-placeholder,
.photo-placeholder {
  display: grid;
  min-height: 360px;
  width: 100%;
  place-items: center;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    linear-gradient(145deg, #777, #444);
  border: 10px solid white;
  box-shadow: 0 0 0 1px #cfcfcf;
  font-family: Prata, Georgia, serif;
  font-size: 2.2rem;
  text-align: center;
}

.about-photo {
  margin: 0;
  min-height: 360px;
  background: #f7f7f7;
  border: 10px solid white;
  box-shadow: 0 0 0 1px #cfcfcf;
}

.about-copy {
  font-size: 1.02rem;
}

.assamese-copy {
  font-family: "Noto Serif Bengali", "Nirmala UI", Vrinda, serif;
  line-height: 1.95;
  text-align: justify;
  text-justify: inter-word;
}

.about-copy p:first-child {
  color: #555;
  font-weight: 600;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 34px 24px;
}

.book-card {
  background: transparent;
  border: 0;
}

.book-button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.book-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 300 / 456;
  place-items: center;
  object-fit: cover;
  background: #f7f7f7;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-button:hover .book-cover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.missing-cover {
  padding: 20px;
  color: #555;
  font-family: Prata, Georgia, serif;
  font-size: 1.25rem;
  text-align: center;
}

.book-body {
  padding: 17px 0 0;
}

.book-body h3 {
  margin: 0 0 4px;
  color: #2f2f2f;
  font-family: Prata, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
}

.book-body p {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.book-request-note {
  display: inline-flex;
  margin-top: 10px;
  color: #555;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-grid {
  --gallery-visible: 4;
  --gallery-gap: 22px;
}

.gallery-slider {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: var(--gallery-gap);
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc((100% - (var(--gallery-gap) * (var(--gallery-visible) - 1))) / var(--gallery-visible));
  overflow: hidden;
  margin: 0;
  color: #555;
  background: #f7f7f7;
  border: 10px solid white;
  box-shadow: 0 0 0 1px #d2d2d2;
  font-family: Raleway, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .photo-placeholder {
  aspect-ratio: 4 / 3;
  color: #555;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.95rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.video-card {
  background: white;
  box-shadow: 0 0 0 1px #d2d2d2;
}

.video-button {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.video-media {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  background: #111;
  overflow: hidden;
}

.video-media video,
.video-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.video-thumb img,
.video-thumb .video-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-placeholder {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #333, #111);
  font-family: Prata, Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.25;
  padding: 20px;
  text-align: center;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  min-width: 76px;
  min-height: 76px;
  place-items: center;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-button:hover .play-badge {
  background: white;
  transform: translate(-50%, -50%) scale(1.08);
}

.external-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 48px;
  padding: 0 24px;
  color: white;
  border: 1px solid white;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.external-video-link:hover {
  color: #111;
  background: white;
}

.video-body {
  padding: 18px;
}

.video-body h3 {
  margin: 0 0 6px;
  color: #2f2f2f;
  font-family: Prata, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.video-body p {
  margin: 0;
  color: var(--muted);
}

.video-dialog {
  width: min(1060px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.video-preview {
  display: grid;
  min-height: 260px;
  place-items: center;
  background: #111;
}

.video-preview video,
.video-preview iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
}

.hero-photo .photo-placeholder {
  aspect-ratio: 4 / 5;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.gallery-control {
  min-height: 42px;
  padding: 0 18px;
  color: var(--ink);
  background: white;
  border: 1px solid #d2d2d2;
  font-family: Raleway, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-control:hover {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.contact-section {
  max-width: none;
  color: white;
  background: #222;
}

.contact-section > * {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.contact-section h2,
.contact-section .section-heading p {
  color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.contact-grid a,
.contact-grid p {
  margin: 0;
  padding: 22px;
  color: white;
  background: #2d2d2d;
  text-decoration: none;
}

.contact-grid a:hover {
  color: var(--accent);
}

.pdf-dialog {
  width: min(1100px, calc(100vw - 28px));
  height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.pdf-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: Raleway, Arial, sans-serif;
  text-transform: uppercase;
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: #f4f4f4;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 1.1rem;
  cursor: pointer;
}

#pdfFrame {
  display: block;
  width: 100%;
  height: calc(100% - 116px);
  border: 0;
}

#openPdfLink {
  margin: 10px 16px 16px;
  color: var(--ink);
  border-color: var(--ink);
}

#openPdfLink:hover {
  color: white;
  background: var(--ink);
}

.request-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.request-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.request-content {
  padding: 24px;
}

.request-content p {
  margin: 0 0 20px;
  color: var(--muted);
}

.request-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.request-email,
.request-whatsapp {
  color: var(--ink);
  background: white;
  border-color: var(--ink);
}

.request-email:hover,
.request-whatsapp:hover {
  color: white;
  background: var(--ink);
}

@media (max-width: 820px) {
  .top-bar,
  .header-main,
  .hero,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .top-bar,
  .header-main {
    display: grid;
    justify-items: start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 520px;
  }

  .hero-photo {
    justify-self: start;
    max-width: 280px;
  }

  .hero-kicker {
    letter-spacing: 0.18em;
  }

  .portrait-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .top-bar {
    display: none;
  }

  .header-main {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero {
    min-height: 470px;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }
}
