:root {
  color-scheme: dark;
  --bg: #080f14;
  --surface: #131a22;
  --text: #f3f5f7;
  --muted: #a9b4c2;
  --line: #2b3745;
  --accent: #ff8200;
  --notice: #131a22;
  --max: 860px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter,
    Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 15, 20, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.kx-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav nav {
  display: flex;
  gap: 22px;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.nav nav a:hover {
  color: var(--text);
}
.nav nav a.active {
  color: var(--accent);
}
.article {
  padding: 72px 0 88px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.article h1 {
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 680px;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 34px;
}
.notice {
  padding: 18px 20px;
  margin: 0 0 42px;
  border: 1px solid var(--line);
  background: var(--notice);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  font-size: 14px;
}
.article section {
  margin: 0 0 34px;
}
.article h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.article p {
  margin: 0 0 12px;
  font-size: 16px;
}
.article ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.article li {
  margin: 0 0 6px;
  font-size: 16px;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.article th,
.article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.article th {
  background: var(--surface);
  font-weight: 650;
}
.article a {
  color: var(--text);
  font-weight: 650;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.article a:hover {
  color: var(--accent);
}
.article h1,
.article h2,
.article strong {
  color: var(--text);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 26px 0;
  color: var(--muted);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer a {
  color: var(--muted);
  margin-left: 18px;
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}
@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }
  .nav {
    height: 58px;
  }
  .nav nav {
    gap: 15px;
  }
  .article {
    padding: 48px 0 60px;
  }
  .article h1 {
    font-size: 38px;
  }
  .lead {
    font-size: 17px;
  }
  .meta {
    line-height: 1.55;
  }
  .notice {
    padding: 16px;
    margin-bottom: 34px;
  }
  .article h2 {
    font-size: 20px;
  }
  .article p {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .article li {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .article section {
    margin-bottom: 29px;
  }
  footer .wrap {
    display: block;
  }
  footer a {
    margin: 0 18px 0 0;
    display: inline-block;
    margin-top: 8px;
  }
}
