/* Colours are the game's: its sky, its menu navy, the gold of its Back button. */
@font-face{font-family:Fredoka;font-weight:500;font-display:swap;src:url(/fonts/Fredoka-Medium.ttf)}
@font-face{font-family:Fredoka;font-weight:700;font-display:swap;src:url(/fonts/Fredoka-Bold.ttf)}
:root{--ink:#162454;--soft:#4a5478;--sky:#9fd3f2;--page:#eaf6fd;--gold:#ffcc00;--card:#fff}
*{box-sizing:border-box}
body{margin:0;font:500 18px/1.6 Fredoka,system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--page)}
header,main,footer{max-width:1024px;margin:0 auto;padding:16px}
header{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink)}
.brand img{border-radius:12px}
.brand span span{display:block;line-height:1.2}
.name{font-size:26px;font-weight:700}
.by{color:var(--soft);font-size:15px}
nav{display:flex;gap:4px}
nav a{padding:10px 14px;border-radius:999px;color:var(--ink);text-decoration:none}
nav a[aria-current]{background:var(--gold)}
a{color:var(--ink)}
h1{font-size:clamp(30px,4.2vw,44px);line-height:1.12;margin:0 0 10px}
h2{font-size:30px;line-height:1.2;margin:48px 0 8px}
.hero{position:relative;background:var(--card);border-radius:20px;overflow:hidden;box-shadow:0 4px 18px #16245422}
.hero img{display:block;width:100%;height:auto}
.hero .words{padding:20px}
.hero p{margin:0 0 10px}
.soon{display:inline-block;background:var(--gold);border-radius:999px;padding:6px 16px;font-weight:700}
/* The store buttons: each shows only when the page's data-live names its store (index.html says why). 44px high is
   Apple's smallest comfortable tap target. */
.hero .stores{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.hero p.stores{margin:0 0 8px}
.store{display:none;min-height:44px;line-height:44px;padding:0 18px;border-radius:999px;background:var(--ink);color:#fff;font-size:16px;font-weight:700;text-decoration:none;white-space:nowrap}
body[data-live~=apple] .store.apple,body[data-live~=google] .store.google{display:inline-block}
body[data-live=""] .stores{display:none}
.soon.only-apple,.soon.only-google{display:none}
body[data-live=apple] .soon.only-apple,body[data-live=google] .soon.only-google{display:inline-block}
body:not([data-live=""]) .soon.none{display:none}
/* Wide enough, the words sit in the picture's empty sky, left of the tree (37% of its width). */
@media (min-width:900px){
  .hero .words{position:absolute;left:0;top:0;width:37%;padding:28px 0 0 28px}
  .hero p{font-size:17px;line-height:1.45}
  .soon{font-size:13px;padding:6px 12px;white-space:nowrap}
}
/* Narrower, the words go under the picture, and it is cut to the people on its right, who would otherwise be tiny. */
@media (max-width:899px){
  .hero img{aspect-ratio:4/3;max-height:440px;object-fit:cover;object-position:92% 50%}
}
figure{margin:16px 0}
figure img{display:block;width:100%;height:auto;border-radius:16px;box-shadow:0 4px 14px #16245433}
figcaption{padding:8px 4px 0;color:var(--soft);font-size:16px;text-align:center}
.pair{display:grid;gap:0 16px}
@media (min-width:760px){.pair{grid-template-columns:1fr 1fr}}
.families{background:var(--card);border-radius:20px;padding:4px 24px 12px;margin-top:48px}
.families h2{margin-top:20px}
.families ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:4px 24px;padding-left:20px}
main.text{max-width:760px}
.card{background:var(--card);border-radius:16px;padding:4px 24px;margin:16px 0;box-shadow:0 2px 8px #0001}
.card h2{margin-top:16px;font-size:24px}
footer{color:var(--soft);font-size:15px;text-align:center;padding-top:32px}
/* The film: nothing plays or downloads until play is pressed. */
.film video{display:block;width:100%;height:auto;border-radius:16px;background:#162454;box-shadow:0 4px 14px #16245433}
/* A plain link, so nothing loads from YouTube unless it is pressed. 44px high is a comfortable tap. */
.film p{text-align:center;margin:12px 0 0}
a.yt{display:inline-block;min-height:44px;line-height:44px;padding:0 22px;border:2px solid #162454;border-radius:999px;font-weight:700;text-decoration:none}
