:root {
  color: #2c4233;
  background: #fcf7e9;
  font-family: 'Trebuchet MS', system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 12px clamp(14px, 4vw, 48px) 40px;
}
a {
  color: #365b47;
  text-underline-offset: 4px;
}
a:focus-visible {
  outline: 4px solid #227876;
  outline-offset: 3px;
}
.bar,
.categories {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar {
  justify-content: space-between;
  padding: 8px 0 15px;
  font-weight: bold;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eddabd url(art/path.webp) center 50% / cover;
  border-radius: 20px;
  padding: clamp(16px, 4vw, 42px);
  border: 1px solid #bba785;
}
header div {
  max-width: 64ch;
  background: #fff9e9eb;
  padding: 15px 20px;
  border-radius: 10px;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  margin: 0;
}
header p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.45;
  margin: 10px 0 0;
}
header img {
  width: 20%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
}
.categories {
  flex-wrap: wrap;
  margin: 15px 0 28px;
}
.categories a {
  padding: 7px 12px;
  border: 1px solid #b8a486;
  border-radius: 25px;
  background: #fffaf0;
  text-decoration: none;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 18px;
}
h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin: 32px 0 13px;
}
.game-cards article {
  min-width: 0;
  background: #fffcf4;
  border: 1px solid #d5c6a9;
  border-radius: 15px;
  overflow: hidden;
}
.game-cards a {
  display: block;
  text-decoration: none;
}
.game-cards a:hover h3 {
  text-decoration: underline;
}
.game-cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  display: block;
  object-fit: cover;
}
.game-cards h3,
.game-cards p {
  margin: 10px 13px;
}
.game-cards h3 {
  font-size: 1.2rem;
}
.game-cards p {
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 16px;
}
footer {
  margin-top: 24px;
}
@media (max-width: 550px) {
  .game-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .game-cards h3 {
    font-size: 1.04rem;
  }
  .game-cards h3,
  .game-cards p {
    margin: 8px;
  }
  .categories {
    gap: 6px;
  }
  .categories a {
    font-size: 0.84rem;
  }
  header img {
    width: 17%;
  }
  header {
    padding: 10px;
  }
  header div {
    padding: 10px;
  }
}
