/* Mosaic Blocks page. Colours and the typeface are the game's own (Fredoka, cream, cocoa, caramel). */
@font-face{
  font-family:"Fredoka";
  src:url("/assets/fredoka-latin.woff2") format("woff2");
  font-weight:400 700;
  font-display:swap;
}
:root{
  --cream:#FFF4E6;
  --paper:#FFFBF4;
  --cocoa:#5A2E1C;
  --soft:#8A5A43;
  --caramel:#C98A5A;
  --wood:#8C4F2E;
  --leaf:#2F6B12;
  --night:#070922;      /* Human Powered's colour, for the footer that leads back to it */
  --lavender:#D9AEFF;
  --round:"Fredoka",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
html{background:var(--cream)}
body{margin:0;background:var(--cream);color:var(--cocoa);font-family:var(--round);font-size:1.1875rem;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:var(--leaf);text-underline-offset:.18em}
a:focus-visible{outline:3px solid var(--leaf);outline-offset:4px;border-radius:4px}
p{margin:0 0 1em}
h1,h2{margin:0;font-weight:600;line-height:1.15}
h2{font-size:clamp(1.6rem,3.4vw,2.2rem);margin-bottom:.7em}

.top,.hero,main>section,footer{padding-left:clamp(20px,5vw,56px);padding-right:clamp(20px,5vw,56px)}
.top,.hero,main>section{max-width:1160px;margin-left:auto;margin-right:auto}  /* one shared column */

.top{padding-top:22px;padding-bottom:6px}
.top a{display:inline-flex;align-items:center;gap:10px;color:var(--soft);text-decoration:none;font-size:1rem}
.top a:hover{color:var(--cocoa);text-decoration:underline}
.top img{width:40px}

/* ---- hero: the logo and one sentence, with the game standing beside it ---- */
.hero{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,10fr);gap:clamp(28px,6vw,80px);align-items:center;padding-top:clamp(20px,4vw,48px);padding-bottom:clamp(36px,6vw,80px)}
.hero h1 img{width:min(100%,520px);margin-left:-7.5%}
.summary{font-size:clamp(1.3rem,2.5vw,1.7rem);line-height:1.35;max-width:24ch;margin:.9em 0 .7em;text-wrap:balance}
.status{display:inline-block;margin:0;padding:.35em .9em;border-radius:999px;background:var(--paper);box-shadow:0 3px 0 rgba(140,79,46,.18);font-weight:500;font-size:1.05rem}
.phones{display:grid;grid-template-columns:1fr 1fr;gap:clamp(12px,2.6vw,30px);align-items:start}
.phones img,.plays>img,.strip img{border-radius:clamp(14px,2vw,26px);box-shadow:0 10px 0 rgba(140,79,46,.14)}
.phones img:last-child{margin-top:clamp(24px,5vw,64px)}

main>section{padding-top:clamp(40px,7vw,88px);padding-bottom:clamp(8px,2vw,24px)}

/* ---- how it plays: words beside one moment of play ---- */
.plays{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1.15fr);gap:clamp(28px,6vw,88px);align-items:center}
.plays p{max-width:54ch}
.plays>img{aspect-ratio:540/850;object-fit:cover;object-position:top}  /* show the board and the combo, not the desk below */

/* ---- what's inside: a plain two-column list, each item on its own shelf ---- */
.inside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 clamp(28px,6vw,88px);margin:0}
.inside>div{padding:1.1em 0 1.2em;border-bottom:4px solid rgba(201,138,90,.34)}
.inside dt,.questions dt{font-weight:600;font-size:1.3rem;line-height:1.3}
.inside dd,.questions dd{margin:.25em 0 0;max-width:46ch}

.strip{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,4vw,48px);max-width:900px}
.strip figure{margin:0}
.strip figcaption{margin-top:18px;font-size:1rem;color:var(--soft);line-height:1.4}

.questions dl{margin:0;max-width:62ch}
.questions dt{margin-top:1.2em}
.questions dt:first-child{margin-top:0}
.questions dd{max-width:none}

.help{padding-bottom:clamp(48px,8vw,96px)}
.help p{font-size:1.3rem;max-width:40ch}
.help a{font-weight:600}

footer{background:var(--night);color:var(--lavender);padding-top:30px;padding-bottom:40px;display:flex;flex-wrap:wrap;gap:14px 30px;align-items:center;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:.95rem}
footer a{color:var(--lavender);display:inline-flex;align-items:center;gap:10px}
footer a:focus-visible{outline-color:var(--lavender)}
footer img{width:40px}

@media (max-width:760px){
  .hero,.plays{grid-template-columns:1fr}
  .hero h1 img{margin:0 auto;width:min(100%,400px)}
  .pitch{text-align:center}
  .summary{margin-left:auto;margin-right:auto}
  .phones{max-width:440px;margin:0 auto}
  .plays>img{max-width:260px;margin:0 auto}
  .inside{grid-template-columns:1fr}
  /* screenshots become a strip you swipe sideways */
  .strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;padding:0 0 22px;margin-right:calc(-1 * clamp(20px,5vw,56px))}
  .strip li{flex:0 0 62%;scroll-snap-align:start}
}
