:root {
  --bg: #f4f5f1;
  --surface: #fbfcf9;
  --surface-strong: #ffffff;
  --ink: #1d2825;
  --muted: #74807a;
  --line: rgba(29, 40, 37, .13);
  --accent: #527565;
  --accent-ink: #244d3c;
  --soft: #e6eee5;
  --shadow: 0 24px 70px rgba(34, 53, 43, .09);
  --radius: 24px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #151c22;
  --surface: #1b252c;
  --surface-strong: #202d34;
  --ink: #e7eee9;
  --muted: #9aa9a2;
  --line: rgba(231, 238, 233, .14);
  --accent: #91bba3;
  --accent-ink: #c0e1c7;
  --soft: #26392f;
  --shadow: 0 24px 70px rgba(0, 0, 0, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.6;
  transition: color .25s ease, background .25s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 28px; height: 28px; display: block; overflow: hidden; border-radius: 9px; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-dot { color: var(--accent); }
.site-nav { display: flex; gap: 30px; margin-left: auto; margin-right: 28px; color: var(--muted); font-size: 13px; font-weight: 600; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--ink); }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.theme-toggle:hover { color: var(--ink); background: var(--surface-strong); border-color: var(--accent); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
.hero { max-width: 780px; padding: 96px 0 104px; }
.eyebrow { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.5; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 620px; margin-bottom: 22px; font-size: clamp(40px, 5.5vw, 70px); font-weight: 680; letter-spacing: -.055em; line-height: 1.08; }
h1 em { color: var(--accent); font-style: normal; }
.hero-lede { max-width: 520px; margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { background: var(--accent); }
.button-primary { color: #f2f8ed; background: var(--accent-ink); }
.button-primary:hover { background: var(--accent); }
.button-quiet { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button-quiet:hover { border-color: var(--accent); color: var(--accent-ink); }
.section { padding: 90px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 11px; }
h2 { margin-bottom: 0; font-size: 40px; font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.section-intro { max-width: 280px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.8; text-align: right; }
.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 78px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--accent); }
.footer-caption { opacity: .7; }

@media (max-width: 800px) {
  .page-shell { width: min(100% - 32px, 620px); }
  .site-header { height: 68px; }
  .site-nav { gap: 14px; margin-right: 12px; }
  .hero { padding: 50px 0 60px; }
  .section { padding: 60px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-intro { text-align: left; }
  .site-footer { gap: 10px; flex-wrap: wrap; padding: 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 460px) {
  .site-header { gap: 10px; }
  .site-nav { display: flex; gap: 12px; margin: 0 0 0 auto; font-size: 11.5px; }
  .theme-toggle { flex: none; width: 42px; height: 42px; }
  .hero { padding: 40px 0 52px; }
  .eyebrow { margin-bottom: 12px; font-size: 12px; }
  h1 { font-size: clamp(42px, 12vw, 50px); letter-spacing: -.06em; line-height: 1.04; }
  h1 em { white-space: nowrap; }
  h2 { font-size: 32px; }
  .hero-lede { max-width: 326px; margin-bottom: 24px; font-size: 13px; line-height: 1.8; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .button { justify-content: center; min-width: 138px; min-height: 46px; }
  .section { padding: 46px 0 52px; }
  .section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 18px; margin-bottom: 24px; }
  .section-intro { margin-bottom: 1px; font-size: 12px; line-height: 1.7; text-align: right; }
  .site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 16px; min-height: 0; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); }
  .site-footer > span:first-child { grid-column: 1; grid-row: 1; }
  .footer-caption { grid-column: 1; grid-row: 2; width: auto; text-align: left; }
  .site-footer > a { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}


/* The orbital scene shares the page's surface, type and spacing. */
:root {
  --track-color: #6f977b;
  --track-active-color: #397955;
  --planet-outline: #edf4e9;
  --sun-light: #fefef9;
  --sun-mid: #e4eddf;
  --sun-dark: #c4d7c4;
  --sun-text: #365744;
  --button-ink: #f2f8ed;
}
:root[data-theme="dark"] {
  --track-color: #8ab99d;
  --track-active-color: #b1ecc6;
  --planet-outline: #c4e2d0;
  --sun-light: #accbb2;
  --sun-mid: #70937e;
  --sun-dark: #344e45;
  --sun-text: #ecf5e9;
  --button-ink: #203b2c;
}
.button-primary, .brand-mark { color: var(--button-ink); }
.section-spaces { padding-bottom: 82px; }
.orbit-stage {
  --track-color: #95a5b2;
  --track-active-color: #546e87;
  --track-blue: #819bae;
  --track-blue-active: #4f7490;
  --track-silver: #b9c7d1;
  --track-silver-active: #8299ac;
  --track-edge: #82949f;
  --track-edge-active: #697f90;
  --planet-outline: #ccdae4;
  --sun-light: #d7e5ef;
  --sun-mid: #516a81;
  --sun-dark: #182939;
  --sun-text: #f1f5f7;
  position: relative;
  height: 530px;
  margin: -8px 0 8px;
  isolation: isolate;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
[data-theme="dark"] .orbit-stage {
  --track-color: #70818e;
  --track-active-color: #c5d6e4;
  --track-blue: #6d8fa8;
  --track-blue-active: #a9d3f1;
  --track-silver: #9aafbc;
  --track-silver-active: #f6fbff;
  --track-edge: #879daa;
  --track-edge-active: #d3e3ed;
  --planet-outline: #b5ccdd;
  --sun-light: #adc5d8;
  --sun-mid: #4c647c;
  --sun-dark: #162330;
  --sun-text: #eff5fa;
}
.orbit-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: none;
}
.orbit-stage.is-dragging, .orbit-stage.is-dragging * { cursor: grabbing; }
.orbit-svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.svg-track { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 1.1; }
.svg-track-back,
.svg-track-front {
  stroke: url(#track-fade);
  stroke-width: calc(1.05px + var(--track-emphasis, 0) * 1.35px);
}
.track-stop-0 { --track-tint: var(--track-edge); --track-lit: var(--track-edge-active); }
.track-stop-1 { --track-tint: var(--track-blue); --track-lit: var(--track-blue-active); }
.track-stop-2 { --track-tint: var(--track-silver); --track-lit: var(--track-silver-active); }
.track-stop { stop-color: color-mix(in srgb, var(--track-tint), var(--track-lit) calc(var(--track-emphasis, 0) * 100%)); }
.svg-planet-body { stroke: var(--planet-outline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.svg-planet-icon { opacity: .86; }
.svg-planet-shade { fill: url(#planet-shade); }
.svg-planet-rim { fill: none; stroke: var(--planet-outline); stroke-width: 1; vector-effect: non-scaling-stroke; }
.svg-planet-aura { fill: var(--track-blue-active); opacity: calc(var(--planet-focus, 0) * .16); }
.svg-planet-focus {
  fill: none;
  stroke: var(--track-blue-active);
  stroke-width: 1;
  opacity: calc(var(--planet-focus, 0) * .38);
  vector-effect: non-scaling-stroke;
}
.svg-planet.is-focused .svg-planet-body { stroke-width: 1.5; }
.svg-planet.is-focused .svg-planet-rim { stroke-width: 1.5; }
.svg-planet.is-focused .svg-planet-focus { stroke-width: .055; opacity: .8; }
.svg-planet-highlight { fill: #f6fbff; opacity: .16; filter: blur(.06px); }
.svg-sun { pointer-events: none; }
.sun-stop-light { stop-color: var(--sun-light); }
.sun-stop-mid { stop-color: var(--sun-mid); }
.sun-stop-dark { stop-color: var(--sun-dark); }
.svg-sun-glow { fill: var(--track-blue-active); opacity: .04; }
.svg-sun-halo { fill: none; stroke: var(--track-color); stroke-width: .7; opacity: .22; }
.svg-sun-body { stroke: var(--planet-outline); stroke-width: 1; }
.svg-sun-kicker, .svg-sun-title { fill: var(--sun-text); text-anchor: middle; }
.svg-sun-kicker { font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .15em; }
.svg-sun-title { font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 18px; }
.planet-targets { position: absolute; inset: 0; pointer-events: none; }
.planet-target {
  position: absolute;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y pinch-zoom;
}
.planet-target.is-private { opacity: .72; }
.planet-target.is-private.is-focused { opacity: 1; }
.planet-target:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.planet-label {
  position: absolute;
  left: 50%;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.45;
}
.planet-label strong { color: var(--ink); font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.planet-label small { color: var(--muted); font-size: 11px; }
.planet-target.is-focused strong { color: var(--accent-ink); }
.orbit-hint {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .03em;
  text-align: center;
  pointer-events: none;
}
.hint-mobile { display: none; }
.space-detail {
  max-width: 690px;
  min-height: 140px;
  margin: 4px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.detail-index { color: var(--accent); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; }
.detail-main { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 10px; }
.detail-main h3 { margin-bottom: 7px; color: var(--ink); font-size: 23px; letter-spacing: -.045em; }
.detail-main p { max-width: 470px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.detail-link {
  flex: 0 0 auto;
  padding: 10px 0 10px 12px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.detail-link:hover { color: var(--accent); }

@media (max-width: 800px) {
  .orbit-stage { height: 430px; }
  .section-spaces { padding-bottom: 60px; }
  .space-detail { max-width: none; }
  .detail-main { align-items: start; flex-direction: column; gap: 8px; }
  .detail-link { padding: 10px 0; }
}
@media (max-width: 500px) {
  .orbit-stage { height: 360px; margin-top: -8px; }
  .orbit-stage::before { inset: 0 -12px; }
  .planet-label { width: 106px; }
  .planet-label strong { font-size: 12px; }
  .planet-label small { font-size: 10px; }
  .svg-sun-kicker { font-size: 7px; }
  .svg-sun-title { font-size: 14px; }
  .svg-sun-glow { opacity: .025; }
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}

@media (max-width: 360px) {
  .brand { gap: 8px; font-size: 12.5px; }
  .site-nav { gap: 9px; font-size: 11px; }
  .section-heading { gap: 12px; }
  .section-intro { font-size: 11px; }
  .orbit-stage { height: 380px; }
  .planet-label { width: 88px; }
  .planet-label strong { font-size: 11px; }
  .planet-label small { display: none; }
}

/* The compact, individually colored galaxy. */
.orbit-stage { height: 570px; background: none; }
.orbit-stage::before { content: none; }
.orbit-svg { overflow: visible; }
.galaxy-orbit { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.galaxy-label { color: var(--ink); fill: var(--ink); font-family: inherit; font-size: 12px; letter-spacing: .03em; text-anchor: middle; }
.galaxy-center { fill: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .2em; text-anchor: middle; }
.galaxy-orbit-hit { fill: none; stroke: transparent; stroke-width: 16px; pointer-events: stroke; vector-effect: non-scaling-stroke; cursor: pointer; }
.galaxy-planet-target {
  position: absolute; display: block; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; padding: 0; background: transparent; box-shadow: none;
  pointer-events: auto; cursor: pointer; color: var(--ink); touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}
.galaxy-planet-target::before {
  content: ""; position: absolute; inset: 2px; border: 1px solid currentColor;
  border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.galaxy-planet-target:hover::before { opacity: .20; }
.galaxy-planet-target:focus-visible { outline: none; }
.galaxy-planet-target:focus-visible::before { opacity: .70; }
.galaxy-planet-caption {
  position: absolute; left: calc(50% + var(--caption-x, 0px)); top: calc(50% + var(--caption-offset));
  transform: translateX(-50%); white-space: nowrap; font-weight: 400; line-height: 1.4;
  pointer-events: auto; transition: left .16s ease, top .16s ease;
}
@media (max-width: 500px) {
  .orbit-stage { height: 430px; }
  .galaxy-label { font-size: 10px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .galaxy-planet-target::before, .galaxy-planet-caption { transition: none; }
}
