:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --surface: #121513;
  --surface-strong: #181c19;
  --text: #f4f1eb;
  --muted: #a8afa9;
  --line: #2a302c;
  --accent: #70d6a0;
  --accent-soft: rgba(112, 214, 160, 0.12);
  --danger: #ffb4a7;
  --max: 760px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      circle at 88% -10%,
      rgba(112, 214, 160, 0.14),
      transparent 34rem
    ),
    var(--bg);
  font-size: 16px;
  line-height: 1.7;
}

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

a:hover {
  color: #9ae8bd;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--text);
}

main {
  padding: 68px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 18px;
  padding: 2px 10px;
  border: 1px solid rgba(112, 214, 160, 0.32);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 760;
}

h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

h3 {
  margin: 26px 0 8px;
  font-size: 17px;
}

.lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.card,
.section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.card {
  display: block;
  min-height: 176px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  border-color: rgba(112, 214, 160, 0.5);
}

.card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.card span {
  color: var(--muted);
}

.section {
  margin-top: 22px;
  padding: clamp(22px, 5vw, 38px);
}

.section p:last-child,
.section ul:last-child {
  margin-bottom: 0;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 1.25em;
}

li + li {
  margin-top: 8px;
}

.zh {
  color: var(--text);
}

.en {
  color: var(--muted);
}

.notice {
  border-color: rgba(112, 214, 160, 0.42);
  background: var(--accent-soft);
}

.warning {
  border-color: rgba(255, 180, 167, 0.34);
}

.warning h2 {
  color: var(--danger);
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 34px;
  padding-left: 46px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--surface-strong);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
  }

  .site-nav {
    gap: 14px;
  }

  main {
    padding-top: 48px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
