/* --- Tokens --- */
:root {
  --pink-50: #fff5f9;
  --pink-100: #ffe3ef;
  --pink-200: #ffc9df;
  --pink-300: #ffa3cb;
  --pink-400: #ff7eb5;
  --pink-500: #f472b6;
  --pink-600: #e879a9;
  --rose-deep: #be185d;
  --lilac: #e9d5ff;
  --shadow-soft: 0 12px 40px rgba(190, 24, 93, 0.12);
  --shadow-card: 0 8px 24px rgba(244, 114, 182, 0.18);
  --radius: 1.25rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Quicksand", system-ui, sans-serif;
  --paw-pink: var(--pink-500);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--rose-deep);
  background: linear-gradient(
      165deg,
      var(--pink-50) 0%,
      #fff 35%,
      var(--pink-100) 70%,
      var(--lilac) 100%
    );
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Decorative paw trail — subtle animated dots */
.paw-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(255, 163, 203, 0.15) 0,
      transparent 8px
    ),
    radial-gradient(circle at 88% 45%, rgba(233, 213, 255, 0.35) 0, transparent 10px),
    radial-gradient(circle at 30% 80%, rgba(255, 201, 223, 0.25) 0, transparent 9px);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }
  to {
    transform: translate(-2%, 1%) scale(1.02);
    opacity: 1;
  }
}

/* Header */
.header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1.25rem 2rem;
  animation: pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pink-600);
  animation: wiggle-text 4s ease-in-out infinite;
}

@keyframes wiggle-text {
  0%,
  100% {
    letter-spacing: 0.28em;
  }
  50% {
    letter-spacing: 0.32em;
  }
}

.header__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--rose-deep), var(--pink-500), var(--rose-deep));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.header__tagline {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  color: rgba(190, 24, 93, 0.75);
}

/* Gallery */
.gallery {
  position: relative;
  z-index: 1;
  padding: 0 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

@media (min-width: 480px) {
  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.gallery__item {
  margin: 0;
  animation: card-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery__item:nth-child(1) {
  animation-delay: 0.05s;
}
.gallery__item:nth-child(2) {
  animation-delay: 0.1s;
}
.gallery__item:nth-child(3) {
  animation-delay: 0.15s;
}
.gallery__item:nth-child(4) {
  animation-delay: 0.2s;
}
.gallery__item:nth-child(5) {
  animation-delay: 0.25s;
}
.gallery__item:nth-child(6) {
  animation-delay: 0.3s;
}
.gallery__item:nth-child(7) {
  animation-delay: 0.35s;
}
.gallery__item:nth-child(8) {
  animation-delay: 0.4s;
}
.gallery__item:nth-child(n + 9) {
  animation-delay: 0.45s;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery__button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
  aspect-ratio: 1;
  position: relative;
}

.gallery__button:hover,
.gallery__button:focus-visible {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 16px 36px rgba(244, 114, 182, 0.28);
  outline: 3px solid var(--pink-300);
  outline-offset: 2px;
}

.gallery__button:active {
  transform: translateY(-2px) scale(0.98);
}

.gallery__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery__button:hover .gallery__thumb,
.gallery__button:focus-visible .gallery__thumb {
  transform: scale(1.06);
}

.gallery__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(transparent, rgba(190, 24, 93, 0.75));
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.gallery__button:hover .gallery__label,
.gallery__button:focus-visible .gallery__label {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.25rem 3rem;
}

.footer__paws {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer__paws .paw {
  display: inline-flex;
  color: var(--paw-pink);
  opacity: 0.75;
  animation: paw-hop 2.4s ease-in-out infinite;
}

.footer__paws .paw__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.footer__paws .paw:nth-child(2) {
  animation-delay: 0.2s;
}
.footer__paws .paw:nth-child(3) {
  animation-delay: 0.4s;
}
.footer__paws .paw:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes paw-hop {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-8px) rotate(8deg);
  }
}

.footer__text {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: rgba(190, 24, 93, 0.65);
}

.footer__link {
  color: var(--pink-600);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--pink-200);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.footer__link:hover {
  color: var(--rose-deep);
  border-color: var(--pink-400);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) 1rem env(safe-area-inset-bottom);
  background: rgba(88, 28, 62, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 960px);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: lightbox-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lightbox-pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.lightbox__caption {
  margin: 0;
  padding: 0 0.5rem;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.lightbox__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.lightbox__desc {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.lightbox__close {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--rose-deep);
  background: var(--pink-100);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
  z-index: 2;
}

.lightbox__close:hover {
  transform: rotate(90deg) scale(1.08);
  background: #fff;
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
  z-index: 2;
}

.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: #fff;
}

.lightbox__nav--prev {
  left: max(0.75rem, env(safe-area-inset-left));
}

.lightbox__nav--next {
  right: max(0.75rem, env(safe-area-inset-right));
}

@media (max-width: 520px) {
  .lightbox__nav {
    top: auto;
    bottom: max(1rem, env(safe-area-inset-bottom));
    transform: none;
  }

  .lightbox__nav:hover {
    transform: scale(1.08);
  }

  .lightbox__nav--prev {
    left: 25%;
    right: auto;
  }

  .lightbox__nav--next {
    right: 25%;
    left: auto;
  }
}

.lightbox[hidden] {
  display: none;
}

.lightbox:not([hidden]) {
  display: grid;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
