:root {
  color: #1c1c1c;
  background: #e9e9e4;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site {
  width: min(760px, calc(100% - 40px));
  margin: 32px auto;
  overflow: hidden;
  border: 1px solid #d4d4ce;
  border-radius: 12px;
  background: #f7f7f5;
  box-shadow: 0 18px 48px rgba(31, 31, 27, 0.1);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid #dcdcd7;
  color: #73736d;
  font-size: 0.85rem;
}

.brand {
  color: #1c1c1c;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-links a {
  color: #1c1c1c;
  font-weight: 600;
  text-underline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro {
  padding: 72px 40px 80px;
}

.intro h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.intro p {
  max-width: 470px;
  margin: 18px 0 0;
  color: #666660;
  font-size: 1.05rem;
  line-height: 1.55;
}

.games {
  padding: 0 40px 70px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #1c1c1c;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-heading span {
  color: #73736d;
  font-size: 0.82rem;
}

.game {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid #dcdcd7;
}

.game-type {
  margin: 0 0 6px;
  color: #777770;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.game-copy > p:last-child {
  margin: 7px 0 0;
  color: #666660;
  font-size: 0.92rem;
  line-height: 1.45;
}

.game-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

.game-actions a {
  padding: 10px 14px;
  border: 1px solid #bdbdb7;
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

.game-actions a:hover {
  border-color: #1c1c1c;
}

.installation {
  margin: 0 40px 70px;
  padding: 24px;
  border: 1px solid #dcdcd7;
  border-radius: 8px;
  background: #fff;
}

.installation h2 {
  margin: 0;
  font-size: 1.05rem;
}

.installation > p {
  margin: 9px 0 0;
  color: #666660;
  font-size: 0.88rem;
  line-height: 1.5;
}

.installation ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #3f3f3b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.installation li + li {
  margin-top: 8px;
}

.installation .installation-note {
  margin-top: 16px;
  color: #777770;
  font-size: 0.78rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px 40px;
  border-top: 1px solid #dcdcd7;
  color: #777770;
  font-size: 0.78rem;
}

footer a {
  color: #3f3f3b;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .site {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(31, 31, 27, 0.08);
  }

  header {
    padding: 0 22px;
  }

  .header-links > span {
    display: none;
  }

  .intro {
    padding: 54px 22px 60px;
  }

  .games {
    padding-right: 22px;
    padding-left: 22px;
  }

  .installation {
    margin-right: 22px;
    margin-left: 22px;
    padding: 20px;
  }

  .game {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-actions {
    width: fit-content;
  }

  footer {
    flex-direction: column;
    gap: 7px;
    padding-right: 22px;
    padding-left: 22px;
  }
}
