:root {
  --cream: #fff6ea;
  --ink: #2c2013;
  --ink-soft: #4a3826;
  --orange: #ff8c42;
  --orange-deep: #e8641a;
  --green: #7bb937;
  --green-deep: #5c9426;
  --red: #ef4056;
  --red-deep: #c92a3f;
  --yarn-blue: #3f8ea8;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-toy: 0 10px 24px -8px rgb(44 32 19 / 0.35);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='%232c2013'%3E%3Ccircle cx='16' cy='21' r='7'/%3E%3Ccircle cx='5' cy='13' r='3'/%3E%3Ccircle cx='12.5' cy='7' r='3.2'/%3E%3Ccircle cx='19.5' cy='7' r='3.2'/%3E%3Ccircle cx='27' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E") 16 21, auto;
}

::selection {
  background: var(--orange);
  color: var(--cream);
}

:focus-visible {
  outline: 3px solid var(--yarn-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  max-width: 68ch;
  margin: 0.6em 0;
}

a {
  color: inherit;
}

/* ---------- Toybox: rolling yarn balls ---------- */

.toybox {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.yarn-ball {
  position: absolute;
  width: var(--size, 64px);
  height: var(--size, 64px);
  border-radius: 50%;
  will-change: transform;
  box-shadow: var(--shadow-toy), inset -6px -8px 14px rgb(0 0 0 / 0.18), inset 6px 8px 10px rgb(255 255 255 / 0.25);
  background:
    repeating-radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.35) 0 2px, transparent 3px 9px),
    radial-gradient(circle at 32% 28%, var(--ball-light), var(--ball-color) 65%);
}

@media (prefers-reduced-motion: reduce) {
  .toybox {
    display: none;
  }
}

/* ---------- Paw print trail ---------- */

.paw-print {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 4;
  color: var(--ink);
  opacity: 0.35;
  transform: translate(-50%, -50%) scale(0.9);
  animation: paw-fade 900ms ease-out forwards;
}

@keyframes paw-fade {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(4rem, 10vw, 7rem);
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgb(255 140 66 / 0.18), transparent 45%),
    radial-gradient(circle at 85% 15%, rgb(123 185 55 / 0.16), transparent 45%),
    var(--cream);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 6;
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-kicker-free {
  font-family: var(--font-display);
  color: var(--orange-deep);
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.hero-nav {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.hero-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  background: white;
  color: var(--ink);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow-toy);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav a:hover {
  transform: translateY(-3px) rotate(-1deg);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  position: relative;
}

.section-inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.6);
  box-shadow: var(--shadow-toy);
  margin-bottom: 1rem;
}

.section-icon svg {
  width: 30px;
  height: 30px;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.section--orange {
  background: var(--orange);
  color: #3a1c04;
}
.section--orange .section-intro {
  color: #5a2e0a;
}
.section--orange .section-icon {
  color: var(--orange-deep);
}

.section--green {
  background: var(--green);
  color: #1c2d08;
}
.section--green .section-intro {
  color: #2f4610;
}
.section--green .section-icon {
  color: var(--green-deep);
}

.section--cream {
  background: var(--cream);
  color: var(--ink);
}
.section--cream .section-icon {
  color: var(--red);
}

/* ---------- Placeholder cards ---------- */

.schedule-card {
  width: 100%;
  background: white;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-toy);
}

.placeholder-block-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgb(239 64 86 / 0.08);
  border: 2px dashed rgb(239 64 86 / 0.3);
  border-radius: var(--radius-md);
  font-style: normal;
}

.placeholder-block {
  position: relative;
  width: 100%;
  background: white;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-toy);
  border: 3px dashed rgb(44 32 19 / 0.18);
}

.placeholder-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--red-deep);
  background: rgb(239 64 86 / 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1.1rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.98rem;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgb(44 32 19 / 0.12);
}

.schedule-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-soft);
}

.exceptions h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.exception-list,
.steps-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.exception-list li {
  padding-left: 1.2rem;
  position: relative;
}

.exception-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: white;
  background: var(--green-deep);
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.placeholder-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

/* ---------- Subsection: replacing the bag ---------- */

.subsection {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 2px dashed rgb(44 32 19 / 0.14);
}

.subsection h3 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.steps-list--numbered {
  margin: 0 0 1.25rem;
  padding: 0;
}

.inline-figure {
  display: block;
  width: min(100%, 360px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-toy);
  margin: 0.75rem 0 0.25rem;
}

.video-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-toy);
  margin-bottom: 0.75rem;
}

.video-wrapper video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #16130e;
}

.video-caption {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Pachycephalosaurus runner ---------- */

.dino-runner {
  position: fixed;
  top: 0;
  left: 0;
  width: 150px;
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 10px 10px rgb(44 32 19 / 0.3));
  animation: dino-run 5.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dino-run {
  from {
    transform: translate(-30vw, -50%);
  }
  to {
    transform: translate(130vw, -50%);
  }
}

.dino-runner .dino-leg-back,
.dino-runner .dino-leg-front {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: dino-leg 0.55s ease-in-out infinite;
}

.dino-runner .dino-leg-front {
  animation-delay: 0.275s;
}

@keyframes dino-leg {
  0%, 100% {
    transform: rotate(-16deg);
  }
  50% {
    transform: rotate(16deg);
  }
}

/* ---------- Cat cards ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.cat-card {
  display: flex;
  flex-direction: column;
}

.cat-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #ffe1c2, #ffc98a);
  overflow: hidden;
  color: rgb(44 32 19 / 0.3);
  margin-bottom: 1rem;
}

.cat-photo svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  height: 40%;
  transform: translate(-50%, -50%);
}

.cat-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.cat-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--cream);
}
