:root {
  color-scheme: light dark;
  --bg: #f4f2eb;
  --band: #ebe8de;
  --surface: #fffdf8;
  --ink: #18201c;
  --muted: #5b655f;
  --line: #d9d5c8;
  --brand: #15513f;
  --brand-hover: #1d6a52;
  --on-brand: #f6f3e4;
  --accent: #2f8f66;
  --code: #e6e2d5;
  --bar: #e9e7e1;
  --shadow: 0 1px 2px #1b261f14, 0 24px 48px -28px #1b261f55;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101412;
    --band: #151a17;
    --surface: #181e1b;
    --ink: #e8ebe6;
    --muted: #9ba59f;
    --line: #2b332f;
    --brand: #8fd6ae;
    --brand-hover: #a9e3c2;
    --on-brand: #0f2a1f;
    --accent: #79cfa0;
    --code: #1f2622;
    --bar: #252826;
    --shadow: 0 1px 2px #0006, 0 24px 48px -24px #000c;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; line-height: 1.7; }
h1, h2, h3, p, figure, ul, ol, dl, dd, pre { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .875em; }
:not(pre) > code { padding: .1em .35em; border-radius: 4px; background: var(--code); }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: .6rem 1rem; background: var(--surface); z-index: 10; }
.skip:focus { top: .5rem; }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.0625rem; letter-spacing: -.01em; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 1.6rem; font-size: .9375rem; }
.nav nav a, .foot nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover, .foot nav a:hover { color: var(--ink); }
.nav nav .repo { color: var(--ink); font-weight: 600; }
.nav nav .lang { padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: .875rem; }

.hero { padding-top: clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.kicker, .label { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
h1 { margin-top: .9rem; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 700; max-width: 18em; }
.lead { margin-top: 1.4rem; max-width: 40em; font-size: 1.0625rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.button:hover { border-color: var(--muted); }
.button.primary { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.fine { margin-top: .9rem; font-size: .875rem; color: var(--muted); }

.stage { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 3rem; }
.window { overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.titlebar { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; background: var(--bar); border-bottom: 1px solid var(--line); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { flex: 1; margin-right: 47px; text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); }
.hero-window { width: 88%; }
.popover { position: absolute; right: 0; bottom: 0; width: min(25%, 300px); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.note { padding-bottom: 1rem; font-size: .8125rem; color: var(--muted); }

.tour { padding-block: clamp(3rem, 7vw, 5.5rem); }
.row + .row { margin-top: clamp(4.5rem, 10vw, 8rem); }
.copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 6vw, 5rem); margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.text > p:first-child { margin-top: 1.6rem; }
h2 { margin-top: .5rem; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 1.0625rem; }
.text p, .pair p:not(.label) { margin-top: 1rem; color: var(--muted); }
.text .aside { padding-left: .9rem; border-left: 2px solid var(--line); font-size: .9375rem; }
.facts { margin-top: 1.2rem; padding: 0; list-style: none; font-size: .9375rem; }
.facts li { padding: .45rem 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }

.pair { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(4rem, 9vw, 7rem); padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1.6vw, 1.1rem); margin-top: 1.6rem; }
.cards img { border-radius: 6px; box-shadow: var(--shadow); }
.cards img:nth-child(2) { transform: translateY(1.2rem); }

.band { padding-block: clamp(3.5rem, 7vw, 5rem); background: var(--band); border-block: 1px solid var(--line); }
.intro { margin-top: .9rem; max-width: 46em; color: var(--muted); }
.table-wrap { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: .8rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .8125rem; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--band) 60%, var(--surface)); }
tbody th { font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }
td.none { color: var(--line); }

.privacy { padding-block: clamp(3.5rem, 7vw, 5rem); }
.privacy dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2rem; }
.privacy dt { font-weight: 600; }
.privacy dd { margin-top: .4rem; color: var(--muted); }

.start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.steps { margin-top: 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.1rem 2.4rem; color: var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: .8125rem; font-weight: 700; }
.steps strong { color: var(--ink); }
.start h3 { margin-top: .6rem; }
.start h3 + p { margin-top: .5rem; color: var(--muted); }
pre { margin-top: 1rem; padding: .9rem 1rem; overflow-x: auto; border-radius: 8px; background: var(--code); line-height: 1.6; }
.start details { margin-top: 1.4rem; }
.start details p { margin-top: .6rem; color: var(--muted); font-size: .9375rem; }
summary { cursor: pointer; font-weight: 600; }

.faq { padding-block: clamp(3.5rem, 7vw, 5rem); max-width: 820px; }
.faq h2 { margin-bottom: 1.4rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1rem 2rem 1rem 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .85rem; font-weight: 400; font-size: 1.25rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); }

.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }
.brand.small { font-size: .9375rem; }
.brand.small img { border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .875rem; }

@media (max-width: 860px) {
  .nav nav a:not(.repo):not(.lang) { display: none; }
  .copy, .pair, .start, .privacy dl { grid-template-columns: minmax(0, 1fr); }
  .text > p:first-child { margin-top: 0; }
  .hero-window { width: 100%; }
  .popover { display: none; }
  .stage { padding-bottom: 1.5rem; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .titlebar { height: 20px; padding: 0 8px; gap: 5px; }
  .titlebar i { width: 8px; height: 8px; }
  .titlebar span { display: none; }
  .cards img:nth-child(2) { transform: none; }
}
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { display: block; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, tbody td { display: block; padding: 0; border: 0; }
  tbody th { margin-bottom: .35rem; }
  tbody td { position: relative; padding: .15rem 0 .15rem 7.25rem; font-size: .875rem; }
  tbody td::before { content: attr(data-label); position: absolute; left: 0; width: 6.5rem; line-height: 1.6; color: var(--ink); opacity: .7; font-size: .8125rem; }
  td.none { color: var(--muted); }
}
