:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #666860;
  --line: #ddd8cc;
  --accent: #245f5b;
  --accent-soft: #e4eeeb;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar,
main,
footer {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 760;
  text-decoration: none;
}

.hero {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 36px 0 28px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: none;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  white-space: nowrap;
}

.group {
  padding: 22px 0 34px;
}

.group-title {
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.grid {
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-inline: auto;
}

.card {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.platform {
  margin-bottom: -4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.22;
}

.card p:not(.platform) {
  color: var(--muted);
}

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

.links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  outline: none;
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .topbar {
    justify-content: center;
    padding: 18px 0;
  }

  .hero {
    min-height: 200px;
    padding: 30px 0 24px;
  }

  .hero p {
    max-width: 620px;
    white-space: normal;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, var(--max));
  }

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