:root {
  --gold: #d9a441;
  --gold-bright: #f3c969;
  --ink: #0a0c12;
  --text: #ece3d0;
  --muted: #b8ad97;
  --ember: #ff8a3c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  padding: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(to bottom, rgba(8, 10, 16, 0.55) 0%, rgba(8, 10, 16, 0.72) 55%, rgba(8, 10, 16, 0.92) 100%),
    url("images/hero.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Vignette to draw the eye inward and keep text legible */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.stage {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
  animation: rise 1.6s ease-out both;
}

.crest {
  width: 200px;
  max-width: 56vw;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(255, 138, 60, 0.35));
  animation: glow 4.5s ease-in-out infinite;
}

.title {
  margin-top: 0.5rem;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, #f6e7c4 0%, var(--gold) 70%, #a9711f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  font-style: italic;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.status-rule {
  height: 1px;
  width: clamp(40px, 18vw, 120px);
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.status-text {
  font-size: clamp(0.95rem, 3vw, 1.2rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-bright);
}

.note {
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
}

.footer {
  position: fixed;
  bottom: 1.2rem;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(184, 173, 151, 0.6);
}

/* Drifting embers */
.embers {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.embers span {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px 2px rgba(255, 138, 60, 0.55);
  opacity: 0;
  animation-name: float;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

.embers span:nth-child(1)  { left: 5%;  width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 0s;   }
.embers span:nth-child(2)  { left: 12%; animation-duration: 11s; animation-delay: 2.5s; }
.embers span:nth-child(3)  { left: 20%; width: 5px; height: 5px; animation-duration: 8s;  animation-delay: 4s;   }
.embers span:nth-child(4)  { left: 28%; animation-duration: 12s; animation-delay: 1s;   }
.embers span:nth-child(5)  { left: 36%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 6s;   }
.embers span:nth-child(6)  { left: 44%; animation-duration: 13s; animation-delay: 3s;   }
.embers span:nth-child(7)  { left: 52%; width: 5px; height: 5px; animation-duration: 9s;  animation-delay: 5.5s; }
.embers span:nth-child(8)  { left: 60%; animation-duration: 11s; animation-delay: 0.5s; }
.embers span:nth-child(9)  { left: 68%; width: 3px; height: 3px; animation-duration: 8s;  animation-delay: 7s;   }
.embers span:nth-child(10) { left: 76%; animation-duration: 12s; animation-delay: 2s;   }
.embers span:nth-child(11) { left: 83%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 4.5s; }
.embers span:nth-child(12) { left: 89%; animation-duration: 13s; animation-delay: 1.5s; }
.embers span:nth-child(13) { left: 94%; width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 6.5s; }
.embers span:nth-child(14) { left: 98%; animation-duration: 11s; animation-delay: 3.5s; }

@keyframes float {
  0%   { transform: translateY(0) translateX(0) scale(1);     opacity: 0; }
  12%  { opacity: 0.9; }
  60%  { opacity: 0.7; }
  100% { transform: translateY(-92vh) translateX(24px) scale(0.3); opacity: 0; }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(255, 138, 60, 0.30)); }
  50%      { filter: drop-shadow(0 0 32px rgba(255, 138, 60, 0.55)); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .stage,
  .crest { animation: none; }
}
