:root {
  --ink: #202022;
  --muted: #65615b;
  --paper: #fff9ee;
  --panel: #ffffff;
  --line: #26221d1a;
  --coral: #ff6f61;
  --teal: #0f9f9a;
  --yellow: #ffc857;
  --green: #7bc86c;
  --blue: #4f7cac;
  --shadow: 0 22px 60px #2d241533;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 14%, #ffdf7044 0 12rem, transparent 12.2rem),
    radial-gradient(circle at 92% 4%, #58d4ca40 0 13rem, transparent 13.2rem),
    linear-gradient(180deg, #fff9ee 0%, #f5fbf6 54%, #fff9ee 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand {
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--ink);
  border-radius: .55rem;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
}

.nav-links {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

.nav-links a {
  padding: .55rem .2rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.home-hero,
.feature-band,
.quiz-promo,
.quiz-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 5rem;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 8vw, 6.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.45rem;
}

.lead {
  max-width: 43rem;
  color: #4d4943;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: .6rem;
  padding: .75rem 1.05rem;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button.primary {
  background: var(--coral);
}

.button.secondary {
  background: var(--panel);
}

.hero-stage,
.quiz-panel,
.project-card,
.quiz-promo {
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stage {
  min-height: 28rem;
  display: grid;
  place-items: end center;
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(transparent 66%, #20202214 66% 67%, transparent 67%),
    repeating-linear-gradient(90deg, #20202210 0 1px, transparent 1px 4rem),
    #f9efd8;
}

.sprite-pedestal {
  position: relative;
  width: min(100%, 30rem);
  height: 24rem;
}

.sprite,
.cat-orbit .sprite {
  display: block;
  width: 256px;
  height: 256px;
  image-rendering: auto;
  transform-origin: center bottom;
}

.result-sprite {
  width: 320px;
  height: 320px;
}

.delay-one {
  animation-delay: -.25s;
}

.delay-two {
  animation-delay: -.5s;
}

.sprite-pedestal .sprite {
  position: absolute;
  bottom: 1.5rem;
}

.sprite-pedestal .orange-cat {
  left: 8rem;
  z-index: 3;
  transform: scale(1.08);
}

.sprite-pedestal .tuxedo {
  left: 0;
  z-index: 2;
  transform: scale(.92);
}

.sprite-pedestal .ragdoll {
  right: 0;
  z-index: 1;
  transform: scale(.9);
}

.feature-band {
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

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

.project-card {
  min-height: 15rem;
  border-radius: .75rem;
  padding: 1.2rem;
}

.project-card p:last-child {
  color: #504c45;
  line-height: 1.55;
}

.project-type {
  display: inline-flex;
  margin: 0 0 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .35rem .6rem;
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.accent-yellow {
  background: #ffe59c;
}

.accent-mint {
  background: #bdeedc;
}

.accent-coral {
  background: #ffb2a6;
}

.quiz-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  border-radius: .9rem;
  padding: 1.5rem;
  background: #ffffff;
}

.quiz-promo p:not(.eyebrow) {
  max-width: 48rem;
  color: #504c45;
  line-height: 1.55;
}

.quiz-shell {
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
  padding: 1.2rem 0 4rem;
}

.quiz-panel {
  width: 100%;
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.quiz-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 1rem;
}

.quiz-topbar h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
}

.language-picker {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 800;
}

.language-picker select {
  min-width: 8rem;
  border: 2px solid var(--ink);
  border-radius: .55rem;
  padding: .5rem .65rem;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.screen {
  display: none;
  padding-top: 1.5rem;
}

.screen.active {
  display: block;
}

.intro-layout,
.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  align-items: center;
  gap: 2rem;
}

.cat-orbit {
  position: relative;
  min-height: 20rem;
  border: 2px dashed #20202233;
  border-radius: .9rem;
  background: #f5fbf6;
  overflow: hidden;
}

.cat-orbit .sprite {
  position: absolute;
}

.cat-orbit .black-cat {
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 3;
}

.cat-orbit .calico {
  left: .5rem;
  bottom: 0;
  transform: scale(.84);
}

.cat-orbit .siamese {
  right: .5rem;
  bottom: 0;
  transform: scale(.84);
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.2rem;
  font-weight: 900;
}

.progress-track {
  height: .75rem;
  flex: 1;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

#progress-bar {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--teal);
  transition: width .2s ease;
}

#question-title {
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.answer-button {
  min-height: 5rem;
  border: 2px solid var(--ink);
  border-radius: .7rem;
  padding: 1rem;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.answer-button:hover,
.answer-button:focus-visible {
  background: #fff0bd;
  transform: translateY(-2px);
}

.result-art {
  min-height: 24rem;
  display: grid;
  place-items: center;
  border-radius: .9rem;
  background:
    linear-gradient(transparent 68%, #20202214 68% 69%, transparent 69%),
    #fff0bd;
}

.result-copy h2 {
  margin-bottom: .8rem;
}

.adopt-line {
  border-left: 6px solid var(--coral);
  margin: 1rem 0 0;
  padding: .75rem 1rem;
  background: #fff4e1;
  color: #3c3833;
  font-weight: 850;
  line-height: 1.45;
}

.share-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header,
  .quiz-topbar,
  .quiz-promo {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero,
  .intro-layout,
  .result-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-stage {
    min-height: 22rem;
  }

  .sprite-pedestal {
    height: 20rem;
  }

  .sprite-pedestal .orange-cat {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .result-sprite {
    width: 256px;
    height: 256px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.8rem;
  }

  .button {
    width: 100%;
  }

  .hero-stage,
  .cat-orbit {
    transform: scale(.88);
    transform-origin: top center;
    width: 114%;
    margin-left: -7%;
  }
}
