@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi&family=Playfair+Display:ital,wght@0,700;0,900;1,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');
@import "tailwindcss";

:root {
  --paper: #e3d5c7; 
  --paper2: #efe5da; 
  --paper3: #eceae5; 
  --paper4: #f5f4f0;
  --ink: #3f2d22; 
  --ink2: #1a1a1a; 
  --muted: #888; 
  --rule: rgba(63,45,34,.18);
  --gold: #b8924a; 
  --crimson: #8d2f2f; 
  --dark: #1e1e1c; 
  --dark2: #2c2c2a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper4);
  color: var(--ink2);
  overflow-x: hidden;
  transition: opacity 250ms ease;
  min-height: 100vh;
}

/* NAVBAR & NAV GLOBAL */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: var(--paper4);
  border-bottom: 0.5px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo-link {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--ink2);
  text-decoration: none;
  letter-spacing: .05em;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink2);
  opacity: .55;
  transition: opacity .2s, border-bottom .2s;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  font-weight: 600;
  border-bottom: 1.5px solid var(--crimson);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--ink2);
  transition: transform .2s, opacity .2s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 80vw);
  height: 100vh;
  background: var(--paper2);
  z-index: 150;
  padding: 100px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 0.5px solid var(--rule);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,.04);
}
.mobile-menu.open {
  right: 0;
}
.mobile-menu a {
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink2);
  opacity: .7;
  transition: opacity .2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  opacity: 1;
  font-weight: 600;
  color: var(--crimson);
}

/* PHOTOGRAPHS COMPONENT STYLING */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  background: var(--paper4);
}
.hero-left {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 0.5px solid var(--rule);
}
.hero-label {
  font-size: 11px;
  color: #999;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  color: var(--ink2);
  line-height: .95;
  margin-bottom: 24px;
}
.hero-rule {
  width: 42px;
  border: none;
  border-top: 1.5px solid var(--ink2);
  margin-bottom: 24px;
}
.hero-tagline {
  font-size: 12px;
  color: #777;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  border-left: 1.5px solid var(--gold);
  padding-left: 16px;
}
.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--dark);
}
.hero-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.35;
}
.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
  transition: transform .5s ease, opacity .5s ease;
}
.hero-thumb:hover img {
  transform: scale(1.05);
  opacity: .9;
}
.hero-thumb-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.5);
  padding: 4px 8px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .3s ease;
}
.hero-thumb:hover .hero-thumb-label {
  opacity: 1;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px 48px;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  background: var(--paper3);
  flex-wrap: wrap;
}
.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #777;
  margin-right: 8px;
}
.filter-btn {
  background: transparent;
  border: 0.5px solid var(--rule);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--ink2);
  color: #fff;
  border-color: var(--ink2);
}

/* CAROUSEL */
.carousel-section {
  padding: 64px 48px;
  background: var(--paper4);
  border-bottom: 0.5px solid var(--rule);
}
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto 32px;
}
.section-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #999;
}
.carousel-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #666;
}
.carousel-nav {
  display: flex;
  gap: 8px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0.5px solid var(--rule);
  background: #fff;
  color: var(--ink2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s;
  font-size: 16px;
}
.carousel-btn:hover {
  background: var(--ink2);
  color: #fff;
  border-color: var(--ink2);
}
.carousel-track-wrap {
  overflow: hidden;
  max-width: 1160px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .4s cubic-bezier(.25, 1, .5, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 380px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.carousel-image-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.carousel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.carousel-slide:hover .carousel-image-wrap img {
  transform: scale(1.02);
}
.carousel-slide-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink2);
}
.carousel-slide-desc {
  font-size: 12px;
  color: #888;
}

.progress-bar-wrap {
  width: min(400px, 80vw);
  height: 2px;
  background: #e5e5e0;
  margin: 40px auto 0;
  position: relative;
  border-radius: 2px;
}
.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--crimson);
  transition: width .3s ease;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30,30,28,.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(8px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(1000px, 90vw);
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-meta {
  color: #fff;
  text-align: center;
  margin-top: 20px;
}
.lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 4px;
}
.lightbox-loc {
  font-size: 12px;
  color: #999;
}
.lightbox-arrows {
  position: absolute;
  inset-y: 50%;
  inset-x: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.lb-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
  pointer-events: auto;
}
.lb-btn:hover {
  background: rgba(255,255,255,.2);
}
.lb-swipe-hint {
  position: absolute;
  bottom: 24px;
  color: #666;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* MOBILE MOBILE MOBILE */
.mobile-grid-section {
  display: none;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav {
    padding: 16px 20px;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-left {
    padding: 40px 20px;
    border-right: none;
    border-bottom: 0.5px solid var(--rule);
  }
  .hero-right {
    aspect-ratio: 1;
  }
  .carousel-section {
    display: none;
  }
  .mobile-grid-section {
    display: block;
    padding: 40px 20px;
    background: var(--paper4);
  }
  .mobile-grid-header {
    margin-bottom: 24px;
  }
  .mobile-grid-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mobile-grid-item {
    cursor: pointer;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
  }
  .mobile-grid-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  .mobile-item-meta {
    padding: 16px;
  }
  .mobile-item-meta h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 700;
  }
  .mobile-item-meta p {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
  }
}

/* CUSTOM BR BROKEN IMAGES OVERRIDES */
.custom-chapter-desc-wrap {
  padding: 16px;
  background: rgba(184,146,74,.05);
  border-radius: 8px;
  border: 0.5px dashed rgba(184,146,74,.3);
  margin-top: 12px;
}
.chapter-reflection {
  font-style: italic;
  font-size: 14px;
  line-height: 1.8;
  color: #6b5c50;
  text-align: center;
}
