/* ========================================
   Lunar Cycle Hero
======================================== */

.lunar-hero {
  padding: 120px 32px 96px;
  text-align: center;
}

.lunar-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.lunar-hero h1 {
  margin: 16px 0 0;

  color: var(--text);

  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;

  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
}

.lunar-hero p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px auto 0;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.6;
}


/* ========================================
   Lunar Phase Cards
======================================== */

.lunar-phases {
  padding: 0 32px 120px;
}

.lunar-phases-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.lunar-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lunar-phase-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-height: 300px;
  padding: 32px;

  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);

  color: var(--text);
  text-align: left;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.lunar-phase-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.lunar-phase-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.lunar-phase-symbol {
  margin-top: 40px;

  font-size: 48px;
  line-height: 1;
}

.lunar-phase-name {
  margin-top: 24px;

  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.lunar-phase-action {
  margin-top: auto;
  padding-top: 28px;

  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ========================================
   Lunar Expanded Overlay
======================================== */

.lunar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: grid;
  place-items: center;

  padding: 24px;
}

.lunar-overlay[hidden] {
  display: none;
}

.lunar-overlay-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.72);
}

.lunar-expanded-card {
  position: relative;
  z-index: 1;

  width: min(100%, 620px);
  max-height: min(720px, calc(100vh - 48px));
  overflow-y: auto;

  padding: 48px;

  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lunar-close {
  position: absolute;
  top: 20px;
  right: 24px;

  border: 0;
  background: none;

  color: var(--muted);

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
}

.lunar-close:hover {
  color: var(--text);
}

.lunar-expanded-symbol {
  margin-top: 32px;

  font-size: 72px;
  line-height: 1;
}

.lunar-expanded-card h2 {
  margin: 24px 0 0;

  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;

  font-size: 48px;
  line-height: 1;
}

.lunar-expanded-card p:not(.eyebrow) {
  margin: 24px 0 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.7;
}

.lunar-return {
  margin-top: 36px;

  padding: 0;

  border: 0;
  background: none;

  color: var(--gold);

  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
}

@media (max-width: 800px) {

  .lunar-hero {
    padding: 72px 20px 64px;
  }

  .lunar-phases {
    padding: 0 20px 72px;
  }

  .lunar-phase-grid {
    grid-template-columns: 1fr;
  }

  .lunar-phase-card {
    min-height: 240px;
  }

  .lunar-expanded-card {
    padding: 40px 24px;
  }

  .lunar-expanded-card h2 {
    font-size: 40px;
  }

}