:root {
  --ink: #f7f7fb;
  --muted: #aaa9b5;
  --panel: #121216;
  --panel-soft: #1b1b21;
  --line: #33333d;
  --purple: #a855f7;
  --blue: #3b82f6;
  --page-width: 1200px;
  --reading-width: 820px;
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #010204;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: #1a1a1e;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-width), 100%);
  min-height: 71px;
  margin: 0 auto;
  padding: 14px 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name,
.footer-brand span {
  background: linear-gradient(90deg, var(--purple), var(--blue));
  color: transparent;
  font-size: 20px;
  font-weight: 800;
  -webkit-background-clip: text;
  background-clip: text;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 20px;
  border: 1px solid #fff;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible {
  border-color: var(--purple);
  color: #d8b4fe;
  transform: translateY(-1px);
}

.primary-nav__link--accent {
  border-color: transparent;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  font-weight: 700;
}

.primary-nav__link--accent:hover,
.primary-nav__link--accent:focus-visible {
  border-color: transparent;
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.content-shell {
  width: min(var(--page-width), calc(100% - 36px));
  margin: 0 auto;
}

.content-shell--narrow {
  width: min(var(--reading-width), calc(100% - 36px));
}

.section-kicker {
  margin-bottom: 8px;
  color: #c59af9;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: #c084fc;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid #24242c;
  background: #010204;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 30px;
  width: min(var(--page-width), calc(100% - 36px));
  min-height: 134px;
  margin: 0 auto;
  padding: 30px 0;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.footer-nav a {
  color: #c7b0e9;
  font-size: 14px;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: #8f8f99;
  font-size: 13px;
  text-align: center;
}

.article-hero {
  padding: 74px 18px 62px;
  background:
    radial-gradient(circle at 50% 10%, rgba(168, 85, 247, .22), transparent 38%),
    #08080d;
  text-align: center;
}

.article-hero__inner {
  width: min(var(--reading-width), 100%);
  margin: 0 auto;
}

.article-hero__eyebrow {
  margin-bottom: 10px;
  color: #c59af9;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
}

.article-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 52px);
}

.article-hero p:last-child {
  margin-bottom: 0;
  color: #c9c9d2;
}

.article-body {
  padding: 58px 0 76px;
  background: #f7f7fa;
  color: #24242b;
}

.article-body__inner {
  width: min(var(--reading-width), calc(100% - 36px));
  margin: 0 auto;
}

.article-body h2 {
  margin: 44px 0 14px;
  color: #15151b;
  font-size: 27px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 30px 0 10px;
  color: #2e2340;
  font-size: 20px;
}

.article-body p,
.article-body li {
  color: #4d4d58;
}

.article-body a {
  color: #6d28d9;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-note {
  margin: 30px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--purple);
  border-radius: 0 8px 8px 0;
  background: #eee9f7;
}

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

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 20px;
    border-top: 1px solid var(--line);
    background: #17171c;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .28);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav__link {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    min-height: 64px;
    padding: 10px 14px;
  }

  .site-footer__inner {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 40px 0;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .article-hero {
    padding: 56px 16px 48px;
  }

  .article-body {
    padding: 44px 0 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
