:root {
  color-scheme: light dark;
  --background: #f4f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #596579;
  --accent: #0969da;
  --border: #d8e0eb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #10141d;
    --surface: #181e29;
    --text: #eef3fa;
    --muted: #b4bfd0;
    --accent: #78b7ff;
    --border: #313b4a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

h1,
h2 {
  line-height: 1.2;
}

h2 {
  margin-top: 36px;
}

a {
  color: var(--accent);
}

.lead,
.muted {
  color: var(--muted);
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.links a {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
}

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 560px) {
  main {
    margin: 16px auto;
    padding: 24px;
    border-radius: 14px;
  }
}
