/* ABOUTME: Styles for The Human Factor landing page */
/* ABOUTME: Layout, typography, grain overlay, and entrance animations */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #0F1116;
  font-family: 'Work Sans', sans-serif;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
}

#shader-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 5;
}

.content {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.25rem;
  text-align: center;
  color: #F5F0E8;
  padding: 0 1rem;
  animation: fade-up 1s ease-out forwards;
  opacity: 0;
}

.hero-tagline {
  margin-top: 2rem;
  font-size: 1.125rem;
  text-align: center;
  color: #E8E8E8;
  letter-spacing: 0.05em;
  animation: fade-up 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-tagline .italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #F5F0E8;
}

.hero-tagline .uppercase {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.smiley {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #F5F0E8;
  z-index: 10;
  animation: fade-up 1s ease-out 0.6s forwards;
  opacity: 0;
}

.mobile-only {
  display: inline;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .smiley {
    font-size: 1.875rem;
  }

  .mobile-only {
    display: none;
  }

  .desktop-only {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
