/* Wind download page. Tokens and type follow apps/web/src/app/globals.css. */
:root {
  color-scheme: light;
  --forest-950: #142820;
  --forest-800: #274538;
  --forest-700: #345747;
  --forest-200: #b9c8bd;
  --mist-50: #f3f2e9;
  --paper: #fbfaf3;
  --earth-700: #735943;
  --earth-300: #c7aa88;
  --ink: #213129;
  --muted: #5f6c65;
  --focus: #9b5f10;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  background: var(--mist-50);
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; overflow-x: clip; }
body { background: radial-gradient(circle at 92% 4%, rgb(199 170 136 / 0.2), transparent 26rem), var(--mist-50); }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 0.2rem solid var(--focus); outline-offset: 0.2rem; }
h1, h2 { font-family: Iowan Old Style, Palatino Linotype, "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", serif; line-height: 1.12; text-wrap: balance; }
h1 { margin: 0.4rem 0 1rem; font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 620; }
h2 { margin: 0.35rem 0 0.6rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.eyebrow { margin: 0; color: var(--earth-700); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.13em; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: 0.7rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 4.75rem; padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 5vw, 4rem) 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid rgb(20 40 32 / 0.12); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", Georgia, serif; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; color: #1b342a; }
.brand svg path { fill: none; stroke: #1b342a; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.site-header nav a { font-weight: 700; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

main { width: 100%; padding: clamp(1rem, 4vw, 3rem); display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.listen-scene { position: relative; min-height: clamp(30rem, 70vh, 42rem); overflow: hidden; border-radius: 1.7rem; background: radial-gradient(circle at 72% 18%, rgb(242 179 95 / 0.25), transparent 23rem), linear-gradient(135deg, #18382c, #596b60 60%, #9a7b5b); box-shadow: 0 1.5rem 4rem rgb(20 40 32 / 0.18); display: flex; align-items: flex-end; }
.horizon { position: absolute; left: -4%; right: -4%; top: 14%; width: 108%; height: 34%; pointer-events: none; }
.horizon path { fill: none; stroke: rgb(243 242 233 / 0.18); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.listen-copy { position: relative; z-index: 1; width: min(56rem, 100%); padding: clamp(1.5rem, 6vw, 4.5rem); color: var(--mist-50); }
.listen-copy .eyebrow { color: #e3d3bd; }
.lede { max-width: 34rem; margin: 0 0 1.75rem; color: #d7dfd7; font-size: clamp(1rem, 2.2vw, 1.15rem); }

.download-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.download { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3.25rem; padding: 0.8rem 1.4rem; border-radius: 0.9rem; font-weight: 780; font-size: 1.05rem; text-decoration: none; }
.download svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.download.primary { background: var(--paper); color: var(--forest-950); border: 1px solid var(--paper); }
.download.primary:hover { background: #fff; }
.download.secondary { background: transparent; color: var(--mist-50); border: 1px solid rgb(243 242 233 / 0.6); }
.download.pending { cursor: default; opacity: 0.85; }
.meta { margin: 0; color: #cdd7cf; font-size: 0.9rem; }
.ios-note { margin: 1.1rem 0 0; color: #b9c8bd; font-size: 0.88rem; }
.wechat-note { margin: 0 0 1.25rem; padding: 0.9rem 1rem; border-left: 0.25rem solid var(--earth-300); border-radius: 0.6rem; background: rgb(20 40 32 / 0.55); }
.wechat-note p { margin: 0.25rem 0 0; color: #e8ebe4; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.card { border: 1px solid rgb(20 40 32 / 0.13); border-radius: 1.25rem; background: rgb(251 250 243 / 0.96); box-shadow: 0 0.75rem 2rem rgb(20 40 32 / 0.08); }
.features .card { padding: clamp(1.25rem, 3vw, 1.75rem); }
.features .card p:last-child { margin-bottom: 0; color: var(--muted); }

.install { padding: clamp(1.25rem, 4vw, 2.25rem); }
.install h2 { margin-top: 0; }
.install ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.install li { margin-block: 0.5rem; }
.install details { padding-top: 1rem; border-top: 1px solid rgb(20 40 32 / 0.12); color: var(--muted); }
.install summary { cursor: pointer; font-weight: 720; color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.hash { display: block; padding: 0.6rem 0.75rem; border-radius: 0.6rem; background: rgb(20 40 32 / 0.06); overflow-wrap: anywhere; color: var(--ink); }

.site-footer { padding: 2rem clamp(1rem, 5vw, 4rem) max(2rem, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgb(20 40 32 / 0.12); color: var(--muted); font-size: 0.87rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; }

@media (max-width: 34rem) {
  .download { width: 100%; }
  .horizon { top: 8%; height: 26%; }
}
@media (prefers-reduced-motion: no-preference) {
  .listen-scene { animation: calm-drift 12s ease-in-out infinite alternate; background-size: 120% 120%; }
  @keyframes calm-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
}
.meta.spaced { margin-top: 0.9rem; }
