@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #080d1a;
  --bg2: #0d1528;
  --bg3: #111e38;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f0e8d5;
  --text: #d4cfc8;
  --text-muted: #8a8a9a;
  --accent: #4a7fcb;
  --moon: #e8d5a3;
  --border: rgba(201,168,76,0.2);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(74,127,203,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,13,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { color: var(--cream); }

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

/* ---- HERO / PAGE HEADER ---- */
.page-hero {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,213,163,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-style: italic;
}

/* ---- MAIN CONTENT ---- */
main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.content-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

/* ---- ARTICLE STYLES ---- */
.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--cream);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gold-light);
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.4rem;
  color: var(--text);
  font-size: 1.05rem;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.4rem 1.5rem;
  color: var(--text);
}

.article-content li { margin-bottom: 0.5rem; }

.article-content strong { color: var(--gold-light); font-weight: 600; }

.article-content em { color: var(--cream); font-style: italic; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-meta .tag {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- CALLOUT BOX ---- */
.callout {
  background: rgba(201,168,76,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.callout p { margin: 0; color: var(--cream); }
.callout p:not(:last-child) { margin-bottom: 0.75rem; }

/* ---- CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- PHASE TABLE ---- */
.phase-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.phase-table th {
  background: var(--bg3);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.phase-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  vertical-align: top;
}

.phase-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.phase-table tr:hover td { background: rgba(201,168,76,0.05); }

/* ---- MOON WIDGET AREA ---- */
.moon-widget-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin: 2rem 0;
}

.moon-display {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  margin-bottom: 1rem;
  animation: moonGlow 4s ease-in-out infinite alternate;
}

@keyframes moonGlow {
  from { filter: drop-shadow(0 0 15px rgba(232,213,163,0.3)); }
  to   { filter: drop-shadow(0 0 30px rgba(232,213,163,0.6)); }
}

.moon-phase-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.moon-illumination {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.moon-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.moon-stat {
  text-align: center;
}

.moon-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--cream);
  display: block;
}

.moon-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 3rem);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-heading {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem clamp(1rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- UTILITY ---- */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }

/* ---- FORM ---- */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  color: var(--cream);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Lora', serif;
  font-size: 1rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.btn {
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}

.btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .moon-stats { gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
