/* ZOMGUN! site: the game's own look. Dark ink panels with thick outlines and a soft drop, the
   logo on its metal hex tile, zombie lime, and the game's two fonts (GunHell Display, Nunito). */

@font-face {
  font-family: "GunHell Display";
  src: url("fonts/GunHellDisplay-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #0b0f1a;
  --bg: #141a2b;
  --panel: #1f2840;
  --panel-top: #2a3554;
  --text: #f4f6fb;
  --dim: #aab4cc;
  --lime: #8fdc3c;
  --yellow: #ffe868;
  --orange: #ff8a1e;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 138, 30, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(143, 220, 60, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 800 17px/1.55 "Nunito", system-ui, sans-serif;
}

a { color: var(--yellow); }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; height: auto; }

main, .foot { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.card {
  margin: 0;
  background: linear-gradient(var(--panel-top), var(--panel));
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

/* Hero: the logo and the pitch, the key art beside them (above them on a phone). */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 48px);
}

.logo {
  margin: 0;
  width: min(100%, 440px);
}

.logo img { width: 100%; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.35)); }

.tagline {
  margin: 8px 0 8px;
  font: 400 clamp(24px, 3.2vw, 34px)/1.15 "GunHell Display", system-ui, sans-serif;
  color: var(--lime);
}

.sub { margin: 0 0 22px; color: var(--dim); max-width: 34em; }

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(#3b4a74, #26304d);
  font: 400 20px/1 "GunHell Display", system-ui, sans-serif;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.soon {
  margin: 14px 0 0;
  font: 400 18px/1 "GunHell Display", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.art { overflow: hidden; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(28px, 5vw, 56px);
}

.features .card { padding: 20px 22px 22px; }

.features h2 {
  margin: 0 0 8px;
  font: 400 26px/1.1 "GunHell Display", system-ui, sans-serif;
  color: var(--yellow);
}

.features p { margin: 0; color: var(--dim); }

/* Screenshots */
.section-title {
  margin: 0 0 18px;
  font: 400 clamp(32px, 4vw, 44px)/1 "GunHell Display", system-ui, sans-serif;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid figure { overflow: hidden; }

.grid figcaption { padding: 10px 14px 12px; font-size: 15px; color: var(--dim); }

/* Privacy and other text pages */
.page { max-width: 760px; padding-top: 32px; }
.back { text-decoration: none; }
.prose { padding: 8px 24px; }
.prose p { color: var(--dim); }
.prose strong { color: var(--text); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .logo { width: min(100%, 360px); }
  .art { order: -1; }
  .features, .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .features, .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .grid img { transition: transform 0.25s ease; }
  .grid figure:hover img { transform: scale(1.03); }
}
