:root {
  --cream: #f3eadb;
  --paper: #fff8ee;
  --ink: #241c14;
  --muted: #6d5c4c;
  --ginger: #c45c26;
  --gold: #e0a35a;
  --sage: #4f6b4a;
  --rose: #c46a5a;
  --shadow: 0 24px 50px rgba(36, 28, 20, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

.paper {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(36, 28, 20, 0.035) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  z-index: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 6vw;
  background: rgba(243, 234, 219, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 28, 20, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ginger);
  color: var(--paper);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ginger);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4vw;
  align-items: center;
  padding: 5rem 6vw 4rem;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ginger);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  margin-bottom: 1rem;
}

h1 em {
  font-style: italic;
  color: var(--ginger);
}

.lead,
.section-head p {
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ginger);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(36, 28, 20, 0.2);
}

.hero-frame {
  position: relative;
}

.hero-frame img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  border-radius: 2rem 2rem 6rem 2rem;
  box-shadow: var(--shadow);
}

.hero-frame figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(255, 248, 238, 0.92);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.section {
  padding: 5rem 6vw;
}

.section-alt {
  background: #eadfcf;
}

.section-play {
  background: #2a2118;
  color: var(--paper);
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 0.7rem;
}

.section-head.light p {
  color: #d8c6b0;
}

.filters,
.age-tabs,
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.chip {
  border: 1px solid rgba(36, 28, 20, 0.15);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
}

.chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.breed-card {
  background: var(--paper);
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.breed-card:hover {
  transform: translateY(-6px);
}

.breed-card.is-hidden {
  display: none;
}

.breed-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.breed-body {
  padding: 1rem 1.05rem 1.2rem;
}

.breed-body h3 {
  margin-bottom: 0.35rem;
}

.breed-body p,
.breed-body li,
.feed-card p,
.feed-card li,
.toy-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.breed-body ul,
.feed-card ul,
.do-dont ul {
  margin-top: 0.7rem;
  padding-left: 1.1rem;
}

.color-studio {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.cat-stage {
  background: var(--paper);
  border-radius: 2rem;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cat-svg {
  width: min(100%, 340px);
}

.cat-fill {
  fill: #d9783a;
  transition: fill 0.35s ease;
}

.cat-shadow {
  fill: rgba(36, 28, 20, 0.12);
}

.cat-eye {
  fill: #1d3a24;
}

.cat-shine {
  fill: #fff8ee;
}

.cat-nose {
  fill: #e8a39a;
}

.cat-line,
.cat-whisker {
  fill: none;
  stroke: #241c14;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.cat-svg.is-tabby .cat-fill {
  fill: url(#none);
}

.color-caption {
  margin-top: 0.6rem;
  text-align: center;
  color: var(--muted);
}

.swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fff8ee;
  box-shadow: 0 0 0 2px rgba(36, 28, 20, 0.15);
  cursor: pointer;
}

.swatch.is-active {
  box-shadow: 0 0 0 3px var(--ginger);
}

.swatch:nth-child(1) { background: #d9783a; }
.swatch:nth-child(2) { background: #1c1a1a; }
.swatch:nth-child(3) { background: #f4efe8; }
.swatch:nth-child(4) { background: #8ea0b5; }
.swatch:nth-child(5) {
  background: repeating-linear-gradient(45deg, #c9a27a, #c9a27a 8px, #6b4630 8px, #6b4630 12px);
}
.swatch:nth-child(6) {
  background: conic-gradient(#f4efe8 0 33%, #d9783a 0 66%, #1c1a1a 0);
}
.swatch:nth-child(7) {
  background: repeating-linear-gradient(-30deg, #6b3d2a, #6b3d2a 10px, #c45c26 10px, #c45c26 18px);
}
.swatch:nth-child(8) {
  background: radial-gradient(circle at 30% 20%, #5a3a28 0 18%, #f0d9b5 19%);
}

.feed-panels {
  display: grid;
  gap: 1rem;
}

.feed-card {
  display: none;
  background: var(--paper);
  padding: 1.5rem;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.feed-card.is-active {
  display: block;
}

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.do-dont article {
  padding: 1.4rem;
  border-radius: 1.3rem;
}

.ok {
  background: #e5eedc;
}

.no {
  background: #f3d8d2;
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.toy-card {
  background: rgba(255, 248, 238, 0.08);
  border: 1px solid rgba(255, 248, 238, 0.12);
  border-radius: 1.2rem;
  padding: 1.2rem;
}

.toy-card span {
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
}

.toy-card h3 {
  margin: 0.4rem 0 0.5rem;
}

.toy-card p {
  color: #d8c6b0;
}

.game-wrap {
  background: #fff8ee;
  color: var(--ink);
  border-radius: 1.6rem;
  padding: 1.4rem;
}

.game-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.scoreboard {
  display: flex;
  gap: 1rem;
  font-weight: 600;
}

.arena {
  position: relative;
  height: 280px;
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 92, 38, 0.12), transparent 40%),
    #eadfcf;
  overflow: hidden;
  margin-bottom: 1rem;
}

.mouse {
  position: absolute;
  left: 40%;
  top: 40%;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #fff8ee;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: left 0.12s linear, top 0.12s linear;
}

.game-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

.footer {
  padding: 2rem 6vw 3rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .color-studio,
  .breed-grid,
  .play-grid,
  .do-dont {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 6vw;
    left: 6vw;
    flex-direction: column;
    background: var(--paper);
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }
}

@media (max-width: 680px) {
  .hero,
  .color-studio,
  .breed-grid,
  .play-grid,
  .do-dont,
  .game-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-frame img {
    height: 360px;
  }
}
