:root {
  --bg: #fbf7f1;
  --ink: #2b2a30;
  --muted: #5f5b66;
  --moss: #4f7a4a;
  --moss-deep: #3d6339;
  --moss-soft: #e3ecd9;
  --pink: #ffd9dd;
  --pink-ink: #4a3438;
  --card: #ffffff;
  --line: rgba(43, 42, 48, 0.12);
  --night: #23212b;
  --night-ink: #ece8e2;
  --night-muted: #b6b0bd;
  --lantern: #f3c46b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b21;
    --ink: #ece8e2;
    --muted: #b6b0bd;
    --moss: #9cc28f;
    --moss-deep: #b5d6a9;
    --moss-soft: #2a3327;
    --pink: #3a2a30;
    --pink-ink: #f6dde0;
    --card: #26242c;
    --line: rgba(236, 232, 226, 0.14);
    --night: #121117;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--moss); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm { font-size: 0.55em; vertical-align: super; line-height: 0; margin-left: 0.04em; }

/* Header */
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.mark { font: 600 1.6rem/1 "Fredoka", sans-serif; color: var(--moss); text-decoration: none; letter-spacing: 0.01em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 700; font-size: 0.95rem; }
nav a:hover { color: var(--moss); }

h1, h2, h3 { font-family: "Fredoka", sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.45rem; margin-bottom: 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.2rem; max-width: 34em; }

/* Hero: the pets on a little desktop */
.hero { background: var(--pink); color: var(--pink-ink); padding: 36px 0 44px; }
.hero h1 { color: var(--pink-ink); }
.screen {
  position: relative;
  margin: 28px auto 0;
  max-width: 820px;
  aspect-ratio: 16 / 8.2;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #bfe1f2 0%, #d9d3f2 55%, #f6d9e6 100%);
  box-shadow: 0 0 0 8px #2f2d36, 0 18px 40px rgba(43, 42, 48, 0.25);
}
.screen::before { /* menu bar */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px;
  background: rgba(255, 255, 255, 0.45);
}
.screen .pets { position: absolute; left: 50%; bottom: 13%; width: 72%; transform: translateX(-50%); }
.dock {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  width: 46%; height: 9%; border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: space-evenly; padding: 0 3%;
}
.dock i { display: block; width: 9%; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, 0.85); }
.dock i:nth-child(2n) { background: rgba(79, 122, 74, 0.35); }
.dock i:nth-child(3n) { background: rgba(243, 196, 107, 0.6); }

/* Waitlist form */
.join { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; max-width: 520px; }
.join input {
  flex: 1 1 240px; min-width: 0;
  font: inherit; padding: 12px 16px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink);
}
.join input:focus { outline: none; border-color: var(--moss); }
.join button {
  flex: 0 0 auto;
  font: 600 1.05rem/1 "Fredoka", sans-serif; padding: 14px 22px; border: 0; border-radius: 12px;
  background: var(--moss); color: #fff; cursor: pointer;
}
.join button:hover { background: var(--moss-deep); }
.fine { font-size: 0.92rem; color: var(--muted); }
.hero .fine { color: inherit; opacity: 0.8; }

/* Meet the pets */
.meet { padding: 60px 0 36px; }
.pets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.pet { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 18px; text-align: center; }
.pet img { display: block; height: 170px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.pet p { color: var(--muted); margin: 0; }
.about { padding: 8px 0 52px; }
.about p { max-width: 36em; }

/* Night */
.night { background: var(--night); color: var(--night-ink); padding: 52px 0 44px; }
.night h2 { color: var(--night-ink); }
.night .glow { color: var(--lantern); }
.night figure { margin: 26px 0 0; }
.night img { display: block; width: 100%; max-width: 760px; margin: 0 auto; }
.night figcaption { text-align: center; color: var(--night-muted); font-size: 0.95rem; margin-top: 10px; }

/* Waitlist and follow */
.waitlist { padding: 60px 0 20px; }
.follow { padding: 24px 0 56px; }
.follow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.follow a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--moss-soft); color: var(--moss); font-weight: 700; text-decoration: none; }
.follow a:hover { background: var(--moss); color: #fff; }

/* Plain pages (privacy, thanks, confirmed) */
.page { padding: 36px 0 56px; }
.page h2 { font-size: 1.35rem; margin-top: 28px; }
.page p, .page li { max-width: 40em; }
.page .follow { padding: 0 0 22px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 20px; padding-bottom: 28px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .pets-grid { grid-template-columns: 1fr; }
  .pet { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-align: left; padding: 16px; }
  .pet img { height: 92px; margin: 0; }
}
@media (max-width: 520px) {
  nav a { margin-left: 12px; }
  .screen { aspect-ratio: 16 / 10; box-shadow: 0 0 0 5px #2f2d36, 0 12px 28px rgba(43, 42, 48, 0.25); }
  .screen .pets { width: 92%; bottom: 15%; }
  .dock { width: 70%; }
  .join button { width: 100%; }
}
