:root {
  --site-bg: #0b0a14;
  --site-fg: #f6f3ff;
  --site-accent: #ff7ac6;
  --site-on-accent: #1a1024;
  --site-surface: rgba(255, 255, 255, 0.06);
  --site-muted: #a9a3c2;
  --site-border: rgba(255, 255, 255, 0.12);
  --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Apple SD Gothic Neo", "PingFang SC", "Microsoft YaHei", sans-serif;
  --site-radius: 20px;
  --site-space: 1;
  --site-type: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: var(--site-bg);
  background-image:
    radial-gradient(60% 40% at 15% 0%, rgba(255, 122, 198, 0.18), transparent 70%),
    radial-gradient(50% 35% at 90% 15%, rgba(90, 200, 250, 0.14), transparent 70%),
    radial-gradient(45% 40% at 50% 100%, rgba(160, 120, 255, 0.12), transparent 70%);
  background-attachment: fixed;
  color: var(--site-fg);
  font-family: var(--site-font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: calc(28px * var(--site-space, 1)) calc(20px * var(--site-space, 1))
    calc(48px * var(--site-space, 1));
}

header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: calc(13px * var(--site-type, 1));
  color: var(--site-muted);
  text-transform: uppercase;
}

header .brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--site-accent);
  box-shadow: 0 0 18px var(--site-accent);
}

h1 {
  margin-top: calc(18px * var(--site-space, 1));
  font-size: calc(34px * var(--site-type, 1));
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  margin-top: calc(12px * var(--site-space, 1));
  font-size: calc(17px * var(--site-type, 1));
  color: var(--site-muted);
  max-width: 56ch;
}

nav.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: calc(24px * var(--site-space, 1));
}

nav.langs button {
  font: inherit;
  font-size: calc(14px * var(--site-type, 1));
  color: var(--site-fg);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

nav.langs button:hover {
  border-color: var(--site-accent);
}

nav.langs button[aria-pressed="true"] {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: var(--site-on-accent);
  font-weight: 600;
}

section.card {
  margin-top: calc(22px * var(--site-space, 1));
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius, 20px);
  padding: calc(22px * var(--site-space, 1)) calc(22px * var(--site-space, 1));
  backdrop-filter: blur(14px);
}

h2 {
  font-size: calc(20px * var(--site-type, 1));
  letter-spacing: -0.01em;
}

h3 {
  margin-top: calc(18px * var(--site-space, 1));
  font-size: calc(16px * var(--site-type, 1));
  color: var(--site-fg);
}

.card p,
.card li {
  color: var(--site-muted);
  font-size: calc(15px * var(--site-type, 1));
}

.card p {
  margin-top: calc(8px * var(--site-space, 1));
}

.card ul {
  margin-top: calc(10px * var(--site-space, 1));
  padding-left: 1.2em;
}

.card li + li {
  margin-top: 6px;
}

a {
  color: var(--site-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--site-accent);
}

a.button {
  display: inline-block;
  margin-top: calc(16px * var(--site-space, 1));
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--site-accent);
  color: var(--site-on-accent);
  font-weight: 600;
  font-size: calc(15px * var(--site-type, 1));
  border: none;
}

.muted {
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type, 1));
}

footer {
  margin-top: calc(30px * var(--site-space, 1));
  padding-top: calc(18px * var(--site-space, 1));
  border-top: 1px solid var(--site-border);
  color: var(--site-muted);
  font-size: calc(13px * var(--site-type, 1));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

[data-lang][hidden] {
  display: none;
}

@media (max-width: 420px) {
  h1 {
    font-size: calc(28px * var(--site-type, 1));
  }
}