/* Page skeleton — Ritual light loading */

html.sk-loading {
  background: #faf9f7;
}

html.sk-loading body {
  overflow: hidden;
}

.page-skeleton {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background: #faf9f7;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s ease;
}

.page-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 8% -8%, rgba(212, 184, 106, 0.1), transparent 52%),
    linear-gradient(180deg, #ffffff, #faf9f7);
}

html.sk-loaded .page-skeleton {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sk-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 18rem;
  text-align: center;
}

.sk-logo-wrap {
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 24, 20, 0.08);
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04), 0 8px 24px rgba(26, 24, 20, 0.06);
}

.sk-logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sk-logo.is-ready {
  opacity: 1;
  transform: scale(1);
}

.sk-progress {
  width: min(12rem, 70vw);
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(201, 148, 26, 0.15);
  overflow: hidden;
}

.sk-progress__bar {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8b84a, #c9941a);
  animation: skProgress 1.1s cubic-bezier(0.32, 0.72, 0, 1) infinite;
}

@keyframes skProgress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.sk-loading-text {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a3530;
}

.sk-loading-dots span {
  animation: skDot 1.2s ease-in-out infinite;
}

.sk-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.sk-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes skDot {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.sk-loading-hint {
  margin: 0;
  font-size: 0.78rem;
  color: #524c44;
}

@media (prefers-reduced-motion: reduce) {
  .sk-progress__bar,
  .sk-loading-dots span {
    animation: none;
  }
}
