/* Luna blog theme — soft star lavender (#E8C4FF), E for Everyone */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

body.theme-luna {
  --l-bg: #0c0814;
  --l-bg2: #140e1c;
  --l-lav: #E8C4FF;
  --l-lav2: #f2dcff;
  --l-lav-dim: rgba(232, 196, 255, 0.12);
  --l-lav-border: rgba(232, 196, 255, 0.3);
  --l-glow: #c9a0ff;
  --l-text: #f6effc;
  --l-text-soft: #dcccec;
  --l-muted: #9a84b0;
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--l-bg);
  color: var(--l-text);
  line-height: 1.75;
  min-height: 100vh;
}

body.theme-luna::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(232, 196, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(180, 140, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 35% 28% at 85% 85%, rgba(120, 80, 180, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0c0814 0%, #100c18 50%, #140e1c 100%);
}

body.theme-luna a { color: var(--l-lav); text-decoration: none; }
body.theme-luna a:hover { color: var(--l-lav2); text-decoration: underline; }

.luna-shell {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px 64px;
}

.luna-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 36px;
  height: min(78vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: #080510;
}

.luna-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.06) contrast(1.02);
}

.luna-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,8,20,0.15) 0%, rgba(12,8,20,0.35) 42%, rgba(12,8,20,0.94) 88%, var(--l-bg) 100%),
    linear-gradient(90deg, rgba(12,8,20,0.5) 0%, transparent 48%);
  pointer-events: none;
}

.luna-hero-card {
  position: absolute;
  left: max(18px, calc(50% - 460px));
  bottom: 48px;
  max-width: min(500px, calc(100% - 36px));
  padding: 22px 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--l-lav-border);
  background: rgba(16, 10, 28, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: lunaFadeUp 1s ease both;
}

@keyframes lunaFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.luna-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-lav);
  font-weight: 800;
  margin-bottom: 10px;
}

.luna-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--l-lav);
  box-shadow: 0 0 16px var(--l-glow);
  animation: lunaTwinkle 2s ease-in-out infinite;
}

@keyframes lunaTwinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.luna-hero-card h1 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--l-lav2);
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.luna-hero-deck {
  font-size: 1.02rem;
  color: var(--l-text-soft);
  margin: 0;
  line-height: 1.55;
}

.luna-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.luna-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--l-lav-border);
  color: var(--l-lav);
  background: rgba(232, 196, 255, 0.1);
}

.luna-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
  animation: lunaFadeUp 1s ease 0.08s both;
}

.luna-nav-row a {
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--l-lav-border);
  color: var(--l-text-soft);
  background: rgba(232, 196, 255, 0.05);
}

.luna-nav-row a:hover {
  color: var(--l-lav2);
  background: var(--l-lav-dim);
  text-decoration: none;
}

.luna-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--l-lav-border);
  background: linear-gradient(135deg, rgba(232,196,255,0.12), rgba(80,40,120,0.06));
  animation: lunaFadeUp 1s ease 0.12s both;
}

.luna-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--l-lav);
  box-shadow: 0 0 20px rgba(201, 160, 255, 0.35);
  flex-shrink: 0;
  background: #1a1028;
}

.luna-author-avatar video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.luna-author-meta strong {
  display: block;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--l-lav);
  font-weight: 800;
}

.luna-author-meta span {
  display: block;
  font-size: 0.82rem;
  color: var(--l-muted);
  margin-top: 2px;
}

.luna-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}

.luna-tags span {
  font-size: 0.7rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(232, 196, 255, 0.22);
  color: #b8a0d0;
  background: rgba(232, 196, 255, 0.05);
}

.luna-article {
  max-width: 560px;
  margin: 0 auto;
}

.luna-article p {
  font-size: 1.12rem;
  color: var(--l-text);
  margin: 0 0 1.1em;
}

.luna-article p.lead {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--l-lav2);
}

.luna-pullquote {
  margin: 1.8em 0;
  padding: 1em 1.2em;
  border-left: 3px solid var(--l-lav);
  background: linear-gradient(90deg, rgba(232,196,255,0.14), transparent 85%);
  border-radius: 0 18px 18px 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--l-lav2);
  line-height: 1.4;
}

.luna-media-break {
  margin: 2.2em auto;
  max-width: 420px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--l-lav-border);
  box-shadow:
    0 0 0 1px rgba(232, 196, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(180, 120, 255, 0.18);
  background: #160e22;
  position: relative;
}

.luna-media-break video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
}

.luna-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(12,8,20,0.92));
  font-size: 0.78rem;
  color: var(--l-text-soft);
  letter-spacing: 0.04em;
}

.luna-gate {
  margin: 28px 0;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid var(--l-lav-border);
  background: linear-gradient(135deg, rgba(232,196,255,0.1), rgba(80,40,120,0.06));
}

.luna-gate h2 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--l-lav);
  margin: 0 0 10px;
  border: none;
  padding: 0;
}

.luna-gate ul {
  margin: 0 0 0 18px;
  color: var(--l-text-soft);
  font-size: 0.92rem;
}

.luna-gate li { margin-bottom: 6px; }

.luna-notice {
  margin: 28px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(232, 196, 255, 0.2);
  background: rgba(16, 10, 28, 0.7);
  font-size: 0.88rem;
  color: var(--l-text-soft);
}

.luna-cta-band {
  margin: 36px 0 28px;
  padding: 28px 22px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232,196,255,0.18), transparent 65%),
    linear-gradient(180deg, rgba(100,60,160,0.12), rgba(12,8,20,0.4));
  border: 1px solid var(--l-lav-border);
}

.luna-cta-band h2 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.35rem;
  color: var(--l-lav2);
  margin: 0 0 8px;
  border: none;
  padding: 0;
}

.luna-cta-band p {
  color: var(--l-text-soft);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.luna-cta-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0c0814 !important;
  background: linear-gradient(135deg, #f2dcff, #E8C4FF);
  border: none;
  box-shadow: 0 8px 28px rgba(201, 160, 255, 0.4);
  text-decoration: none !important;
}

.luna-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(201, 160, 255, 0.5);
  color: #0c0814 !important;
  text-decoration: none !important;
}

.luna-cta-links {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--l-muted);
}

body.theme-luna .seo-nav a {
  border-color: var(--l-lav-border);
  color: var(--l-text-soft);
}

body.theme-luna .seo-nav a:hover {
  border-color: var(--l-lav);
  color: var(--l-lav2);
  background: var(--l-lav-dim);
  text-decoration: none;
}

body.theme-luna .seo-site-map {
  background: rgba(232, 196, 255, 0.04);
  border-color: rgba(232, 196, 255, 0.16);
}

body.theme-luna .seo-site-map h2 { color: var(--l-lav); }
body.theme-luna .seo-site-map a { color: var(--l-text-soft); }

@media (prefers-reduced-motion: reduce) {
  .luna-hero-card, .luna-nav-row, .luna-author, .luna-kicker::before { animation: none; }
}
