/* ---------------------------
   404 Page
---------------------------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--sp-16) 0 var(--sp-20);
  gap: var(--sp-4);
}

/* Hero: 2-column — yeti left, 404+/LOST right */
.notfound__hero {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-8);
  animation: notfoundIn 600ms var(--ease) both;
}

/* Yeti mascot — pivoted at bottom, breathing scale */
.notfound__yeti {
  max-width: 270px;
  height: auto;
  transform-origin: bottom center;
  animation: notfoundBreathe 4s ease-in-out infinite,
             notfoundIn 600ms var(--ease) both;
  filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.15));
}

/* Right side: 404 + /LOST stacked */
.notfound__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: notfoundIn 600ms var(--ease) 100ms both;
}

/* 404 heading */
.notfound__code {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

/* /LOST label */
.notfound__lost {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

/* Subtitle */
.notfound__msg {
  color: var(--muted);
  font-size: 18px;
  margin: var(--sp-4) 0 0;
  animation: notfoundIn 600ms var(--ease) 200ms both;
}

/* Terminal block */
.notfound__terminal {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: left;
  line-height: 1.7;
  margin-top: var(--sp-2);
  max-width: 100%;
  animation: notfoundIn 600ms var(--ease) 300ms both;
}

.notfound__prompt {
  color: var(--accent);
  font-weight: 600;
}

.notfound__error {
  color: #ef4444;
}

/* "Check these out" label */
.notfound__try {
  color: var(--muted);
  font-size: 14px;
  margin: var(--sp-6) 0 0;
  animation: notfoundIn 600ms var(--ease) 400ms both;
}

/* Post cards grid */
.notfound__grid {
  width: 100%;
  animation: notfoundIn 600ms var(--ease) 500ms both;
}

/* CTA button */
.notfound__cta {
  margin-top: var(--sp-6);
  animation: notfoundIn 600ms var(--ease) 600ms both;
}

/* Breathing scale — pivot from bottom */
@keyframes notfoundBreathe {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.015); }
}

/* Staggered fade-in */
@keyframes notfoundIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .notfound {
    padding: var(--sp-10) 0 var(--sp-16);
  }

  .notfound__hero {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
  }

  .notfound__yeti {
    max-width: 180px;
  }

  .notfound__text {
    align-items: center;
  }

  .notfound__code,
  .notfound__lost {
    font-size: 64px;
  }

  .notfound__msg {
    font-size: 16px;
  }

  .notfound__terminal {
    font-size: 12px;
    padding: var(--sp-3) var(--sp-4);
  }
}
