/* Darkmoon Games landing page. Shares the palette of the game pages. */

:root {
  --bg: #07050b;
  --panel: #120c1c;
  --panel-hover: #1b1229;
  --border: #2a1d3d;
  --text: #fff;
  --text-muted: #a99bbd;
  --accent: #b46cff;
  --font-ui: "Bebas Neue", sans-serif;
  --font-body: "Goudy Bookletter 1911", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at top, #1d1030 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1, h2, h3, .game-link, footer { font-family: var(--font-ui); letter-spacing: 1px; font-weight: 400; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 80px 16px 48px;
  text-align: center;
}
.logo { width: 112px; height: 112px; margin-bottom: 8px; }
h1 { font-size: clamp(48px, 10vw, 80px); line-height: 1; }
.tagline { color: var(--text-muted); font-size: 20px; }

main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px 64px; }
h2 { font-size: 32px; margin-bottom: 20px; color: var(--accent); }

.games { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.game-card:hover, .game-card:focus-visible { background: var(--panel-hover); border-color: var(--accent); transform: translateY(-2px); }
.game-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.game-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 20px 20px; }
.game-info h3 { font-size: 28px; line-height: 1.1; }
.game-info p { color: var(--text-muted); }
.game-link { margin-top: auto; color: var(--accent); font-size: 18px; }

footer { padding: 24px 16px; text-align: center; color: var(--text-muted); border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  .game-card { transition: none; }
  .game-card:hover { transform: none; }
}
