@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --bg: #1C1712;
  --surface: #241B14;
  --surface-2: #2A2119;
  --border: #3A2F22;
  --text: #F1E6D3;
  --text-muted: #B5A488;
  --text-faint: #6E5D44;
  --orange: #D9643A;
  --teal: #3A9E97;
  --mustard: #E8A33D;
  --radius: 12px;
  --radius-lg: 14px;
  --max-width: 1080px;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
}

.site-header .logo {
  font-weight: 700;
  font-size: 16px;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--mustard);
}

.social-icons {
  display: flex;
  gap: 14px;
  font-size: 18px;
}

/* ---------- eyebrow / labels ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mustard);
}

.eyebrow.teal { color: var(--teal); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 100px;
  padding: 4px 12px;
  border: 1px solid var(--teal);
  color: var(--teal);
}

.pill.dev { border-color: var(--mustard); color: var(--mustard); }
.pill.announced { border-color: var(--border); color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #FBF3E7;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
}

/* ---------- hero carousel ---------- */

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
  min-height: 340px;
}

.hero-slide {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
  display: none;
}

.hero-slide.is-active { display: block; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,15,10,0.9) 0%, rgba(20,15,10,0.15) 55%, rgba(20,15,10,0.45) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 3rem 2.5rem;
  max-width: 520px;
}

.hero-slide-content h1,
.hero-slide-content h2 {
  font-size: 40px;
  font-weight: 700;
  color: #FBF3E7;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.hero-slide-content p {
  color: #FBF3E7;
  opacity: 0.9;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
}

.hero-dots { display: flex; gap: 8px; }

.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(241,230,211,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active { background: var(--mustard); }

.hero-arrows { display: flex; gap: 10px; }

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(241,230,211,0.12);
  border: none;
  color: #FBF3E7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- article blocks (project / game) ---------- */

.article {
  border-top: 2px solid var(--text);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.article-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }

.article-gallery a {
  aspect-ratio: 16/9;
  background: var(--surface-2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: block;
}

.article-gallery img { width: 100%; height: 100%; object-fit: cover; }

.article-gallery .more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: #FBF3E7;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.article p.intro { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; line-height: 1.6; max-width: 460px; }

/* job entry */

.job-entry {
  border-top: 2px solid var(--text);
  padding-top: 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.job-entry h3 { font-size: 18px; font-weight: 700; margin: 0; }
.job-entry .dates { font-family: var(--font-mono); font-size: 15px; color: var(--mustard); }

/* ---------- games grid (index page) ---------- */

.filters { display: flex; gap: 10px; margin-bottom: 2.5rem; }

.filter {
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 100px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: none;
  cursor: pointer;
}

.filter.is-active { background: var(--mustard); color: var(--bg); border-color: var(--mustard); }

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

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

.game-card .thumb {
  aspect-ratio: 16/9;
  background: var(--surface-2);
}

.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.game-card .body { padding: 18px; }
.game-card h2 { font-size: 20px; margin: 0 0 6px; }
.game-card p { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; line-height: 1.5; }

/* ---------- game detail page ---------- */

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 14px;
}

.game-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}

.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,15,10,0.9) 0%, rgba(20,15,10,0.1) 60%);
}

.game-hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 560px;
}

.game-hero-content h1 { font-size: 42px; font-weight: 700; color: #FBF3E7; margin: 10px 0 0; line-height: 1.1; }

.game-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  margin-bottom: 3rem;
}

.game-body .description { font-size: 15px; color: #D8CBB4; line-height: 1.7; margin: 0 0 24px; }

.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
}

.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 16px; }
.sidebar-card .label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.sidebar-card .platforms { display: flex; gap: 10px; margin-bottom: 16px; font-size: 20px; }
.sidebar-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }

.next-up {
  border-top: 2px solid var(--text);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.next-up .thumb {
  width: 64px;
  height: 64px;
  background: var(--surface-2);
  border-radius: 8px;
  flex-shrink: 0;
}

.next-up .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* ---------- team / value cards ---------- */

.team-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 3rem;
}

.team-member .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  margin-bottom: 12px;
  overflow: hidden;
}

.team-member .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-member .name { font-weight: 700; font-size: 14px; }
.team-member .role { color: var(--text-muted); font-size: 13px; }

.value-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
}

.value-card i { font-size: 20px; color: var(--mustard); }
.value-card .title { font-weight: 700; font-size: 14px; margin: 10px 0 4px; }
.value-card .desc { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

/* ---------- careers ---------- */

.roles-list { border-top: 2px solid var(--text); margin-bottom: 20px; }

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.role-row .title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.role-row .meta { color: var(--text-muted); font-size: 13px; }
.role-row .view { display: inline-flex; align-items: center; gap: 6px; color: var(--mustard); font-size: 14px; font-weight: 700; }

.cta-banner {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-banner .title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cta-banner .desc { color: var(--text-muted); font-size: 13px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 2px solid var(--text);
  padding: 2.5rem 0 3rem;
  display: flex;
  gap: 80px;
}

.footer-col .heading { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; line-height: 2; }
.footer-col a:hover { color: var(--mustard); }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .wrap { padding: 0 1.25rem; }
  .games-grid,
  .team-grid,
  .values-grid { grid-template-columns: 1fr; }
  .game-body { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
