:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #25231e;
  --muted: #656057;
  --line: #d8d0c3;
  --accent: #923f30;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", STSong, SimSun, serif;
  --sans: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip {
  position: absolute;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .5rem 1rem;
  background: var(--paper);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: min(1260px, calc(100% - 100px)); margin-inline: auto; }
.masthead, .site-footer { display: flex; align-items: center; justify-content: space-between; }
.masthead { min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand strong { font: 700 1.45rem/1 var(--serif); }
.brand span { font: 700 .68rem/1 var(--mono); letter-spacing: .18em; color: var(--muted); }
nav, .footer-links { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.5rem); }
nav a, .footer-links a { font-size: .87rem; text-decoration: none; }
nav a:hover, .footer-links a:hover { color: var(--accent); }
.nav-install { padding: .42rem .8rem; border: 1px solid var(--line); border-radius: 4px; }
.nav-install span, .text-link span { margin-left: .22rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.36fr);
  gap: clamp(24px, 3.1vw, 46px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 100px) clamp(52px, 6vw, 84px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .14em;
}
.mono, .index-mark, .timeline-time { font-family: var(--mono); }
.index-mark { color: var(--accent); letter-spacing: .06em; }
.sun-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #b05c43;
  box-shadow: 0 0 0 4px #ead9c9;
}
.hero-kicker { gap: .85rem; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.045em; }
h1 { margin-top: 1.55rem; font-size: clamp(2.25rem, 4.3vw, 3.85rem); line-height: 1.24; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2.1rem, 4.1vw, 3.6rem); line-height: 1.25; }
.lede, .download-copy > p:not(.eyebrow) {
  max-width: 24em;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.35rem; margin-top: 1.9rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  min-height: 48px;
  padding: .68rem 1rem .68rem 1.2rem;
  border-radius: 5px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.button-primary { background: var(--ink); color: #fffaf0; }
.button-primary:hover { background: var(--accent); }
.text-link { font-size: .88rem; font-weight: 600; text-underline-offset: .27em; text-decoration-color: #a39684; }
.text-link:hover { color: var(--accent); }
.platform { margin-top: 1rem; color: var(--muted); font-size: .72rem; letter-spacing: .025em; }
.platform span { margin-inline: .2rem; }

.observatory {
  padding: clamp(12px, 1.55vw, 21px);
  border: 1px solid #d9cbb9;
  border-radius: 10px;
  background: linear-gradient(145deg, #f4eee4, #ece2d5);
  box-shadow: 0 22px 48px -33px #5a3d2a80;
}
.observatory-top, .figure-caption, .wallpaper figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
}
.observatory-top { margin-bottom: .85rem; }
.frame-mark {
  width: 13px;
  height: 11px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 45%, var(--accent) 45% 55%, transparent 55%);
}
.figure-index { color: var(--muted); font-size: .69rem; letter-spacing: .09em; }
.window-mat {
  overflow: hidden;
  border: 1px solid #453b38;
  border-radius: 5px;
  background: #222739;
  box-shadow: 0 8px 18px -11px #221916;
}
.window-mat img { width: 100%; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-top: .9rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #bb866a, #7e9fba 35%, #b4725b 66%, #34405f) 0 0 / 100% 3px no-repeat;
}
.timeline button {
  display: grid;
  justify-items: center;
  gap: .12rem;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0 .15rem .35rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .73rem;
  line-height: 1.4;
}
.timeline button:hover { background: #fffaf181; }
.timeline button[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.timeline-tick {
  width: 7px;
  height: 7px;
  margin: -2px 0 .24rem;
  border: 1px solid #6e6056;
  border-radius: 50%;
  background: #f4eee4;
}
button[aria-pressed="true"] .timeline-tick {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 2px #f4eee4;
}
.timeline-time { font-size: .81rem; letter-spacing: .035em; }
.figure-caption { margin-top: .6rem; color: var(--muted); font-size: .71rem; }
.figure-caption > :last-child { flex-shrink: 0; }

.features { border-top: 1px solid var(--line); padding-block: clamp(54px, 6vw, 85px) clamp(63px, 8vw, 115px); }
.section-head h2, .wallpaper h2, .download h2 { margin-top: .8rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 48px); margin-top: 2.7rem; }
.feature-grid article { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.feature-icon {
  display: block;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-grid h3 { margin-top: .8rem; font: 700 1.37rem/1.45 var(--serif); }
.feature-grid p, .wallpaper p:not(.eyebrow) { margin-top: .68rem; color: var(--muted); font-size: .94rem; line-height: 1.9; }

.wallpaper { background: #191f2b; color: #faf2e7; }
.wallpaper-inner {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.45fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(56px, 7vw, 102px);
}
.wallpaper .eyebrow, .wallpaper p:not(.eyebrow), .wallpaper figcaption { color: #c2c2c9; }
.wallpaper .index-mark { color: #efad92; }
.wallpaper p:not(.eyebrow) { max-width: 26em; margin-top: 1.15rem; }
.wallpaper figure { min-width: 0; }
.wallpaper img { width: 100%; border: 1px solid #505768; border-radius: 6px; box-shadow: 0 22px 40px -22px #090c14; }
.wallpaper figcaption { margin-top: .65rem; font-size: .73rem; }

.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 2rem clamp(30px, 7vw, 100px);
  padding-block: clamp(60px, 8vw, 112px);
}
.download .button { margin-top: 1.5rem; }
.install-card { padding: clamp(16px, 3vw, 35px); border: 1px solid var(--line); border-radius: 8px; background: #efe9df; }
.install-card p + p { margin-top: .8rem; }
.command {
  margin-block: .55rem .9rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  overflow-wrap: anywhere;
}
.command code { font: .86rem/1.55 var(--mono); }
.install-card .text-link { display: inline-block; margin-top: 1rem; }
.site-footer { flex-wrap: wrap; gap: .65rem 1.5rem; min-height: 85px; padding-block: 1rem; border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: .79rem; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
}

@media (max-width: 860px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 66px; }
  .hero, .wallpaper-inner, .download { grid-template-columns: 1fr; }
  .hero { gap: 2rem; padding-block: 45px; }
  h1 { font-size: clamp(2.35rem, 8.4vw, 3.85rem); }
  .lede { margin-top: 1rem; }
}

@media (max-width: 650px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.8rem; }
  .feature-grid article { display: grid; grid-template-columns: 42px 1fr; gap: .25rem .75rem; }
  .feature-icon { grid-row: span 2; }
  .feature-grid h3 { margin-top: .22rem; }
  .feature-grid p { margin-top: 0; }
}

@media (max-width: 390px) {
  .masthead .brand span { display: none; }
  .figure-caption { font-size: .65rem; }
}
