@import "tailwindcss";

@variant dark (&:where(.dark, .dark *));

@theme {
  --color-white: rgb(250 241 210);
  --color-black: rgb(25 25 25);
}

body {
  font-family: 'IBM Plex Mono', monospace;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

/* Hero */
#hero {
  will-change: opacity;
}

#convergenceCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}


/* Scroll indicator */
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.scroll-bounce {
  animation: gentleBounce 2s ease-in-out infinite;
}

/* Content typography — Merriweather headings, Alright Sans (Source Sans 3 fallback) body */
#content {
  font-family: 'Manrope', sans-serif;
}

.content-section h2,
.content-section h3 {
  font-family: 'Merriweather', Georgia, serif;
}

:is(.dark, .dark *) .content-section h2,
:is(.dark, .dark *) .content-section h3 {
  color: rgb(240 240 240);
}

/* ASCII globe background */
#asciiGlobe {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.35em;
  white-space: pre;
  background: linear-gradient(to bottom, rgba(25,25,25,0.15) 0%, rgba(246,238,64,0.6) 20%, rgba(25,25,25,0.15) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-align: center;
  align-items: start;
  margin-top: -12rem;
}

@media (min-width: 768px) {
  #asciiGlobe {
    align-items: center;
    margin-top: 0;
  }
}

:is(.dark, .dark *) #asciiGlobe {
  background: linear-gradient(to bottom, rgba(250,241,210,0.1) 0%, rgba(213,0,0,0.6) -6%, rgba(250,241,210,0.1) 62%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-bounce {
    animation: none;
  }
}
