* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}
:root {
  --highlight: #7a1748;
  --highlight-hover: #4f0d2e;
}
body {
	background:
		linear-gradient(
			135deg,
			#fca9f7 0%,
			#f0adec 50%,
			#917378 100%
		);
	background-attachment: fixed;
	min-height: 100vh;
}
a {
  color: var(--highlight);
}

a:hover {
  color: var(--highlight-hover);
}

.info-button,
.info-close {
  color: var(--highlight);
}

.info-button:hover,
.info-close:hover {
  color: var(--highlight-hover);
}
img,
iframe {
  max-width: 100%;
}

.home-shell,
.list-shell {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
}

.home-shell {
  padding: 58px 0 80px;
}

.list-shell {
  padding: 28px 0 80px;
}

.home-heading {
  margin-bottom: 56px;
  text-align: center;
}

.home-heading h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 72px);
}

.subtitle {
  margin: 8px 0 0;
  color: #444;
  font-size: 15px;
}

.info-button {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.info-dialog {
  width: min(100% - 32px, 460px);
  padding: 28px;
  border: 1px solid currentColor;
  background: white;
  color: inherit;
}

.info-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.info-dialog h2 {
  margin: 0 0 10px;
}

.info-dialog h2:not(:first-of-type) {
  margin-top: 26px;
}

.info-dialog p {
  margin: 0;
  line-height: 1.5;
}

.info-dialog a {
  margin-right: 8px;
}

.info-close {
  float: right;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.featured-section h2,
.list-shell h1 {
  margin-top: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.featured-game,
.game-card {
  min-width: 0;
  text-align: center;
}

.featured-game img,
.game-card img {
  display: block;
  width: 100%;
  object-fit: cover;
}	

.featured-game img {
  aspect-ratio: 80 / 65;
  margin-bottom: 10px;
}

.featured-game span {
  font-size: 18px;
}

.info-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.info-close {
  padding: 0;
  border: 0;
  background: none;
  color: var(--highlight);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.info-photo {
  display: block;
  width: 190px;
  height: 225px;
  margin: 0 auto 24px;
  border: 3px solid var(--highlight);
  object-fit: cover;
}

.category-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 50px;
}

.category-links a {
  display: block;
  padding: 22px 18px;
  border: 1px solid currentColor;
  text-align: center;
  font-size: 20px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px 22px;
  margin-top: 28px;
}

.jam-list {
  width: min(100% - 32px, 1240px);
}

.jam-list .game-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px 24px;
}

.jam-list .game-card img {
  height: auto;
  aspect-ratio: 16 / 13;
}

.game-card img {
  height: 130px;
  margin-bottom: 8px;
}

.steam-list .game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
}

.steam-list .game-card img {
  height: auto;
  aspect-ratio: 80 / 50;
}

@media (max-width: 900px) {
  .jam-list .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-shell,
  .list-shell {
    width: min(100% - 24px, 1040px);
  }

  .home-shell {
    padding-top: 38px;
  }

  .home-heading {
    margin-bottom: 48px;
  }

  .featured-grid,
  .category-links {
    grid-template-columns: 1fr;
  }

  .category-links {
    margin-top: 42px;
  }

  .game-grid,
  .jam-list .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .game-card img {
    height: auto;
    aspect-ratio: 16 / 13;
  }

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

  .steam-list .game-card img {
    aspect-ratio: 63 / 50;
  }
}
