:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1b1f2a;
  --muted: #5c6475;
  --border: #dfe3ec;
  --accent: #2457d6;
  --accent-dark: #1d46ad;
  --code: #eef2ff;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}

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

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

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

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

main {
  padding: 40px 0 64px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 32px rgb(27 31 42 / 6%);
}

.hero h1,
article h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

article h2 {
  margin: 32px 0 8px;
  font-size: 20px;
}

article h2:first-of-type {
  margin-top: 24px;
}

article p,
article li {
  color: var(--text);
}

article ul {
  padding-left: 22px;
}

.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 24px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: var(--code);
  border-radius: 8px;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--code);
  font-size: 0.9em;
}

.lang-switch {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 14px;
}

hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

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

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 20px 0;
}

@media (max-width: 640px) {
  .hero,
  article {
    padding: 24px;
  }

  header.site .wrap {
    flex-wrap: wrap;
  }
}
