:root {
  --bg: #0b0d12;
  --panel: #131720;
  --panel-2: #191f2b;
  --text: #f4f7fb;
  --muted: #a9b3c2;
  --accent: #75a7ff;
  --accent-2: #185b3a; /* SECONDARY COLOUR: dark green. Change this hex value to adjust it site-wide. */
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(117, 167, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(24, 91, 58, 0.14), transparent 28%),
    var(--bg);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 18, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(117, 167, 255, 0.25);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 86px 0 54px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.content-panel,
.donate-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(30px, 5vw, 58px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 0.96;
  margin-bottom: 22px;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
  max-width: 720px;
}

.hero-card {
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.12), rgba(10, 12, 18, 0.92)),
    linear-gradient(135deg, rgba(117,167,255,.24), rgba(24,91,58,.28));
}

.hero-card p {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 18px 0 70px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--muted);
  max-width: 620px;
}

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

.game-tile {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.game-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,7,11,0.08), rgba(5,7,11,0.92));
}

/* HOME TILE IMAGE: replace these image files in /assets with your own game cover art. */
.tile-mars::before { background-image: url("assets/surviving-mars-cover.jfif"); }
.tile-minecraft::before { background-image: url("assets/minecraft-cover.jfif"); }
.tile-misc::before { background-image: url("assets/misc-cover.png"); }
.tile-donate::before { background-image: url("assets/donate-cover.png"); }

.tile-donate {
  background-color: white;
}

.tile-donate .tile-content h3 {
  color: black;
}

.tile-donate .tile-content p {
  color: black;
}

.tile-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
}

.tile-content h3 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.tile-content p {
  margin-bottom: 0;
  color: #d1d8e3;
  max-width: 500px;
  line-height: 1.6;
}

.page-hero {
  padding: 74px 0 34px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.content-panel {
  padding: 28px;
  margin-bottom: 70px;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

/* Each project has a simple two-image feature gallery. */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--border);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(145deg, #1d2635, #23352d);
}

.project-body {
  padding: clamp(22px, 4vw, 32px);
}

.project-body h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.project-body p {
  color: var(--muted);
  line-height: 1.72;
  max-width: 880px;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07101f;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.donate-panel {
  max-width: 760px;
  margin: 0 auto 70px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.widget-placeholder {
  margin-top: 28px;
  min-height: 220px;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background: rgba(255,255,255,0.025);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.footer-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.copyright-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.copyright-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .nav-wrap {
    align-items: flex-start;
    padding: 15px 0;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .game-tile {
    min-height: 300px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }
}
