html {
  color-scheme: light;
  background: #f6f3ea;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fffdf8 0, #f6f3ea 42%, #eef5f3 100%);
  color: #202327;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: #197278;
  font-weight: 850;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.top-nav,
.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: #68707a;
  font-size: 0.9rem;
}

.top-nav {
  margin-bottom: 34px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(216, 208, 195, 0.75);
}

.top-nav strong {
  color: #202327;
  margin-right: auto;
  font-size: 1rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.lang-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #68707a;
  font-size: 0.86rem;
  font-weight: 800;
}

.lang-field select {
  min-height: 34px;
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  background: #fffdf8;
  color: #202327;
  font: inherit;
  font-weight: 850;
}

.page-footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid #d8d0c3;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.7rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin: 32px 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

li {
  margin: 6px 0;
}

.lead {
  color: #68707a;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 8px;
  color: #c44536;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 45px rgba(36, 38, 43, 0.1);
}

.hero > div {
  min-width: 0;
}

.hero-image,
.game-thumb {
  display: block;
  width: 100%;
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  background: #fffdf8;
  object-fit: cover;
}

.hero-image {
  aspect-ratio: 1200 / 630;
  box-shadow: 0 12px 30px rgba(36, 38, 43, 0.12);
  min-width: 0;
}

.hero h1 {
  max-width: 8.2em;
}

.stack-title {
  display: grid;
  gap: 0.02em;
}

.stack-title span {
  display: block;
}

.hero .lead {
  max-width: 23em;
}

.game-thumb {
  aspect-ratio: 1200 / 630;
  margin-bottom: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.home-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
}

.card {
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d8d0c3;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 750;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: #197278;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  background: #fffdf8;
  color: #197278;
  border: 1px solid #197278;
}

.note {
  border-left: 4px solid #197278;
  background: #fffdf8;
  padding: 12px 14px;
}

@media (max-width: 720px) {
  .hero,
  .home-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero .lead {
    max-width: none;
  }

  .top-nav strong {
    flex-basis: 100%;
  }
}
