:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #25272b;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: #315da8;
}

.page {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #e5e7eb;
}

.brand {
  color: #25272b;
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: #555b64;
  font-size: 14px;
  text-decoration: none;
}

nav a:hover,
a:hover {
  text-decoration: underline;
}

main {
  min-height: calc(100vh - 150px);
}

.home {
  max-width: 650px;
  padding: 70px 0 90px;
}

h1 {
  margin: 0 0 12px;
  color: #202329;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h2 {
  margin: 30px 0 8px;
  color: #292c32;
  font-size: 20px;
  line-height: 1.4;
}

p,
li {
  color: #50555e;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0f2f5;
  color: #282b30;
  font-size: 0.92em;
}

.button {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 5px;
  background: #315da8;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.button:hover {
  background: #254b8d;
  text-decoration: none;
}

.document {
  max-width: 700px;
  padding: 48px 0 80px;
}

.document h1 {
  font-size: 34px;
}

.document h2 {
  margin-top: 28px;
  font-size: 18px;
}

.document .updated {
  margin-top: 0;
  color: #777d86;
  font-size: 13px;
}

footer {
  min-height: 68px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
  color: #737982;
  font-size: 13px;
}

footer nav a {
  font-size: 13px;
}

@media (max-width: 540px) {
  .page {
    width: min(100% - 30px, 820px);
  }

  header,
  footer {
    align-items: flex-start;
  }

  header {
    flex-direction: column;
    gap: 10px;
  }

  nav {
    gap: 15px;
  }

  .home {
    padding: 48px 0 65px;
  }

  .document {
    padding-top: 36px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}
