@font-face {
  font-family: "Instrument Sans";
  src: url("/media/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f8f3;
  --white: #fff;
  --ink: #162f31;
  --muted: #455f5d;
  --teal: #21636a;
  --line: #c9dad3;
  --night: #163b3a;
  font-family: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: var(--white);
}

.skip:not(:focus) { transform: translateY(-160%); }
.shell { width: min(1312px, 100% - 2 * clamp(18px, 5vw, 78px)); margin-inline: auto; }

.header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.05em;
  text-decoration: none;
}

.header nav, .header-links, .footer-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2.6rem);
}

.header-links { justify-self: end; gap: clamp(.7rem, 2vw, 1.45rem); }
.header nav a, .header-links a, .footer a { color: var(--ink); font-weight: 600; }
.header nav a, .header-links a { text-decoration: none; font-size: .92rem; }
.header nav a:hover, .header-links a:hover { text-decoration: underline; }

.github {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .5rem .95rem;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 90%, #d0e4da 0%, transparent 58%),
    linear-gradient(112deg, var(--paper) 36%, #e6f0e8);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  gap: clamp(26px, 4.1vw, 64px);
  align-items: center;
  min-height: 638px;
  padding-block: clamp(54px, 8vw, 120px);
}

h1, h2, p, dl, dd, figure { margin: 0; }

h1 {
  font-size: clamp(2.65rem, 5.35vw, 5rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -.044em;
}

:lang(zh-CN) h1 { letter-spacing: -.045em; line-height: 1.16; word-spacing: .05em; }
.punctuation { color: var(--teal); }

.intro {
  max-width: 34ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.2vw, 1.17rem);
  line-height: 1.7;
}

:lang(zh-CN) .intro { max-width: 22em; }

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: fit-content;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  min-height: 47px;
  padding: .7rem .9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover { background: #174e52; }
.download-note { margin-top: .8rem; color: var(--muted); font-size: .86rem; line-height: 1.55; }

.demo-frame {
  overflow: hidden;
  border: 1px solid #92b2a8;
  border-radius: 15px;
  background: #ddeae7;
  box-shadow: 0 22px 55px #193e371f, 0 3px 8px #193e3715;
}

.demo-frame img { width: 100%; height: auto; }

.demo figcaption {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.demo button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: none;
  padding: 0 0 .27rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--teal);
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}

.play-icon {
  width: .63rem;
  height: .68rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.demo button[aria-pressed="true"] .play-icon { clip-path: none; transform: scale(.84); }

.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr);
  gap: clamp(1.8rem, 5vw, 6.5rem);
  align-items: start;
}

.examples, .purpose .split, .start { padding-block: clamp(56px, 7.5vw, 104px); }

h2 {
  font-size: clamp(2rem, 3.4vw, 3.65rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -.04em;
}

.scenes { border-top: 1px solid var(--line); }

.scenes > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr);
  gap: 1rem;
  padding: 1.25rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.scenes dt { font-size: 1.06rem; font-weight: 700; line-height: 1.47; }
.scenes dd { color: var(--muted); font-size: .98rem; line-height: 1.65; }

.purpose { background: var(--night); color: #f4faf6; }
.purpose p { max-width: 47ch; font-size: clamp(1.14rem, 1.7vw, 1.36rem); line-height: 1.65; }
.purpose .privacy { margin-top: 1.4rem; color: #c2d8d0; font-size: .94rem; }

.start ol {
  display: grid;
  gap: .65rem;
  margin: 0 0 1.35rem;
  padding-inline-start: 1.3rem;
  color: var(--muted);
  line-height: 1.65;
}

.start li::marker { color: var(--teal); font-weight: 700; }
.start code {
  padding: .12rem .27rem;
  border-radius: 3px;
  background: #e6efe8;
  color: var(--ink);
  font-size: .85em;
  overflow-wrap: anywhere;
}
.docs-link { font-weight: 700; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .9rem 2rem;
  padding-block: 1.45rem 1.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.footer-links { gap: 1.2rem; }

@media (max-width: 980px) {
  .hero-inner { min-height: auto; gap: 1.5rem; }
  .downloads { gap: 7px; }
  .button { padding-inline: .7rem; }
}

@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 64px; }
  .header nav { display: none; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-inner { align-items: start; gap: 2.1rem; padding-block: 2.75rem 2.15rem; }
  h1 { font-size: clamp(2.75rem, 10vw, 4.1rem); }
  .intro { margin-top: 1.1rem; }
  .downloads { margin-top: 1.35rem; }
  .demo-frame { border-radius: 11px; }
  .scenes > div { padding-block: 1rem; }
  .examples h2 br { display: none; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.38rem; gap: .48rem; }
  .brand img { width: 32px; height: 32px; }
  .github { min-height: 36px; padding-inline: .62rem; }
  .downloads { width: 100%; }
  .button { padding-inline: .5rem; font-size: .85rem; }
  .scenes > div { grid-template-columns: 1fr; gap: .34rem; }
}
