/* Pocket Loon */
@font-face {
  font-family: "Playpen Sans";
  src: url("/assets/PlaypenSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --sky-top: #F6C894;     /* peach */
  --sky-mid: #F2A99A;     /* rose */
  --sky-low: #CFE8E2;     /* mist */
  --trees: #7FA9A2;
  --lake: #2F6F74;
  --lake-deep: #235458;
  --night: #22344A;
  --cream: #FBF5E8;
  --sand: #F1DFBE;
  --ink: #2B2420;
  --card: #FBF5E8;
  --card-ink: #22344A;
  --card-muted: #5A6570;
  --link-on-lake: #FBE3B8;
  --page: #235458;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-top: #3B4E6B;
    --sky-mid: #5C5A78;
    --sky-low: #6E8C8E;
    --trees: #2E4F55;
    --lake: #1D4649;
    --lake-deep: #153538;
    --card: #1B2A33;
    --card-ink: #F3EBDD;
    --card-muted: #A9B6BC;
    --page: #153538;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .brand,
  :root:not([data-theme="light"]) .tagline { color: var(--cream); }
}
:root[data-theme="dark"] {
  --sky-top: #3B4E6B; --sky-mid: #5C5A78; --sky-low: #6E8C8E; --trees: #2E4F55; --lake: #1D4649;
  --lake-deep: #153538; --card: #1B2A33; --card-ink: #F3EBDD; --card-muted: #A9B6BC; --page: #153538;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--cream);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link-on-lake); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--sky-top); outline-offset: 3px; border-radius: 4px; }

/* the sunset hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
  padding: 56px 16px 0;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 64px;
}
.logo {
  width: 160px; height: 160px;
  border-radius: 34px;
  box-shadow: 0 10px 0 rgba(34, 52, 74, 0.18), 0 18px 40px rgba(34, 52, 74, 0.22);
  flex: none;
}
.brand {
  font-family: "Playpen Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1.05;
  margin: 0;
  color: var(--night);
  letter-spacing: 0.5px;
}
.tagline {
  font-family: "Playpen Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3.6vw, 30px);
  margin: 6px 0 0;
  color: #3A4A60;
}
.treeline { display: block; width: 100%; height: 48px; fill: var(--trees); }

/* the lake: everything below the trees */
.lake {
  background: linear-gradient(180deg, var(--lake) 0%, var(--lake-deep) 100%);
  padding: 40px 16px 24px;
}
.games, .hello { max-width: 880px; margin: 0 auto; }
h2 {
  font-family: "Playpen Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--cream);
}
.game-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  color: var(--card-ink);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12), 0 16px 36px rgba(0, 0, 0, 0.18);
}
.game-card img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.game-card h3 {
  font-family: "Playpen Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin: 0 0 6px;
  line-height: 1.1;
}
.game-card h3 a { color: var(--card-ink); text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; }
.game-card p { margin: 0 0 10px; }
.game-card a { color: #2F6F74; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .game-card a { color: #8FD0C8; } }
:root[data-theme="dark"] .game-card a { color: #8FD0C8; }
.pill {
  display: inline-block;
  background: var(--night);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill { background: #2F6F74; } }
:root[data-theme="dark"] .pill { background: #2F6F74; }
.small-links { font-size: 15px; color: var(--card-muted); }
.play-demo {
  display: inline-block;
  background: #3E8A4D;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0 8px 6px 0;
}
.play-demo:hover { background: #2F6F3B; }
.hello { margin-top: 44px; }
.hello p { margin: 0 0 8px; }
.muted { color: rgba(251, 245, 232, 0.72); font-size: 15px; }
.foot {
  background: var(--lake-deep);
  border-top: 1px solid rgba(251, 245, 232, 0.12);
  padding: 18px 16px 28px;
  text-align: center;
  font-size: 14px;
  color: rgba(251, 245, 232, 0.72);
}
.foot p { margin: 0; }
.foot p + p { margin-top: 6px; }
.brand.on-lake { color: var(--cream); }
.note { max-width: 880px; margin: 44px auto 0; font-size: 15px; color: rgba(251, 245, 232, 0.8); }
.note h2 { font-size: 22px; margin-bottom: 8px; }
.note p { margin: 0 0 8px; }

/* Posy Plot's page */
.game-page { max-width: 880px; margin: 0 auto; }
.game-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.game-head img { width: 112px; height: 112px; border-radius: 26px; flex: none; }
.game-head h1 {
  font-family: "Playpen Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--cream);
}
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.shots img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.crumb { font-size: 15px; margin: 0 0 22px; }
.top-lake { padding-top: 28px; }

@media (max-width: 600px) {
  .hero { padding-top: 36px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 18px; padding-bottom: 44px; }
  .logo { width: 128px; height: 128px; border-radius: 28px; }
  .game-card { flex-direction: column; padding: 20px; }
  .game-card img { width: 80px; height: 80px; border-radius: 18px; }
  .game-head img { width: 84px; height: 84px; border-radius: 20px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .shots img { border-radius: 10px; }
}
