/* Desky Pet website. Colours from docs/superpowers/specs/2026-10-16-desky-pet-design-system.md
   (band, paper, ink, label, link, focus), plus a few wallpaper tints for the mock desktop. */
:root {
  --band: #B4652D;
  --paper-top: #FED9A9;
  --paper-bottom: #F8B075;
  --ink: #3B2A1E;
  --ink-muted: #5E4230;
  --label: #FFF3E4;
  --surface: #FFF8EE;
  --line: #7E5A3E;
  --hover: #523C2B;
  --pressed: #2A1D14;
  --link: #743A12;
  --focus: #8F441B;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(var(--paper-top), var(--paper-bottom)) fixed;
  background-color: var(--paper-bottom);
  color: var(--ink); font: 400 18px/1.55 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; font-variation-settings: "SOFT" 100; font-weight: 600; margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* The letterhead: the only place white text appears. */
.band { background: var(--band); color: #fff; }
.band .wrap { display: flex; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 22px/1 var(--serif); font-variation-settings: "SOFT" 100; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.band :focus-visible { outline-color: #fff; }

main { flex: 1; }
footer { padding: 28px 16px 36px; text-align: center; font-size: 14px; color: var(--ink-muted); }

/* Download button */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--label); text-decoration: none;
  font: 600 18px/1 var(--sans); padding: 18px 28px 18px 24px; border-radius: 999px;
  box-shadow: 0 1px 2px rgb(59 42 30 / 30%), 0 10px 24px -10px rgb(59 42 30 / 60%);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.button:hover { background: var(--hover); color: var(--label); transform: translateY(-2px); box-shadow: 0 2px 4px rgb(59 42 30 / 25%), 0 16px 30px -12px rgb(59 42 30 / 70%); }
.button:active { background: var(--pressed); transform: translateY(0); box-shadow: 0 1px 2px rgb(59 42 30 / 30%); }
.button:focus-visible { outline-offset: 4px; border-radius: 999px; }
.button .paw { width: 22px; height: 22px; background: currentColor; -webkit-mask: url(/img/paw.png) center / contain no-repeat; mask: url(/img/paw.png) center / contain no-repeat; transform: rotate(-12deg); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.button:hover .paw { transform: rotate(14deg) scale(1.12); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--ink-muted); }
.away { margin: 0 auto; max-width: 30em; padding: 16px 22px; border-radius: 18px; background: rgb(255 248 238 / 70%); border: 1px solid rgb(126 90 62 / 25%); font-weight: 500; }

/* Platform: Mac shows the button; phones and tablets, and everything else, see a note instead. */
.for-mobile, .for-other { display: none; }
html[data-platform="mobile"] .for-mac, html[data-platform="other"] .for-mac { display: none; }
html[data-platform="mobile"] .for-mobile, html[data-platform="other"] .for-other { display: block; }

/* Hero */
.hero { text-align: center; padding: 64px 0 0; }
.eyebrow { display: inline-block; margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.hero h1 { font-size: clamp(42px, 7.2vw, 80px); line-height: 1.02; letter-spacing: -.02em; max-width: 12em; margin: 0 auto; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--link); }
.lede { margin: 22px auto 34px; max-width: 34em; font-size: clamp(18px, 2.1vw, 21px); color: var(--ink); }

/* The mock desktop. Everything inside is sized in container units so it scales as one picture. */
.stage-wrap { padding: 56px 0 0; }
.stage {
  container-type: inline-size; position: relative; overflow: hidden; margin: 0;
  aspect-ratio: 16 / 7.4; border-radius: 22px;
  background:
    radial-gradient(circle at 78% 34%, rgb(255 246 230 / 95%) 0 6%, rgb(255 236 206 / 0%) 22%),
    linear-gradient(#FFE7C8, #FBCB98 52%, #EFA46E);
  box-shadow: 0 0 0 1px rgb(59 42 30 / 12%), 0 30px 60px -30px rgb(59 42 30 / 55%), 0 12px 24px -16px rgb(59 42 30 / 35%);
}
.dunes { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; }
.menubar {
  position: absolute; inset: 0 0 auto 0; height: max(22px, 3.1cqw);
  display: flex; align-items: center; justify-content: space-between; padding: 0 2cqw;
  background: rgb(255 248 238 / 55%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: max(9px, 1.2cqw); font-weight: 600; color: var(--ink-muted);
}
.menubar span { margin-right: 1.8cqw; }
.menubar .right { display: flex; align-items: center; gap: 1.6cqw; }
.menubar .status-paw { position: relative; width: max(13px, 1.7cqw); height: max(13px, 1.7cqw); background: var(--ink); -webkit-mask: url(/img/paw.png) center / contain no-repeat; mask: url(/img/paw.png) center / contain no-repeat; }
.menubar .pulse { position: relative; display: grid; place-items: center; }
.menubar .pulse::before { content: ""; position: absolute; width: 260%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--band); opacity: 0; animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1); opacity: 0; } }
.window {
  position: absolute; left: 7cqw; top: 8.5cqw; width: 34cqw; height: 19cqw; border-radius: 1.4cqw;
  background: rgb(255 248 238 / 72%); box-shadow: 0 1.4cqw 3cqw -1.6cqw rgb(59 42 30 / 40%), 0 0 0 1px rgb(59 42 30 / 8%);
  padding: 1.3cqw 1.6cqw;
}
.window .dots { display: flex; gap: .7cqw; margin-bottom: 1.8cqw; }
.window .dots i { width: 1cqw; height: 1cqw; border-radius: 50%; background: rgb(126 90 62 / 30%); }
.window .ln { height: 1cqw; border-radius: 1cqw; background: rgb(126 90 62 / 18%); margin-bottom: 1.1cqw; }
.dock {
  position: absolute; left: 31cqw; width: 38cqw; bottom: .8cqw; height: 6.2cqw;
  display: flex; align-items: center; justify-content: space-evenly; padding: 0 .8cqw;
  border-radius: 2cqw; background: rgb(255 248 238 / 42%);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 55%), 0 .8cqw 2cqw -1cqw rgb(59 42 30 / 35%);
  z-index: 1;
}
.dock i { width: 4.4cqw; height: 4.4cqw; border-radius: 1.1cqw; box-shadow: 0 .2cqw .5cqw rgb(59 42 30 / 25%); }
.dock i:nth-child(1) { background: linear-gradient(135deg, #8AB6D6, #4F7FA8); }
.dock i:nth-child(2) { background: linear-gradient(135deg, #F4D27A, #E0A43C); }
.dock i:nth-child(3) { background: linear-gradient(135deg, #A9C99A, #5E8F5A); }
.dock i:nth-child(4) { background: linear-gradient(135deg, #F2A38A, #C8573A); }
.dock i:nth-child(5) { background: linear-gradient(135deg, #C7A6D9, #7D5A9E); }
.dock i:nth-child(6) { background: linear-gradient(135deg, #FFF8EE, #E8D6BF); }
.dock i:nth-child(7) { background: linear-gradient(135deg, #6B5444, #3B2A1E); }

/* The cat: x walks, y hops, the sprite steps through the real walk cycle (16 frames, 1.49 s). */
.cat-x { position: absolute; left: 0; bottom: 0; width: 16cqw; z-index: 2; animation: cat-x 21.7s linear infinite; will-change: transform; }
.cat-y { animation: cat-y 21.7s linear infinite; will-change: transform; }
.cat { position: relative; display: block; width: 100%; aspect-ratio: 272 / 269; background: url(/img/walk.webp) 0 0 / 1600% 100% no-repeat; animation: walk-cycle 1.4934s steps(16, jump-none) infinite; cursor: grab; }
@keyframes walk-cycle { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes cat-x {
  0% { transform: translateX(-17cqw); }
  30.69% { transform: translateX(14.24cqw); }
  33.69% { transform: translateX(31cqw); }
  55.02% { transform: translateX(52.74cqw); }
  58.02% { transform: translateX(70cqw); }
  88.48%, 100% { transform: translateX(101cqw); }
}
@keyframes cat-y {
  0%, 30.69% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  32.3% { transform: translateY(-10.4cqw); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  33.69%, 55.02% { transform: translateY(-7cqw); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  56.4% { transform: translateY(-9cqw); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  58.02%, 100% { transform: translateY(0); }
}
.hearts { position: absolute; left: 46%; top: 8%; width: 30%; height: 40%; pointer-events: none; }
.hearts i { position: absolute; bottom: 0; width: 1.5cqw; height: 1.5cqw; opacity: 0; background: var(--band); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.3 3 4.5 6.7 4.5c2.2 0 3.8 1.3 5.3 3.2 1.5-1.9 3.1-3.2 5.3-3.2 3.7 0 5.8 3.8 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C.9 8.3 3 4.5 6.7 4.5c2.2 0 3.8 1.3 5.3 3.2 1.5-1.9 3.1-3.2 5.3-3.2 3.7 0 5.8 3.8 4.3 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hearts i:nth-child(1) { left: 0; }
.hearts i:nth-child(2) { left: 40%; width: 1.1cqw; height: 1.1cqw; }
.hearts i:nth-child(3) { left: 75%; }
@media (hover: hover) {
  .cat:hover .hearts i { animation: heart 1.2s ease-out infinite; }
  .cat:hover .hearts i:nth-child(2) { animation-delay: .35s; }
  .cat:hover .hearts i:nth-child(3) { animation-delay: .7s; }
}
@keyframes heart { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-5cqw) scale(1); opacity: 0; } }
.stage-caption { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--ink-muted); }

/* Sections */
section { padding: 96px 0 0; }
.section-head { text-align: center; max-width: 36em; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.015em; }
.section-head p { margin: 14px 0 0; color: var(--ink-muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--surface); border-radius: 26px; padding: 0 0 28px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(59 42 30 / 7%), 0 18px 40px -28px rgb(59 42 30 / 45%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(59 42 30 / 8%), 0 26px 50px -28px rgb(59 42 30 / 55%); }
.card .pic { position: relative; height: 230px; display: flex; align-items: flex-end; justify-content: center; padding: 0 24px; margin-bottom: 24px; background: linear-gradient(#FFF1DE, #FBDDB8); }
.card .pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(rgb(232 170 120 / 0%), rgb(232 170 120 / 35%)); }
.card .pic img { position: relative; z-index: 1; display: block; max-height: 200px; width: auto; margin-bottom: 10px; filter: drop-shadow(0 8px 6px rgb(59 42 30 / 22%)); }
.card h3 { font-size: 28px; line-height: 1.15; padding: 0 28px; }
.card p { margin: 10px 0 0; padding: 0 28px; color: var(--ink-muted); }
.pic.nap img { max-height: 120px; }
.pic.pet img { max-height: 150px; }
.pic.pet .stroke { position: absolute; z-index: 2; left: 50%; top: 70px; width: 220px; margin-left: -150px; overflow: visible; }
.pic.pet .stroke path { stroke: var(--band); stroke-width: 3; stroke-linecap: round; fill: none; stroke-dasharray: 2 9; }
.pic.pet .pointer { position: absolute; z-index: 3; left: 50%; top: 80px; width: 26px; margin-left: -40px; animation: stroke-it 3.6s ease-in-out infinite; }
@keyframes stroke-it { 0%, 100% { transform: translate(-90px, 18px); } 50% { transform: translate(40px, 4px); } }
.pic.play { gap: 0; }
.pic.play img { max-height: 170px; }
.pic.play img + img { margin-left: -12px; }
.pic.play .heart { position: absolute; z-index: 2; top: 30px; left: 50%; width: 22px; margin-left: -11px; fill: var(--band); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.pic.walk img { max-height: 150px; margin-bottom: 50px; }
.minidock { position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgb(255 248 238 / 75%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 80%), 0 6px 14px -8px rgb(59 42 30 / 45%); }
.minidock i { width: 26px; height: 26px; border-radius: 7px; }
.minidock i:nth-child(1) { background: linear-gradient(135deg, #8AB6D6, #4F7FA8); }
.minidock i:nth-child(2) { background: linear-gradient(135deg, #F4D27A, #E0A43C); }
.minidock i:nth-child(3) { background: linear-gradient(135deg, #A9C99A, #5E8F5A); }
.minidock i:nth-child(4) { background: linear-gradient(135deg, #F2A38A, #C8573A); }
.minidock i:nth-child(5) { background: linear-gradient(135deg, #C7A6D9, #7D5A9E); }

/* Coats */
.coats { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.coats li { text-align: center; font-size: 14px; color: var(--ink-muted); }
.coats img { display: block; width: 100%; max-width: 110px; margin: 0 auto 6px; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); filter: drop-shadow(0 6px 5px rgb(59 42 30 / 18%)); }
.coats li:hover img { transform: translateY(-6px) rotate(-2deg); }

/* Closing call */
.closing { padding-bottom: 40px; text-align: center; }
.closing .panel { position: relative; background: var(--surface); border-radius: 32px; padding: 64px 24px 56px; box-shadow: 0 0 0 1px rgb(59 42 30 / 7%), 0 30px 60px -40px rgb(59 42 30 / 55%); overflow: hidden; }
.closing h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.015em; }
.closing p.sub { margin: 14px auto 30px; max-width: 30em; color: var(--ink-muted); }
.closing .sleeper { display: block; width: 230px; margin: 0 auto 18px; filter: drop-shadow(0 8px 6px rgb(59 42 30 / 20%)); }

/* Attribution page */
.prose { max-width: 38em; margin: 0 auto; padding: 72px 16px 40px; }
.prose h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 26px; }
.prose .sheet { background: var(--surface); border-radius: 26px; padding: 28px 30px; box-shadow: 0 0 0 1px rgb(59 42 30 / 7%), 0 18px 40px -28px rgb(59 42 30 / 45%); }
.prose .sheet p { margin: 0; }
.prose .sheet p + p { margin-top: 18px; }
.prose .back { display: inline-block; margin-top: 28px; font-weight: 600; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .coats { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
  .coats img { max-width: 120px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .band .wrap { height: 56px; }
  .brand { font-size: 20px; }
  .brand img { width: 30px; height: 30px; }
  .hero { padding-top: 44px; }
  .lede { margin: 18px auto 28px; }
  .button { font-size: 17px; padding: 17px 24px 17px 20px; }
  .stage-wrap { padding-top: 40px; }
  .stage { aspect-ratio: 16 / 10; border-radius: 16px; }
  .window { width: 44cqw; height: 24cqw; top: 9cqw; }
  section { padding-top: 72px; }
  .section-head { margin-bottom: 32px; }
  .card .pic { height: 200px; }
  .card h3 { font-size: 25px; padding: 0 22px; }
  .card p { padding: 0 22px; }
  .closing .panel { padding: 48px 20px 44px; border-radius: 26px; }
  .closing .sleeper { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cat-x { transform: translateX(10cqw); }
  .pic.pet .pointer { transform: translate(-20px, 10px); }
  .button:hover, .card:hover, .coats li:hover img { transform: none; }
}
