@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500&display=swap');

:root {
  --color-ivory: #FDFCF8;
  --color-light-gray: #E8E6E3;
  --color-oat: #F5F1E8;
  --color-deep-black: #1A1A1A;
  --color-charcoal: #3D3D3D;
  --color-terracotta: #C76E5A;
  --color-serene-blue: #7A9CB5;
  --color-gray-green: #A8B5A0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-ivory);
  color: var(--color-deep-black);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  letter-spacing: 0.05em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

.page-transition {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nav-chapters {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 6rem 2rem;
}

.chapter-link {
  text-align: center;
  transition: transform 0.4s ease;
}

.chapter-link:hover {
  transform: translateY(-8px);
}

.chapter-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--color-deep-black);
}

.chapter-subtitle {
  font-size: 1rem;
  color: var(--color-charcoal);
  letter-spacing: 0.1em;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.collection-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.collection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-item:hover img {
  transform: scale(1.03);
}

.collection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  text-align: center;
}

.collection-item:hover .collection-overlay {
  opacity: 1;
}

.overlay-title {
  font-size: 1.5rem;
  color: var(--color-ivory);
  margin-bottom: 0.5rem;
}

.overlay-material {
  font-size: 0.9rem;
  color: var(--color-light-gray);
  letter-spacing: 0.05em;
}

.detail-masonry {
  column-count: 3;
  column-gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.detail-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.detail-item:hover {
  transform: scale(1.02);
}

.detail-item img {
  width: 100%;
  border-radius: 2px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-light-gray);
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-ivory);
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: rotate(90deg);
}

.page-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--color-light-gray);
  color: var(--color-charcoal);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 3rem 1.5rem;
  }
  
  .detail-masonry {
    column-count: 2;
    column-gap: 1.5rem;
    padding: 3rem 1.5rem;
  }
  
  .chapter-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1rem;
  }
  
  .detail-masonry {
    column-count: 1;
    column-gap: 0;
    padding: 2rem 1rem;
  }
  
  .nav-chapters {
    gap: 3rem;
    padding: 4rem 1rem;
  }
  
  .chapter-title {
    font-size: 1.5rem;
  }
  
  .chapter-subtitle {
    font-size: 0.9rem;
  }
  
  .lightbox-caption {
    font-size: 0.8rem;
  }
}