:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  background: #f3f8fd;
  color: #183551;
  --link: #205c97;
  --border: #d7e6f4;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:focus-visible, .gallery:focus-visible {
  outline: 3px solid #2878c2;
  outline-offset: 3px;
}

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

.site-header, footer, .section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.site-header {
  justify-content: space-between;
  padding: 18px 0;
}

.brand, .site-header nav {
  display: flex;
  align-items: center;
}

.brand { gap: 10px; font-weight: 700; }
.brand img { border-radius: 10px; }
.site-header nav { flex-wrap: wrap; gap: 10px 22px; }
.site-header nav a { padding-block: 5px; font-size: .93rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 5vw, 56px);
  border-radius: 24px;
  background: linear-gradient(120deg, #102a43, #22486c);
  color: #fff;
}

h1, h2 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 5vw, 4.4rem); line-height: 1.04; }
h1 span {
  display: block;
  margin-top: .45em;
  color: #bbdbf5;
  font-size: .42em;
  letter-spacing: -.01em;
}

.hero p {
  max-width: 34ch;
  margin: 22px 0;
  color: #e4f0fb;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.play-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #f7fbff;
  color: #12375a;
  font-weight: 700;
  text-decoration: none;
}

.play-link:hover { background: #dbeeff; }
.play-link:focus-visible { outline-color: #bbdbf5; }

.hero-art {
  overflow: hidden;
  aspect-ratio: 1.17;
  border: 1px solid #537697;
  border-radius: 18px;
  background: #25486a;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

main > section + section { margin-top: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.gallery {
  display: grid;
  grid-auto-columns: clamp(154px, 39vw, 190px);
  grid-auto-flow: column;
  gap: clamp(10px, 2vw, 18px);
  overflow-x: auto;
  margin: 16px 0 0;
  padding: 0 0 12px;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-color: #7a9bbc #e2edf8;
}

.gallery li { scroll-snap-align: start; }
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #e2edf8;
}

.devlog {
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}

.section-heading { justify-content: space-between; }
.section-heading a { font-size: .95rem; }
.devlog [data-pixelpicked-devlogs] { margin-top: 16px; }

footer {
  margin-top: 42px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  font-size: .92rem;
}

footer span { margin-right: auto; font-weight: 700; }

@media (max-width: 640px) {
  .site-header, main, footer { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; border-radius: 18px; }
  .hero-art { width: min(100%, 360px); }
}
