:root {
  color-scheme: light;
  --cream: #f5f1e8;
  --ink-purple: #2e1a38;
  --gold: #a9803f;
  --gold-soft: #c9a961;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink-purple);
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: clamp(10px, 2vw, 24px);
  border: 1px solid rgb(169 128 63 / 10%);
  content: "";
  pointer-events: none;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6vh 8vw;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 1s cubic-bezier(0.22, 0.61, 0.36, 1) 120ms forwards;
}

.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vmin, 620px);
  height: min(70vmin, 620px);
  transform: translate(-50%, -52%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(169 128 63 / 16%) 0%,
    rgb(169 128 63 / 6%) 45%,
    transparent 72%
  );
  filter: blur(2px);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

.crest {
  position: relative;
  z-index: 1;
  display: block;
  width: min(60vw, 380px);
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.divider {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(18px, 3vh, 34px);
}

.line {
  width: clamp(36px, 6vw, 64px);
  height: 1px;
}

.line-left {
  background: linear-gradient(to right, transparent, var(--gold-soft));
}

.line-right {
  background: linear-gradient(to left, transparent, var(--gold-soft));
}

.diamond {
  width: 6px;
  height: 6px;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold);
}

.status {
  z-index: 1;
  max-width: 90vw;
  margin: clamp(10px, 1.8vh, 16px) 0 0;
  color: var(--ink-purple);
  font-size: clamp(0.7rem, 1.5vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -52%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -52%) scale(1.04);
  }
}

@media (max-height: 520px) {
  .stage {
    padding: 3vh 8vw;
  }

  .crest {
    width: min(46vmin, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .glow {
    animation: none;
  }
}
