:root {
  --bg: #0b1020;
  --surface: #121833;
  --card: #182050;
  --text: #f7f7ff;
  --muted: #bec7e6;
  --blue: #68b8ff;
  --accent: #ff6868;
  --border: #3959ff;
  --shadow: #050713;
  --content: 70rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--content));
  margin-inline: auto;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  gap: .75rem;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.03em;
}

.logo {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  image-rendering: pixelated;
}

nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }

nav a, footer a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover, footer a:hover { color: var(--blue); }

.hero {
  display: grid;
  place-content: center;
  min-height: calc(92vh - 5.5rem);
  padding: 5rem 1.25rem 7rem;
  text-align: center;
  background-image:
    linear-gradient(rgba(104, 184, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 184, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero::after {
  content: "";
  width: 8rem;
  height: .35rem;
  margin: 4rem auto 0;
  background: linear-gradient(90deg, var(--border) 50%, var(--accent) 50%);
  box-shadow: 0 .5rem 0 var(--shadow);
}

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

h1, h2, h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: .75rem auto 1.5rem;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  letter-spacing: -.075em;
}

h1 span { color: var(--blue); }

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -.05em;
}

h3 {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.35rem;
}

.eyebrow {
  margin-bottom: .75rem;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tagline {
  max-width: 43rem;
  margin: 0 auto 2.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.button {
  display: inline-block;
  padding: .9rem 1.25rem;
  border: 3px solid var(--border);
  background: var(--card);
  box-shadow: 5px 5px 0 var(--shadow);
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  color: var(--bg);
  background: var(--blue);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--shadow);
}

.section { padding: clamp(5rem, 10vw, 8rem) 1.25rem; }
.section-alt { background: var(--surface); }
.content { width: min(100%, var(--content)); margin-inline: auto; }
.narrow { max-width: 48rem; text-align: center; }
.narrow > p:not(.eyebrow) { color: var(--muted); }

.game-grid {
  display: grid;
  grid-template-columns: minmax(16rem, .75fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: 2rem;
  margin-top: 3rem;
}

.project-intro {
  max-width: 52rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.game-card {
  position: relative;
  min-height: 25rem;
  padding: clamp(2rem, 5vw, 4rem);
  padding-bottom: 5rem;
  overflow: hidden;
  border: 4px solid var(--border);
  background: var(--card);
  box-shadow: 7px 7px 0 var(--shadow);
}

.game-card p { color: var(--muted); }

.project-visual {
  margin: 0;
  border: 4px solid var(--border);
  background: var(--card);
  box-shadow: 7px 7px 0 var(--shadow);
  overflow: hidden;
}

.project-visual picture,
.project-visual img {
  display: block;
  width: 100%;
}

.project-visual img {
  height: min(39rem, 70vw);
  object-fit: cover;
  image-rendering: pixelated;
}

.project-visual figcaption {
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: .8rem;
}

.game-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--blue);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.status {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 1rem;
  margin: 2rem 0 0;
}

.project-details div {
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(104, 184, 255, .25);
}

.project-details dt {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-details dd {
  margin: .25rem 0 0;
  font-weight: 700;
}

.contact .button { margin-top: 1rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(1.25rem, calc((100% - var(--content)) / 2));
  background: #070b18;
  color: var(--muted);
  font-size: .85rem;
}

footer p { margin: 0; }

@media (max-width: 48rem) {
  .site-header { align-items: flex-start; }
  .brand span { display: none; }
  nav { padding-top: .65rem; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 17rem; }
  .project-visual img { height: min(42rem, 135vw); }
}

@media (max-width: 27rem) {
  nav { gap: .7rem; }
  nav a { font-size: .78rem; }
  .project-details { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

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