:root {
  color-scheme: light;
  --paper: #f8faf7;
  --ink: #1b1e1b;
  --muted: #5f685f;
  --line: #d7dfd1;
  --panel: #ffffff;
  --accent: #147d64;
  --accent-strong: #0d5548;
  --warm: #f2c14e;
  --code: #101510;
  --code-ink: #e9f2e6;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(20, 125, 100, 0.08), rgba(248, 250, 247, 0) 360px),
    var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

button,
code,
pre {
  font: inherit;
}

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

.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 760;
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--warm);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 2.6rem;
  line-height: 1;
}

h2 {
  font-size: 1.05rem;
  line-height: 1.25;
}

section {
  margin-top: 22px;
}

.quick-start,
.mirror-section {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.94rem;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

code {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.command-row code,
pre {
  min-width: 0;
  margin: 0;
  padding: 13px 14px;
  border-radius: 7px;
  background: var(--code);
  color: var(--code-ink);
  font-size: 0.9rem;
}

button {
  min-width: 76px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: #fff;
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}

button:hover,
button:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.registry-section {
  padding: 8px 0 0;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.registry-grid article {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.registry-grid strong {
  font-size: 0.92rem;
}

.registry-grid code {
  color: var(--muted);
  font-size: 0.83rem;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.82rem;
}

footer span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 620px);
    padding-top: 28px;
  }

  .masthead,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 2.1rem;
  }

  .quick-start,
  .mirror-section {
    padding: 16px;
  }

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

  button {
    width: 100%;
  }

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