/* --- Reset & Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  background-color: #0f1220;
  color: #e8eaf0;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #8ab4ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Layout --- */
.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.topbar {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #aab2c5;
}

/* --- Masthead --- */
.masthead {
  text-align: center;
  padding: 24px 0 8px;
}

.logo {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
}

.tagline {
  font-size: 1.2rem;
  color: #c5cbdb;
  margin-top: 8px;
}

/* --- Section headings --- */
h2 {
  font-family: 'Jua', sans-serif;
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

h3 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 2px;
}

p {
  margin-bottom: 12px;
  color: #d4d8e4;
}

/* --- Top block: key art + factsheet --- */
.top-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.keyart {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.factsheet .fact-row {
  margin-bottom: 14px;
}

.factsheet .fact-label {
  font-family: 'Jua', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7f8aa3;
  margin-bottom: 2px;
}

.factsheet .fact-value {
  font-size: 1.05rem;
  color: #e8eaf0;
}

.factsheet .fact-value a {
  display: inline-block;
  margin-right: 12px;
}

/* --- Body copy --- */
.prose li {
  margin-left: 20px;
  margin-bottom: 6px;
  color: #d4d8e4;
}

.bio {
  margin-bottom: 16px;
}

/* --- Media grids --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Featured Steam trailer */
.trailer-wrap {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.trailer-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.media-grid img,
.media-grid video {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.logos-grid img {
  max-width: 260px;
  width: 100%;
  border-radius: 8px;
  padding: 16px;
}

/* Black source logos need inverting to read on the dark theme */
.invert-logo {
  filter: invert(1);
}

/* --- Footer --- */
.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer img {
  max-width: 180px;
  opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .keyart {
    max-width: 300px;
    margin: 0 auto;
  }

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

  h2 {
    font-size: 1.6rem;
  }
}
