/* Desklings — a stray cat for your Mac */

:root {
  --bg: #F4ECDF;
  --bg-alt: #ECE1CF;
  --surface: #FBF6EE;
  --ink: #2A2530;
  --ink-2: #5B5360;
  --ink-3: #857C88;
  --line: rgba(42, 37, 48, .12);
  --accent: #C4651C;
  --collar: #D9475B;
  --btn-bg: #2A2530;
  --btn-ink: #FBF6EE;
  --btn-sub: rgba(251, 246, 238, .66);
  --night: #23202A;
  --night-2: #2E2A36;
  --night-ink: #F2EADF;
  --night-ink-2: #BDB3B5;
  --shadow: 0 1px 2px rgba(42, 37, 48, .06), 0 12px 32px -12px rgba(42, 37, 48, .22);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1B22;
    --bg-alt: #24212A;
    --surface: #2A2731;
    --ink: #F2EADF;
    --ink-2: #C3BAB2;
    --ink-3: #958C93;
    --line: rgba(242, 234, 223, .12);
    --accent: #F29A52;
    --btn-bg: #F2EADF;
    --btn-ink: #1D1B22;
    --btn-sub: rgba(29, 27, 34, .62);
    --night: #16141A;
    --night-2: #211E26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
code { font: .86em/1.4 var(--mono); overflow-wrap: anywhere; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-ink);
}
.skip:focus { top: 12px; }

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

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* Header */
.top { position: relative; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--btn-bg); color: var(--btn-ink);
  text-decoration: none; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 8px 16px; font-size: 14px; font-weight: 600; }
.btn-dl { padding: 14px 28px 14px 22px; border-radius: 18px; }
.dl-glyph { width: 26px; height: 26px; flex: none; }
.dl-text { display: flex; flex-direction: column; line-height: 1.2; }
.dl-text strong { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.dl-text small { font-size: 13px; color: var(--btn-sub); margin-top: 3px; }

.not-mac {
  margin-top: 14px; font-size: 15px; color: var(--ink-2);
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  max-width: 420px;
}
.not-mac[hidden] { display: none; }

/* Hero */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(42px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
.lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.cta { margin-top: 34px; }
.cta-meta { margin-top: 16px; font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.seal { display: inline-flex; align-items: center; gap: 6px; }
.seal::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 2.5 3v4.2c0 3.3 2.3 6.3 5.5 7.3 3.2-1 5.5-4 5.5-7.3V3Zm-.9 9.6L4.6 8.1l1-1 1.5 1.5 3.3-3.3 1 1Z'/%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 16 16'%3E%3Cpath d='M8 1 2.5 3v4.2c0 3.3 2.3 6.3 5.5 7.3 3.2-1 5.5-4 5.5-7.3V3Zm-.9 9.6L4.6 8.1l1-1 1.5 1.5 3.3-3.3 1 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The desktop the cat sits on */
.scene {
  position: relative; margin: 0;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(255, 220, 170, .55), transparent 60%),
    linear-gradient(168deg, #F2C397 0%, #E59B78 30%, #B9789A 62%, #6C5F93 86%, #4C4A7A 100%);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(42, 37, 48, .55);
  container-type: inline-size;
}
@media (prefers-color-scheme: dark) {
  .scene {
    background:
      radial-gradient(90% 70% at 80% 0%, rgba(120, 110, 190, .35), transparent 60%),
      linear-gradient(168deg, #3B3557 0%, #2C2843 40%, #211E30 75%, #1A1724 100%);
  }
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 6.2cqi; min-height: 22px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3cqi; font-size: max(11px, 2.3cqi); color: rgba(30, 24, 36, .85);
  background: rgba(255, 248, 240, .42);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
@media (prefers-color-scheme: dark) { .menubar { color: rgba(242, 234, 223, .9); background: rgba(20, 18, 26, .45); } }
.mb-left, .mb-right { display: flex; align-items: center; gap: 2.6cqi; }
.mb-left b { font-weight: 700; }
.mb-right svg { height: max(11px, 2.4cqi); width: auto; }

.win {
  position: absolute; left: 8%; right: 16%; top: 54%; bottom: 15%;
  background: #FFFDF9; border-radius: 2.2cqi; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 20px 40px -14px rgba(30, 20, 40, .5);
  color: #3A3340;
}
@media (prefers-color-scheme: dark) { .win { background: #2B2833; color: #E9E1D6; } }
.win-bar {
  height: 6.4cqi; display: flex; align-items: center; gap: 1.3cqi; padding: 0 2.4cqi;
  background: rgba(0, 0, 0, .045); font-size: max(10px, 2.1cqi); font-weight: 600;
}
@media (prefers-color-scheme: dark) { .win-bar { background: rgba(255, 255, 255, .05); } }
.win-bar i { width: 1.9cqi; height: 1.9cqi; border-radius: 50%; background: #E8685E; }
.win-bar i:nth-child(2) { background: #EEB94C; }
.win-bar i:nth-child(3) { background: #69C35B; }
.win-bar span { margin: 0 auto; padding-right: 7cqi; opacity: .7; }
.win-body { padding: 2.6cqi 3.4cqi; font: max(10px, 2.35cqi)/1.65 var(--mono); }
.win-body p:first-child { font-weight: 700; }
.win-body .faint { opacity: .55; }
.caret { display: inline-block; width: 2px; height: 2.6cqi; background: var(--accent); animation: blink 1.1s steps(1) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

.scene-cat {
  position: absolute; z-index: 2;
  width: 62%; left: 6%;
  bottom: 46%;
  /* The picture includes the cat's shadow: its paws end 10% above the bottom edge. */
  transform: scaleX(-1) translateY(9.5%);
  filter: drop-shadow(0 6px 12px rgba(40, 20, 30, .18));
}
.dock {
  position: absolute; left: 50%; bottom: 2.4cqi; transform: translateX(-50%);
  display: flex; gap: 1.5cqi; padding: 1.3cqi; border-radius: 3cqi;
  background: rgba(255, 248, 240, .32);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.dock i, .dock img { width: 6.4cqi; height: 6.4cqi; border-radius: 1.6cqi; }
.dock i { background: linear-gradient(160deg, #FFFFFF, #D8D2E6); opacity: .85; }
.dock i:nth-child(2) { background: linear-gradient(160deg, #8EC5FF, #4E7FE0); }
.dock i:nth-child(4) { background: linear-gradient(160deg, #FFE08A, #F2A93B); }
.dock i:nth-child(5) { background: linear-gradient(160deg, #9BE29B, #3FAE6A); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 60px); }
.head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.head h2 + p { margin-top: 18px; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.aside { margin-top: 36px; font-size: 14px; color: var(--ink-3); }

/* Life */
.life { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.life li { background: var(--surface); border-radius: 22px; padding: 20px 22px 24px; box-shadow: 0 0 0 1px var(--line); }
.life .pic { height: 180px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 16px; }
.life .pic img { max-height: 100%; width: auto; }
.life h3, .ladder h3, .coats h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.life p, .ladder p, .coats p { margin-top: 4px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* Play */
.counts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.counts > div { padding: 26px 26px 6px 0; }
.counts > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.counts dt { font-size: 17px; font-weight: 650; }
.counts dt b { display: block; font: 600 clamp(48px, 5.5vw, 68px)/1 var(--serif); letter-spacing: -.03em; color: var(--accent); margin-bottom: 10px; }
.counts dd { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* Trust */
.ladder {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px;
}
.ladder::before {
  content: ""; position: absolute; left: 0; right: 0; top: 206px; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--accent) 85%, var(--collar));
  opacity: .7;
}
.ladder li { position: relative; }
.ladder .pic { height: 180px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; }
.ladder .pic img { max-height: 100%; width: auto; }
.step {
  position: relative; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; margin-bottom: 14px;
  background: var(--bg); color: var(--accent); font-size: 13px; font-weight: 700;
  box-shadow: 0 0 0 2px var(--accent);
}
.ladder li:last-child .step { background: var(--collar); color: #fff; box-shadow: 0 0 0 2px var(--collar); }

/* Craft */
.craft { background: var(--night); color: var(--night-ink); overflow: hidden; }
.craft-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: end; padding-top: clamp(64px, 9vw, 112px); }
.face { margin: 0; align-self: end; }
.face img { width: 100%; max-width: 480px; margin: 0 auto; }
.craft-copy { padding-bottom: clamp(64px, 9vw, 112px); }
.craft .eyebrow { color: #F29A52; }
.craft blockquote {
  margin: 0 0 28px; font: 500 clamp(28px, 3.4vw, 40px)/1.18 var(--serif); letter-spacing: -.015em; text-wrap: balance;
}
.craft p:not(.eyebrow) { color: var(--night-ink-2); font-size: 17px; max-width: 34em; }
.craft p + p { margin-top: 14px; }

/* Coats */
.coats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
.coats img { width: 100%; max-width: 213px; margin: 0 auto 14px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.coats li:hover img { transform: translateY(-4px) scale(1.03); }
.coats h3, .coats p { text-align: center; }
.coats p { max-width: 22em; margin-left: auto; margin-right: auto; }

/* Privacy */
.notices { width: 100%; max-width: 820px; border-collapse: collapse; font-size: 16px; }
.notices th, .notices td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.notices thead th { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 0; }
.notices tbody th { font-weight: 600; width: 48%; padding-right: 24px; }
.notices tbody th::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 12px; vertical-align: 2px;
}
.notices td { color: var(--ink-2); }

/* Download */
.get-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 88px); }
.get-in .head { grid-column: 1 / -1; margin-bottom: 8px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 52px; color: var(--ink-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 600 17px/1 var(--serif); color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.steps b { color: var(--ink); font-weight: 650; }
.get-cta { align-self: start; }
.perch { position: relative; display: inline-block; padding-top: 102px; }
.perch-cat {
  position: absolute; top: 0; left: 50%; width: 220px; max-width: none;
  transform: translateX(-46%);
  pointer-events: none;
}
.perch .btn-dl { position: relative; padding: 18px 34px 18px 26px; border-radius: 20px; }
.facts { margin: 32px 0 0; font-size: 14px; }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }
.sha code { color: var(--ink); }
.copy {
  margin-left: 6px; font: 600 12px/1 var(--sans); color: var(--ink-2); cursor: pointer;
  padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.copy:hover { color: var(--ink); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 120px; font-size: 14px; color: var(--ink-3); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 15px; color: var(--ink-2); }
.foot .brand img { border-radius: 6px; }

/* The cat that wanders along the bottom of the window */
.walker {
  position: fixed; left: 0; bottom: 4px; z-index: 50; pointer-events: none;
  width: 225px; height: 107.7px; /* 40% of each 562 × 269 frame */
  visibility: hidden; will-change: transform;
}
.walker.out { visibility: visible; }
.walker-sprite {
  width: 100%; height: 100%;
  background: url("img/walk.webp") 0 0 / 1600% 100% no-repeat;
  animation: walk .92s steps(16) infinite;
  animation-play-state: paused;
}
.walker.out .walker-sprite { animation-play-state: running; }
.walker.left .walker-sprite { transform: scaleX(-1); }
/* 16 frames: 15 steps of one frame each, so the end is 16/15 of the way along. */
@keyframes walk { to { background-position: 106.6667% 0; } }
@media (max-width: 720px) { .walker { width: 169px; height: 80.9px; } }
@media (prefers-reduced-motion: reduce) { .walker { display: none; } .caret { animation: none; } }

/* Narrower screens */
@media (max-width: 1000px) {
  .life, .coats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .counts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ladder { grid-template-columns: 1fr; gap: 0; }
  .ladder::before { left: 12px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--accent) 85%, var(--collar)); }
  .ladder li { display: grid; grid-template-columns: 26px 150px minmax(0, 1fr); column-gap: 20px; align-items: center; padding: 14px 0; }
  .ladder .pic { grid-column: 2; grid-row: 1 / span 2; height: 110px; margin: 0; }
  .ladder .step { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .ladder h3 { grid-column: 3; align-self: end; }
  .ladder p { grid-column: 3; align-self: start; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top-in .btn-small { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .craft-in { grid-template-columns: 1fr; align-items: start; }
  .face { order: 2; }
  .craft-copy { padding-bottom: 0; }
  .get-in { grid-template-columns: 1fr; }
  .notices tbody th { width: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .life { grid-template-columns: 1fr 1fr; gap: 12px; }
  .life li { padding: 14px 14px 18px; border-radius: 18px; }
  .life .pic { height: 120px; }
  .life p { font-size: 14px; }
  .coats { gap: 32px 14px; }
  .coats p { font-size: 14px; }
  .counts { grid-template-columns: 1fr; }
  .counts > div, .counts > div + div { padding: 22px 0 18px; border-left: 0; border-top: 1px solid var(--line); }
  .counts > div:first-child { border-top: 0; }
  .ladder li { grid-template-columns: 26px 110px minmax(0, 1fr); column-gap: 14px; }
  .ladder .pic { height: 84px; }
  .notices, .notices tbody, .notices tr, .notices th, .notices td { display: block; }
  .notices thead { display: none; }
  .notices tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .notices th, .notices td { border: 0; padding: 0; }
  .notices td { margin-top: 2px; padding-left: 20px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .btn-dl { width: 100%; }
  .perch { display: block; }
}
