:root {
  --ink: #f2edf3;
  --muted: #bcb2c5;
  --accent: #efbbd3;
  --line: #403548;
  --panel: #201a29;
  --serif: "Baskerville", "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  color-scheme: dark;
  font: 16px/1.7 system-ui, sans-serif;
  color: var(--ink);
  background: #14101c;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: #ffe8f2; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 3; background: var(--panel); padding: .5rem 1rem; }
.skip:focus { top: .5rem; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand { font: 1.9rem/1 var(--serif); text-decoration: none; color: var(--ink); }
.brand span, h1 span { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
nav a { text-decoration: none; color: var(--muted); font-size: .83rem; }
nav .language { padding: 3px 10px; border: 1px solid var(--line); color: var(--accent); white-space: nowrap; }
.hero { min-height: 530px; display: grid; grid-template-columns: 1.12fr 1fr; gap: 38px; align-items: center; padding: 52px 0; }
.label, figcaption, .section-heading > p, .education dt { color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: .13em; }
.label i { display: inline-block; width: 6px; height: 6px; margin-right: .45rem; border-radius: 50%; background: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .55em; }
h1 { font-size: clamp(3.1rem, 6.4vw, 6rem); letter-spacing: -.06em; margin: .25em 0; }
h2 { font-size: clamp(2.45rem, 5vw, 4.45rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.05rem); }
h4 { font-size: 1.3rem; }
.lead { max-width: 37ch; font-size: 1.12rem; margin-bottom: 1.5rem; }
p { color: var(--muted); margin: .65rem 0 1rem; }
.button { display: inline-flex; gap: 1.2rem; padding: .5rem .85rem; border: 1px solid #93687f; text-decoration: none; }
.hero-art { position: relative; margin: 0; padding: 13px; border: 1px solid #584558; background: radial-gradient(ellipse at 64% 25%, #563249 0%, transparent 57%), radial-gradient(ellipse at 18% 69%, #302d5a 0%, transparent 61%), #191322; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art svg circle[stroke], .hero-art svg g[fill="#173d32"] { fill: #261b34; stroke: #e9bacf; }
.hero-art svg g[stroke="#eac27b"] { stroke: #e9bacf; }
.orbits { stroke: #c989ad; stroke-opacity: .45; stroke-width: .75; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px 1px; border-top: 1px solid var(--line); letter-spacing: .05em; }
.section { border-top: 1px solid var(--line); padding: clamp(35px, 6vw, 75px) 0; scroll-margin-top: 20px; }
.section > .label { margin: 0 0 15px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 0; }
.study, .paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.study > *, .paper-grid article { min-width: 0; padding: clamp(16px, 3vw, 30px); background: var(--panel); border: 1px solid var(--line); }
.study ul { padding-inline-start: 1.15rem; color: var(--muted); }
.study li { margin-block: .4rem; }
.study strong, .recognition strong { color: var(--ink); }
.results { background: linear-gradient(145deg, #382437, #211927); }
.results h3 { margin-top: .35em; }
.results .label { margin-top: 0; }
.logic-game { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; }
.logic-game > p { max-width: 70ch; }
.paper-grid { margin-top: 1.2rem; align-items: stretch; }
.paper-grid article { display: flex; flex-direction: column; }
.paper-grid article > a { margin-top: auto; }
.paper-grid .label { margin-top: 0; }
.journal { background: linear-gradient(145deg, #37243b, #222035); }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .88rem; }
caption { text-align: left; color: var(--muted); margin-bottom: .6em; }
th, td { padding: .55em .3em; border-bottom: 1px solid var(--line); text-align: left; }
tbody th { font-weight: 500; }
td, thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.recognition > ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 18px; align-items: start; }
.recognition > ul > li { padding: 15px 19px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
details { margin-top: .55rem; }
summary { color: var(--accent); cursor: pointer; }
.education { margin: 0; }
.education div { display: grid; grid-template-columns: minmax(115px, 1fr) 3fr; gap: 12px; padding: .8rem 0; border-top: 1px solid var(--line); }
.education dd { margin: 0; color: var(--muted); }
.footer { min-height: 90px; border-top: 1px solid var(--line); font-size: .82rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 38px); }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 26px; }
  .hero-art { max-width: 475px; }
  .study, .paper-grid, .recognition > ul { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
  .header { padding-block: 12px; }
}

/* Sleeve: the same image returns at the end, at the scale of a sleeve thumbnail. */
:root {
  --ink: #f5e9e4;
  --muted: #cfc0c7;
  --accent: #edb7ac;
  --line: #57454e;
  background: #211b23;
}
.wrap { width: min(1160px, calc(100% - 96px)); }
.header { min-height: 66px; }
.hero {
  position: relative;
  display: grid;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 0;
  aspect-ratio: 1.65;
  margin: 20px 0 65px;
  padding: clamp(28px, 5.3vw, 76px);
  overflow: hidden;
  align-items: end;
  gap: 0;
  background: #2a1c2b;
}
.cover-print {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 67%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #251b27 17%, #251b27f0 30%, #251b274d 61%, transparent 90%);
  pointer-events: none;
}
.hero-text { grid-column: 1 / -1; align-self: center; }
.hero h1 {
  max-width: 9ch;
  font-size: clamp(3.5rem, 9.3vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.067em;
  margin: .24em 0 .3em;
  text-wrap: balance;
}
.hero .lead { max-width: 32ch; color: var(--ink); }
.hero .button { border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; }
.hero-art {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 230px;
  padding: 0;
  border: 0;
  background: none;
}
.hero-art svg { width: 58px; flex: none; }
.hero-art figcaption { display: block; border: 0; padding: 0; font-size: .61rem; line-height: 1.5; text-shadow: 0 1px 4px #211521; }
.hero-art figcaption span:first-child { display: block; }

/* Liner notes: a spine and a reading column, followed by a full spread. */
.section {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(0, 5fr);
  column-gap: clamp(25px, 5vw, 78px);
  padding-block: clamp(46px, 7vw, 100px);
}
.section > .label { grid-column: 1; margin-top: .7rem; }
.section > :not(.label) { grid-column: 2; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { max-width: 18ch; }
.study, .paper-grid { gap: clamp(22px, 4.2vw, 59px); }
.study > *, .paper-grid article, .recognition > ul > li {
  background: none;
  border: 0;
  padding: 0;
}
.study > * + * { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(16px, 2.9vw, 40px); }
.results .award { margin-bottom: .4rem; }
.logic-game { margin-top: 39px; padding-top: 27px; }
#philosophy { margin-top: 54px; }
.paper-grid { column-gap: clamp(22px, 4.2vw, 59px); row-gap: 0; }
.paper-grid article { border-top: 1px solid var(--line); padding-block: 19px 21px; }
.paper-grid h4 { font-size: clamp(1.3rem, 2.15vw, 1.8rem); }
#foundations .study { grid-template-columns: 1.35fr .8fr; }
#now .study { grid-template-columns: .83fr 1.17fr; }
#now .logic-game { max-width: 64ch; }
#background .recognition > ul { display: block; }
.recognition > ul > li {
  display: block;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.recognition > ul > li > strong { font-family: var(--serif); font-size: 1.21rem; }
.education div { grid-template-columns: minmax(110px, 1fr) 3fr; }
.footer { padding-block: 16px; }
.reprise { display: inline-flex; align-items: center; gap: 9px; }
.reprise img { display: block; border: 1px solid var(--line); }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 34px); }
  .hero { aspect-ratio: auto; min-height: 525px; padding: 25px; margin-bottom: 35px; }
  .cover-print { width: 100%; opacity: .72; }
  .hero::after { background: linear-gradient(90deg, #251b27e8, #251b2770 70%, transparent); }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.3rem); }
  .hero-art { grid-column: 1 / -1; }
  .section { display: block; }
  .section > .label { margin-top: 0; }
  .study, #foundations .study, #now .study, .paper-grid { grid-template-columns: 1fr; }
  .study > * + * { border-inline-start: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .footer { flex-wrap: wrap; }
}

.hero { grid-template-rows: 1fr; }
.hero h1 { max-width: none; }
.hero h1 .hero-name { display: block; white-space: nowrap; color: inherit; }

/* An offset record sleeve, printed in red ink on warm stock. */
:root {
  color-scheme: light;
  --ink: #291f25;
  --muted: #59464e;
  --accent: #9c2736;
  --line: #b9a5a1;
  background: #e9d9c8;
}
a:hover { color: #711623; }
.header { border-bottom-color: var(--ink); }
.hero {
  isolation: auto;
  aspect-ratio: auto;
  min-height: 0;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  column-gap: clamp(18px, 5vw, 65px);
  background: none;
  overflow: visible;
  margin: 0 0 57px;
  padding: clamp(38px, 7vw, 88px) 0 16px;
}
.hero::after { content: none; }
.hero-text { grid-column: 1; }
.hero h1 { font-size: clamp(3.4rem, 8.3vw, 8.15rem); }
.hero h1 .hero-name { font-size: .68em; letter-spacing: .035em; margin-top: .22em; }
.hero .lead { color: var(--muted); }
.cover-object { min-width: 0; margin: 0; }
.cover-loop {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #8d3942;
  background: #a72934;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 12px 13px 0 #be9c97;
}
.cover-loop:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.cover-loop img { display: block; width: 100%; height: auto; transform-origin: top left; transition: transform .75s cubic-bezier(.2,.75,.18,1); }
.cover-loop[data-level="1"] img { transform: scale(2.32558) translate(-54.84375%, -14.84375%); }
.cover-loop[data-level="2"] img { transform: scale(5.40833) translate(-78.42656%, -21.22656%); }
.cover-loop[data-level="2"] { cursor: zoom-out; }
.cover-object figcaption { display: flex; justify-content: space-between; margin: 22px 0 0; }
.cover-counter { font-variant-numeric: tabular-nums; }
.section { border-top-color: #917278; }
.section-heading h2 { color: #34242c; }
#foundations .section-heading h2, #now .section-heading h2 { color: var(--accent); }
#axiia .section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#philosophy .paper-grid { border-bottom: 1px solid var(--line); }
#education { padding-bottom: 58px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0,1fr); row-gap: 26px; }
  .hero h1 { font-size: clamp(3.6rem, 15vw, 6.6rem); }
  .cover-object { width: calc(100% - 12px); }
}
@media (prefers-reduced-motion: reduce) { .cover-loop img { transition: none; } }

.skip { background: #f7e7d8; }

/* The whole opening is a sleeve. Each inset is a scaled copy of this scene. */
:root {
  color-scheme: dark;
  --ink: #f2e8f2;
  --muted: #cbb9cf;
  --accent: #edbad0;
  --line: #5d465f;
  background: #1c1621;
}
a:hover { color: #ffe8f3; }
.skip { background: #38243d; }
.header { border-bottom-color: var(--line); }
.hero {
  display: block;
  position: relative;
  padding: 0;
  margin: 28px 0 65px;
  overflow: hidden;
  border: 1px solid #6c4b6c;
}
.cover-scene {
  position: relative;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  align-items: center;
  gap: clamp(22px, 6vw, 76px);
  min-height: clamp(430px, 56vw, 660px);
  padding: clamp(28px, 6vw, 85px);
  overflow: hidden;
  transform-origin: top left;
  background:
    radial-gradient(ellipse at 81% 56%, transparent 0 23%, #c78eac26 23.1% 23.3%, transparent 23.4% 30%, #c78eac24 30.1% 30.3%, transparent 30.4% 37%, #c78eac26 37.1% 37.3%, transparent 37.4%),
    radial-gradient(ellipse at 83% 62%, #643e60 0%, #3d2948 37%, #261c31 69%, #211824 100%);
}
.cover-scene::before {
  content: "";
  position: absolute;
  inset: 17px;
  pointer-events: none;
  border: 1px solid #e4bbd13b;
}
.cover-scene > .hero-text, .cover-scene > .cover-object { position: relative; z-index: 1; }
.hero .lead { color: var(--muted); }
.hero h1 { font-size: clamp(3.5rem, 9vw, 8.5rem); }
.cover-object { width: 100%; align-self: end; margin: 0 0 1.2rem; }
.cover-loop {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.6;
  border: 0;
  outline: 1px solid #c59ab9;
  background: #4b324f;
  box-shadow: 11px 12px 0 #21172580, 0 12px 28px #160d1d70;
  cursor: zoom-in;
  overflow: hidden;
}
.cover-loop:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.cover-copy { position: absolute; inset: 0; pointer-events: none; }
.cover-replica {
  width: var(--scene-width);
  height: var(--scene-height);
  min-height: 0;
  transform: scale(var(--replica-scale));
  transform-origin: top left;
}
.cover-instruction { display: block; color: var(--accent); font-size: .75rem; letter-spacing: .11em; margin-top: 1.25rem; }
.section { border-top-color: var(--line); }
.section-heading h2 { color: var(--ink); }
#foundations .section-heading h2, #now .section-heading h2 { color: var(--accent); }
.reprise img { filter: hue-rotate(305deg) saturate(.55); }
@media (max-width: 760px) {
  .hero { min-height: 0; margin-top: 16px; }
  .cover-scene { grid-template-columns: 1fr; padding: 37px 27px 28px; }
  .cover-object { width: min(60%, 280px); justify-self: end; margin: 0; }
  .hero h1 { font-size: clamp(3.25rem, 14vw, 6rem); }
  .cover-instruction { margin-top: .95rem; }
}

/* The live sleeve is a button, so override its browser-default typography. */
.cover-object .cover-loop {
  aspect-ratio: var(--cover-ratio, 1.6);
  font: inherit;
  color: inherit;
  text-align: inherit;
}

.cover-print-pass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .cover-print-pass { display: none; }
}
.rope-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
  margin-top: 35px;
}
.rope-figures figure { margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.rope-figures img { display: block; width: 100%; height: auto; }
.rope-legend { display: flex; flex-wrap: wrap; gap: 5px 18px; grid-column: 1 / -1; font-size: .83rem; margin: 0; }
.rope-legend span::before { content: ""; display: inline-block; width: .65em; height: .65em; background: var(--series); margin-right: .5em; border-radius: 50%; }
@media (max-width: 760px) { .rope-figures { grid-template-columns: 1fr; } }
/* The reading position stays available as the chapters pass underneath. */
.reading-line {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #a680bc, var(--accent));
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.header {
  position: sticky;
  z-index: 4;
  top: 0;
  background: #1c1621;
}
.header nav a[aria-current="location"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
}
.section, .hero { scroll-margin-top: 85px; }
@media (max-width: 760px) {
  .section, .hero { scroll-margin-top: 108px; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 235px 180px at var(--light-x, 50%) var(--light-y, 50%), #e9b9d32e, transparent 100%);
    opacity: 0;
    transition: opacity .36s ease-out;
  }
  .hero.cover-lit::after { opacity: 1; }
}

#contact dd { overflow-wrap: anywhere; }

.cover-motto {
  margin: 1.2rem 0 .8rem;
  color: var(--accent);
  font: italic clamp(1.16rem, 2.35vw, 1.85rem)/1.19 var(--serif);
}

:lang(zh) .cover-motto {
  font-family: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif;
  font-style: normal;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: .16em;
}

@media (prefers-reduced-motion: no-preference) {
  main > .section {
    position: relative;
    --chapter-progress: 0;
  }
  main > .section::after {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 2px;
    background: linear-gradient(90deg, #986a9a, var(--accent));
    transform: scaleX(var(--chapter-progress));
    transform-origin: left center;
    pointer-events: none;
  }
  .section > .label::after {
    content: "";
    display: block;
    width: clamp(35px, 6vw, 74px);
    aspect-ratio: 1;
    margin-top: 14px;
    border: 1px solid #b895b67a;
    border-radius: 50%;
    background:
      radial-gradient(circle, var(--accent) 0 3%, #372638 4% 14%, transparent 15%),
      repeating-radial-gradient(circle, transparent 0 5px, #d29cbd58 6px 7px),
      conic-gradient(from 0deg, #a678a76b 0deg, transparent 92deg 282deg, #a678a76b);
    transform: rotate(calc(var(--chapter-progress) * 225deg));
  }
  .rope-figures figure {
    background-image: linear-gradient(90deg, #b982ab, transparent);
    background-position: left top;
    background-repeat: no-repeat;
    background-size: calc(var(--chapter-progress) * 100%) 1px;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .section > .label { display: flex; justify-content: space-between; align-items: center; }
  .section > .label::after { width: 33px; margin-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .lyric-line {
    --lyric-focus: 1;
    opacity: calc(.69 + .31 * var(--lyric-focus));
    transition: opacity .2s ease-out;
  }
  .lyric-line:focus-within { opacity: 1; }
  .section .section-heading h2.lyric-line,
  .section h3.lyric-line,
  .section h4.lyric-line {
    color: color-mix(in srgb, var(--muted), var(--ink) calc(var(--lyric-focus) * 100%));
  }
}

.cover-print-pass {
  background:
    radial-gradient(ellipse at 76% 54%, transparent 0 23%, #e9bed13b 23.1% 23.3%, transparent 23.4% 30%, #e9bed133 30.1% 30.3%, transparent 30.4% 37%, #e9bed13b 37.1% 37.3%, transparent 37.4%),
    linear-gradient(132deg, #251a2c 22%, #473352 69%, #6b4661);
}
