:root {
  --background: #ffffff;
  --foreground: #1e2b2a;
  --coral: #e8553d;
  --peach: #f0855a;
  --amber: #f5b731;
  --teal: #3abdb5;
  --teal-deep: #007a82;
  --teal-light: #85c5c0;
  --purple: #7b5ea7;
  --ink: #1e2b2a;
  --body: #4a5a58;
  --muted: #6b7580;
  --font-nunito: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-jakarta: "Plus Jakarta Sans", "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-nunito), system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(232, 85, 61, 0.22);
}

/* Decorative soft blobs used to break the section rhythm */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Scroll reveal — driven by Reveal.tsx via IntersectionObserver */
.reveal-base {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-base.from-left {
  transform: translateX(-32px);
}
.reveal-base.from-right {
  transform: translateX(32px);
}
.reveal-base.from-scale {
  transform: scale(0.9);
}
.reveal-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-base {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tactile card hover: lift with a soft colored shadow (color via --lift-shadow) */
.card-lift {
  --lift-shadow: rgba(30, 43, 42, 0.14);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px var(--lift-shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .float-slow {
    animation: float-slow 7s ease-in-out infinite;
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
