/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #1a1a1a;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 4rem 6rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: #666;
  max-width: 600px;
  line-height: 1.6;
}

/* History hero */
.history-hero {
  padding: 0 8rem;
  max-width: 1600px;
  margin: 0 auto;
}

.history-hero-figure {
  margin: 0;
}

.history-hero-figure img,
.history-hero-figure canvas {
  width: 100%;
  height: auto;
  display: block;
}

#cole-canvas {
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

.history-hero-figure figcaption {
  font-size: 0.8125rem;
  color: #888;
  margin-top: 1rem;
  font-style: italic;
}

/* About section */
.about {
  padding: 8rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: start;
}

.about-text {
  max-width: 520px;
}

.about-text:first-child {
  justify-self: end;
  padding-right: 4rem;
}

.about-text:last-child {
  padding-left: 4rem;
}

.about-lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.about-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-divider {
  width: 1px;
  background: #e0e0e0;
  height: 100%;
  min-height: 400px;
  justify-self: center;
}

/* Collection header */
.collection-header {
  text-align: center;
  padding: 8rem 4rem 4rem;
  border-top: 1px solid #e8e8e8;
}

.collection-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.collection-header p {
  font-size: 0.875rem;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
  padding: 2rem 6rem 8rem;
  max-width: 1800px;
  margin: 0 auto;
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 768 / 512;
  object-fit: cover;
  background: #f5f5f5;
}

.gallery-item-info {
  padding: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.gallery-item-number {
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.gallery-item-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: #1a1a1a;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-nav:hover {
  color: #1a1a1a;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  max-width: 1400px;
  padding: 4rem;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  justify-self: end;
}

.lightbox-info {
  padding: 2rem 0;
}

.lightbox-number {
  display: block;
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.lightbox-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.lightbox-poem {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  color: #444;
}

/* Footer */
.footer {
  padding: 4rem;
  text-align: center;
  border-top: 1px solid #e8e8e8;
}

.footer p {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1200px) {
  .history-hero {
    padding: 0 4rem;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    max-width: 800px;
    text-align: center;
  }

  .lightbox-image {
    justify-self: center;
    max-height: 50vh;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-text:first-child,
  .about-text:last-child {
    padding: 0;
    justify-self: center;
    max-width: 600px;
  }

  .about-divider {
    width: 60px;
    height: 1px;
    min-height: auto;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1.5rem 2rem;
  }

  .nav-links {
    gap: 2rem;
  }

  .hero {
    padding: 6rem 2rem 4rem;
    min-height: 80vh;
  }

  .history-hero {
    padding: 0 2rem;
  }

  .about {
    padding: 4rem 2rem;
  }

  .gallery {
    padding: 2rem 2rem 6rem;
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .collection-header {
    padding: 4rem 2rem 2rem;
  }

  .lightbox-content {
    padding: 2rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .footer {
    padding: 3rem 2rem;
  }

  .countdown {
    gap: 1.5rem;
  }

  .countdown-value {
    font-size: 2rem;
  }
}
