@font-face { font-family: "Pixelify Sans"; src: url("fonts/PixelifySans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("fonts/PixelifySans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
:root { --cream: #fff6e9; --peach: #fdebd3; --ink: #3b2a2a; --ink2: #6f5449; --accent: #a8501a; --card: #ffffff; --line: #ecdcc8; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; image-rendering: pixelated; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: "Pixelify Sans", ui-monospace, monospace; font-weight: 600; font-size: 26px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
nav.site { display: flex; gap: 20px; flex-wrap: wrap; }
nav.site a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 2px; }
nav.site a:hover { color: var(--accent); }
h1, h2, h3 { font-family: "Pixelify Sans", ui-monospace, monospace; font-weight: 600; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 38px); margin-top: 8px; }
h3 { font-size: 24px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.hero p.lead { font-size: 21px; color: var(--ink2); margin: 0 0 28px; max-width: 34em; }
.hero img { width: 100%; max-width: 420px; justify-self: center; border-radius: 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 16px; background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 600; }
.button:hover { background: #5a4141; color: var(--cream); }
.button.secondary { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.button.secondary:hover { background: var(--peach); color: var(--ink); }
.soon { color: var(--ink2); font-size: 16px; }
.features { display: grid; gap: 28px; padding: 16px 0 64px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; background: var(--card); border-radius: 28px; padding: 28px; }
.feature:nth-child(even) .pic { order: 2; }
.feature img { border-radius: 20px; display: block; width: 100%; }
.feature p { color: var(--ink2); margin: 0; }
.kind { background: var(--peach); border-radius: 28px; padding: 36px; margin-bottom: 64px; }
.kind ul { margin: 16px 0 0; padding-left: 22px; }
.kind li { margin: 10px 0; }
.page { padding: 24px 0 72px; }
.page h2 { font-size: 26px; margin-top: 36px; }
.page p, .page li { color: var(--ink); }
.page .updated { color: var(--ink2); }
.card { background: var(--card); border-radius: 24px; padding: 28px; }
details { background: var(--card); border-radius: 18px; padding: 18px 22px; margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 28px; }
details p { margin: 12px 0 0; color: var(--ink); }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink2); font-size: 16px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
.join { text-align: center; padding: 48px 0 80px; }
.join img { width: 200px; border-radius: 24px; margin-bottom: 16px; }
.join .actions { justify-content: center; margin-top: 24px; }
@media (max-width: 760px) {
  .hero, .feature { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; gap: 24px; }
  .hero img { max-width: 280px; order: -1; }
  .feature:nth-child(even) .pic { order: 0; }
  .feature { padding: 20px; gap: 20px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Sprites and animation ---------- */
.sprite { display: block; image-rendering: pixelated; }
.hero { align-items: stretch; }
.hero-text { align-self: center; }
.stage { position: relative; min-height: 420px; border-radius: 28px; overflow: hidden; background: linear-gradient(#cfe6f7 0%, #eaf4f9 66%, #fdebd3 66%, #fdebd3 74%, #f1d6b4 74%, #f1d6b4 90%, #fdebd3 90%); }
.stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 4px; background: repeating-linear-gradient(90deg, #fff7ee 0 18px, transparent 18px 36px); }
.sky { position: absolute; inset: 0; }
.cloud { position: absolute; width: 72px; height: 20px; background: #ffffff; box-shadow: 16px -10px 0 #ffffff, 36px -4px 0 #ffffff; opacity: .95; }
.c1 { top: 52px; left: -90px; animation: drift 26s linear infinite; }
.c2 { top: 104px; left: -90px; animation: drift 34s linear infinite -12s; transform: scale(.7); }
.c3 { top: 30px; left: -90px; animation: drift 41s linear infinite -25s; }
@keyframes drift { to { left: 110%; } }
.counter { position: absolute; top: 18px; left: 18px; background: var(--card); border-radius: 14px; padding: 8px 14px; font-family: "Pixelify Sans", ui-monospace, monospace; font-size: 22px; color: var(--ink); }
.count { font-weight: 600; display: inline-block; min-width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.pops { position: absolute; top: 76px; left: 18px; right: 18px; display: flex; gap: 10px; justify-content: flex-start; }
.pop { background: var(--card); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: var(--ink2); opacity: 0; transform: translateY(10px) scale(.8); transition: opacity .35s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.pop .find { width: 40px; height: 40px; }
.got1 .p1, .got2 .p2, .got3 .p3 { opacity: 1; transform: none; }
.street { position: absolute; left: 0; right: 0; bottom: 34%; height: 90px; }
.house { position: absolute; bottom: 0; width: 64px; height: 48px; background: #fff7ee; border: 4px solid #6e4529; }
.house::before { content: ""; position: absolute; left: -12px; right: -12px; bottom: 100%; height: 0; border-left: 44px solid transparent; border-right: 44px solid transparent; border-bottom: 28px solid var(--roof, #d85a30); transform: translateX(-4px); }
.house::after { content: ""; position: absolute; left: 22px; bottom: 0; width: 14px; height: 22px; background: #6e4529; }
.h1 { left: 6%; --roof: #d85a30; } .h2 { left: 42%; --roof: #534ab7; } .h3 { left: 76%; --roof: #1d9e75; }
.tree { position: absolute; bottom: 0; width: 34px; height: 52px; }
.tree::before { content: ""; position: absolute; left: 0; bottom: 14px; width: 34px; height: 38px; background: #639922; box-shadow: inset -6px -6px 0 #3b6d11; }
.tree::after { content: ""; position: absolute; left: 13px; bottom: 0; width: 8px; height: 14px; background: #6e4529; }
.t1 { left: 28%; } .t2 { left: 64%; }
.walker { position: absolute; bottom: 13%; left: -120px; width: 100px; z-index: 1; animation: stroll 11.6s linear infinite; }
.walker .walking { width: 100px; height: auto; animation: bob .5s steps(1) infinite; }
.legs-a { animation: legsA .5s steps(1) infinite; } .legs-b { animation: legsB .5s steps(1) infinite; }
@keyframes stroll { 0% { left: -120px; } 78% { left: calc(100% - 128px); } 99.9% { left: calc(100% - 128px); } 100% { left: -120px; } }
@keyframes bob { 0% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes legsA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes legsB { 0% { opacity: 0; } 50% { opacity: 1; } }

.how { padding: 8px 0 56px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: var(--card); border-radius: 24px; padding: 24px; }
.steps .num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--peach); font-family: "Pixelify Sans", ui-monospace, monospace; font-weight: 600; font-size: 22px; margin-bottom: 12px; }
.steps p { color: var(--ink2); margin: 0; }

.pic { position: relative; }
.zz { position: absolute; left: 47%; top: 52%; font-family: "Pixelify Sans", ui-monospace, monospace; font-weight: 600; font-size: 22px; color: var(--ink2); animation: float 3s ease-in-out infinite; }
.sparkle { position: absolute; width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 2px #f2c14e; transform: rotate(45deg); animation: twinkle 2.4s ease-in-out infinite; }
.s1 { left: 72%; top: 52%; } .s2 { left: 22%; top: 18%; animation-delay: -1.2s; }
.town { overflow: hidden; border-radius: 20px; }
.fog { position: absolute; top: 0; bottom: 0; width: 46%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); animation: clear 9s ease-in-out infinite; }
.f1 { left: -8%; } .f2 { left: -18%; top: 40%; animation-delay: -4.5s; }
.heart { position: absolute; left: 56%; top: 46%; width: 34px; animation: float 2.6s ease-in-out infinite; }
.heart svg { width: 34px; height: 34px; }
@keyframes float { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-14px); opacity: 1; } }
@keyframes twinkle { 0%, 100% { transform: rotate(45deg) scale(.4); opacity: 0; } 50% { transform: rotate(45deg) scale(1); opacity: 1; } }
@keyframes clear { 0%, 100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(24%); opacity: .55; } }

.kind { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; }
.kind-cat .colin { width: 170px; height: auto; }
.colin .eyes-shut, .colin .tail-b { opacity: 0; }
.colin .eyes-open { animation: blinkOpen 4.2s steps(1) infinite; } .colin .eyes-shut { animation: blinkShut 4.2s steps(1) infinite; }
.colin .tail-a { animation: tailA 3.2s steps(1) infinite; } .colin .tail-b { animation: tailB 3.2s steps(1) infinite; }
@keyframes blinkOpen { 0%, 92%, 100% { opacity: 1; } 94% { opacity: 0; } }
@keyframes blinkShut { 0%, 92%, 100% { opacity: 0; } 94% { opacity: 1; } }
@keyframes tailA { 0%, 70%, 100% { opacity: 1; } 75%, 85% { opacity: 0; } }
@keyframes tailB { 0%, 70%, 100% { opacity: 0; } 75%, 85% { opacity: 1; } }

.sleepy { position: relative; height: 96px; margin: 0 0 8px; }
.sleeper { position: absolute; right: 8%; bottom: 0; width: 150px; height: auto; animation: breathe 3.6s ease-in-out infinite; transform-origin: bottom; }
.z { position: absolute; right: calc(8% + 12px); bottom: 52px; font-family: "Pixelify Sans", ui-monospace, monospace; font-weight: 600; color: var(--ink2); opacity: 0; animation: zz 3.6s ease-out infinite; }
.z2 { animation-delay: 1.2s; } .z3 { animation-delay: 2.4s; }
.sleeper .ear { animation: earTwitch 7s steps(1) infinite; }
@keyframes earTwitch { 0%, 88%, 92%, 100% { transform: none; } 90% { transform: translateY(1px); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.05); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0) scale(.8); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -46px) scale(1.3); } }

@media (max-width: 760px) {
  .stage { min-height: 400px; }
  .steps { grid-template-columns: 1fr; }
  .kind { grid-template-columns: 1fr; justify-items: start; }
  .kind-cat .colin { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .walker { left: 38%; }
  .colin .eyes-shut, .colin .tail-b, .legs-b { opacity: 0; }
}
