* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
  font-family: "Fraunces", "Times New Roman", serif;
  color: #fff7f0;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(255, 120, 90, 0.28), transparent 55%),
    radial-gradient(900px 600px at 88% 78%, rgba(255, 196, 120, 0.22), transparent 50%),
    linear-gradient(160deg, #1a0f0c 0%, #3b1814 45%, #0f1c1a 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
}

body::before {
  width: 320px;
  height: 320px;
  background: #c45c48;
  top: -90px;
  left: -70px;
}

body::after {
  width: 360px;
  height: 360px;
  background: #d4a574;
  right: -110px;
  bottom: -120px;
  animation-delay: -4s;
}

.stage {
  width: min(100%, 1000px);
  perspective: 1200px;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  padding: clamp(38px, 8vw, 92px) clamp(24px, 7vw, 76px);
  border: 1px solid rgba(255, 236, 210, 0.28);
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 247, 240, 0.14),
    rgba(255, 247, 240, 0.04)
  );
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 247, 240, 0.28);
  backdrop-filter: blur(16px);
  transform: rotateX(4deg) rotateY(-3deg);
  transform-style: preserve-3d;
  animation: card 7s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 236, 210, 0.12);
  pointer-events: none;
}

.glow {
  position: absolute;
  inset: 22% 8%;
  background: radial-gradient(circle, rgba(255, 220, 180, 0.28), transparent 65%);
  filter: blur(24px);
  transform: translateZ(20px);
  pointer-events: none;
}

.home-link {
  margin-top: 1.25rem;
  text-align: center;
  transform: translateZ(40px);
}
.home-link a {
  color: #f6e7d4;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 231, 212, 0.45);
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1rem;
}

.text {
  margin: 0;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: clamp(38px, 8vw, 92px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff4e8;
  text-shadow:
    0 2px 0 rgba(80, 28, 18, 0.35),
    0 16px 28px rgba(0, 0, 0, 0.4);
  transform: translateZ(70px);
  background: linear-gradient(105deg, #fff8ef 10%, #f0c38a 45%, #e8a090 75%, #fff8ef 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to {
    background-position: 220% 0;
  }
}

@keyframes card {
  0%,
  100% {
    transform: rotateX(4deg) rotateY(-3deg) translateY(0);
  }
  50% {
    transform: rotateX(-2deg) rotateY(3deg) translateY(-8px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(28px, 20px) scale(1.06);
  }
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }

  .hero {
    border-radius: 22px;
    transform: none;
    animation: none;
  }

  .hero::before {
    border-radius: 16px;
  }

  .text {
    text-shadow:
      0 2px 0 rgba(80, 28, 18, 0.35),
      0 10px 18px rgba(0, 0, 0, 0.4);
  }
}
