/* Beachies site: the game's palette (tools/gen_brand.py) and pixel art kept crisp. */
:root {
  --sea: #3b8ed0;
  --sea-deep: #2f6f9a;
  --foam: #f4f1e8;
  --sand: #e8cf96;
  --sand-dark: #d9b27c;
  --ink: #4a3228;
  --cream: #fff4df;
  --shell: #e0574f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img, video { max-width: 100%; }
img { image-rendering: pixelated; image-rendering: crisp-edges; }
.badges img { image-rendering: auto; }

a { color: var(--sea-deep); }

/* The beach behind the logo: the hero art scales with whole art pixels kept square. */
.hero {
  text-align: center;
  padding: clamp(28px, 6vw, 64px) 16px clamp(150px, 22vw, 260px);
  background: var(--sand) url("/img/hero.png") center bottom / cover no-repeat;
}
.logo { width: min(480px, 80vw); height: auto; display: block; margin: 0 auto; }
.tagline {
  margin: 4px 0 18px;
  font-weight: 700;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink);
  font-size: clamp(17px, 2.6vw, 22px);
}
.pitch {
  display: inline-block;
  margin: 14px 0 0;
  padding: 4px 12px;
  background: var(--cream);
  border: 3px solid var(--ink);
  font-weight: 700;
}

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.badge-apple { height: 52px; width: auto; }
.badge-google { height: 76px; width: auto; } /* the Play badge carries its own padding */

main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

section { margin: 44px 0; }

.intro { max-width: 680px; margin: 40px auto; font-size: 1.15em; text-align: center; }

.media {
  display: grid;
  grid-template-columns: minmax(0, 270px) 1fr;
  gap: 24px;
  align-items: start;
}
.media > * { min-width: 0; } /* let the screenshot strip scroll instead of widening the page */
.promo {
  width: 100%;
  height: auto;
  border: 6px solid var(--ink);
  background: var(--ink);
}
.shots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.shots img {
  flex: 0 0 auto;
  width: 210px;
  height: auto;
  scroll-snap-align: start;
  border: 4px solid var(--ink);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  background: #fff;
  border: 3px solid var(--ink);
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--sand-dark);
}
.feature h2, .pass h2, .press h2 { margin: 0 0 6px; font-size: 1.15em; color: var(--shell); }
.feature p { margin: 0; }

.pass {
  background: var(--sea);
  color: var(--cream);
  padding: 22px 24px;
  border: 3px solid var(--ink);
}
.pass h2 { color: var(--cream); }
.pass p { margin: 0; }

.get { text-align: center; }

.press { max-width: 760px; }
.button {
  display: inline-block;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}

footer {
  margin-top: 56px;
  padding: 24px 16px 40px;
  background: var(--sand);
  border-top: 4px solid var(--ink);
  text-align: center;
  font-size: 0.9em;
}
footer p { margin: 6px auto; max-width: 860px; }

@media (max-width: 640px) {
  .media { grid-template-columns: 1fr; }
  .promo { max-width: 270px; justify-self: center; }
  .shots img { width: 170px; }
}
