@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@900&display=swap"); 
@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  scroll-behavior: smooth;
}

/* Simple fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Center images within prose blocks */
.prose img {
  margin-left: auto;
  margin-right: auto;
}

/* Repeating blue pattern for backgrounds */
.blue-pattern {
  background-color: #f5faff;
  background-image: repeating-linear-gradient(
    -45deg,
    #edf7ff 0,
    #edf7ff 25px,
    #dceeff 25px,
    #dceeff 50px
  );
}

/* Utility for clamping text to 3 lines */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

code {
  counter-reset: step;
  counter-increment: step 0;
}

code .line::before {
  content: counter(step);
  counter-increment: step;
  width: 2rem;
  margin-right: 1.5rem;
  display: inline-block;
  text-align: right;
  color: rgba(115,138,148,.4)
}

