:root {
  color-scheme: light;
  --paper: #f5f5f5;
  --ink: #171717;
  --muted: #6c6c6c;
  --rule: #c8c8c8;
  --display: Georgia, 'Times New Roman', serif;
  --body: Georgia, 'Times New Roman', serif;
  --utility: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .16;
  background-image: radial-gradient(#777 0.38px, transparent .5px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #323232; color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 50; background: white; padding: 12px 16px; font: 700 13px var(--utility); }
.skip-link:focus { top: 16px; }

.reading-progress { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: #151515; transform-origin: left; }
.site-header {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(20px, 4vw, 72px);
  border-bottom: 1px solid var(--rule);
  background: rgba(245,245,245,.96);
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(10px);
}
.wordmark { font: italic 700 32px var(--display); text-decoration: none; line-height: 1; letter-spacing: -.13em; min-width: 32px; }
.wordmark-stroke { font-weight: 400; position: relative; left: -3px; }
.header-caption { font: 11px var(--utility); letter-spacing: .16em; text-transform: uppercase; border-left: 1px solid #aaa; padding-left: 20px; white-space: nowrap; }
.chapter-nav { display: flex; align-items: stretch; gap: clamp(14px, 2.2vw, 35px); margin-left: auto; height: 100%; }
.chapter-nav a { display: inline-flex; gap: 7px; align-items: center; position: relative; font: 10px var(--utility); letter-spacing: .12em; text-decoration: none; text-transform: uppercase; color: #777; transition: color .2s; }
.chapter-nav a span { font-size: 11px; letter-spacing: .06em; color: var(--ink); }
.chapter-nav a::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.chapter-nav a:hover::after, .chapter-nav a.active::after { transform: scaleX(1); }
.chapter-nav a.active { color: #111; }

.hero { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 53%); min-height: min(770px, calc(100svh - 74px)); position: relative; overflow: hidden; border-bottom: 1px solid var(--ink); }
.hero-copy { padding: clamp(55px, 8vh, 112px) clamp(30px, 6.5vw, 110px) 48px clamp(24px, 7vw, 118px); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.hero-kicker, .eyebrow { font: 11px var(--utility); text-transform: uppercase; letter-spacing: .2em; }
.hero-kicker { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.hand-drawn-line { width: 37px; height: 1px; background: #222; display: inline-block; transform: rotate(-3deg); box-shadow: 0 2px 0 #8a8a8a; }
h1, h2, p, figure, blockquote { margin: 0; }
.hero h1 { font: normal clamp(6rem, 13.2vw, 13.6rem)/.93 var(--display); letter-spacing: -.095em; margin: clamp(35px, 6vh, 60px) 0 0 -.065em; }
.title-period { font-style: italic; }
.hero-deck { max-width: 390px; font: italic clamp(1.25rem, 2vw, 1.7rem)/1.4 var(--display); margin-top: 29px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-top: clamp(60px, 13vh, 150px); max-width: 425px; }
.read-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; min-width: 190px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; font: 11px var(--utility); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
.read-link .arrow { font-size: 22px; line-height: .5; transition: transform .2s; }
.read-link:hover .arrow { transform: translate(4px, 4px); }
.read-time { font: 11px var(--utility); color: var(--muted); white-space: nowrap; padding-bottom: 13px; }
.hero-art { min-height: 540px; position: relative; background: #dedede; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 51% center; filter: grayscale(1) contrast(1.1); }
.hero-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; }
.hero-art figcaption { position: absolute; bottom: 25px; left: 28px; background: var(--paper); padding: 9px 11px; font: 10px var(--utility); text-transform: uppercase; letter-spacing: .12em; }
.hero-vertical { position: absolute; right: 13px; top: 28px; z-index: 2; writing-mode: vertical-rl; font: 10px var(--utility); letter-spacing: .17em; text-transform: uppercase; background: rgba(245,245,245,.9); padding: 12px 7px; }

.story-intro { min-height: 195px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; max-width: 1200px; margin: auto; padding: 36px 38px; gap: 25px; }
.story-intro-number { align-self: start; font: 11px var(--utility); letter-spacing: .1em; }
.story-intro .eyebrow { color: var(--muted); margin-bottom: 14px; }
.story-intro p:last-child { font: italic clamp(1.25rem, 2.1vw, 1.8rem)/1.35 var(--display); }
.intro-endmark { justify-self: end; font: 25px var(--display); }

.chapter { border-top: 1px solid var(--ink); padding: 0 28px 135px; scroll-margin-top: 73px; }
.chapter:nth-of-type(even) { background: #ededed; }
.chapter-heading { position: relative; max-width: 1160px; margin: 0 auto; padding: 80px 0 75px; display: grid; grid-template-columns: 165px 1fr; align-items: end; border-bottom: 1px solid var(--rule); }
.chapter-index { align-self: start; font: 10px var(--utility); text-transform: uppercase; letter-spacing: .19em; color: var(--muted); padding-top: 10px; }
.chapter-index span { margin: 0 4px; }
.chapter-heading h2 { font: normal clamp(5rem, 11.5vw, 10rem)/.8 var(--display); letter-spacing: -.075em; grid-column: 2; }
.chapter-heading p { grid-column: 2; font: italic 1.25rem var(--display); margin-top: 26px; color: #505050; }
.scenes { max-width: 1160px; margin: 0 auto; }
.scene { display: grid; grid-template-columns: 165px minmax(0, 1fr); border-bottom: 1px solid var(--rule); padding: 62px 0 65px; scroll-margin-top: 94px; }
.scene:last-child { border-bottom: 0; }
.scene-marker { display: flex; gap: 12px; align-items: start; padding-top: 10px; font: 11px var(--utility); text-transform: uppercase; letter-spacing: .12em; color: #494949; white-space: nowrap; }
.marker-dot { width: 6px; height: 6px; border: 1px solid var(--ink); border-radius: 50%; margin-top: 3px; flex: none; }
.scene-content { width: min(100%, 735px); }
.scene-content p { font: clamp(1.075rem, 1.36vw, 1.2rem)/1.82 var(--body); letter-spacing: .003em; }
.scene-content p + p { margin-top: 1.45em; }
.scene-content p.verse { white-space: normal; margin: 2.1em 0 2.1em 2px; border-left: 1px solid #7b7b7b; padding: 3px 0 3px 25px; font-style: italic; line-height: 1.95; }
.scene-content p:first-child::first-letter { font-feature-settings: "kern"; }
.scene-content .story-figure { width: min(920px, calc(100% + 120px)); margin: 65px 0 15px -60px; }
.image-frame { border: 1px solid #c9c9c9; padding: 9px; background: #f4f4f4; box-shadow: 7px 9px 0 rgba(0,0,0,.06); }
.story-figure img { width: 100%; height: auto; filter: grayscale(1) contrast(1.08); }
.story-figure figcaption { display: flex; gap: 13px; align-items: center; padding-top: 17px; font: 10px var(--utility); letter-spacing: .14em; text-transform: uppercase; }
.figure-rule { display: block; width: 27px; height: 1px; background: var(--ink); transform: rotate(-4deg); }
.scene-content .feature-figure { width: min(1030px, calc(100% + 170px)); margin-left: -85px; margin-top: 75px; }
.feature-figure .image-frame { padding: 11px; box-shadow: 10px 12px 0 rgba(0,0,0,.07); }
.tree-quote { font: italic clamp(1.5rem, 3vw, 2.8rem)/1.25 var(--display); letter-spacing: -.03em; max-width: 600px; margin: 48px auto 0; text-align: center; }
.tree-quote::before { content: "✳"; display: block; font: normal 21px var(--display); margin-bottom: 19px; }

#later { padding-bottom: 40px; }
#later .chapter-heading { border-bottom: 0; }
#later .scenes { max-width: 860px; }
#later .scene { grid-template-columns: 165px minmax(0, 1fr); border-top: 1px solid var(--rule); }
.endpiece { text-align: center; min-height: 350px; padding: 100px 20px 70px; border-top: 1px solid var(--ink); }
.endpiece-mark { font: 25px var(--display); display: inline-block; margin-bottom: 25px; }
.endpiece p { font: italic clamp(2.5rem, 5vw, 4.5rem) var(--display); letter-spacing: -.05em; }
.endpiece a { display: inline-block; margin-top: 45px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 10px var(--utility); text-transform: uppercase; text-decoration: none; letter-spacing: .15em; }
.endpiece a span { margin-left: 15px; font-size: 15px; }
.site-footer { display: flex; justify-content: space-between; padding: 23px clamp(24px, 4vw, 70px); background: #1d1d1d; color: #ececec; font: 10px var(--utility); text-transform: uppercase; letter-spacing: .17em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 48% 52%; min-height: 650px; }
  .hero-copy { padding-left: 40px; padding-right: 30px; }
  .hero h1 { font-size: clamp(5.4rem, 13vw, 9rem); }
  .chapter-heading, .scene, #later .scene { grid-template-columns: 120px minmax(0, 1fr); }
  .scene-content .story-figure { width: 100%; margin-left: 0; }
  .scene-content .feature-figure { width: 100%; margin-left: 0; }
}
@media (max-width: 680px) {
  .site-header { height: 64px; padding: 0 20px; gap: 15px; }
  .header-caption { display: none; }
  .chapter-nav { gap: 15px; }
  .chapter-nav a { font-size: 10px; }
  .chapter-nav a span { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 65px 24px 45px; min-height: 520px; }
  .hero h1 { font-size: clamp(6.3rem, 23vw, 10rem); margin-top: 45px; }
  .hero-deck { margin-top: 20px; }
  .hero-bottom { margin-top: auto; padding-top: 65px; }
  .hero-art { min-height: 0; height: 62vw; max-height: 430px; }
  .hero-vertical { display: none; }
  .story-intro { grid-template-columns: 1fr auto; padding: 35px 24px 50px; min-height: 0; }
  .story-intro-number { grid-column: 1/-1; }
  .chapter { padding: 0 22px 70px; scroll-margin-top: 64px; }
  .chapter-heading { display: block; padding: 65px 0 50px; }
  .chapter-heading h2 { font-size: clamp(5.1rem, 20vw, 8rem); margin-top: 43px; }
  .chapter-heading p { margin-top: 20px; }
  .scene, #later .scene { display: block; padding: 45px 0 52px; }
  .scene-marker { margin-bottom: 24px; }
  .scene-content p { font-size: 1.075rem; line-height: 1.75; }
  .scene-content .story-figure, .scene-content .feature-figure { margin-top: 45px; }
  .image-frame, .feature-figure .image-frame { padding: 5px; box-shadow: 5px 6px 0 rgba(0,0,0,.07); }
  .tree-quote { margin-top: 42px; padding: 0 10px; }
  .endpiece { min-height: 300px; padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Cross-links to the rest of the collection */
.works-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(12px, 1.8vw, 26px); }
.works-nav a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.32); padding-bottom: 4px; transition: border-color .2s; }
.works-nav a:hover { border-bottom-color: currentColor; }
@media (max-width: 700px) {
  .site-footer { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
}
