/* Mantra-inspired 404 page — LMYC palette */

body.lmyc-404-page {
  background: #fffef4;
}

body.lmyc-404-page #main-content {
  min-height: calc(100vh - var(--header-height, 5.5rem));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 1rem clamp(3rem, 6vw, 5rem);
}

.lmyc-404 {
  width: min(44rem, 100%);
  text-align: center;
}

.lmyc-404__art {
  display: block;
  width: min(100%, 36rem);
  margin: 0 auto clamp(-2.5rem, -6vw, -1rem);
  line-height: 0;
}

.lmyc-404__art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Mantra 404 animations */
.lmyc-404__art .wdt-custom-404-text {
  animation: lmyc-404-text 3s ease;
}

.lmyc-404__art .wdt-custom-404-cloud-1,
.lmyc-404__art .wdt-custom-404-cloud-2 {
  animation: lmyc-404-cloud 2.5s linear infinite;
}

.lmyc-404__art .wdt-custom-404-cloud-2 {
  animation-direction: reverse;
  animation-delay: 0.5s;
}

.lmyc-404__art .wdt-custom-404-star-1,
.lmyc-404__art .wdt-custom-404-star-2,
.lmyc-404__art .wdt-custom-404-star-3,
.lmyc-404__art .wdt-custom-404-star-4,
.lmyc-404__art .wdt-custom-404-star-5 {
  animation: lmyc-404-star 1.5s ease infinite;
}

.lmyc-404__art .wdt-custom-404-star-2 {
  animation-delay: 0.3s;
}

.lmyc-404__art .wdt-custom-404-star-3 {
  animation-delay: 0.6s;
}

.lmyc-404__art .wdt-custom-404-star-4 {
  animation-delay: 0.9s;
}

.lmyc-404__art .wdt-custom-404-star-5 {
  animation-delay: 1.2s;
}

.lmyc-404__art .wdt-custom-404-object {
  animation: lmyc-404-object 3.5s linear;
}

.lmyc-404__art .wdt-custom-404-line-1,
.lmyc-404__art .wdt-custom-404-line-2,
.lmyc-404__art .wdt-custom-404-line-3,
.lmyc-404__art .wdt-custom-404-line-4,
.lmyc-404__art .wdt-custom-404-line-6,
.lmyc-404__art .wdt-custom-404-line-7,
.lmyc-404__art .wdt-custom-404-line-8 {
  animation: lmyc-404-cloud 3s linear infinite;
}

@keyframes lmyc-404-text {
  0% {
    transform: translateY(-30%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes lmyc-404-cloud {
  0% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-15px);
  }
  70% {
    transform: translateX(15px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes lmyc-404-star {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes lmyc-404-object {
  0% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.lmyc-404__code {
  margin: 0;
  font-family: var(--font-heading-family, "Cormorant Garamond", serif);
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #425936;
}

.lmyc-404__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-heading-family, "Cormorant Garamond", serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: #303d1c;
}

.lmyc-404__message {
  margin: 1rem auto 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(63, 50, 59, 0.82);
}

.lmyc-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.lmyc-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.lmyc-404__btn--primary {
  background: linear-gradient(165deg, #425936 0%, #35472c 100%) !important;
  color: #ffffff !important;
  border: 2px solid #425936 !important;
  box-shadow: 0 8px 24px rgba(48, 61, 28, 0.2);
}

.lmyc-404__btn--primary:hover,
.lmyc-404__btn--primary:focus-visible {
  transform: translateY(-2px);
  color: #d18e95 !important;
  box-shadow: 0 12px 28px rgba(48, 61, 28, 0.26);
}

.lmyc-404__btn--secondary {
  background: transparent !important;
  color: #425936 !important;
  border: 2px solid #425936 !important;
}

.lmyc-404__btn--secondary:hover,
.lmyc-404__btn--secondary:focus-visible {
  background: #425936 !important;
  color: #ffffff !important;
}

@media screen and (max-width: 767px) {
  .lmyc-404__art {
    margin-bottom: -1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-404__art * {
    animation: none !important;
  }

  .lmyc-404__btn:hover,
  .lmyc-404__btn:focus-visible {
    transform: none;
  }
}
