:root {
  color-scheme: dark;
  --black: #0A0A0A;
  --charcoal: #151515;
  --charcoal-light: #202020;
  --ivory: #E8E4DA;
  --muted-text: #AAA69D;
  --gold: #9E8657;
  --silver: #9A9A9A;
  --oxblood: #68292E;
  --hairline: #30302c;
  --serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); }
body { margin: 0; color: var(--ivory); background: var(--black); font-family: var(--sans); -webkit-font-smoothing: antialiased; line-height: 1.6; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .35em; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
::selection { color: var(--black); background: var(--ivory); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.archive-shell { width: min(100% - 48px, 1040px); margin-inline: auto; }
.author { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .25em; line-height: 1.5; }
.archive-label { color: var(--muted-text); font-size: 9px; font-weight: 500; letter-spacing: .16em; line-height: 1.7; }
.section-number { display: block; color: var(--gold); font-size: 10px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.section-block { padding-block: 52px; border-top: 1px solid var(--hairline); }
.section-heading { display: flex; align-items: baseline; gap: 17px; margin-bottom: 30px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(21px, 4.9vw, 30px); letter-spacing: .015em; line-height: 1.25; }

/* Quiet public entry and the custom 404 share the reader's visual language. */
.quiet-page { min-height: 100svh; display: grid; place-items: center; padding: 32px 24px; }
.quiet-main { text-align: center; }
.quiet-mark { margin: 0 auto 38px; opacity: .8; }
.quiet-main .author { font-size: clamp(15px, 3vw, 20px); letter-spacing: .24em; }
.quiet-main .archive-label { margin-top: 18px; font-size: 10px; letter-spacing: .24em; }
.missing-file .author { font-size: 11px; }
.missing-file h1 { margin-top: 28px; font-family: var(--serif); font-size: clamp(26px, 7vw, 40px); }
.return-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 20px; color: var(--muted-text); font-size: 14px; }
.return-link:hover { color: var(--ivory); }

/* 01 — restrained, static diagram. No animation or story information. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: 26px; padding-bottom: 40px; border-bottom: 1px solid var(--hairline); }
.hero-masthead { display: flex; justify-content: space-between; align-items: center; }
.hero-masthead img { opacity: .75; }
.hero-copy { position: relative; margin-top: 46px; z-index: 1; }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 8.45vw, 76px); line-height: 1.08; letter-spacing: -.025em; }
.hero h1 > span { display: block; }
.hero .archive-label { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.tiny-rule { flex: 0 0 16px; height: 1px; background: var(--gold); }
.hero-note { margin-top: 12px; color: var(--muted-text); font-size: 12px; }
.hero-endmark { display: none; }
.hero-geometry { position: absolute; inset: 55px -90px 14px 35%; z-index: -1; opacity: .38; pointer-events: none; }
.orbit { position: absolute; width: 260px; height: 260px; border: 1px solid #49473f; border-radius: 50%; }
.orbit-one { top: 12px; left: 12px; }
.orbit-two { top: 32px; left: 54px; border-color: #32322e; }
.axis { position: absolute; background: #45443d; height: 1px; transform-origin: left center; }
.axis-one { width: 360px; top: 200px; left: 0; transform: rotate(-36deg); }
.axis-two { width: 300px; top: 117px; left: 0; }
.measure { position: absolute; width: 66px; height: 8px; top: 223px; left: 44px; border-top: 1px solid #555249; border-left: 1px solid #555249; border-right: 1px solid #555249; }

/* 02 / 03 — sequential on phones, one editorial spread on wider screens. */
.book-room { padding-block: 28px 44px; }
.cover-section { position: relative; }
.cover-section > .section-number { position: absolute; top: 0; left: 0; }
.book-cover { width: 154px; max-width: 64%; margin-inline: auto; background: var(--charcoal); box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.book-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; border: 1px solid #36342e; }
.soundtrack-section { padding-top: 25px; }
.soundtrack-section > .section-number { margin-bottom: 14px; }
.soundtrack-section h2 { font-family: var(--serif); font-size: clamp(27px, 7vw, 39px); line-height: 1.16; letter-spacing: -.015em; }
.supporting-copy { margin-top: 15px; max-width: 31ch; color: var(--muted-text); font-size: 13px; line-height: 1.7; }
.supporting-copy cite { font-style: normal; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 52px; padding: 15px 20px; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; text-decoration: none; transition: border-color 250ms ease, background-color 250ms ease; }
.spotify-button { width: 100%; margin-top: 23px; border: 1px solid var(--gold); background: #1b1914; }
.external-arrow { position: relative; flex: 0 0 11px; width: 11px; height: 11px; }
.external-arrow::before { content: ""; position: absolute; top: 0; right: 0; width: 8px; height: 8px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.external-arrow::after { content: ""; position: absolute; top: 5px; left: -1px; width: 13px; height: 1px; background: currentColor; transform: rotate(-45deg); }
.spotify-button:hover { background: #252119; border-color: #c4ab76; }

/* 04 — portraits on paper-like fields, without enclosing profile cards. */
.subject-grid { display: grid; gap: 46px; }
.portrait { background: var(--charcoal); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.subject-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 19px; }
.subject-heading h3 { font-family: var(--serif); font-size: 29px; line-height: 1.2; letter-spacing: .04em; }
.subject-heading > p { color: var(--muted-text); font-size: 12px; }
.subject blockquote { margin-top: 19px; padding-left: 15px; border-left: 1px solid var(--hairline); }
.quote-text { font-family: var(--serif); font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
.quote-text[data-placeholder="true"] { color: var(--muted-text); font-size: 15px; letter-spacing: .03em; }

/* 05 — thin index rows; accent colors occupy only the numerals and small rules. */
.trilogy-list { border-top: 1px solid var(--hairline); }
.volume { display: grid; grid-template-columns: 33px 1fr; align-items: baseline; column-gap: 14px; padding-block: 25px; border-bottom: 1px solid var(--hairline); }
.volume-numeral { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.volume-one .volume-numeral { color: var(--gold); }
.volume-two .volume-numeral { color: var(--silver); }
.volume-three .volume-numeral { color: var(--oxblood); }
.volume h3 { font-family: var(--serif); font-size: 18px; line-height: 1.4; }
.here-label { display: flex; align-items: center; gap: 8px; grid-column: 2; margin-top: 11px; color: var(--muted-text); font-size: 9px; letter-spacing: .14em; }
.here-label > span { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.book-link { display: inline-flex; grid-column: 2; justify-self: start; align-items: center; gap: 16px; min-height: 48px; margin-top: 10px; color: var(--muted-text); font-size: 10px; letter-spacing: .12em; }
.book-link:hover { color: var(--ivory); }

/* 06 — future files expand as accessible editorial rows. Empty list stays hidden. */
.reader-files { min-height: 190px; }
.files-status { margin-top: 34px; color: var(--muted-text); font-size: 10px; letter-spacing: .17em; }
.file-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--hairline); }
.file-list > li { border-bottom: 1px solid var(--hairline); }
.file-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding-block: 15px; font-size: 13px; text-decoration: none; }
.file-link:hover { color: var(--muted-text); }

/* 07 */
.archive-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding-block: 30px 35px; border-top: 1px solid var(--hairline); }
.archive-footer .author { font-size: 9px; letter-spacing: .18em; }
.footer-series { color: var(--muted-text); font-family: var(--serif); font-size: 13px; letter-spacing: .08em; }
.copyright { grid-column: 1 / -1; color: var(--muted-text); font-size: 10px; }

@media (min-width: 600px) {
  .archive-shell { width: min(100% - 80px, 1040px); }
  .hero { padding-top: 36px; padding-bottom: 60px; }
  .hero-copy { margin-top: 70px; }
  .hero-note { font-size: 14px; }
  .archive-label { font-size: 10px; }
  .book-room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 38px; padding-block: 50px; }
  .book-cover { width: 240px; max-width: 80%; }
  .soundtrack-section { padding-top: 0; }
  .soundtrack-section h2 { font-size: clamp(26px, 4vw, 39px); }
  .spotify-button { max-width: 285px; }
  .section-block { padding-block: 62px; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .subject-heading { display: block; }
  .subject-heading > p { margin-top: 8px; }
  .volume { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 22px; }
  .volume h3 { font-size: clamp(18px, 2.5vw, 23px); }
  .here-label { grid-column: 3; margin-top: 0; }
  .archive-footer { grid-template-columns: 1fr auto 1fr; padding-block: 36px 46px; }
  .copyright { grid-column: auto; justify-self: end; }
}

@media (min-width: 900px) {
  .hero { padding-top: 42px; padding-bottom: 69px; }
  .hero-copy { margin-top: 94px; }
  .hero h1 { font-size: clamp(68px, 7.6vw, 88px); }
  .hero .archive-label { margin-top: 34px; }
  .hero-note { margin-top: 16px; }
  .hero-endmark { display: block; position: absolute; right: 0; bottom: 26px; color: var(--muted-text); font-size: 9px; letter-spacing: .15em; }
  .hero-geometry { inset: 60px -12px 0 52%; opacity: .54; }
  .orbit { width: 350px; height: 350px; }
  .orbit-one { top: 0; left: 10px; }
  .orbit-two { top: 32px; left: 65px; }
  .axis-one { top: 265px; width: 520px; }
  .axis-two { top: 180px; width: 470px; }
  .measure { top: 298px; left: 70px; }
  .book-room { gap: 80px; padding-block: 66px; }
  .book-cover { width: 264px; }
  .soundtrack-section { padding-right: 25px; }
  .soundtrack-section > .section-number { margin-bottom: 22px; }
  .supporting-copy { margin-top: 24px; font-size: 14px; }
  .spotify-button { margin-top: 30px; }
  .section-block { padding-block: 76px; }
  .section-heading { margin-bottom: 40px; gap: 22px; }
  .subject-grid { gap: 64px; }
  .subject-heading { display: flex; align-items: baseline; justify-content: space-between; }
  .subject-heading > p { margin-top: 0; }
  .volume { padding-block: 30px; }
  .files-status { margin-top: 46px; }
  .reader-files { min-height: 250px; }
}

/* A single modest page entrance; nothing waits for scroll or JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: archive-entrance 300ms ease-out both; }
  @keyframes archive-entrance { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
