:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --border: #e3e3e8;
  --accent: #2f5bea;
  --surface: #f5f5f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --fg: #ececf0;
    --muted: #9a9aa2;
    --border: #2c2c31;
    --accent: #8aa6ff;
    --surface: #1c1c20;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
}

.lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.lang a,
.lang span {
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.lang a {
  color: var(--muted);
}

.lang a:hover {
  color: var(--fg);
  background: var(--surface);
}

.lang [aria-current] {
  color: var(--fg);
  background: var(--surface);
  font-weight: 600;
}

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 36px 0 10px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

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

.lead {
  color: var(--muted);
  margin-bottom: 24px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
}

.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
}

section.intro + section.intro {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 8px;
}

.links {
  list-style: none;
  padding: 0;
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer.site .container {
  padding-top: 20px;
  padding-bottom: 32px;
}

footer.site p {
  margin: 0 0 6px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}

footer.site a {
  color: var(--muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 19px;
  }
}

.note p:last-child {
  margin-bottom: 0;
}
