:root {
  --bg-top: #0b0c1e;
  --bg-bottom: #1c1440;
  --ink: #f4f1ea;
  --muted: #b9b4d6;
  --accent: #e8c37a;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Georgia', 'Iowan Old Style', serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(45% 40% at 30% 25%, rgba(94, 63, 150, 0.4), transparent 70%),
    radial-gradient(50% 45% at 75% 70%, rgba(58, 78, 140, 0.32), transparent 70%),
    radial-gradient(40% 35% at 20% 80%, rgba(120, 80, 130, 0.22), transparent 70%);
  background-repeat: no-repeat;
  animation: sky-breathe 40s ease-in-out infinite alternate;
  filter: blur(60px);
}

.moon {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e0, #f0e2b0 60%, #d8c68a 100%);
  box-shadow: 0 0 60px 10px rgba(240, 226, 176, 0.35);
  animation: moon-rotate 90s linear infinite, moon-glow 6s ease-in-out infinite alternate;
}

.moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 30% 38%, rgba(170, 148, 100, 0.4) 0%, transparent 9%),
    radial-gradient(circle at 66% 28%, rgba(170, 148, 100, 0.32) 0%, transparent 7%),
    radial-gradient(circle at 58% 66%, rgba(170, 148, 100, 0.28) 0%, transparent 11%),
    radial-gradient(circle at 24% 68%, rgba(170, 148, 100, 0.24) 0%, transparent 8%);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(2px 2px at 85% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 85%, #fff, transparent);
  opacity: 0.6;
  animation: twinkle 5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 15%, #fff, transparent),
    radial-gradient(1px 1px at 35% 55%, #fff, transparent),
    radial-gradient(2px 2px at 62% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 78%, #fff, transparent),
    radial-gradient(1px 1px at 92% 35%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 28% 92%, #fff, transparent),
    radial-gradient(1px 1px at 50% 25%, #fff, transparent);
  opacity: 0.5;
  animation: twinkle 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite reverse;
  animation-delay: 1.4s;
}

@keyframes sky-breathe {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.15) translate(-2%, 2%);
    opacity: 1;
  }
  100% {
    transform: scale(1.05) translate(2%, -2%);
    opacity: 0.85;
  }
}

@keyframes moon-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes moon-glow {
  from { box-shadow: 0 0 60px 10px rgba(240, 226, 176, 0.35); }
  to { box-shadow: 0 0 84px 18px rgba(240, 226, 176, 0.55); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sky::before,
  .moon,
  .stars,
  .stars::after {
    animation: none;
  }
}

.brand {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem 3rem;
}

.figure-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spotlight {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  max-width: 90vw;
  height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 225, 170, 0.28) 0%, rgba(244, 225, 170, 0.1) 45%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.figure {
  position: relative;
  width: min(85vw, 420px);
  height: auto;
  display: block;
  filter:
    brightness(0)
    drop-shadow(0 0 3px rgba(244, 241, 234, 0.55))
    drop-shadow(0 24px 34px rgba(0, 0, 0, 0.55));
  margin-top: 0.5rem;
}

.headline {
  margin: 1.5rem 0 0.4rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.subhead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

.teaser-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.teaser-link:hover {
  border-color: var(--accent);
  opacity: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 2.25rem;
  gap: 0.35rem;
}

.yours {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.signature {
  width: 130px;
  height: auto;
  fill: var(--ink);
  opacity: 0.9;
}

@media (max-width: 480px) {
  .moon {
    width: 90px;
    height: 90px;
    top: 6%;
    right: 8%;
  }
}
