:root {
  --ink: #11100d;
  --ink-soft: #24211c;
  --paper: #f3eee4;
  --paper-dim: #d9d0bf;
  --accent: #d39a43;
  --accent-soft: #f0bd6c;
  --line: rgba(243, 238, 228, 0.18);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: 104px;
  background:
    radial-gradient(circle at 78% 4%, rgba(211, 154, 67, 0.17), transparent 28rem),
    linear-gradient(180deg, #11100d 0 42rem, var(--paper) 42rem 100%);
  color: var(--paper);
  font-family: var(--sans);
}

@media (max-width: 620px) {
  body {
    padding-bottom: 138px;
  }
}

button,
input,
a {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 0;
}

.site-header p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 21px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-soft);
  font-size: 17px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  grid-template-rows: 1fr auto;
  gap: 34px 58px;
  width: min(1180px, calc(100% - 40px));
  min-height: 610px;
  margin: 0 auto;
  padding: 86px 0 80px;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
  animation: rise-in 760ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow,
.section-index {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--accent-soft);
}

.hero-intro {
  max-width: 530px;
  margin: 30px 0 0;
  color: var(--paper-dim);
  font-size: 17px;
  line-height: 1.9;
}

.hero-intro code {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.button-quiet {
  border: 1px solid rgba(243, 238, 228, 0.25);
  color: var(--paper);
}

.hero-visual {
  align-self: center;
  animation: rise-in 900ms 100ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.signal {
  display: flex;
  height: 270px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal i {
  width: 4px;
  height: calc(18px + (var(--n, 1) * 4px));
  border-radius: 999px;
  background: var(--accent-soft);
  transform-origin: center;
  animation: signal 1.8s ease-in-out infinite alternate;
}

.signal i:nth-child(3n) {
  animation-delay: -0.5s;
}

.signal i:nth-child(4n) {
  animation-delay: -1s;
}

.signal i:nth-child(5n) {
  animation-delay: -1.4s;
}

.hero-visual p {
  margin: 18px 0 0;
  color: var(--paper-dim);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.38em;
  text-align: center;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 22px 0 0;
}

.hero-stats dt {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 29px;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--paper-dim);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.library,
.method {
  background: var(--paper);
  color: var(--ink);
}

.library {
  padding: 102px max(20px, calc((100% - 1180px) / 2));
}

.library-reference {
  padding-top: 18px;
  background: #e7dfd1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.method h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.section-heading > p {
  margin: 0;
  color: #625b50;
  font-size: 14px;
  line-height: 1.8;
}

.track-list {
  border-top: 1px solid rgba(17, 16, 13, 0.22);
}

.track {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  min-height: 106px;
  border-bottom: 1px solid rgba(17, 16, 13, 0.16);
  opacity: 0;
  transform: translateY(12px);
  animation: row-in 520ms ease forwards;
}

.track-number {
  color: #877d6f;
  font-family: var(--serif);
  font-size: 15px;
}

.track-copy {
  min-width: 0;
}

.track-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.track-copy p {
  margin: 7px 0 0;
  overflow: hidden;
  color: #6c6356;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-duration {
  color: #71685c;
  font-variant-numeric: tabular-nums;
}

.track-action {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(17, 16, 13, 0.24);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.track-action:hover,
.track.is-playing .track-action {
  background: var(--ink);
  color: var(--paper);
  transform: scale(1.04);
}

.method {
  padding: 92px max(20px, calc((100% - 1180px) / 2)) 150px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.method-grid p {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(17, 16, 13, 0.22);
  color: #4d473e;
  line-height: 1.8;
}

.method-grid span {
  display: block;
  margin-bottom: 12px;
  color: #9a7140;
  font-family: var(--serif);
}

.rights-note {
  max-width: 720px;
  margin: 48px 0 0;
  color: #746b5e;
  font-size: 12px;
  line-height: 1.8;
}

.audio-dock {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto auto minmax(160px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 1120px;
  margin: auto;
  padding: 12px 14px;
  border: 1px solid rgba(243, 238, 228, 0.16);
  border-radius: 18px;
  background: rgba(17, 16, 13, 0.93);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.dock-meta {
  min-width: 0;
}

.dock-meta span,
.dock-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-meta span {
  font-family: var(--serif);
  font-size: 15px;
}

.dock-meta small {
  margin-top: 3px;
  color: var(--paper-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dock-button,
.dock-play,
.dock-download {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(243, 238, 228, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  text-decoration: none;
}

.dock-play {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.dock-download {
  border-radius: 999px;
  padding: 0 14px;
  font-size: 12px;
}

.dock-progress input {
  width: 100%;
  accent-color: var(--accent);
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--paper-dim);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.loading,
.error {
  padding: 30px 0;
  color: #746b5e;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes row-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signal {
  from {
    transform: scaleY(0.45);
    opacity: 0.52;
  }
  to {
    transform: scaleY(1.15);
    opacity: 1;
  }
}

@media (max-width: 880px) {
  body {
    background: linear-gradient(180deg, #11100d 0 36rem, var(--paper) 36rem 100%);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 62px;
  }

  .hero-visual {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .audio-dock {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    padding-bottom: 14px;
  }

  .dock-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dock-download {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 28px);
  }

  .site-header p {
    display: none;
  }

  .hero {
    width: calc(100% - 28px);
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(48px, 17vw, 76px);
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-stats dt {
    font-size: 23px;
  }

  .library,
  .method {
    padding-right: 14px;
    padding-left: 14px;
  }

  .library {
    padding-top: 76px;
  }

  .track {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 96px;
  }

  .track-duration {
    display: none;
  }

  .audio-dock {
    right: 8px;
    bottom: 8px;
    left: 8px;
    border-radius: 15px;
  }
}

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