@font-face { font-family: 'ZCOOL XiaoWei Xunshu'; src: url('./fonts/zcool-xiaowei-xunshu.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  color-scheme: dark;
  --void: #080b10; --surface: #10151d; --raised: #171e28;
  --ink: #e8e9e7; --muted: #a2abb8; --line: #2b3340; --accent: #dac7a5;
  --danger: #eea6a6; --success: #a7c9b6;
  --sans: 'PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif;
  --serif: 'Songti SC','Noto Serif SC',Georgia,serif;
  --logo: 'ZCOOL XiaoWei Xunshu',var(--serif);
  --gutter: clamp(1.25rem,5vw,5rem); --width: 1280px;
  --ease: cubic-bezier(.22,1,.36,1);
}
html[data-theme='light'] { color-scheme: light; --void: #edf0f0; --surface: #e4e8ea; --raised: #f7f8f8; --ink: #202832; --muted: #546170; --line: #c0c9d0; --accent: #725b39; --danger: #a52c35; --success: #2a6550; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; scrollbar-color: var(--line) var(--void); }
body { margin: 0; background: var(--void); color: var(--ink); font: 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button,input,textarea,select { font: inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .25em; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
::selection { background: var(--accent); color: var(--void); }
:where(a,button,input,textarea,select):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
:where(main,section,header,h1,h2)[tabindex='-1']:focus { outline: none; }
h1,h2,h3,p { overflow-wrap: anywhere; }
h1,h2,h3 { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 40; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--ink); color: var(--void); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.cosmos-header,.cosmos-main,.cosmos-footer { width: min(100%,var(--width)); margin-inline: auto; padding-inline: var(--gutter); }
.cosmos-header { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cosmos-brand { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .22em; }
.singularity-mark { display: inline-block; width: 1.65rem; height: 1.65rem; border: 1px solid var(--accent); border-radius: 50%; position: relative; }
.singularity-mark::after { content: ''; position: absolute; top: 45%; left: -25%; width: 150%; height: 18%; border: 1px solid var(--accent); border-radius: 50%; transform: rotate(-22deg); }
.theme-switch { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.theme-switch::before { content: ''; position: absolute; inset: 1px; border: 1px solid currentColor; border-radius: 50%; opacity: 0; transform: scale(.82); transition: opacity 260ms ease,transform 350ms var(--ease); pointer-events: none; }
.theme-switch:hover::before { opacity: .18; transform: scale(1); }
.theme-switch__mark { --eclipse-angle: -32deg; position: relative; display: block; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; transform: rotate(var(--eclipse-angle)); transition: transform 560ms var(--ease); }
.theme-switch__disc { position: absolute; inset: 3px; overflow: hidden; border-radius: 50%; background: currentColor; }
.theme-switch__disc::after { content: ''; position: absolute; top: -3px; left: 7px; width: 19px; height: 19px; border-radius: 50%; background: var(--void); transition: background-color 420ms ease; }
html[data-theme='light'] .theme-switch__mark { --eclipse-angle: 148deg; }
.theme-switch:hover .theme-switch__mark { transform: rotate(calc(var(--eclipse-angle) + 12deg)) scale(1.05); }
.horizon { position: relative; min-height: clamp(27rem,41vw,34rem); display: flex; align-items: center; isolation: isolate; }
.horizon__scene { position: absolute; z-index: -1; top: 0; bottom: 0; right: -6%; width: 86%; mask-image: linear-gradient(90deg,transparent,#000 17%); }
.horizon__scene canvas { width: 100%; height: 100%; display: block; }
.horizon__copy { position: relative; width: 42%; padding-bottom: 1.5rem; pointer-events: none; }
/* Align the visible glyph edge with the copy; the logo font has a .105em left bearing. */
.horizon h1 { margin: 0; font: 400 clamp(5rem,8.7vw,7.5rem)/1.15 var(--logo); letter-spacing: .035em; transform: translateX(-.105em); }
.horizon__copy p { margin: 1.8rem 0 0; max-width: 22em; font: 1.125rem/1.9 var(--serif); color: var(--muted); }
.quote-phrase { display: block; }
.horizon__scene { pointer-events: none; }
.section-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 2.5rem; border-bottom: 1px solid var(--line); background: var(--void); }
.section-nav a { position: relative; display: inline-flex; align-items: center; min-height: 3.5rem; color: var(--muted); font-size: 1rem; text-decoration: none; transition: color 180ms ease; }
.section-nav a::after { content: ''; position: absolute; inset: auto 0 -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.section-nav a:hover,.section-nav a[aria-current] { color: var(--ink); }
.section-nav a:hover::after,.section-nav a[aria-current]::after { transform: scaleX(1); }
.collection-section { padding-top: clamp(2.5rem,5vw,4.5rem); scroll-margin-top: 4rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.75rem; }
.section-heading h2 { margin: 0; font: 400 clamp(1.6rem,2.5vw,2.25rem)/1.4 var(--serif); }
.section-heading p { margin: 0; font-size: .875rem; color: var(--muted); }
.play-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.play-card { display: block; min-width: 0; text-decoration: none; }
.play-card__art { display: block; overflow: hidden; aspect-ratio: 3/2; background: var(--surface); border-radius: 4px; }
.play-card__art img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 500ms var(--ease); }
.play-card__info { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem 1rem; padding-top: 1.1rem; }
.play-card__info h3 { margin: 0; font-size: clamp(1.125rem,1.7vw,1.375rem); font-weight: 400; }
.play-card__info p { margin: 0; grid-column: 1/-1; font-size: .875rem; color: var(--muted); }
.play-card__arrow { width: 18px; height: 18px; align-self: center; color: var(--muted); }
.music-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem,6vw,6rem); padding-top: clamp(2.5rem,5vw,4.5rem); margin-top: clamp(3rem,6vw,5rem); border-top: 1px solid var(--line); }
.music-section .section-heading { display: block; }
.music-section .section-heading p { margin-top: 1rem; max-width: 18em; line-height: 1.9; }
.music-library { min-width: 0; }
.track-row { display: grid; grid-template-columns: 72px minmax(0,1fr) 24px; align-items: center; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: border-color 180ms ease; }
.track-row:first-child { padding-top: 0; }
.track-art { position: relative; display: grid; place-items: center; width: 72px; aspect-ratio: 1; background: var(--surface); overflow: hidden; border-radius: 3px; }
.track-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.record-symbol { width: 70%; aspect-ratio: 1; border: 1px solid var(--muted); border-radius: 50%; position: relative; }
.record-symbol::after { position: absolute; inset: 40%; border: 1px solid var(--accent); border-radius: 50%; content: ''; }
.track-copy { display: grid; min-width: 0; gap: .25rem; }
.track-copy strong { font-size: 1.25rem; font-weight: 400; overflow-wrap: anywhere; line-height: 1.5; }
.track-copy small { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; line-height: 1.6; }
.track-row > svg { width: 20px; height: 20px; color: var(--muted); transition: transform 180ms var(--ease); }
.track-row:hover { border-color: var(--accent); }
.track-row:hover > svg { color: var(--accent); transform: translateX(3px); }
.track-entry { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.track-entry .track-row { flex: 1; min-width: 0; border: 0; padding-block: 1.25rem; }
.track-entry .track-row--playable { grid-template-columns: 72px minmax(0,1fr); }
.track-copy .track-kind { color: var(--accent); font-size: .75rem; }
.track-play { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.track-play:hover { border-color: var(--accent); }
.track-play span { width: 10px; height: 12px; background: currentColor; clip-path: polygon(0 0,100% 50%,0 100%); }
.track-play.is-playing span { clip-path: polygon(0 0,35% 0,35% 100%,0 100%,0 0,65% 0,100% 0,100% 100%,65% 100%,65% 0); }
@media(max-width:700px) { .track-entry .track-row--playable { grid-template-columns: 60px minmax(0,1fr); } }
.music-feedback { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .875rem; padding-top: 1rem; }
.music-feedback p { margin: 0; }
.text-button { min-height: 44px; padding: .5rem 1rem; background: transparent; border: 1px solid var(--line); border-radius: 4px; }
.text-button:hover { border-color: var(--accent); }
.collection-empty { color: var(--muted); }
.cosmos-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(4rem,7vw,6rem); padding-block: 1.75rem 2rem; color: var(--muted); font-size: .875rem; }
.cosmos-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.cosmos-footer a:hover { color: var(--ink); }
.back-link,.item-page__back,.about-page__back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .875rem; }
.document-page { padding-top: 2rem; }
.item-page__category { margin: 2rem 0 .75rem; color: var(--muted); font-size: .875rem; }
.item-page__hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: clamp(3rem,9vw,8rem); align-items: start; }
.item-page__left { min-width: 0; padding-top: 1.5rem; }
.item-page__copy h1 { margin: 0; font: 400 clamp(2.75rem,6vw,5.5rem)/1.2 var(--serif); letter-spacing: -.025em; }
.item-page__subtitle { color: var(--muted); font-size: 1rem; margin: 1.5rem 0 0; }
.item-page__body { max-width: 65ch; margin-top: 3rem; color: var(--muted); font: 1.125rem/2 var(--serif); }
.item-page__body p { margin: 0 0 1.2em; white-space: pre-line; }
.item-page__cover { position: relative; aspect-ratio: 1; min-width: 0; }
.item-page__cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.item-page__hero--no-cover { grid-template-columns: minmax(0,48rem); }
.item-page__state { color: var(--muted); }
.music-player { padding: 2rem 0; margin-top: 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.music-player__heading { display: flex; gap: 1rem; justify-content: space-between; color: var(--muted); font-size: .875rem; }
.music-player__empty { color: var(--muted); margin: 1rem 0 0; }
.music-player__interface { margin-top: 1.75rem; }
.music-player__seek { width: 100%; accent-color: var(--accent); cursor: pointer; }
.music-player__times { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.music-player__controls { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1rem; }
.music-player__caption { color: var(--muted); font-size: .875rem; }
.music-player__toggle { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--accent); border-radius: 50%; background: transparent; }
.music-player__toggle span { width: 13px; height: 16px; background: var(--ink); clip-path: polygon(0 0,100% 50%,0 100%); }
.music-player__toggle.is-playing span { clip-path: polygon(0 0,35% 0,35% 100%,0 100%,0 0,65% 0,100% 0,100% 100%,65% 100%,65% 0); }
.music-player__volume { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.music-player__volume input { width: 90px; accent-color: var(--accent); }
.about-page__hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,6vw,5rem); align-items: end; padding: 3rem 0 4rem; border-bottom: 1px solid var(--line); }
.about-page__hero h1 { margin: 0; font: 400 clamp(3rem,6vw,5rem)/1.25 var(--serif); }
.about-page__hero > p { max-width: 30em; margin: 0; color: var(--muted); font-size: 1.125rem; line-height: 2; }
.about-page__notice,.about-page__contact { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem,6vw,5rem); padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.about-page__section-title h2,.about-page__contact h2 { margin: 0; font: 400 clamp(1.6rem,3vw,2.25rem)/1.4 var(--serif); }
.about-page__articles { display: grid; gap: 2rem; }
.about-page__articles h3 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 500; }
.about-page__articles p { margin: 0; max-width: 68ch; color: var(--muted); line-height: 1.95; }
.about-page__contact { border: 0; }
.about-page__contact-copy p { margin: 0 0 1rem; color: var(--muted); }
.about-page__contact-copy a { font-size: clamp(1rem,2.2vw,1.65rem); overflow-wrap: anywhere; }
.about-page [data-about-field] { white-space: pre-line; }
.reshape-intro { position: fixed; z-index: 100; inset: 0; display: none; background: var(--void); overflow: hidden; outline: none; }
.reshape-intro canvas { display: block; width: 100%; height: 100%; }
.intro-pending.intro-running .reshape-intro { display: block; }
html.intro-pending.intro-running,html.intro-pending.intro-running body { overflow: hidden; }
.reshape-signature { position: absolute; top: calc(46% + clamp(4.5rem,15vw,7.5rem)); left: 50%; transform: translateX(-50%); margin: 0; color: var(--muted); font-size: .75rem; letter-spacing: .5em; padding-left: .5em; opacity: 0; }
.reshape-skip { position: absolute; bottom: max(1.5rem,env(safe-area-inset-bottom)); right: max(1.5rem,env(safe-area-inset-right)); min-height: 44px; padding: .5rem; border: 0; color: var(--muted); background: transparent; font-size: .875rem; }
@media (hover:hover) { .play-card:hover img { transform: scale(1.025); } }
@media (max-width:760px) {
  .cosmos-header { min-height: 4.5rem; }
  .horizon { min-height: 31rem; align-items: start; }
  .horizon__copy { width: 100%; padding-top: 1.5rem; }
  .horizon h1 { font-size: 4.75rem; }
  .horizon__copy p { margin-top: .8rem; font-size: 1rem; max-width: 26em; }
  .quote-phrase { display: inline; }
  .horizon__scene { top: 10.5rem; right: -4%; bottom: 0; width: 108%; mask-image: none; }
  .section-heading p { font-size: .8125rem; }
  .play-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .music-section { grid-template-columns: 1fr; gap: 1rem; }
  .track-row { gap: 1rem; grid-template-columns: 60px minmax(0,1fr) 20px; }
  .track-art { width: 60px; }
  .track-copy strong { font-size: 1.125rem; }
  .document-page { padding-top: 1rem; }
  .item-page__hero { grid-template-columns: 1fr; gap: 2rem; }
  .item-page__cover { grid-row: 1; max-width: 28rem; width: 100%; }
  .item-page__left { padding-top: 0; }
  .item-page__body { margin-top: 2rem; }
  .music-player__caption { display: none; }
  .music-player__controls { justify-content: start; }
  .music-player__volume { margin-left: auto; }
  .about-page__hero,.about-page__notice,.about-page__contact { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; }
  .cosmos-footer { margin-top: 3rem; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .intro-pending.intro-running .reshape-intro { display: none; }
  html.intro-pending.intro-running,html.intro-pending.intro-running body { overflow: auto; }
}
