:root {
  --bg: #E7D9C0;
  --text: #2E2A24;
  --text-2: #5C5349;
  --burn: #4A2E12;
  --halo-a: #EBCFB0;
  --halo-b: #E7CCC2;
  --halo-c: #D9D1AF;
  --stage-gap: clamp(1.25rem, 3vw, 1.75rem);
  --ease: cubic-bezier(0.22, 0.85, 0.3, 1);
  --wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0022 0.065' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0.24 0 0 0 0.75 0.28 0 0 0 0.58 0.28 0 0 0 0.38 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 2.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: "Josefin Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

.halo {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.9;
  animation: drift 18s ease-in-out infinite alternate;
}
.halo--a { width: 44vmax; height: 44vmax; background: var(--halo-a); top: -14vmax; left: -12vmax; }
.halo--b { width: 38vmax; height: 38vmax; background: var(--halo-b); bottom: -16vmax; right: -10vmax; animation-delay: -6s; }
.halo--c { width: 26vmax; height: 26vmax; background: var(--halo-c); top: 45%; left: 58%; animation-delay: -12s; }

.stage {
  width: min(54rem, 100%);
  display: grid;
  justify-items: center;
  gap: var(--stage-gap);
  text-align: center;
}

.signature {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-2);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal--late { transition-delay: 1.8s; }
.js .reveal--last { transition-delay: 2.5s; }
.is-engraved .reveal { opacity: 1; transform: none; }

@keyframes drift { to { transform: translate(4vmax, 3vmax) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
