/* HIGH's colours: the logo's cyan, pink and red, and what two of them make
   laid over each other with multiply (a darker cyan, a darker pink, and the
   blue of cyan over pink), and the logo's two TOYS mints. The ground is the
   homepage's; its blobs are the mints. */
:root {
  --cyan: #92f0ed;
  --cyan-2: #54e2dc;
  --mint: #92f0c3;
  --mint-2: #52d998;
  --pink: #ebb0ff;
  --pink-2: #d979ff;
  --blue: #86a6ed;
  --red: #e70006;
  --ground: #e8f8f8;
  --ink: #222;
  --muted: #555;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink);
  font: 16px/1.5 'Space Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.liquid { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.liquid i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.liquid i:nth-child(1) { width: 55%; height: 55%; top: -15%; left: -10%; background: var(--mint-2); animation: drift-1 18s ease-in-out infinite; }
.liquid i:nth-child(2) { width: 50%; height: 50%; bottom: -15%; right: -10%; background: var(--mint-2); animation: drift-2 22s ease-in-out infinite; }
.liquid i:nth-child(3) { width: 35%; height: 35%; top: 40%; left: 35%; background: var(--mint); animation: drift-1 26s ease-in-out infinite reverse; }
@keyframes drift-1 { 50% { transform: translate(18%, 12%) scale(1.1); } }
@keyframes drift-2 { 50% { transform: translate(-15%, -10%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .liquid i { animation: none; } }

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

/* The logo, small and centred over the toys, stuck on at a tilt (logo/logo.mjs draws it). */
header { margin-bottom: 40px; }
h1 { margin: 0; line-height: 0; }
h1 img { display: block; margin: 0 auto; width: 200px; height: auto; transform: rotate(-4deg); }

/* Each toy is a card: its preview, its name and line, and Play. Square
   corners like the homepage's cards; the block behind it is the logo's
   cyan, and turns the blue of cyan over pink when pointed at. */
.toys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.toy { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; text-decoration: none;
  box-shadow: 8px 8px 0 var(--cyan); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.toy:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--blue); }
.toy img, .toy .blank { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; background: var(--pink); }
.toy .text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 0; flex: 1; }
.toy strong { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.toy .text span { color: var(--muted); font-size: 15px; }
.go { align-self: flex-start; margin: 16px 18px 18px; padding: 4px 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.toy:hover .go { background: var(--red); }
@media (prefers-reduced-motion: reduce) { .toy, .toy:hover { transition: none; transform: none; } }

footer { padding: 20px 16px 28px; text-align: center; font-size: 13px; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .cyan { color: var(--cyan-2); }
footer .pink { color: var(--pink-2); }
footer .red { color: var(--red); }
