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

:root {
  --color-bg: #faf8f5;
  --color-bg-warm: #f5f0eb;
  --color-text: #2c2c2c;
  --color-text-light: #6b6058;
  --color-accent: #8b6f5e;
  --color-accent-hover: #6d5548;
  --color-gold: #c4a47c;
  --color-border: #e2ddd7;
  --font-heading: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Page Wrapper */
.page-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(
    160deg,
    var(--color-bg) 0%,
    var(--color-bg-warm) 50%,
    #efe7df 100%
  );
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--color-accent);
  padding: 0.9rem 2.5rem;
  border-radius: 2px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.cta-button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Section Heading */
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 3rem;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--color-gold);
  margin: 1rem auto 0;
}

/* Poems Section */
.poems-section {
  padding: 6rem 2rem;
  background: var(--color-bg);
  max-width: 700px;
  margin: 0 auto;
}

/* Poem Carousel */
.poem-carousel {
  position: relative;
  min-height: 350px;
}

.poem-card {
  display: none;
  animation: fadeIn 0.6s ease;
}

.poem-card.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poem-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.poem-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
  text-align: center;
}

.poem-body p {
  margin-bottom: 1.5rem;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.carousel-btn {
  background: none;
  border: 1px solid var(--color-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: var(--color-accent);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  .book-title {
    font-size: 1.3rem;
  }
  .section-heading {
    font-size: 1.4rem;
  }
  .poem-body {
    font-size: 0.9rem;
  }
  .poems-section {
    padding: 4rem 1.5rem;
  }
}
