/* Zoomies - zoomies.grcsac.com
 *
 * The palette is the game's own, read from scripts/game.gd in GRCSAC/zoomies,
 * not picked by eye: BG #0d0221, DIM #b9a6e8, and the four block colours
 * PINK #ff2e97, CYAN #00f0ff, YELLOW #ffe14d, GREEN #5dff7a.
 *
 * One theme only, and that is a choice rather than an omission: Zoomies is a
 * neon game played in the dark, and a cream version of this page would be a
 * different product. infiniteworlds.grcsac.com commits the same way.
 *
 * Square corners everywhere, because the game's own panels and buttons have
 * square corners (decision 13). No webfonts, no scripts, no third parties.
 */

:root{
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --serif:"Palatino Linotype","Book Antiqua",Palatino,"Iowan Old Style",Georgia,serif;

  --bg:#0d0221;
  --bg-2:#150632;
  --panel:rgba(13,2,33,.72);
  --ink:#ffffff;
  --ink-soft:#b9a6e8;

  --pink:#ff2e97;
  --cyan:#00f0ff;
  --yellow:#ffe14d;
  --green:#5dff7a;

  --line:rgba(185,166,232,.22);
  --line-2:rgba(185,166,232,.4);

  --wrap:1060px;
  --gut:20px;
}

*{box-sizing:border-box}

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

body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%}

a{color:var(--cyan)}
a:hover{text-decoration:none}

:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}

.skip{position:absolute;left:-9999px}
.skip:focus{left:var(--gut);top:10px;z-index:9;background:var(--cyan);color:var(--bg);padding:10px 16px;font-weight:700}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gut)}

h1,h2,h3{line-height:1.12;text-wrap:balance;margin:0 0 .5em}
h2{font-size:clamp(28px,4.4vw,40px);letter-spacing:-.02em}
h3{font-size:20px;letter-spacing:-.01em}

p{margin:0 0 1.1em}
.lede{font-size:clamp(18px,2.2vw,21px);color:var(--ink-soft);max-width:30em}
.small{font-size:14.5px}
.muted{color:var(--ink-soft)}
.mt{margin-top:1.6em}

/* ---- header ---- */

.nav{border-bottom:1px solid var(--line);background:rgba(13,2,33,.86);position:relative;z-index:3}
.nav .wrap{display:flex;align-items:center;gap:16px;min-height:62px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-weight:700;letter-spacing:.02em}
.brand img{width:28px;height:28px;display:block}
.nav nav{margin-left:auto;display:flex;gap:20px}
.nav nav a{color:var(--ink-soft);text-decoration:none;font-size:15.5px}
.nav nav a:hover{color:var(--ink)}

/* ---- hero ---- */

.hero{
  position:relative;overflow:hidden;
  border-bottom:1px solid var(--line);
  background:
    linear-gradient(180deg,rgba(13,2,33,.55) 0%,rgba(13,2,33,.82) 58%,var(--bg) 100%),
    url("/assets/night.webp") center 22% / cover no-repeat,
    var(--bg);
}
.hero .wrap{padding-top:clamp(44px,7vw,78px);padding-bottom:clamp(44px,7vw,78px)}

.appmark{display:flex;align-items:center;gap:13px;margin:0 0 26px;font-weight:600;font-size:15.5px;letter-spacing:.01em}
.appmark img{width:46px;height:46px;display:block;box-shadow:0 0 0 1px var(--line-2),0 10px 30px rgba(0,0,0,.5)}

.wordmark{margin:0 0 20px}
.wordmark img{display:block;width:min(100%,430px);height:auto;filter:drop-shadow(0 0 26px rgba(255,46,151,.45))}

.hero .lede{margin-bottom:26px}

/* the status chip: a dot in the game's cyan, then the plain fact */
.pill{
  display:inline-flex;align-items:center;gap:11px;
  border:1px solid var(--line-2);background:var(--panel);
  padding:.5rem .9rem;margin:0 0 24px;font-size:14.5px;letter-spacing:.01em;
}
.pill .dot{width:9px;height:9px;background:var(--cyan);box-shadow:0 0 10px var(--cyan);flex:none}
.pill b{font-weight:700}

/* ---- buttons ----
 * .btn is the store button. There is nothing to download yet, so the only
 * live one is the mail link; the two store buttons are written out and
 * commented in index.html, ready for the day the listings exist.
 */
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin:0 0 14px}
.btn{
  display:inline-block;padding:.72rem 1.25rem;
  background:var(--cyan);color:var(--bg);
  font-weight:700;font-size:16px;text-decoration:none;letter-spacing:.01em;
  box-shadow:0 0 22px rgba(0,240,255,.3);
}
.btn:hover{filter:brightness(1.1)}
.btn.ghost{
  background:transparent;color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--line-2);
}
.btn.ghost:hover{box-shadow:inset 0 0 0 1px var(--cyan);color:var(--cyan);filter:none}

/* ---- sections ---- */

section{padding:clamp(50px,7vw,86px) 0;border-bottom:1px solid var(--line)}
section:last-of-type{border-bottom:0}
.sec-label{
  font-size:12.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--pink);margin:0 0 .7em;
}

.grid{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-top:30px}
.card{border:1px solid var(--line);background:var(--bg-2);padding:22px}
.card h3{margin-bottom:.45em}
.card p{margin:0;color:var(--ink-soft);font-size:15.5px}
.card .n{
  display:block;font-size:12.5px;font-weight:700;letter-spacing:.16em;
  color:var(--cyan);margin-bottom:.8em;
}

/* ---- the twelve block pictures ----
 * The game ships them white on transparent and lights each one in its block's
 * colour (decision 20), so the page does the same thing: the picture is a mask
 * over a coloured square rather than a coloured image, which keeps one file
 * per picture and lets the colour be the game's own hex.
 */
.sets{display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-top:30px}
.set h3{margin-bottom:.2em}
.set p{color:var(--ink-soft);font-size:15px;margin:0 0 16px}
.blocks{display:flex;gap:12px}
.block{
  flex:1;aspect-ratio:1;position:relative;
  border:1px solid currentColor;background:rgba(255,255,255,.03);
  display:grid;place-items:center;
}
.block::after{
  content:"";width:62%;height:62%;background:currentColor;
  -webkit-mask:var(--pic) center/contain no-repeat;
  mask:var(--pic) center/contain no-repeat;
}
/* one class per picture: the CSP forbids style attributes, and the house rule
   for these sites is a utility class in the stylesheet rather than inline CSS. */
.p-a1{--pic:url('/assets/blocks/a1.webp')}
.p-a2{--pic:url('/assets/blocks/a2.webp')}
.p-a3{--pic:url('/assets/blocks/a3.webp')}
.p-a4{--pic:url('/assets/blocks/a4.webp')}
.p-b1{--pic:url('/assets/blocks/b1.webp')}
.p-b2{--pic:url('/assets/blocks/b2.webp')}
.p-b3{--pic:url('/assets/blocks/b3.webp')}
.p-b4{--pic:url('/assets/blocks/b4.webp')}
.p-c1{--pic:url('/assets/blocks/c1.webp')}
.p-c2{--pic:url('/assets/blocks/c2.webp')}
.p-c3{--pic:url('/assets/blocks/c3.webp')}
.p-c4{--pic:url('/assets/blocks/c4.webp')}

.block.pink{color:var(--pink);box-shadow:0 0 18px rgba(255,46,151,.3)}
.block.cyan{color:var(--cyan);box-shadow:0 0 18px rgba(0,240,255,.3)}
.block.yellow{color:var(--yellow);box-shadow:0 0 18px rgba(255,225,77,.3)}
.block.green{color:var(--green);box-shadow:0 0 18px rgba(93,255,122,.3)}

/* ---- the three backdrops ---- */
.shots{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-top:30px}
.shot{border:1px solid var(--line);background:var(--bg-2)}
.shot img{display:block;width:100%;height:auto}
.shot figcaption{padding:12px 14px;font-size:14.5px;color:var(--ink-soft)}
.shot b{color:var(--ink);font-weight:650}

/* ---- plain lists ---- */
ul.plain{margin:0 0 1.1em;padding-left:1.15em}
ul.plain li{margin-bottom:.5em}
ul.plain li::marker{color:var(--pink)}

/* ---- documents (privacy, support) ---- */
.doc{max-width:720px;padding-top:clamp(38px,6vw,64px);padding-bottom:clamp(50px,7vw,80px)}
.doc h1{font-size:clamp(32px,5vw,44px);letter-spacing:-.02em;margin-bottom:.35em}
.doc h2{font-size:23px;margin:2em 0 .6em}
.doc h3{font-size:18px;margin:1.7em 0 .4em}
.doc .dated{color:var(--ink-soft);font-size:15px;margin-bottom:2em}
.doc ul{padding-left:1.15em}
.doc li{margin-bottom:.5em}
.doc li::marker{color:var(--pink)}

/* ---- footer ---- */

footer{border-top:1px solid var(--line);padding:30px 0 44px;background:var(--bg-2)}
footer .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;font-size:14.5px;color:var(--ink-soft)}
footer a{color:var(--ink-soft);text-decoration:none}
footer a:hover{color:var(--cyan)}
footer .sp{margin-left:auto}
footer .tm{flex-basis:100%;margin:8px 0 0;font-size:13.5px;line-height:1.55}

@media (max-width:640px){
  body{font-size:16.5px}
  .nav .wrap{flex-wrap:wrap;gap:4px 16px;padding-top:8px;padding-bottom:8px}
  .nav nav{margin-left:0;width:100%;gap:16px;font-size:15px;padding-bottom:4px}
  .blocks{gap:9px}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}
