:root {
  --cream: #f8f8f6;
  --cream-bright: #fdfdfb;
  --charcoal: #2b2b2b;
  --muted: #6b6862;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Soft warm radial glow echoing the logo image, with a gentle pulse. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    60% 50% at 50% 45%,
    var(--cream-bright) 0%,
    var(--cream) 70%
  );
  animation: glow-pulse 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding: 2rem 1.5rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(80vw, 720px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.012);
  }
}

.status {
  margin: 0;
  text-align: center;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 4.5vw, 2.25rem);
  font-weight: 500;
  color: var(--muted);
}

.cycler {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 0.04em;
  background: currentColor;
  transform: translateY(0.14em);
  animation: blink 1s step-end infinite;
}

/* Caret stays solid while actively typing/deleting; blinks during the pauses. */
.cycler.typing .caret {
  animation: none;
  opacity: 1;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 400;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  color: var(--charcoal);
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .logo,
  .caret {
    animation: none;
  }
}
