/* ============================================================
   The front page — the menu of Leon's games.
   Each game lives in its own folder next to this file.
   ============================================================ */

:root {
  --sky-top:    #7fd4ff;
  --sky-bottom: #b6f0c4;
  --ink:        #26323d;
  --hedge-dark: #1f6b39;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 16px 40px;
  font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

h1 {
  margin: 8px 0 4px;
  font-size: clamp(32px, 8vw, 56px);
  color: #fff;
  text-shadow: 0 3px 0 var(--hedge-dark), 0 6px 12px rgba(0,0,0,.25);
  text-align: center;
}

.subtitle {
  margin: 0 0 28px;
  font-size: clamp(18px, 4vw, 24px);
  text-align: center;
}

#games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 760px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 22px 18px 20px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.game-card:hover  { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); }
.game-card:active { transform: translateY(4px);  box-shadow: 0 2px 0 var(--ink); }

.game-icon  { font-size: 56px; line-height: 1; }
.game-name  { font-size: 26px; font-weight: bold; }
.game-blurb { font-size: 16px; opacity: .75; }

footer {
  margin-top: 32px;
  font-size: 16px;
  opacity: .55;
  text-align: center;
}
