@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Lora:wght@400;500;600&display=swap');

:root {
  --deep-indigo: #2c3e50;
  --warm-bone: #f8f6f0;
  --mangrove-green: #083a2d;
  --gold-accent: #d4af37;
  --text-dark: #2c2c2c;
  --text-light: rgba(255, 255, 255, 0.9);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--warm-bone);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Navigation */
.site-nav {
  background: var(--mangrove-green);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  max-height: 50px;
  filter: invert(1);
}

.nav-links a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

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

.nav-links a.active {
  border-bottom: 2px solid var(--gold-accent);
  color: var(--gold-accent);
}

/* Hero Section */
.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #0E4B3E 0%, #F9F8F5 100%);
  color: #1B1B1B;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1.2s ease-out;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M20,50 Q50,20 80,50 T140,50" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/><path d="M40,100 Q70,70 100,100 T160,100" stroke="rgba(255,255,255,0.02)" stroke-width="1.5" fill="none"/></svg>') repeat;
  background-size: 200px 200px;
}

.hero-logo {
  width: 45vw;
  max-width: 600px;
  display: block;
  margin: 2rem auto;
  filter: none;
  opacity: 0.95;
}

.headline {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.02em;
  color: #1B1B1B;
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 2rem;
  opacity: 0.85;
  max-width: 600px;
  font-weight: 400;
  line-height: 1.5;
  color: #2C2C2C;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Call to Action Buttons */
.cta, .cta-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.cta {
  background: var(--mangrove-green);
  color: #F9F8F5;
  box-shadow: 0 4px 12px rgba(8, 58, 45, 0.3);
}

.cta:hover {
  background: var(--deep-indigo);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 58, 45, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--mangrove-green);
  border: 2px solid var(--mangrove-green);
}

.cta-secondary:hover {
  background: var(--mangrove-green);
  color: white;
}

/* Main Content Sections */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-preview, .featured-books, .connect {
  padding: 4rem 0;
  text-align: center;
}

.about-preview h2, .featured-books h2, .connect h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  color: var(--deep-indigo);
  margin-bottom: 1rem;
}

.about-preview p, .connect p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-dark);
}

/* Featured Books Section */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.book {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.book-cover-placeholder {
  width: 150px;
  height: 200px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--mangrove-green), var(--deep-indigo));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.book h3 {
  margin: 0 0 0.5rem;
  font-family: 'Lora', serif;
}

.book h3 a {
  color: var(--deep-indigo);
  text-decoration: none;
}

.book h3 a:hover {
  color: var(--gold-accent);
}

.book p {
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--deep-indigo);
  color: var(--text-light);
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-image: url('assets/images/engraving_12x18in_1bit.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  filter: invert(1);
}

footer a {
  color: var(--gold-accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Page Headers for internal pages */
.page-header {
  text-align: center;
  padding: 3rem 0 1rem;
}

.page-header h1 {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  color: var(--deep-indigo);
  margin: 0;
}

.intro {
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-family: 'Lora', serif;
  color: var(--mangrove-green);
  margin-bottom: 1rem;
}

.intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .hero-logo {
    width: 60vw;
    max-width: 300px;
    margin: 1.5rem auto;
  }
  
  .headline {
    font-size: 2rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  .about-preview, .featured-books, .connect {
    padding: 2rem 0;
  }
  
  .book-grid {
    grid-template-columns: 1fr;
  }
}

.book-list {
  margin-top: 2rem;
}

.book-list article {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-list h2 {
  color: #083a2d;
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.book-list p {
  margin: 0;
  text-align: left;
}