:root {
  color-scheme: dark;
  --ink: #f4eee7;
  --muted: #b9b3ad;
  --accent: #e1b99d;
  --text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; color: var(--ink); background: #000; }
h1, h2, p, blockquote, figure { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-underline-offset: .3em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { color: var(--ink); }
.shell { width: min(100% - 5rem, 72rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .65rem;
  left: .65rem;
  z-index: 1;
  transform: translateY(-160%);
  padding: .65rem .9rem;
  color: #000;
  background: var(--ink);
}
.skip-link:focus { transform: none; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.35rem;
}
.masthead a { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -.07em;
}
.wordmark span { color: var(--accent); }
.back-link { color: var(--muted); font-size: .9375rem; }

.intro {
  display: flex;
  gap: 1.15rem 2rem;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  padding-block: clamp(3.7rem, 7.5vw, 7rem) clamp(3rem, 6vw, 5.75rem);
}
.intro h1 {
  font: 400 clamp(4.1rem, 13vw, 12rem)/.83 var(--serif);
  letter-spacing: -.083em;
}
.intro p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: .12em;
}

.chapter {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "frame";
  overflow: hidden;
  background: #121110;
}
.chapter::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--scrim);
  pointer-events: none;
  content: "";
}
.chapter-media {
  grid-area: frame;
  min-width: 0;
  aspect-ratio: 3 / 2;
}
.chapter-copy {
  position: relative;
  z-index: 2;
  grid-area: frame;
  align-self: end;
  justify-self: end;
  width: min(42%, 27rem);
  margin: clamp(.7rem, 2.25vw, 1.5rem);
  color: #fff6ec;
  text-align: right;
  text-shadow: 0 2px 18px #000, 0 1px 4px #0008;
}
.chapter h2 {
  font: 510 clamp(1.15rem, 3.35vw, 3.25rem)/1.34 var(--serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.chapter h2 span[lang="en"], .phrase { white-space: nowrap; }
.chapter-painter {
  border-radius: .65rem .65rem 0 0;
  --scrim: linear-gradient(90deg, transparent 47%, #0003 66%, #0009 100%);
}
.chapter-song {
  --scrim: radial-gradient(ellipse 65% 63% at 89% 100%, #000e, #0006 54%, transparent 100%);
}
.chapter-song .chapter-copy { width: min(56%, 38rem); }
.chapter-song blockquote {
  margin-top: .25em;
  color: #fad0ae;
  font: italic 400 clamp(1.15rem, 3.35vw, 3.25rem)/1.25 var(--serif);
}
.chapter-boy {
  border-radius: 0 0 .65rem .65rem;
  --scrim: radial-gradient(ellipse 56% 68% at 96% 99%, #000e, #0008 58%, transparent 100%);
}

.closing {
  padding-block: clamp(2.75rem, 7vw, 6.5rem) clamp(4rem, 9.5vw, 8.75rem);
  text-align: center;
}
.closing p {
  max-width: 25em;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  line-height: 1.85;
  text-wrap: balance;
}
.closing p + p { margin-top: .35rem; color: var(--muted); }
.works-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.8rem;
  padding: .65rem 1.1rem;
  border: 1px solid #5b4b41;
  border-radius: 99px;
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
}
.works-link:hover { background: #1c1511; }

@media (max-width: 54rem) {
  .shell { width: calc(100% - 3rem); }
}

@media (max-width: 39rem) {
  .shell { width: calc(100% - 2rem); }
  .intro { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
  .intro h1 { font-size: clamp(4.1rem, 13vw, 6rem); }
  .chapter-song .chapter-copy { width: 60%; }
  .chapter-boy .chapter-copy { width: 43%; }
}
