@font-face {
  font-family: "Cinzel";
  src: url("fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0d0a13;
  --bg-hero: #0b050f;
  --bg-footer: #0a0810;
  --surface: #16121f;
  --line: #2a2438;
  --line-strong: #3a3150;
  --line-footer: #221d2e;
  --text: #ece9f3;
  --text-strong: #f4f0fb;
  --body: #d6d1e2;
  --lede: #c9c3d6;
  --muted: #b3a9c9;
  --muted-2: #a29cb2;
  --accent: #a58cf0;
  --accent-hover: #bba6ff;
  --on-accent: #141418;
  --status: #e0c48a;
  --link: #c4b1ff;
  --link-hover: #e2d8ff;
  --heading: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header and hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 600px; height: 760px; max-height: 820px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-hero);
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 46%;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 320px;
  background: linear-gradient(180deg, rgba(13, 10, 19, 0) 0%, rgba(13, 10, 19, 0.85) 60%, var(--bg) 100%);
}
.nav {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.wordmark { font-family: var(--heading); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--body); text-decoration: none; padding: 10px 0; transition: color 0.15s ease; }
.nav-links a:hover { color: #fff; }
.hero-copy {
  position: relative; z-index: 1;
  max-width: 760px; width: 100%; margin: 0 auto; padding: 0 24px 64px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero-copy h1 {
  margin: 0; font-family: var(--heading); font-weight: 600;
  font-size: clamp(30px, 4.2vw, 48px); line-height: 1.15; letter-spacing: 0.02em; color: var(--text-strong);
}
.hero-copy p { margin: 0; max-width: 560px; color: var(--lede); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line-strong); color: #e6e1f0; font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.hero-actions .btn { min-height: 48px; padding: 0 26px; }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(58, 49, 80, 0));
}
h2 {
  margin: 0; font-family: var(--heading); font-weight: 600;
  font-size: clamp(28px, 3vw, 38px); letter-spacing: 0.04em; color: var(--text-strong);
}
#games { padding-top: 72px; padding-bottom: 40px; }

/* Game cards */
.game {
  display: flex; flex-wrap: wrap; margin: 0 0 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.game-art { flex: 1 1 520px; min-width: 0; background: #100508; }
.game-art img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.game-body {
  flex: 1 1 380px; min-width: 0; padding: 36px 36px 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.game-logo { width: 240px; height: auto; }
.game-label {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.game-status { color: var(--status); }
.game-pitch { margin: 0; color: var(--body); }
.game-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.about-head { flex: 1 1 280px; min-width: 0; }
.about-body { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 19px; color: var(--body); }
.about-body p { margin: 0; }

/* Team */
#team { padding-bottom: 88px; }
#team .section-head { margin-bottom: 10px; }
.team-intro { margin: 0 0 32px; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.person { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.person img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line);
}
.person figcaption { display: flex; flex-direction: column; gap: 2px; }
.person-name { font-family: var(--heading); font-weight: 600; font-size: 19px; color: var(--text-strong); }
.person-title { font-size: 15px; color: var(--muted); }
.testers { margin-top: 48px; }
.testers h3 { margin: 0 0 8px; font-family: var(--heading); font-weight: 600; font-size: 22px; color: var(--text-strong); }
.testers p { margin: 0 0 16px; color: var(--muted); }
.tester-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tester-list li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--body); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--line-footer); background: var(--bg-footer); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 40px; padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand .wordmark { font-size: 16px; color: var(--text); }
.copyright { font-size: 14px; color: var(--muted-2); }
.follow { display: flex; flex-direction: column; gap: 10px; }
.follow-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid #2f283f; border-radius: 999px; color: var(--body); text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social:hover { border-color: var(--accent); color: #fff; }

@media (max-width: 600px) {
  .wrap, .hero-copy { padding-left: 16px; padding-right: 16px; }
  /* The banner's wordmark sits mid-image, so on phones it's scaled up and kept above the copy. */
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero-art { inset: auto; top: 40px; left: 50%; width: 260%; max-width: none; height: auto; transform: translateX(-50%); }
  .hero-copy { padding-top: 300px; padding-bottom: 56px; }
  .game-body { padding: 28px 20px 32px; }
  .game-art img { min-height: 220px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .person-name { font-size: 17px; }
  .person-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
