:root {
  color-scheme: light;
  --paper: #f6f4eb;
  --ink: #172822;
  --muted: #485b50;
  --line: #cbd2c5;
  --green: #234c3d;
  --pale: #e8eee4;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #487865; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(1180px, 100% - 4rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .5rem; background: var(--paper); }
.skip:focus { top: 1rem; z-index: 2; }

.top {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: .8rem; font-weight: 700; text-decoration: none; }
.mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: .36rem;
  display: inline-grid;
  place-items: center;
  background: var(--green);
}
.mark::after { content: ''; width: .62rem; height: .52rem; border: 1px solid var(--paper); border-top: 3px solid var(--paper); border-radius: 2px; }
nav { display: flex; align-items: center; gap: 1.6rem; font-size: .92rem; color: var(--muted); }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.languages { display: inline-flex; gap: .15rem; padding: .2rem; border: 1px solid var(--line); border-radius: .5rem; white-space: nowrap; }
.languages a { padding: .2rem .5rem; border-radius: .3rem; }
.languages [aria-current="page"] { background: var(--green); color: #fff; font-weight: 650; }

.hero {
  display: grid;
  grid-template-columns: .87fr 1.13fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; line-height: 1.03; }
h1 { font-size: clamp(3.4rem, 6.3vw, 6.1rem); }
h2 { font-size: clamp(2.2rem, 4.1vw, 3.75rem); }
h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -.02em; }
html:lang(zh-CN) { --serif: Georgia, 'Songti SC', 'Noto Serif CJK SC', serif; }
html:lang(zh-CN) h1 { font-size: clamp(3rem, 5.6vw, 5.1rem); }
html:lang(zh-CN) :is(h1, h2) { letter-spacing: -.025em; }
.lead { max-width: 30rem; font-size: clamp(1rem, 2.1vw, 1.19rem); color: var(--muted); margin-block: 1.25rem 1.75rem; }
.button { display: inline-flex; align-items: center; gap: 1rem; min-height: 46px; padding: .65rem 1rem; color: #fff; background: var(--green); border-radius: .35rem; font-weight: 650; text-decoration: none; }
.button:hover { background: #153a2d; }

.preview { overflow: hidden; background: #f1f4ec; border: 1px solid #b8c6ba; border-radius: .75rem; box-shadow: 0 24px 58px #2545371a; }
.preview img { width: 100%; }
figcaption { padding: .65rem .85rem; color: var(--muted); border-top: 1px solid #e3e8e2; font-size: .79rem; }

.workflow { background: var(--pale); padding-block: clamp(3rem, 7vw, 5.6rem); border-block: 1px solid #d5dfd3; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); margin-top: 2.2rem; }
.steps article { border-top: 1px solid #a8b8aa; padding-top: 1.15rem; }
.command { margin-bottom: .65rem; }
code { font: .86em 'IBM Plex Mono', ui-monospace, monospace; }
.command code { border-radius: .25rem; background: #d9e6d7; color: #244d3b; padding: .22rem .45rem; }
.steps article > p:last-child, .release p { color: var(--muted); margin-top: .55rem; max-width: 36ch; }

.release { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; padding-block: clamp(3rem, 7vw, 5rem); }
.release > div:last-child { align-self: end; }
.footer { border-top: 1px solid var(--line); padding-block: 1.25rem 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--muted); font-size: .82rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .desktop-break { display: none; }
}
@media (max-width: 570px) {
  .shell { width: calc(100% - 2rem); }
  .top { align-items: flex-start; flex-direction: column; justify-content: center; gap: .55rem; min-height: 92px; }
  nav { flex-wrap: wrap; gap: .45rem 1rem; }
  .hero { padding-block: 3rem; gap: 2rem; }
  h1 { font-size: clamp(2.9rem, 10.5vw, 3.7rem); }
  .steps, .release { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
