/* The game's own font, served from this site so no page loads anything from a third party. */
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

/* Colours from the game's UI palette (OfferPalette in the game repo). */
:root {
  --cream: #fff6e0;
  --row: #f3e9d2;
  --ink: #3b2a1a;
  --grey: #7a6e5e;
  --green: #48aa5c;
  --green-dark: #2f7d41;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #221a12;
    --row: #2e241a;
    --ink: #f6ead2;
    --grey: #b8a990;
    --green: #6cc77d;
    --green-dark: #8fd99c;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, .wordmark {
  font-family: "Lilita One", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

a { color: var(--green-dark); }

header.top {
  padding: 20px 16px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

header.top .wordmark {
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

/* Home */

.home main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 48px;
}

.home h1 {
  font-size: clamp(56px, 14vw, 104px);
  margin: 0;
}

.tagline {
  margin: 8px 0 0;
  font-family: "Lilita One", sans-serif;
  font-size: clamp(24px, 6vw, 34px);
  color: var(--green-dark);
}

.soon {
  display: inline-block;
  margin: 22px 0 0;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: "Lilita One", sans-serif;
  font-size: 22px;
}

.pitch {
  max-width: 30em;
  margin: 24px auto 0;
  font-size: 19px;
}

/* Both badges show at the same height. Google's PNG carries 41px of clear space around its 564x168 badge,
   so it is drawn larger and pulled back by that margin. */
.stores {
  --badge: 52px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 32px 0 0;
}

.stores img {
  display: block;
  height: var(--badge);
  width: auto;
}

.stores img.play {
  height: calc(var(--badge) * 250 / 168);
  margin: calc(var(--badge) * -41 / 168);
}

/* Side by side on a phone too (Apple's minimum badge height is 40px). */
@media (max-width: 420px) {
  .stores { --badge: 44px; gap: 14px; }
}

/* Policy pages */

.page h1 { font-size: 40px; margin: 8px 0 4px; }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page .updated { color: var(--grey); margin: 0 0 24px; }
.page li + li { margin-top: 6px; }

.panel {
  background: var(--row);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--row);
  padding: 20px 16px 28px;
  text-align: center;
  color: var(--grey);
  font-size: 15px;
}

footer nav a {
  color: var(--grey);
  margin: 0 10px;
}

footer p { margin: 10px 0 0; }
