/* ================================================
   HOME.CSS
   Homepage-only styles.
   Sections: Hero, Tagline Strip, Releases,
   Stories That Linger, Narrations from the Void.

   All shared/reusable styles live in:
   base.css / layout.css / components.css
   ================================================ */


/* ------------------------------------------------
   HERO SECTION
   Full-viewport image banner.

   TO CHANGE THE BACKGROUND IMAGE:
   Update the url() value in .hero below.
   The barn image (Image 1) is the default,
   per the mockup design.
   ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;

  /* --- HERO BACKGROUND IMAGE ---
     Replace 'images/hero-barn.jpg' with your actual
     image filename. The images you've created are:
       images/hero-barn.jpg          (barn at sunset)
       images/hero-farmhouse.jpg     (farmhouse with eyes)
       images/hero-playground.jpg    (playground/cemetery)
       images/hero-church.jpg        (abandoned church)
  */
  background-image: url('../images/hero-barn.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Dark gradient overlay — ensures text legibility
   over the image without losing atmosphere */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 13, 11, 0.85) 0%,
    rgba(14, 13, 11, 0.6)  50%,
    rgba(14, 13, 11, 0.3)  100%
  );
  /* Second gradient adds depth at top/bottom */
  background:
    linear-gradient(
      to bottom,
      rgba(14, 13, 11, 0.7) 0%,
      rgba(14, 13, 11, 0.2) 30%,
      rgba(14, 13, 11, 0.2) 60%,
      rgba(14, 13, 11, 0.9) 100%
    ),
    linear-gradient(
      to right,
      rgba(14, 13, 11, 0.85) 0%,
      rgba(14, 13, 11, 0.3) 100%
    );
}

/* Hero content sits above the overlay */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-16)) var(--space-8) var(--space-24);
  display: flex;
  align-items: center;
  gap: var(--space-16);
  width: 100%;
}

/* Floating book cover */
.hero-book {
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 0.3s forwards;
}

.hero-book-cover {
  width: 200px;
  box-shadow:
    -4px 4px 0 rgba(0,0,0,0.4),
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(184, 151, 90, 0.08);
  border-radius: var(--radius-sm);
}

/* Hero text column */
.hero-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

/* Scroll indicator — animated line */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ------------------------------------------------
   TAGLINE STRIP
   Thin accent band between hero and releases.
   ------------------------------------------------ */
.tagline-strip {
  padding: var(--space-6) var(--space-8);
  background: var(--color-bg-raised);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  text-align: center;
}

.tagline-text {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


/* ------------------------------------------------
   LATEST RELEASES SECTION
   Background override for homepage context.
   ------------------------------------------------ */
.releases {
  background-color: var(--color-bg);
}


/* ------------------------------------------------
   STORIES THAT LINGER (Blog Preview)
   ------------------------------------------------ */
.stories {
  background-color: var(--color-surface);
}


/* ------------------------------------------------
   NARRATIONS FROM THE VOID
   Dark atmospheric section with background hint.
   ------------------------------------------------ */
.narrations {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Subtle atmospheric background texture */
.narrations::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-barn.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  pointer-events: none;
}

.narrations-inner {
  position: relative;
  z-index: 1;
}


/* ------------------------------------------------
   KEYFRAME ANIMATIONS
   ------------------------------------------------ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 0.6; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.7); opacity: 0.3; }
}


/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 900px) {

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
    padding-bottom: var(--space-16);
  }

  .hero-book-cover {
    width: 160px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, var(--text-3xl));
  }
}

@media (max-width: 600px) {

  .hero {
    min-height: 85vh;
    background-position: 70% center;
  }

  .hero-content {
    padding: calc(var(--header-height) + var(--space-8)) var(--space-4) var(--space-12);
  }

  .hero-book {
    display: none; /* Hide book cover on very small screens */
  }

  .hero-tagline {
    font-size: var(--text-base);
  }

  .tagline-text {
    letter-spacing: 0.15em;
    font-size: 0.65rem;
  }
}
