:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --line: rgb(0 0 0 / 0.09);
  --accent: #0a66d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --card: #1f1f22;
    --text: #f2f2f4;
    --muted: #a3a3ab;
    --line: rgb(255 255 255 / 0.1);
    --accent: #5aa2ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

header,
main,
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
}

main {
  padding-bottom: 40px;
}

section {
  margin-top: 24px;
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.25;
}

h2 {
  margin: 28px 0 8px;
  font-size: 19px;
}

h1 + p,
.meta {
  color: var(--muted);
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 4px;
}

.lang {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

footer {
  padding-bottom: 36px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 520px) {
  section {
    padding: 20px 18px;
  }

  h1 {
    font-size: 24px;
  }
}
