/* =========================================
   css/hero.css — Doodle hero section
   ========================================= */

.doodle-container {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  font-family: 'Gloria Hallelujah', cursive;
  min-height: 100vh;
  width: 100%;
}

.doodle-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25ch;
  font-size: 4.5rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0.25em 0;
}

/* Each letter slot */
.frame {
  display: inline-grid;
  place-items: start;
  overflow: visible;
  white-space: pre;
}

/* Animated letter layers */
.layer {
  grid-area: 1/1;
  opacity: 0;
  display: inline-block;
  transform-origin: center center;
  transition: opacity 0s;
  text-shadow: 0.6px 0.6px rgba(0, 0, 0, 0.08);
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.08);
}

.layer.active {
  opacity: 1;
}

@media (max-width: 420px) {
  .doodle-line {
    font-size: 3rem;
    gap: 0.15ch;
  }
}
