/* Animations — initial states for GSAP, CSS transitions */

/* Elements animated by GSAP start invisible.
   JS sets opacity/transform via gsap.from(), so we do NOT
   pre-hide them here (GSAP handles that). This file adds
   CSS-only transitions and decorative motion. */

/* ---- Page transitions ---- */

/* Body opacity is controlled by scroll.js (gsap.from body) */

/* ---- Nav ---- */

/* Nav link underline slide */
.nav__link {
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width var(--duration-base) var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
}

/* ---- Links ---- */

/* Underline animation for body links */
.entry-body a {
  color: var(--amber);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--duration-fast);
}

.entry-body a:hover {
  text-decoration-color: var(--amber);
}

/* ---- Featured items hover ---- */

.featured-item__title {
  transition: color var(--duration-fast);
}

.featured-item__link:hover .featured-item__title {
  color: var(--amber);
}

/* ---- Card hover ---- */

.card__title {
  transition: color var(--duration-fast);
}

.card:hover .card__title {
  color: var(--amber);
}

.card--robot:hover .card__title,
.card--author:hover .card__title {
  color: var(--amber);
}

/* ---- Image treatment on hover ---- */

.image img {
  transition: transform 0.6s var(--ease-out);
}

.image:hover img {
  transform: scale(1.02);
}

/* ---- Scroll reveal utility ---- */
/* Used by blocks/page modules via data-gsap="fade-up" attribute.
   GSAP animates from opacity:0 + y:40 → final state.
   No CSS needed; here for documentation. */
