/* moonbunnybakery.app. The look follows the game: night-sky indigo, cream paper cards,
   Fredoka, sticker borders (palette from web/style.css, captions from tools/store-shots.mjs). */
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/Fredoka-latin.woff2?v=042eb697e9") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --ink: #4b3150;
  --paper: #fff0d9;
  --cream: #fff6e3;
  --pink: #e986a4;
  --gold: #f4cd7c;
  --lilac: #956184;
  --night: #2d3157;
  --night-deep: #232544;
  --edge: #bc9674;
  --font: "Fredoka", "Hiragino Maru Gothic ProN", "Trebuchet MS", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream);
  background-color: var(--night-deep);
  background-image:
    radial-gradient(#f8dab355 1px, transparent 1.4px),
    radial-gradient(ellipse 90% 760px at 50% 150px, #4b4470 0, var(--night) 55%, #2d315700 100%);
  background-size:
    29px 29px,
    100% 100%;
  background-repeat: repeat, no-repeat;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--gold);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
p,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
main,
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 28px;
}
.logo {
  width: min(300px, 78vw);
}
.tagline {
  margin-top: 10px;
  font-size: 33px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--paper);
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
}
.tagline span {
  display: block;
  color: var(--gold);
}
.lede {
  max-width: 30em;
  margin-top: 16px;
  font-size: 18px;
  color: #e8e0f2;
}
.soon,
.store {
  margin-top: 20px;
}
.soon {
  padding: 7px 18px;
  border: 2px dashed #e986a4aa;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}
/* The store link without Apple's badge file: the game's pink button. */
.store .button {
  display: inline-block;
  padding: 11px 26px 12px;
  border: 4px solid var(--cream);
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 6px 0 #ac5878, 0 0 0 2px #b47b72, 0 14px 24px #0b0c2755;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 0 var(--ink), 0 -1px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink);
}
.store .button:hover {
  transform: translateY(-1px);
}
.closing {
  display: flex;
  justify-content: center;
  margin: 8px 0 34px;
}
.hero-art {
  position: relative;
  width: min(250px, 62vw);
  margin-top: 26px;
}
/* The moon behind Moon Bunny. */
.hero-art::before {
  content: "";
  position: absolute;
  inset: 4% -14% auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #f9e2a0 0, #f4cd7c 52%, #f4cd7c55 64%, #f4cd7c00 72%);
}
.bunny {
  position: relative;
}

/* Screenshots: a swipe row on phones, five across on wide screens. */
.shots {
  margin: 44px -20px 0;
}
.shots ul {
  display: flex;
  gap: 14px;
  padding: 6px 20px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}
.shots li {
  flex: 0 0 min(64vw, 260px);
  scroll-snap-align: start;
}
.shots img {
  width: 100%;
  border-radius: 22px;
  box-shadow:
    0 0 0 2px #5b5687,
    0 12px 26px #0b0c2788;
}

/* Cream paper cards */
.features {
  display: grid;
  gap: 30px;
  margin-top: 38px;
}
.card {
  position: relative;
  padding: 24px 22px 26px;
  color: var(--ink);
  background: var(--paper);
  border: 5px solid #fff9e8;
  border-radius: 28px;
  box-shadow:
    0 8px 0 #815856,
    0 0 0 2px var(--edge);
}
.card h2 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
}
.sticker + h2 {
  padding-right: 68px;
}
.card h2 + ul,
.friends + ul {
  margin-top: 14px;
}
.points li {
  position: relative;
  padding-left: 30px;
}
.points li + li {
  margin-top: 10px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: #e9a23f;
  clip-path: polygon(50% 0, 62% 34%, 98% 36%, 69% 58%, 80% 93%, 50% 72%, 20% 93%, 31% 58%, 2% 36%, 38% 34%);
}
.points b {
  font-weight: 600;
}
.sticker {
  position: absolute;
  top: -26px;
  right: 14px;
  width: 74px;
  transform: rotate(8deg);
  filter: drop-shadow(0 3px 0 #8158564d);
}
.deco {
  display: none;
}
.friends {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 6px;
  margin-top: 16px;
  text-align: center;
}
.friends img {
  width: 100%;
  height: 68px;
  object-fit: contain;
  object-position: bottom;
}
.friends span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--lilac);
}

/* Footer */
.footer {
  padding-top: 44px;
  padding-bottom: 44px;
  text-align: center;
  color: #dcd3ee;
}
.footer nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 10px;
  font-weight: 600;
}
.footer small {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  color: #a79fc4;
}

/* Privacy, support and not-found pages: one paper card. */
.page {
  max-width: 720px;
}
.page .home-link {
  display: block;
  width: 170px;
  margin: 22px auto 30px;
}
.page .card {
  padding: 26px 22px 30px;
}
.page h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}
.page h2 {
  margin-top: 26px;
  font-size: 21px;
}
.page p {
  margin-top: 10px;
}
.page .dated {
  font-size: 15px;
  color: var(--lilac);
}
.page a {
  color: #a04a72;
  font-weight: 500;
}
.page b {
  font-weight: 600;
}

@media (min-width: 900px) {
  main,
  .footer {
    padding: 0 32px;
  }
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    justify-items: start;
    gap: 0 40px;
    padding-top: 56px;
    text-align: left;
  }
  .hero-copy {
    display: grid;
    justify-items: start;
  }
  .logo {
    width: 430px;
    margin-left: -14px;
  }
  .tagline {
    font-size: 50px;
    -webkit-text-stroke-width: 10px;
  }
  .lede {
    font-size: 21px;
  }
  .hero-art {
    justify-self: center;
    width: 360px;
    margin-top: 0;
  }
  .shots {
    margin: 64px 0 0;
  }
  .shots ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 0;
    overflow: visible;
  }
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
    margin-top: 64px;
  }
  .card {
    padding: 30px 32px 34px;
  }
  .card.wide {
    grid-column: span 2;
  }
  .card.wide .points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 30px;
  }
  .card.wide .points li + li {
    margin-top: 0;
  }
  .card.fair .points {
    grid-template-columns: 1.7fr 1fr 1fr;
  }
  .deco {
    display: block;
    position: absolute;
    right: 30px;
    bottom: 20px;
    width: 128px;
    transform: rotate(-6deg);
  }
  .sticker {
    top: -34px;
    right: 22px;
    width: 92px;
  }
  .friends {
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
  }
  .friends img {
    height: 96px;
  }
  .friends span {
    font-size: 15px;
  }
  .friends + ul {
    margin-top: 22px;
  }
  .footer {
    padding-top: 64px;
    padding-bottom: 56px;
  }
  .page .card {
    padding: 36px 44px 42px;
  }
  .page h1 {
    font-size: 36px;
  }
}
