@font-face {
  font-family: "Kode Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/kode-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Kode Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/kode-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #faf8f3;
  --ink: #2a2a2a;
  --muted: #8a8780;
  --line: #e7e3da;
  --blue: #1d4ed8;
  --column: 680px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Kode Mono", ui-monospace, "Courier New", monospace;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

header {
  display: flex;
  justify-content: flex-end;
  padding: 20px 24px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

footer {
  padding: 24px 16px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  margin: 36px 0 8px;
  font-size: 19px;
  font-weight: 500;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.lead {
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  text-align: center;
}

.home-title {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 24px);
  margin: 0;
  font-size: clamp(28px, 7.4vw, 72px);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.home-title img {
  height: 1.15em;
  width: auto;
}

.game-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.game-title img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.game-title h1 {
  margin: 0;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0 0;
}

.screenshots a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0d1a;
  aspect-ratio: 16 / 9;
}

.screenshots img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s;
}

.screenshots a:hover img {
  opacity: 0.85;
}

.updated {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  header {
    justify-content: center;
    padding: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .home-title {
    flex-direction: column;
    gap: 14px;
  }

  .home-title img {
    height: 2.2em;
  }

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