/* One Desk Studios: one stylesheet for every page. The colours are the Critter Pals title's (a critter's colour per letter of
   "Critter", the Play button's pink for "Pals", the deep-teal outline) and Titan One is the game's own font (SIL OFL). */

@font-face {
  font-family: "Titan One";
  src: url("/assets/fonts/TitanOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff9f0;
  --white: #ffffff;
  --ink: #23302f;
  --ink-soft: #4f5d5b;
  --teal: #1e5450;
  --teal-deep: #16403d;
  --sea: #e2f4f0;
  --sea-line: #bfe3dc;
  --bubble: #8fd0c5;
  --pink: #ec4e80;
  --pink-button: #d4386a;
  --pink-edge: #a82450;
  --sun-soft: #fff1c9;
  --sun-line: #f5d98a;
  --green: #6cbe4a;
  --reef: #1f5f9e;
  --reef-soft: #e3effc;
  --jungle: #2f7a1f;
  --jungle-soft: #e6f5df;
  --farm: #b83a2f;
  --farm-soft: #fde6e2;
  --radius: 22px;
  --shadow: 0 12px 32px rgba(22, 64, 61, 0.12);
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light;
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main { flex: 1 0 auto; }   /* (a short page keeps its footer at the bottom of a tall screen) */

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--pink-button); }

:focus-visible {
  outline: 3px solid #2a6fb3;
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: "Titan One", system-ui, sans-serif;
  font-weight: 400;
  color: var(--teal);
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.5em; }
h3 { font-size: 1.35rem; margin: 0 0 0.35em; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */

.site-header { padding: 18px 0 10px; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-family: "Titan One", system-ui, sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
}
.brand:hover { color: var(--teal); }
.brand svg { flex: none; width: 36px; height: 36px; }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -12px; }
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--teal);
  font-weight: 650;
  text-decoration: none;
}
.nav a:hover { background: var(--sea); color: var(--teal-deep); }
.nav a[aria-current="page"] { background: var(--sea); }

/* ---------------------------------------------------------------- buttons: the game's stickers, a darker edge under each */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 26px 15px;
  border-radius: 999px;
  background: var(--pink-button);
  box-shadow: 0 5px 0 var(--pink-edge);
  color: var(--white);
  font-family: "Titan One", system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 7px 0 var(--pink-edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-edge); }
.btn-ghost { background: var(--white); box-shadow: 0 5px 0 var(--sea-line); color: var(--teal); }
.btn-ghost:hover { color: var(--teal); box-shadow: 0 7px 0 var(--sea-line); }

/* ---------------------------------------------------------------- home: hero */

.hero { padding-top: 28px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }

.eyebrow {
  margin-bottom: 0.6em;
  color: var(--pink-button);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead { max-width: 36em; color: var(--ink-soft); font-size: 1.2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(400px, 78vw);
  aspect-ratio: 1;
}
.blob {
  position: absolute;
  inset: 4% 0 0 4%;
  background: var(--sea);
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%;
}
.hero-icon {
  position: relative;
  width: 76%;
  margin: 12% auto 0;
  border: 6px solid var(--white);
  border-radius: 22%;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}
.bubble {
  position: absolute;
  border: 3px solid var(--bubble);
  border-radius: 50%;
  animation: bob 6s ease-in-out infinite alternate;
}
.b1 { width: 30px; height: 30px; top: 0; left: 10%; }
.b2 { width: 18px; height: 18px; top: 14%; right: 2%; animation-delay: -2s; }
.b3 { width: 24px; height: 24px; bottom: 16%; left: -2%; animation-delay: -4s; }
.b4 { width: 38px; height: 38px; bottom: 0; right: 10%; animation-delay: -1s; }
@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

@media (min-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.wave {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 80px);
  margin-top: 56px;
  color: var(--sea);
}
.wave-top { margin-top: 0; transform: scaleY(-1); }

/* ---------------------------------------------------------------- home: Critter Pals */

.game { padding: 12px 0 64px; background: var(--sea); }

.game-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.cp-title { margin: 0 0 6px; }
.cp-logo { display: block; width: min(330px, 76vw); height: auto; margin: 0 auto; overflow: visible; }
.game-sub {
  margin-bottom: 0.7em;
  color: var(--teal);
  font-family: "Titan One", system-ui, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0.4em 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 3px 0 var(--sea-line);
  color: var(--teal);
  font-weight: 700;
  line-height: 1.3;
}
.soon::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(108, 190, 74, 0.25);
}

.shot { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.shot-feature { margin: 0 auto 40px; border: 6px solid var(--white); }

.worlds { display: grid; gap: 22px; }
@media (min-width: 820px) {
  .worlds { grid-template-columns: repeat(3, 1fr); }
}

.world {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.world img { width: 100%; aspect-ratio: 800 / 368; object-fit: cover; }
.world-body { padding: 18px 22px 22px; }
.world h3 { margin-bottom: 6px; }
.count {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
}
.world-body p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.world-reef h3, .world-reef .count { color: var(--reef); }
.world-reef .count { background: var(--reef-soft); }
.world-jungle h3, .world-jungle .count { color: var(--jungle); }
.world-jungle .count { background: var(--jungle-soft); }
.world-farm h3, .world-farm .count { color: var(--farm); }
.world-farm .count { background: var(--farm-soft); }

.peek-title { margin: 56px 0 18px; text-align: center; }
.peek {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 82%);
  gap: 16px;
  margin: 0;
  padding: 4px 2px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}
.peek li { scroll-snap-align: center; }
.peek img {
  width: 100%;
  aspect-ratio: 800 / 368;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(22, 64, 61, 0.12);
}
@media (min-width: 820px) {
  .peek { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}

/* ---------------------------------------------------------------- home: promises, contact */

.promises { padding: 0 0 72px; }
.promise-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) {
  .promise-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
}

.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding: 14px 18px 14px 58px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 3px 0 var(--sea-line);
  font-weight: 600;
  line-height: 1.4;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9 5.9-6.6' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.note {
  padding: 16px 20px;
  border: 2px solid var(--sun-line);
  border-radius: 16px;
  background: var(--sun-soft);
}

.contact { padding: 0 0 80px; }
.contact-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 22px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card p { max-width: 34em; margin-left: auto; margin-right: auto; }
.btn-mail {
  max-width: 100%;
  margin: 8px 0 22px;
  padding: 16px 20px 15px;
  font-size: clamp(0.95rem, 4vw, 1.25rem);
  overflow-wrap: anywhere;
}
.small { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 48px 0 32px; background: var(--teal-deep); color: #d6ebe7; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun-soft); }
.site-footer p { margin: 12px 0 0; }
.brand-light, .brand-light:hover { color: var(--white); }
.foot-grid { display: grid; gap: 24px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fine { margin-top: 32px; color: #a9cbc5; font-size: 0.85rem; }
@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
}

/* ---------------------------------------------------------------- privacy, support: a document to read */

.doc { padding: 20px 0 72px; }
.doc h1 { margin-bottom: 0.25em; }
.updated { margin-bottom: 1.4em; color: var(--ink-soft); font-weight: 600; }
.doc h2 { margin: 1.8em 0 0.5em; font-size: clamp(1.4rem, 3.4vw, 1.75rem); }
.doc h3 { margin: 1.5em 0 0.4em; font-size: 1.2rem; }
.doc ul:not(.checks) { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }

.summary {
  margin: 28px 0 8px;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.summary h2 { margin-top: 0; }
.summary .checks li { background: var(--sea); box-shadow: none; font-weight: 550; }

.mailbox {
  margin: 28px 0 8px;
  padding: 24px 22px;
  border: 2px solid var(--sun-line);
  border-radius: var(--radius);
  background: var(--sun-soft);
}
.mailbox h2 { margin-top: 0; }
.mailbox .btn { margin: 4px 0 16px; }
.mailbox p:last-child { margin-bottom: 0; }

.lost { padding: 40px 0 96px; text-align: center; }
.lost img { width: 150px; margin: 0 auto 28px; border: 6px solid var(--white); border-radius: 22%; box-shadow: var(--shadow); transform: rotate(6deg); }
.lost .lead { margin: 0 auto 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble { animation: none; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
