/* Poppins, self-hosted (SIL Open Font License), latin subset */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700.woff2") format("woff2");
}

/* Brand palette (from brand/red-nebo-icon.svg) */
:root {
  --night: #1E1A2B;      /* background */
  --surface: #27223A;
  --border: #3A3350;
  --cream: #F7E9D7;      /* text, snowcaps */
  --muted: #B9ADBF;
  --red: #C8372D;        /* mountain */
  --red-dark: #8E2420;   /* mountain base */
  --red-hover: #D9483D;
  --gold: #F2A541;       /* sun */
  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: var(--cream);
  font: 16px/1.6 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.wordmark {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.wordmark-accent { color: var(--red); }

.site-header nav { display: flex; gap: 24px; }

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-header nav a:hover { color: var(--cream); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 72px 0 64px;
}

.hero-art {
  width: min(380px, 38vw);
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.lede {
  margin: 0 0 32px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 4px 0 var(--red-dark);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.button:hover { background: var(--red-hover); }

.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--red-dark);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Games */
.games, .about { padding: 48px 0; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.game-card a { display: block; text-decoration: none; }

.game-art {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 62% 45%, var(--gold) 0 14%, transparent 14.5%),
    linear-gradient(160deg, #2E2742, var(--night));
}

.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.game-body { padding: 16px 18px 20px; }

.game-body h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; }

.game-body p { margin: 0; color: var(--muted); }

.game-card--placeholder { border-style: dashed; }

/* About */
.about p { max-width: 40rem; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p { margin: 0; }

/* 404 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found img { border-radius: 24px; margin-bottom: 8px; }

.not-found h1 { color: var(--gold); }

/* Small screens */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0 48px;
  }
  .hero-art { display: none; }
  .site-header nav { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
