:root {
  --charcoal: #262422;
  --charcoal-soft: #3a3531;
  --orange: #c8642f;
  --orange-dark: #7b412b;
  --gold: #e6b94a;
  --green: #a8b84a;
  --cream: #f6ebd8;
  --cream-light: #fffaf0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(74, 48, 32, .14);
  --radius-lg: 34px;
  --radius-md: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 12% 10%, rgba(230,185,74,.23), transparent 22rem),
    radial-gradient(circle at 90% 18%, rgba(168,184,74,.18), transparent 24rem),
    var(--cream);
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.65;
  cursor: url("assets/baby-cursor.svg") 8 8, auto;
}

a, button {
  cursor: url("assets/baby-cursor-pointer.svg") 8 8, pointer;
}

button, input, textarea, select {
  font: inherit;
}

img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--charcoal);
  color: white;
  padding: .75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,250,240,.86);
  border: 1px solid rgba(123,65,43,.14);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 1rem;
  z-index: 20;
  box-shadow: 0 10px 32px rgba(60,40,25,.08);
}

.brand {
  color: var(--charcoal);
  font: 700 1.35rem "Baloo 2", sans-serif;
  text-decoration: none;
  padding-inline: .5rem;
}

nav {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--charcoal-soft);
  text-decoration: none;
  padding: .45rem .8rem;
  border-radius: 999px;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  background: var(--gold);
  color: var(--charcoal);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  width: 190px;
  height: 190px;
  background: var(--orange);
  opacity: .12;
  left: -5rem;
  bottom: 4rem;
}

.hero::after {
  width: 120px;
  height: 120px;
  background: var(--green);
  opacity: .18;
  right: 1rem;
  top: 4rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 900;
  color: var(--orange-dark);
}

h1, h2, h3 {
  font-family: "Baloo 2", system-ui, sans-serif;
  line-height: 1.05;
  margin-top: 0;
}

h1 {
  font-size: clamp(5rem, 14vw, 9.5rem);
  margin-bottom: .15rem;
  letter-spacing: -.055em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: .4rem;
}

.tagline {
  max-width: 650px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin: 0 0 2rem;
  color: var(--charcoal-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: .9rem 1.25rem;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px) rotate(-1deg);
}

.button.primary {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(38,36,34,.22);
}

.button.secondary {
  background: var(--gold);
  color: var(--charcoal);
}

.baby-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.baby-stage::before {
  content: "";
  position: absolute;
  width: min(90%, 480px);
  aspect-ratio: 1;
  border-radius: 46% 54% 60% 40% / 42% 43% 57% 58%;
  background:
    radial-gradient(circle at 68% 32%, rgba(230,185,74,.85) 0 7%, transparent 8%),
    radial-gradient(circle at 34% 60%, rgba(168,184,74,.72) 0 10%, transparent 11%),
    linear-gradient(145deg, var(--orange), var(--orange-dark));
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
  z-index: -1;
}

.baby-button {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(92%, 470px);
  filter: drop-shadow(0 24px 24px rgba(38,36,34,.22));
  transform-origin: center bottom;
}

.baby-button img {
  display: block;
  width: 100%;
}

.click-hint {
  position: absolute;
  right: 5%;
  top: 12%;
  background: var(--cream-light);
  border: 2px solid var(--charcoal);
  padding: .45rem .75rem;
  border-radius: 999px;
  font-weight: 900;
  transform: rotate(5deg);
  box-shadow: 5px 5px 0 var(--gold);
}

.reaction-bubble {
  position: absolute;
  left: 4%;
  bottom: 7%;
  min-height: 2.3rem;
  background: var(--cream-light);
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
  border-radius: 18px 18px 18px 4px;
  padding: .55rem .8rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}

.reaction-bubble.show {
  opacity: 1;
  transform: translateY(0) rotate(-2deg);
}

.status-strip {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem;
  background: var(--charcoal);
  color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.status-strip .section-kicker { color: var(--gold); }
.status-strip h2 { margin-bottom: 0; }

.status-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin: 0;
}

.status-card div {
  background: rgba(255,255,255,.08);
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
}

.status-card dt {
  color: var(--gold);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 900;
}

.status-card dd {
  margin: .25rem 0 0;
  font-weight: 800;
}

.content-section {
  padding: 7rem 0 1rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 1.25rem;
}

.story-card,
.quote-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.story-card {
  background: var(--cream-light);
  font-size: 1.08rem;
}

.quote-card {
  background: var(--green);
  color: var(--charcoal);
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
}

.quote-card > span {
  font: 700 10rem/1 "Baloo 2";
  position: absolute;
  top: -1.2rem;
  left: 1rem;
  opacity: .2;
}

.quote-card blockquote {
  margin: 0;
  font: 700 clamp(1.5rem, 3vw, 2.15rem)/1.2 "Baloo 2";
  position: relative;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.facts-grid article {
  background: var(--cream-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  border: 1px solid rgba(123,65,43,.12);
  box-shadow: 0 12px 28px rgba(74,48,32,.08);
  transition: transform .18s ease;
}

.facts-grid article:nth-child(2n) { transform: rotate(1deg); }
.facts-grid article:nth-child(3n) { transform: rotate(-1deg); }
.facts-grid article:hover { transform: translateY(-5px) rotate(0); }

.facts-grid span {
  display: block;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 900;
}

.facts-grid strong {
  display: block;
  margin-top: .3rem;
  font-size: 1.12rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.gallery-card {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--cream-light);
  border: 1px solid rgba(123, 65, 43, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(74, 48, 32, 0.18);
}

.gallery-image-frame {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(230, 185, 74, 0.18),
      transparent 45%
    ),
    var(--cream);
}

/*
  Ordinary photos receive a consistent landscape frame.
  object-fit: contain ensures the entire photo remains visible.
*/
.photo-frame {
  aspect-ratio: 4 / 3;
}

/*
  Generated artwork also uses a landscape-friendly frame.
*/
.artwork-frame {
  aspect-ratio: 4 / 3;
}

/*
  Memes are often tall and contain important text.
  This taller frame lets them remain readable.
*/
.meme-frame {
  aspect-ratio: 4 / 5;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/*
  Photos look better without empty borders, so these fill their frames.
  A small amount may be cropped, but much less than before.
*/
.photo-frame .gallery-image {
  object-fit: cover;
}

/*
  Artwork and memes remain completely visible.
*/
.artwork-frame .gallery-image,
.meme-frame .gallery-image {
  object-fit: contain;
}

.gallery-card figcaption {
  display: grid;
  gap: 0.25rem;
  min-height: 110px;
  padding: 1rem 1.2rem 1.25rem;
}

.gallery-card figcaption strong {
  color: var(--charcoal);
  font-family: "Baloo 2", system-ui, sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
}

.gallery-card figcaption span {
  color: var(--charcoal-soft);
  line-height: 1.5;
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.lore-grid article {
  background: var(--charcoal);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
}

.lore-grid article:nth-child(2),
.lore-grid article:nth-child(3) {
  background: var(--orange-dark);
}

.lore-number {
  position: absolute;
  right: 1rem;
  top: .4rem;
  font: 700 4.5rem/1 "Baloo 2";
  opacity: .13;
}

.lore-grid p {
  margin-bottom: 0;
  color: rgba(255,255,255,.82);
}

.closing-section {
  margin: 7rem 0 2rem;
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
  background: var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.closing-section::before,
.closing-section::after {
  content: "✦";
  position: absolute;
  font-size: 8rem;
  opacity: .15;
}

.closing-section::before { left: 4%; top: -2rem; }
.closing-section::after { right: 4%; bottom: -3rem; }

.closing-section h2 {
  max-width: 800px;
  margin-inline: auto;
}

.closing-section p:last-child {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
}

footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  text-align: center;
  color: var(--charcoal-soft);
}

#sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

.sparkle {
  position: fixed;
  font-size: 1.3rem;
  animation: sparkle-pop .75s ease-out forwards;
}

@keyframes sparkle-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -90px) scale(1.4) rotate(180deg); }
}

@keyframes baby-bounce {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-38px) scale(1.03); }
}

@keyframes baby-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-12px) rotate(-4deg); }
  40% { transform: translateX(12px) rotate(4deg); }
  60% { transform: translateX(-8px) rotate(-2deg); }
  80% { transform: translateX(8px) rotate(2deg); }
}

@keyframes baby-spin {
  to { transform: rotate(360deg); }
}

@keyframes baby-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.02); }
  75% { transform: rotate(8deg) scale(1.02); }
}

.baby-button.bounce { animation: baby-bounce .6s ease; }
.baby-button.shake { animation: baby-shake .5s ease; }
.baby-button.spin { animation: baby-spin .75s ease; }
.baby-button.wiggle { animation: baby-wiggle .55s ease; }

:focus-visible {
  outline: 4px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 850px) {
  body, a, button { cursor: auto; }

  .site-header {
    position: static;
    border-radius: 24px;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4rem;
  }

  .baby-stage { min-height: 430px; }
  .status-strip,
  .story-grid { grid-template-columns: 1fr; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .site-header {
    flex-direction: column;
  }

  nav { justify-content: flex-start; }
  nav a { padding-left: .5rem; }

  h1 { font-size: clamp(4.4rem, 24vw, 7rem); }

  .hero { gap: 1rem; }

  .click-hint {
    right: 0;
    top: 7%;
  }

  .status-card,
  .facts-grid,
  .lore-grid {
    grid-template-columns: 1fr;
  }

.gallery-grid {
  grid-template-columns: 1fr;
}

.gallery-card figcaption {
  min-height: auto;
}
  }

  .content-section { padding-top: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
