:root {
  --bg: #f5efe4;
  --bg-soft: #fbf7f0;
  --card: rgba(255, 252, 246, 0.92);
  --text: #2f271e;
  --muted: #6f6253;
  --gold: #9b7a3d;
  --gold-soft: #c6ab76;
  --line: rgba(88, 66, 37, 0.14);
  --shadow: 0 20px 55px rgba(52, 36, 19, 0.12);
  --shadow-book: 0 20px 34px rgba(58, 39, 18, 0.18);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(197, 164, 104, 0.18), transparent 32%),
    linear-gradient(180deg, #faf6ee 0%, #f5efe4 55%, #f8f3ea 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(245, 241, 233, 0.92);
  border-bottom: 1px solid rgba(120, 102, 77, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  justify-content: flex-end;
}

.top-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  position: relative;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.top-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 24, 18, 0.72), rgba(31, 24, 18, 0.30) 45%, rgba(31, 24, 18, 0.10) 100%),
    url('tamil-hero.jpg') center center / cover no-repeat;
  transform: scale(1.06);
  filter: saturate(0.92) brightness(0.92);
  animation: heroPanZoom 9s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0) 60%
  );
  transform: translateX(-120%);
  animation: heroLightSweep 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245,239,228,0.08) 0%, rgba(245,239,228,0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 2rem;
  padding: 4rem 0;
  align-items: center;
}

.hero-copy {
  color: #f6efe4;
  max-width: 640px;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
}

.eyebrow {
  color: rgba(251, 243, 230, 0.82);
  margin-bottom: 1rem;
}

.hero h1,
.section h2,
.volume-content h3,
.site-footer strong {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.tagline {
  margin: 1.3rem 0 0.2rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #f3deae;
}

.tagline-tamil {
  margin: 0;
  font-family: "Noto Serif Tamil", serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(249, 238, 212, 0.9);
}

.hero-text {
  margin: 1.5rem 0 0;
  max-width: 58ch;
  color: rgba(255, 247, 237, 0.9);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #bb9658, #8c6e37);
  color: #fff9ef;
  box-shadow: 0 12px 32px rgba(149, 111, 44, 0.35);
}

.btn-secondary {
  background: rgba(255, 250, 241, 0.12);
  color: #fff6e8;
  border: 1px solid rgba(255, 239, 208, 0.3);
}

.hero-card {
  justify-self: end;
  max-width: 360px;
  width: 100%;
}

.hero-book-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(14, 8, 4, 0.36);
  border: 1px solid rgba(255, 246, 229, 0.22);
  background: rgba(247, 242, 232, 0.98);
}

.hero-book-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-book-caption {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  color: #fff7e9;
  background: rgba(30, 21, 14, 0.45);
  border: 1px solid rgba(255, 234, 200, 0.16);
}

.hero-book-caption span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(250, 234, 204, 0.68);
  margin-bottom: 0.35rem;
}

.hero-book-caption strong {
  font-weight: 600;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-tint {
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(205,183,138,0.08));
}

.intro-strip {
  padding: 0 0 1rem;
  margin-top: -2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.intro-grid article {
  background: rgba(255, 250, 243, 0.9);
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.section h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
  color: #2f2318;
}

.section-copy p,
.section-heading p,
.intro-grid p,
.connect-card,
.site-footer p {
  color: var(--muted);
}

.section-copy {
  font-size: 1.04rem;
}

.section-copy p + p {
  margin-top: 1rem;
}

.image-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(236,227,211,0.82));
  padding: 1rem;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.image-panel img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4.5;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.2rem;
}

.section-heading.centered,
.narrow {
  margin-inline: auto;
  text-align: center;
}

.narrow {
  max-width: 620px;
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.volume-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.volume-card:hover {
  transform: perspective(1000px) rotateX(1.5deg) rotateY(-3deg) translateY(-6px);
  box-shadow: 0 26px 40px rgba(58, 39, 18, 0.22);
}

.volume-card img {
  width: 100%;
  aspect-ratio: 3 / 4.5;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.volume-card:hover img {
  transform: scale(1.015);
}

.volume-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1rem 1.15rem;
}

.volume-number {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}

.volume-content h3 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--text);
}

.volume-content p {
  margin: 0;
  color: var(--muted);
}

.volume-subtitle {
  min-height: 3.2em;
  font-size: 0.98rem;
}

.volume-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(155, 122, 61, 0.22);
  background: rgba(155, 122, 61, 0.08);
  color: #71562a;
  font-size: 0.87rem;
  font-weight: 600;
}

.status-live {
  background: rgba(49, 115, 78, 0.1);
  border-color: rgba(49,115,78,0.18);
  color: #2f704f;
}

.card-link {
  font-weight: 600;
  color: #6d5123;
}

.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: stretch;
}

.featured-cover-wrap {
  background: #f7f2e8;
  display: flex;
  align-items: stretch;
}

.featured img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  object-position: center;
}

.featured .volume-content {
  justify-content: center;
  padding: 1.8rem;
}

.featured .volume-content h3 {
  font-size: 2.25rem;
}

.featured .volume-subtitle {
  min-height: auto;
  font-size: 1.02rem;
}

.tamil-block {
  display: grid;
  gap: 0.75rem;
  font-family: "Noto Serif Tamil", serif;
  color: #584733;
  background: rgba(255,255,255,0.5);
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 18px 18px 0;
}

.connect-wrap {
  display: grid;
  gap: 2rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.connect-card {
  display: block;
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255,252,247,0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.connect-card strong {
  display: block;
  color: var(--text);
  margin-top: 0.25rem;
  word-break: break-word;
}

.connect-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}

.site-footer {
  padding: 1.4rem 0 2.3rem;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer strong {
  font-size: 1.7rem;
  color: var(--text);
}

.site-footer p {
  margin: 0.2rem 0 0;
}

@keyframes heroPanZoom {
  0% {
    transform: scale(1.06) translateX(0) translateY(0);
  }
  50% {
    transform: scale(1.1) translateX(-1.2%) translateY(-0.8%);
  }
  100% {
    transform: scale(1.08) translateX(1%) translateY(0.6%);
  }
}

@keyframes heroLightSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 1100px) {
  .hero-content,
  .two-col,
  .two-col.reverse,
  .featured {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-self: start;
    max-width: 320px;
  }

  .volume-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured {
    grid-column: span 3;
  }

  .featured-cover-wrap {
    max-width: 420px;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .intro-grid,
  .volume-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .featured {
    grid-column: span 1;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
