@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito:wght@400;600;700&display=swap');

:root {
  --bg: #F4EFFF;          /* lavender milk */
  --ink: #3B2E4A;         /* deep plum */
  --card: #FFFFFF;
  --pink: #FF8FB1;
  --yellow: #FFD166;
  --mint: #7FDBC4;
  --lav: #B39DDB;
  --outline: #3B2E4A;
  --shadow: 6px 6px 0 rgba(59, 46, 74, 0.15);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .logo, .btn, nav a { font-family: 'Baloo 2', cursive; }

/* ---------- Navbar ---------- */
header {
  background: var(--card);
  border-bottom: 3px solid var(--outline);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.logo span { color: var(--pink); }

nav { display: flex; gap: 6px; flex-wrap: wrap; }

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid transparent;
}

nav a:hover { border-color: var(--outline); background: var(--bg); }

nav a.active {
  background: var(--yellow);
  border-color: var(--outline);
}

/* ---------- Layout ---------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 70px;
}

.eyebrow {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--outline);
  border-radius: 999px;
  padding: 3px 14px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

h2 { font-size: 28px; font-weight: 800; margin: 34px 0 14px; }

main p { max-width: 620px; font-size: 17px; margin-bottom: 12px; }

.accent { color: var(--pink); }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--card);
  border: 3px solid var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 54px 30px;
  text-align: center;
  margin-bottom: 40px;
}

.hero p { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--pink);
  color: #fff;
  border: 3px solid var(--outline);
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(59,46,74,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 rgba(59,46,74,0.25);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.card {
  background: var(--card);
  border: 3px solid var(--outline);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.card[data-expand] { cursor: pointer; }
.card:hover { transform: translateY(-4px); }

.card .art {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
}

.card:nth-child(4n+1) .art { background: var(--mint); }
.card:nth-child(4n+2) .art { background: var(--yellow); }
.card:nth-child(4n+3) .art { background: var(--pink); }
.card:nth-child(4n+4) .art { background: var(--lav); }

.card .info { padding: 14px 16px; }
.card h3 { font-size: 19px; }
.card .info p { font-size: 14px; margin: 3px 0 0; }
.card .more { display: none; font-size: 14px; margin-top: 8px; }
.card.open .more { display: block; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 26px 20px;
  font-size: 14px;
}

footer a { color: var(--yellow); text-decoration: none; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
}


/* =========================================================
   INTRO SPLASH (index.html) — title + cats popping up
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
  background: #C9BCE8;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.35) 0 6px, transparent 7px),
    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.3) 0 5px, transparent 6px),
    radial-gradient(circle at 25% 80%, rgba(255,255,255,0.3) 0 5px, transparent 6px),
    radial-gradient(circle at 75% 85%, rgba(255,255,255,0.35) 0 6px, transparent 7px);
}

.intro-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: clamp(44px, 11vw, 110px);
  line-height: 1.05;
  z-index: 2;
}

.intro-title .word { display: block; }
.intro-title .word:nth-child(2) { color: var(--pink); }

.intro-title .letter {
  display: inline-block;
  opacity: 0;
  animation: letter-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letter-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-sub {
  margin-top: 10px;
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: 700;
  color: #6b5a8a;
  opacity: 0;
  animation: fade-up 0.6s ease 1s forwards;
  z-index: 2;
}

.intro .btn {
  opacity: 0;
  animation: fade-up 0.6s ease 1.6s forwards;
  z-index: 2;
}

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

.intro-cats {
  position: absolute;
  left: 0; right: 0; bottom: -12px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(0px, 3vw, 40px);
  z-index: 1;
  pointer-events: none;
  --fur: var(--lav);
}

.intro-cats .cat {
  width: clamp(110px, 20vw, 200px);
  height: auto;
  transform: translateY(120%);
  animation: cat-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.intro-cats .cat:nth-child(1) { --up: -6px;  animation-delay: 0.15s; }
.intro-cats .cat:nth-child(2) { --up: -52px; animation-delay: 0.32s; }
.intro-cats .cat:nth-child(3) { --up: -52px; animation-delay: 0.49s; }
.intro-cats .cat:nth-child(4) { --up: -6px;  animation-delay: 0.66s; }

@keyframes cat-pop {
  0%   { transform: translateY(120%); }
  70%  { transform: translateY(calc(var(--up) - 18px)); }
  100% { transform: translateY(var(--up)); }
}

.intro-cats .cat .cat-svg-inner {
  animation: intro-sway 3s ease-in-out infinite;
  animation-delay: 1.2s;
  transform-origin: center bottom;
}

.intro-cats .cat:nth-child(2) .cat-svg-inner,
.intro-cats .cat:nth-child(4) .cat-svg-inner { animation-delay: 1.7s; }

@keyframes intro-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

.intro-cats .cat[data-fur="lav"]    { --fur: var(--lav); }
.intro-cats .cat[data-fur="pink"]   { --fur: var(--pink); }
.intro-cats .cat[data-fur="yellow"] { --fur: var(--yellow); }
.intro-cats .cat[data-fur="mint"]   { --fur: var(--mint); }

@media (prefers-reduced-motion: reduce) {
  .intro-title .letter, .intro-sub, .intro .btn { animation: none; opacity: 1; }
  .intro-cats .cat { animation: none; transform: translateY(var(--up)); }
  .intro-cats .cat .cat-svg-inner { animation: none; }
}
