/* The game's clay look (design 10, apps/game/src/styles.css). Baloo 2 by Ek Type, SIL Open Font License 1.1. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/baloo-2-500.b533661a07.woff2) format("woff2");
}

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/baloo-2-800.3e36c57e37.woff2) format("woff2");
}

:root {
  --bg-top: #dbe8c9;
  --bg: #c5d9ad;
  --bg-bottom: #b2cb93;
  --clay: #f3efe4;
  --clay-hi: #fffdf6;
  --ink: #23331e;
  --muted: #5f6f58;
  --link: #3a7428;
  --leaf: #8bcf6e;
  --on-leaf: #1f4716;
  --butter: #f6cf6a;
  --on-butter: #6b4706;
  --focus: #5ea4d6;
  --clay-panel:
    inset 6px 6px 10px rgba(255, 255, 255, 0.75), inset -6px -7px 12px rgba(120, 105, 70, 0.22),
    0 12px 20px rgba(30, 45, 20, 0.28);
  --clay-card:
    inset 3px 3px 5px rgba(255, 255, 255, 0.9), inset -3.5px -4.5px 7px rgba(120, 105, 70, 0.2),
    0 5px 9px rgba(60, 50, 30, 0.18);
  --puff:
    inset 5px 5px 8px rgba(255, 255, 255, 0.55), inset -5px -6px 9px rgba(0, 0, 0, 0.18),
    0 8px 14px rgba(30, 45, 20, 0.3);
  --picture: 0 10px 22px rgba(30, 45, 20, 0.3);
  --r-md: 20px;
  --r-lg: 27px;
  --r-xl: 34px;
  --gutter: 16px;
  --font: "Baloo 2", "Arial Rounded MT Bold", ui-rounded, "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #1f2b19;
    --bg: #1a2415;
    --bg-bottom: #141c10;
    --clay: #2b3725;
    --clay-hi: #34422d;
    --ink: #eef0e2;
    --muted: #b6c2aa;
    --link: #a4dd8a;
    --clay-panel:
      inset 6px 6px 10px rgba(255, 255, 255, 0.07), inset -6px -7px 12px rgba(0, 0, 0, 0.3),
      0 12px 22px rgba(0, 0, 0, 0.45);
    --clay-card:
      inset 3px 3px 5px rgba(255, 255, 255, 0.08), inset -3.5px -4.5px 7px rgba(0, 0, 0, 0.28),
      0 5px 9px rgba(0, 0, 0, 0.3);
    --picture: 0 10px 22px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 420px, var(--bg-bottom) 100%);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
}

h1,
h2,
h3,
b,
strong {
  font-weight: 800;
  line-height: 1.15;
}

a {
  color: var(--link);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a,
.foot a {
  overflow-wrap: anywhere;
}

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

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

.bar,
main,
.foot {
  max-width: 1040px;
  margin: 0 auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--clay-card);
}

.bar nav {
  display: flex;
  gap: 4px;
}

.bar nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.bar nav a:hover {
  background: var(--clay);
  box-shadow: var(--clay-card);
}

.panel {
  background: var(--clay);
  border-radius: var(--r-xl);
  box-shadow: var(--clay-panel);
  padding: 24px 20px;
  margin-bottom: 24px;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22.5%;
  box-shadow: var(--puff);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(40px, 11vw, 68px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 20px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.soon {
  display: inline-block;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--on-butter);
  box-shadow: var(--puff);
  font-weight: 800;
  line-height: 1.3;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--on-leaf);
  box-shadow: var(--puff);
  font-weight: 800;
  text-decoration: none;
}

.garden {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--picture);
}

.about h2 {
  font-size: 28px;
  margin: 0 0 12px;
}

.about > p {
  max-width: 68ch;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
}

.fact {
  background: var(--clay-hi);
  border-radius: var(--r-md);
  box-shadow: var(--clay-card);
  padding: 16px 18px;
}

.fact h3 {
  font-size: 19px;
  margin: 0 0 4px;
}

.fact p {
  margin: 0;
  color: var(--muted);
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
  margin-bottom: 24px;
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--picture);
}

.shot figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

.shot figcaption b {
  display: block;
  color: var(--ink);
  font-size: 17px;
}

.prose {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.prose h1 {
  font-size: clamp(32px, 8vw, 44px);
}

.prose h2 {
  font-size: 21px;
  margin: 28px 0 6px;
}

.prose p {
  margin: 0 0 12px;
}

.prose .meta {
  color: var(--muted);
}

.center {
  text-align: center;
}

.foot {
  padding: 8px 0 max(32px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}

.foot p {
  margin: 10px 0 0;
}

@media (min-width: 560px) {
  .brand {
    font-size: 22px;
  }

  .panel {
    padding: 32px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    padding: 40px;
  }

  .app-icon {
    width: 128px;
    height: 128px;
  }

  .about {
    padding: 40px;
  }

  .shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}
