:root {
  --paper: #f4f1ea;
  --ink: #1c1b17;
  --body: #3a3834;
  --muted: #6e6b64;
  --line: #e3ddd2;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "PMingLiU", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

::selection { background: #e4e0d4; }

.page {
  width: min(1080px, calc(100% - 96px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.source-link {
  color: var(--muted);
  font-size: 14px;
}

.source-link:hover { color: var(--ink); }

.source-link span { margin-left: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.98fr);
  align-items: center;
  gap: 12px 24px;
  flex: 1;
  align-content: center;
  padding: 8px 0 48px;
}

main { flex: 1; display: flex; flex-direction: column; }

p, h1, figure { margin: 0; }

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.lede {
  margin-top: 22px;
  color: var(--body);
  font-size: 18px;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 15px 18px 15px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.download:hover { background: #2c2a26; color: var(--paper); }

.download:active { transform: translateY(1px); }

.download-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.download-meta span { margin: 0 0.35em; }

.download-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-meta a:hover { color: var(--ink); }

.more {
  margin-top: 18px;
  color: var(--body);
  font-size: 15px;
}

.product { justify-self: center; }

.product img {
  display: block;
  width: 520px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .page { width: calc(100% - 40px); }
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 8px;
  }
  h1 { font-size: clamp(48px, 13vw, 68px); }
  .hero { padding-bottom: 28px; }
  .product { justify-self: center; }
  .product img { width: min(100%, 340px); margin: 16px auto 0; }
}

@media (max-width: 600px) {
  .header { min-height: 68px; }
  .download { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
