:root {
  --ink: #11101b;
  --paper: #f7f8ff;
  --accent: #ff5a42;
  --blue: #7ca7ff;
  --muted: #666170;
  --page-text: #f7f8ff;
  --page-muted: #bec8e6;
  --card: rgba(9, 18, 47, 0.86);
  --line: rgba(232, 238, 255, 0.2);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(145deg, #080d21 0%, #111e4a 48%, #071a36 100%);
  color: var(--page-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--paper);
  color: #111e4a;
  font-size: 1rem;
  transform: rotate(-4deg);
}

nav {
  display: flex;
  gap: clamp(22px, 4vw, 48px);
}

nav a,
footer a {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  min-height: 420px;
  padding-block: 64px;
}

.section-label {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h3 {
  line-height: 1;
}

.intro {
  max-width: none;
  margin-bottom: 0;
  color: var(--page-muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.intro a {
  color: var(--page-text);
  font-weight: 800;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.intro a:hover {
  color: var(--blue);
}

.avatar-frame {
  position: relative;
  display: grid;
  width: 260px;
  height: 260px;
  place-items: center;
  overflow: hidden;
  background: #536b9c;
  border-radius: 50%;
  border: 2px solid rgba(184, 204, 246, 0.72);
  box-shadow: 12px 12px 0 rgba(60, 96, 180, 0.45);
}

.avatar {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 150px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.games {
  padding-block: 64px 112px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 52px;
}

.section-heading .section-label {
  margin-bottom: 0;
}

.game-list {
  display: grid;
  gap: 44px;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(124, 167, 255, 0.24);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.game-art-link {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--ink);
}

.game-art-link img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  transition: transform 240ms ease, opacity 240ms ease;
}

.game-art-link:hover img {
  opacity: 0.9;
  transform: scale(1.025);
}

.ribbon {
  position: absolute;
  top: 22px;
  left: -40px;
  width: 195px;
  padding: 8px 12px;
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-38deg);
  box-shadow: 0 2px 0 rgba(17, 16, 27, 0.2);
}

.ribbon-development {
  background: var(--accent);
}

.ribbon-released {
  background: #16855b;
}

.ribbon-discontinued {
  background: #5c5864;
}

.game-copy {
  display: flex;
  min-height: 350px;
  padding: clamp(30px, 4vw, 52px);
  flex-direction: column;
  align-items: flex-start;
}

h3 {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  letter-spacing: -0.045em;
}

h3 a {
  color: #c2ecff;
  transition: color 160ms ease;
  text-decoration: none;
}

h3 a:visited {
  color: #c2ecff;
}

h3 a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.game-copy > p {
  margin-bottom: 26px;
  color: var(--page-muted);
}

footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  color: var(--page-muted);
  font-size: 0.83rem;
}

footer p {
  margin-bottom: 0;
}

footer a {
  color: var(--ink);
}

@media (min-width: 1000px) {
  .intro {
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 44px;
  }

  .avatar-frame {
    width: 170px;
    height: 170px;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-art-link img {
    min-height: 0;
    aspect-ratio: 460 / 215;
  }

  .game-card:first-child .game-art-link img {
    aspect-ratio: 1232 / 706;
  }

  .game-copy {
    min-height: auto;
  }

}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 74px;
  }

  .wordmark span:last-child {
    display: none;
  }

  nav {
    gap: 20px;
  }

  .about {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 56px 52px;
  }

  .avatar-frame {
    width: calc(100% - 10px);
    height: auto;
    aspect-ratio: 1;
  }

  .avatar {
    width: 90px;
    height: 112.5px;
  }

  .games {
    padding-block: 52px 88px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .game-list {
    gap: 28px;
  }

  .game-copy {
    padding: 30px 26px 34px;
  }

  footer {
    min-height: 138px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }
}

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

  .game-art-link img {
    transition: none;
  }
}
