@font-face {
  font-family: "Listening Serif TC";
  src: url("fonts/listening-serif-regular.woff?v=3") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Listening Serif TC";
  src: url("fonts/listening-serif-bold.woff?v=3") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: "Listening Serif TC","Noto Serif TC","Noto Serif CJK TC","Songti TC","PMingLiU",serif;
  color: #29232d;
  background: #e9e3f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select {
  font: inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 2px solid var(--accent,#625181);
  outline-offset: 5px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

.wrap {
  width: min(1220px,calc(100% - 112px));
  margin-inline: auto;
}

.site {
  --surface: color-mix(in srgb,var(--page) 42%,white);
  --line: color-mix(in srgb,var(--accent) 24%,var(--page));
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--page-gradient,linear-gradient(to bottom right,color-mix(in srgb,var(--page),white 45%),var(--page))),var(--page);
  color: var(--dark);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 100%;
  font-size: clamp(1rem, 4.5vw, 1.24rem);
  letter-spacing: .17em;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 5px;
  line-height: 1.15;
}

.headphone-note {
  color: var(--accent);
  font-size: clamp(.625rem, 3vw, .75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.brand-logo {
  width: auto;
  max-width: min(224px,34vw);
  height: clamp(44px,5vw,56px);
  flex: none;
  object-fit: contain;
}

.mark {
  width: 26px;
  height: 30px;
  position: relative;
  display: inline-block;
  color: var(--accent,#625181);
  flex: none;
}

.mark::before,.mark::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  width: 13px;
  height: 19px;
  transform: rotate(38deg) skewY(15deg);
  top: 5px;
  left: 6px;
}

.mark::after {
  transform: rotate(-38deg) skewY(-15deg);
}

.mark i {
  position: absolute;
  top: 1px;
  left: 12px;
  height: 27px;
  width: 1px;
  background: currentColor;
}

.mark b {
  position: absolute;
  top: 14px;
  left: 2px;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.chapter-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  white-space: nowrap;
}

.chapter-nav a:hover,.chapter-nav a[aria-current] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent);
}

.chapter-nav i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  color: var(--chapter-dot);
  background: currentColor;
  flex: none;
}

.chapter-nav a[aria-busy="true"] i {
  background: transparent;
  border: 1px solid currentColor;
  box-shadow: 0 0 0 2px color-mix(in srgb,currentColor 22%,transparent);
}

.spread {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: clamp(42px,7vw,102px);
  align-items: center;
  flex: 1;
  padding: 52px 0;
}

.album-art {
  margin: 0;
  aspect-ratio: 1 / 1.04;
  position: relative;
  isolation: isolate;
  border-radius: 5px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 24px 48px color-mix(in srgb,var(--dark),transparent 83%);
  color: white;
}

.album-art::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 17px;
  border: 1px solid color-mix(in srgb,var(--glow) 58%,transparent);
  border-radius: 2px;
  pointer-events: none;
}

.album-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 65% 0 0;
  background: linear-gradient(transparent,color-mix(in srgb,var(--dark) 55%,transparent));
  pointer-events: none;
}

.uploaded-art,.art-scene {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}


.listening {
  min-width: 0;
  padding: 10px 0 16px;
}

.chapter-label {
  margin: 0 0 18px;
  font-size: clamp(1rem,1.5vw,1.2rem);
  letter-spacing: .04em;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-weight: 650;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(3.1rem,6.15vw,6rem);
  letter-spacing: .075em;
  line-height: 1.13;
  color: var(--dark);
}

.title-line {
  display: block;
  margin-top: 17px;
  font-size: clamp(1.26rem,2.03vw,2rem);
  letter-spacing: .065em;
  line-height: 1.48;
}

.title-divider {
  display: inline-block;
  margin-left: -.39em;
  color: var(--accent);
}

.subtitle {
  margin: 15px 0 0;
  font-size: clamp(1.06rem,1.65vw,1.37rem);
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 550;
}

.tracks-heading {
  margin: 44px 0 14px;
  font-size: 1.025rem;
  letter-spacing: .12em;
}

.tracks {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.track {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) minmax(0,.75fr) 42px;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  min-height: 72px;
}

.play {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--surface);
  border-radius: 50%;
}

.play:hover:not(:disabled) {
  background: var(--dark);
}

.play:disabled {
  background: color-mix(in srgb,var(--accent) 14%,var(--surface));
  border-color: transparent;
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .tracks:not(:has(.play[data-playing="true"])) .play:not(:disabled) {
    animation: play-color-cycle 2s steps(1,end) infinite;
  }
}

@keyframes play-color-cycle {
  0%,100% {
    background-color: var(--accent);
    color: var(--surface);
  }
  50% {
    background-color: color-mix(in srgb,var(--accent) 30%,var(--surface));
    color: var(--accent);
  }
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  margin-left: 2px;
}

.pause-icon {
  height: 13px;
  width: 10px;
  border-inline: 3px solid currentColor;
}

.track-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.track-info strong {
  font-size: .96rem;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.track-info>span,.duration {
  font-size: .82rem;
  color: var(--accent);
}

.wave-control {
  position: relative;
  display: grid;
  align-items: center;
  justify-self: center;
  width: min(100%, 122px);
  min-height: 44px;
}

.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-width: 0;
  pointer-events: none;
}

.wave i {
  background: var(--accent);
  opacity: .24;
  flex: 0 1 2px;
  max-width: 2px;
  border-radius: 8px;
}

.wave i.elapsed {
  opacity: .86;
}

.wave-seek {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  touch-action: pan-y;
}

.wave-seek:disabled {
  cursor: default;
}

.wave-seek::-webkit-slider-thumb {
  appearance: none;
  width: 9px;
  height: 22px;
  border-radius: 5px;
  background: transparent;
  border: 0;
}

.wave-seek::-moz-range-thumb {
  width: 9px;
  height: 22px;
  border-radius: 5px;
  background: transparent;
  border: 0;
}

.wave-seek:not(:disabled):is(:hover,:focus-visible,:active)::-webkit-slider-thumb {
  background: var(--accent);
}

.wave-seek:not(:disabled):is(:hover,:focus-visible,:active)::-moz-range-thumb {
  background: var(--accent);
}

.duration {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 73px;
  color: var(--accent);
  font-size: .85rem;
}

.site-footer .purchase-link {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.site-footer a:hover {
  text-decoration: underline;
}


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

.spread {
  gap: 36px;
}

.track {
  grid-template-columns: 44px minmax(0,1fr) 45px;
  column-gap: 9px;
  row-gap: 0;
}

.track .play {
  grid-row: span 2;
}

.track-info {
  grid-column: 2 / -1;
}

.wave-control {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  width: min(100%, 240px);
}

.duration {
  grid-column: 3;
  grid-row: 2;
}

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

.header-inner {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 15px 0;
}

.chapter-nav {
  width: 100%;
  gap: 4px;
  justify-content: flex-start;
}

.chapter-nav a {
  gap: 5px;
  padding: 7px 8px;
  min-height: 36px;
  font-size: .83rem;
}

.spread {
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 28px 0 32px;
  align-items: start;
}

.album-art {
  aspect-ratio: 1.22;
}

.listening {
  padding: 0;
}

.tracks-heading {
  margin-top: 31px;
}

.site-footer {
  min-height: 62px;
}

}
@media(max-width:350px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .chapter-nav a {
    padding-inline: 5px;
  }
  .track {
    padding: 10px;
  }
}

.site[data-chapter="opal"] {
  --page: hsl(214.20428406156012 33.333333333333314% 91.76470588235294%);
  --page-gradient: linear-gradient(to bottom right, hsl(213 59% 97%), hsl(215 52% 84%), hsl(215 48% 79%));
  --accent: hsl(214.20428406156012 22.857142857142858% 23%);
  --glow: hsl(214.20428406156012 81.81818181818183% 80.58823529411765%);
  --dark: hsl(214.20428406156012 36.47058823529413% 16.666666666666664%);
}

.chapter-nav [data-chapter="opal"] {
  --chapter-dot: hsl(214 64% 42%);
}

.site[data-chapter="rose"] {
  --page: hsl(207.57087626246502 41.46341463414632% 91.96078431372548%);
  --page-gradient: linear-gradient(to bottom right, hsl(209 28% 97%), hsl(204 35% 82%), hsl(202 33% 79%));
  --accent: hsl(207.57087626246502 28.846153846153843% 23%);
  --glow: hsl(207.57087626246502 73.33333333333331% 79.41176470588235%);
  --dark: hsl(207.57087626246502 30.000000000000004% 19.607843137254903%);
}

.chapter-nav [data-chapter="rose"] {
  --chapter-dot: hsl(208 21% 37%);
}

.site[data-chapter="moss"] {
  --page: hsl(163.02252428613474 16.666666666666664% 90.58823529411765%);
  --page-gradient: linear-gradient(to bottom right, hsl(163 28% 97%), hsl(163 28% 88%), hsl(163 28% 79%));
  --accent: hsl(163.02252428613474 23.92638036809816% 23%);
  --glow: hsl(163.02252428613474 43.75% 74.90196078431373%);
  --dark: hsl(163.02252428613474 33.33333333333334% 13.529411764705882%);
}

.chapter-nav [data-chapter="moss"] {
  --chapter-dot: hsl(163 47% 33%);
}

.site[data-chapter="amber"] {
  --page: hsl(23.640399525669068 50.000000000000014% 89.80392156862746%);
  --page-gradient: linear-gradient(to bottom right, hsl(23 68% 97%), hsl(22 68% 88%), hsl(23 68% 79%));
  --accent: hsl(23.640399525669068 45.02923976608187% 23%);
  --glow: hsl(23.640399525669068 88.73239436619718% 72.15686274509804%);
  --dark: hsl(23.640399525669068 38.94736842105264% 18.627450980392158%);
}

.chapter-nav [data-chapter="amber"] {
  --chapter-dot: hsl(24 76% 37%);
}

.site[data-chapter="indigo"] {
  --page: hsl(221.09162830684753 39.53488372093021% 91.56862745098039%);
  --page-gradient: linear-gradient(to bottom right, hsl(217 64% 97%), hsl(223 47% 84%), hsl(225 44% 79%));
  --accent: hsl(221.09162830684753 32.32323232323232% 23%);
  --glow: hsl(221.09162830684753 100% 78.23529411764706%);
  --dark: hsl(221.09162830684753 44.89795918367348% 19.215686274509807%);
}

.chapter-nav [data-chapter="indigo"] {
  --chapter-dot: hsl(221 59% 29%);
}

.wave i:nth-child(1) { height: 12px; }
.wave i:nth-child(2) { height: 16px; }
.wave i:nth-child(3) { height: 20px; }
.wave i:nth-child(4) { height: 15px; }
.wave i:nth-child(5) { height: 23px; }
.wave i:nth-child(6) { height: 25px; }
.wave i:nth-child(7) { height: 17px; }
.wave i:nth-child(8) { height: 21px; }
.wave i:nth-child(9) { height: 32px; }
.wave i:nth-child(10) { height: 27px; }
.wave i:nth-child(11) { height: 16px; }
.wave i:nth-child(12) { height: 18px; }
.wave i:nth-child(13) { height: 11px; }
.wave i:nth-child(14) { height: 24px; }
.wave i:nth-child(15) { height: 29px; }
.wave i:nth-child(16) { height: 20px; }
.wave i:nth-child(17) { height: 31px; }
.wave i:nth-child(18) { height: 24px; }
.wave i:nth-child(19) { height: 14px; }
.wave i:nth-child(20) { height: 22px; }
.wave i:nth-child(21) { height: 28px; }
.wave i:nth-child(22) { height: 19px; }
.wave i:nth-child(23) { height: 12px; }
.wave i:nth-child(24) { height: 17px; }
.wave i:nth-child(25) { height: 13px; }
.wave i:nth-child(26) { height: 22px; }
.wave i:nth-child(27) { height: 15px; }
.wave i:nth-child(28) { height: 10px; }
.wave i:nth-child(29) { height: 17px; }
.wave i:nth-child(30) { height: 13px; }
.wave i:nth-child(31) { height: 8px; }
