:root {
  --bg: #ffffff;
  --text: #111111;
  --accent: #2c3e50;
}
.dark {
  --bg: #121212;
  --text: #eeeeee;
  --accent: #3498db;
}

/* Title stays Architects Daughter */
#swijiTitle {
  font-family: 'Architects Daughter', cursive !important;
}

/* Reset and font */
html, h2, p, section {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Share Tech Mono', monospace;
}

body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 3.5rem 1rem 1rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content layout */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
  margin: auto;
  padding: 2rem 1rem;
}

/* Hero section */
.hero {
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.cta-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-buttons a {
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--text);
  color: var(--text);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.cta-buttons a:hover {
  background-color: var(--text);
  color: var(--bg);
}

/* Responsive typography */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ===================================================
   Footer
=================================================== */

/* Footer link color override to fix blue color issue */
#siteFooter .footer-links a {
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
}

#siteFooter .footer-links a:hover {
  color: var(--text);
}

/* Footer copyright text */
#siteFooter .footer-copy {
  color: #888888; /* medium grey */
  transition: color 0.3s ease;
  font-family: 'Share Tech Mono', monospace;
}

/* ===================================================
   Games Page Layout
=================================================== */
.year-group {
  margin-bottom: 2.5rem;
}

.year-group h2 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: left;
}

.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.games-grid .game {
  flex: 0 0 150px;
  height: 200px;
  background-color: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--text);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  flex-direction: column;
  box-shadow: 0 0 8px rgba(0,255,255,0.1), 0 0 4px rgba(255,0,255,0.05);
}

.games-grid .game:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0,255,255,0.6), 0 0 12px rgba(255,0,255,0.6);
}

body.dark .games-grid .game {
  background-color: rgba(255,255,255,0.05);
  box-shadow: 0 0 8px rgba(0,255,255,0.1), 0 0 4px rgba(255,0,255,0.05);
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .year-group h2 { font-size: 1.5rem; }
  .games-grid {
    justify-content: center;
  }
  .games-grid .game {
    flex: 0 0 120px;
    height: 160px;
    font-size: 0.9rem;
  }
}