:root {
  color-scheme: dark;
  --bg: #101112;
  --ink: #f1efe9;
  --muted: #afaead;
  --line: #323334;
  --amber: #ffbd72;
  --sans: Inter, "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body, h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 5px; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip, .sr, .switcher input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { inset: 12px auto auto 12px; width: auto; height: auto; padding: 12px; background: var(--bg); clip-path: none; z-index: 5; }
.top { border-bottom: 1px solid var(--line); }
nav, .nav-links, .brand, .actions, .platform, .button, footer .wrap, footer .wrap > div { display: flex; align-items: center; }
nav, footer .wrap { justify-content: space-between; }
nav { min-height: 76px; }
.brand { gap: 10px; font-size: 1.48rem; font-weight: 680; letter-spacing: -.045em; }
.nav-links { gap: 28px; font-size: .92rem; color: #c5c5c1; }
.nav-links a:hover, footer a:hover, .text-link:hover { color: var(--amber); }
.repo { padding-left: 26px; border-left: 1px solid var(--line); }
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; position: relative; min-height: clamp(465px, 44vw, 620px); }
.intro { position: relative; z-index: 1; padding-block: 70px; }
.platform { gap: 10px; font-size: .94rem; color: #c4b6a4; letter-spacing: .025em; }
.windows { width: 1em; height: 1em; display: inline-block; flex: none; background: linear-gradient(to right, transparent 45%, var(--win-gap, var(--bg)) 45% 55%, transparent 55%), linear-gradient(to bottom, transparent 45%, var(--win-gap, var(--bg)) 45% 55%, transparent 55%), currentColor; }
h1 { font-size: clamp(2.65rem, 4.1vw, 4.15rem); font-weight: 720; letter-spacing: -.065em; line-height: 1.18; margin-block: 23px; }
h1 em { font-style: normal; color: var(--amber); }
.lead { max-width: 29em; font-size: 1.05rem; line-height: 1.85; color: #c4c3be; }
.actions { gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; gap: 11px; min-height: 47px; padding: 10px 21px; border-radius: 7px; font-weight: 660; font-size: 1rem; }
.primary { --win-gap: var(--amber); background: var(--amber); color: #251a0c; }
.primary:hover { --win-gap: #ffce95; background: var(--win-gap); }
.text-link { font-size: .94rem; text-decoration: underline; text-decoration-color: #777672; text-underline-offset: 5px; }
.meta { color: #a4a39e; font: .81rem/1.6 "IBM Plex Mono", Consolas, monospace; margin-top: 13px; }
.meta span[aria-hidden] { margin-inline: .3em; }
.hero-art { position: relative; margin: 0 -9% 0 -14%; pointer-events: none; }
.hero-art img { width: 100%; height: auto; display: block; mask-image: radial-gradient(ellipse 65% 70%, black 45%, transparent 91%); }
h2 { font-size: clamp(2rem, 3.1vw, 3.05rem); line-height: 1.2; letter-spacing: -.055em; font-weight: 660; }
.workspace { padding-block: 70px 80px; }
.section-head { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; }
.section-head p, .frame figcaption, .guide li p { color: var(--muted); line-height: 1.75; }
.showcase { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.switcher { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.switcher label { cursor: pointer; }
.switcher span { display: block; color: var(--muted); padding: 11px 19px; border-bottom: 2px solid transparent; font-weight: 560; }
.switcher :checked + span { border-color: var(--amber); color: var(--amber); }
.switcher label:hover span { color: var(--ink); }
.frame { display: none; }
.showcase:has(#task:checked) .task, .showcase:has(#diff:checked) .diff, .showcase:has(#merge:checked) .merge { display: block; }
.frame figcaption { padding: 17px 0; }
.frame a { display: block; overflow: hidden; border: 1px solid #494845; border-radius: 10px; }
.frame img { width: 100%; height: auto; display: block; }
.guide { border-top: 1px solid var(--line); display: grid; grid-template-columns: .86fr 1.14fr; gap: 32px; padding-block: 76px; }
.guide h2 { margin-bottom: 22px; }
.guide ol { margin: 0; padding-left: 1.6em; }
.guide li { padding: 0 0 23px 6px; }
.guide li:last-child { padding-bottom: 0; }
.guide li::marker { color: var(--amber); font: .95rem Consolas, monospace; }
.guide h3 { font-size: 1.17rem; font-weight: 640; margin-bottom: 5px; }
footer { border-top: 1px solid var(--line); }
footer .wrap { min-height: 78px; }
footer .brand { font-size: 1.1rem; }
footer .wrap > div { gap: 18px; color: var(--muted); font-size: .9rem; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero-layout { grid-template-columns: 1.25fr 1fr; min-height: 420px; }
  .hero-art { margin: 0 -18% 0 -22%; }
  h1 { font-size: clamp(2.3rem, 5.3vw, 3.1rem); }
  .guide { grid-template-columns: 1fr 1.3fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  nav { min-height: 62px; }
  .brand { font-size: 1.22rem; gap: 6px; }
  .brand img { width: 27px; height: auto; }
  .nav-links { gap: 14px; font-size: .875rem; }
  .repo { border: 0; padding: 0; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; }
  .intro { padding: 48px 0 0; }
  h1 { font-size: clamp(2.25rem, 8.5vw, 3rem); margin-block: 17px; }
  .lead { font-size: 1rem; }
  .actions { margin-top: 24px; gap: 18px; }
  .hero-art { margin: 2px -7px 6px; align-self: center; width: min(96%, 480px); }
  .hero-art img { max-height: 260px; object-fit: contain; }
  .workspace { padding-block: 42px; }
  .section-head { display: block; }
  .section-head p { margin-top: 10px; }
  .switcher span { padding: 10px 12px; }
  .showcase { margin-top: 15px; }
  .frame figcaption { font-size: .92rem; }
  .guide { grid-template-columns: 1fr; padding-block: 40px; }
  footer .wrap > div { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
