/* Pixelify Sans Bold, latin subset, for the wordmark. SIL Open Font License: fonts/OFL.txt */
@font-face {
  font-family: "Pixelify Sans";
  src: url("../fonts/pixelify-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0f14;
  --border: #22262f;
  --text: #e8e9ed;
  --muted: #9aa0ad;
  --accent: #f2b33d;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

a { color: var(--text); }
a:hover { color: var(--accent); }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 32px;
}

main { flex: 1; padding-bottom: 48px; }

/* Header: logo + wordmark, used on every page */
.site-header .wrap {
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  line-height: 1;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a { text-decoration: none; }

/* Homepage intro */
.intro { padding-block: 24px 32px; }

.intro .eyebrow { margin: 0; }

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Game tiles: each game has its own look, drawn from its art */
.games {
  list-style: none;
  margin: 0 auto;
  padding-block: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: 24px;
}

.games > li {
  min-width: 0;
  display: flex;
}

.game {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
}

.game-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.game-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 32px;
}

.game-body h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.game-body p { margin: 0; font-size: 1.05rem; line-height: 1.55; }

.game-body .platforms {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stores {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store {
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Unreleased games: a badge by the platforms and a muted, unclickable store label */
.soon {
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.game .stores .store--soon,
.game .stores .store--soon:hover {
  background: transparent;
  box-shadow: none;
  border: 1px dashed currentColor;
  border-radius: 4px;
  color: inherit;
  opacity: 0.75;
  font-weight: 600;
  cursor: default;
}

/* Ancestral Siege: dusk purple, gold, banner blue */
.game--siege {
  background: #241a2e;
  border: 2px solid #3d2c45;
  color: #f5e6c8;
}

.game--siege .game-art {
  display: grid;
  place-items: start center;
  padding-top: 9%;
  background: #3b2f4f url("../images/ancestral-siege-background.png") center bottom / cover no-repeat;
  image-rendering: pixelated;
}

.game--siege .game-art img {
  width: 68%;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 0 rgb(0 0 0 / 0.35));
}
.game--siege .platforms { color: #e3a64a; }
.game--siege p { color: #d8c9ac; }

.game--siege .store {
  background: #2f5aa8;
  color: #fff;
  border-radius: 4px;
  box-shadow: inset 0 -3px 0 #1d3b73;
}

.game--siege .store:hover { background: #3a6bc4; color: #fff; }

/* FiveZeroThree: terminal navy, cyan and red */
.game--fzt {
  background: #070b14;
  border: 1px solid #1f3346;
  color: #e6f6ff;
}

.game--fzt .game-art {
  display: grid;
  place-items: center;
  background-color: #070b14;
  background-image:
    linear-gradient(#0f1a28 1px, transparent 1px),
    linear-gradient(90deg, #0f1a28 1px, transparent 1px);
  background-size: 32px 32px;
}

.game--fzt .game-art img { width: 55%; display: block; }
.game--fzt h3, .game--fzt .platforms, .game--fzt .store { font-family: var(--mono); }
.game--fzt .platforms { color: #40dcff; }
.game--fzt p { color: #a9bccc; }

.game--fzt .store { border: 1px solid currentColor; }
.game--fzt .store--play { color: #40dcff; }
.game--fzt .store--apple { color: #ff5060; }
.game--fzt .store:hover { background: currentColor; }
.game--fzt .store:hover span { color: #070b14; }

/* Community Service Simulator: park grass, sky and squirrel orange */
.game--css {
  background: #15301b;
  border: 2px solid #2f5f33;
  color: #eef8e8;
}

.game--css .game-art {
  object-position: center top;
  image-rendering: pixelated;
}

.game--css .platforms { color: #8fd16a; }
.game--css p { color: #c6dcbc; }

.game--css .store {
  background: #e8742a;
  color: #1c0e04;
  border-radius: 4px;
  box-shadow: inset 0 -3px 0 #a94d14;
}

.game--css .store:hover { background: #f58a42; color: #1c0e04; }

/* I'm an astronaut get me out of here: deep space, sandy title, suit blue */
.game--astro {
  background: #05060a;
  border: 1px solid #262a3a;
  color: #f1ead6;
}

.game--astro .game-art {
  object-position: center top;
  image-rendering: pixelated;
}
.game--astro h3 { color: #d9c48f; }
.game--astro .platforms { color: #8fd0f5; }
.game--astro p { color: #c4c0b4; }

.game--astro .store {
  background: #8fd0f5;
  color: #07131c;
  border-radius: 4px;
  box-shadow: inset 0 -3px 0 #4f97c2;
}

.game--astro .store:hover { background: #b0e0fa; color: #07131c; }

.section-heading {
  margin: 32px auto 24px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-heading--first { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }

.site-footer .wrap {
  padding-block: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer .help { display: flex; flex-direction: column; gap: 4px; }
.site-footer .help a { color: var(--accent); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
}

.footer-links a { text-decoration: none; }
.footer-links span { color: var(--muted); }

/* Long-form text pages (terms, privacy, support) */
.prose {
  max-width: 720px;
  padding-bottom: 64px;
}

.prose h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin: 24px 0 4px;
}

.prose h2 {
  margin: 36px 0 8px;
  font-size: 1.15rem;
}

.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.updated { color: var(--muted); margin-top: 0; }
.contact { font-size: 1.4rem; font-weight: 700; }
