:root {
  color-scheme: light;
  --paper: #f5f5f5;
  --ink: #171717;
  --muted: #6c6c6c;
  --rule: #c8c8c8;
  --serif: Georgia, 'Times New Roman', serif;
  --utility: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .16; background-image: radial-gradient(#777 .38px, transparent .5px); background-size: 5px 5px; mix-blend-mode: multiply; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }
::selection { background: #323232; color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; pointer-events: none; }
.progress span { display: block; width: 0; height: 100%; background: var(--ink); }

.masthead { height: 74px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 0 clamp(20px, 4vw, 72px); border-bottom: 1px solid var(--rule); background: rgb(245 245 245 / 96%); backdrop-filter: blur(10px); }
.brand { min-width: 32px; font: italic 700 32px/1 var(--serif); letter-spacing: -.13em; text-decoration: none; }
.brand span { position: relative; left: -3px; font-weight: 400; }
.header-caption { padding-left: 20px; border-left: 1px solid #aaa; font: 11px var(--utility); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.masthead nav { height: 100%; margin-left: auto; display: flex; gap: clamp(14px, 2.2vw, 35px); }
.masthead nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; font: 10px var(--utility); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav-index { color: #777; }
.nav-label { font-size: 11px; letter-spacing: .06em; }
.masthead 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; }
.masthead nav a:hover::after, .masthead nav a.active::after { transform: scaleX(1); }
.masthead nav a.active .nav-index { color: var(--ink); }

/* A complete opening, separate from the chronological story. */
.hero { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 53%); min-height: min(680px, calc(100svh - 74px)); border-bottom: 1px solid var(--ink); overflow: hidden; }
.hero-copy { padding: 60px clamp(30px, 6.5vw, 110px) 48px clamp(24px, 7vw, 118px); display: flex; flex-direction: column; justify-content: center; }
.hero-kicker { display: flex; align-items: center; gap: 14px; font: 11px var(--utility); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.hand-drawn-line { display: inline-block; width: 37px; height: 1px; flex: none; background: #222; transform: rotate(-3deg); box-shadow: 0 2px 0 #8a8a8a; }
.hero h1 { margin: 40px 0 0 -.065em; font: normal clamp(6rem, 13.2vw, 13.6rem)/.93 var(--serif); letter-spacing: -.095em; }
.title-period { font-style: italic; }
.hero-deck { max-width: 390px; margin-top: 29px; font: italic clamp(1.25rem, 2vw, 1.7rem)/1.4 var(--serif); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 425px; margin-top: 70px; }
.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); letter-spacing: .14em; text-transform: uppercase; 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 { padding-bottom: 13px; color: var(--muted); font: 11px var(--utility); white-space: nowrap; }
.hero-art { position: relative; min-height: 540px; background: #dedede; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% center; filter: grayscale(1) contrast(1.08); }
.hero-art figcaption { position: absolute; bottom: 25px; left: 28px; padding: 9px 11px; background: var(--paper); font: 10px var(--utility); letter-spacing: .12em; text-transform: uppercase; }

.chapter { padding: 0 28px 125px; border-top: 1px solid var(--ink); }
.hero + .chapter { border-top: 0; }
.chapter:nth-of-type(odd) { background: #ededed; }
.chapter-title { max-width: 1160px; margin: 0 auto; padding: 80px 0 65px; display: grid; grid-template-columns: 165px minmax(0, 1fr); align-items: end; border-bottom: 1px solid var(--rule); }
.chapter-title span { align-self: start; padding-top: 10px; color: var(--muted); font: 10px var(--utility); letter-spacing: .19em; }
.chapter-title h2 { grid-column: 2; font: normal clamp(5rem, 11.5vw, 10rem)/.8 var(--serif); letter-spacing: -.075em; }
.sequence { width: min(100%, 1160px); margin: 0 auto; }
.chapter-title + .sequence { margin-top: 62px; }
.sequence + .sequence { margin-top: 75px; }
.sequence.pair, .sequence.dream, .sequence.memory, .sequence.night, .sequence.tree-dream, .sequence.absence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 32px; }
.panel { min-width: 0; }
.art { overflow: hidden; padding: 9px; border: 1px solid #c9c9c9; background: #f4f4f4; box-shadow: 7px 9px 0 rgb(0 0 0 / 6%); }
.art img, .art svg { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.08); }
.art-color img, .art-color svg { filter: none; }
.panel figcaption { padding: 18px 4px 0; }
.time { display: block; min-height: 12px; color: #494949; font: 10px var(--utility); letter-spacing: .14em; text-transform: uppercase; }
.time:not(:empty)::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 12px 1px 0; border: 1px solid var(--ink); border-radius: 50%; }
.panel p { max-width: 38ch; margin: 12px 0 0; font: clamp(1.075rem, 1.36vw, 1.2rem)/1.72 var(--serif); letter-spacing: .003em; white-space: pre-line; }
.wide .panel { display: grid; grid-template-columns: 165px minmax(0, 1fr); padding-bottom: 65px; border-bottom: 1px solid var(--rule); }
.wide .art { grid-column: 2; }
.wide figcaption { grid-column: 1 / -1; display: grid; grid-template-columns: 165px minmax(0, 1fr); padding: 22px 0 0; }
.wide .time { padding-top: 10px; }
.wide figcaption p { max-width: 735px; margin: 0; }
.pair .panel, .dream .panel, .night .panel, .absence .panel, .tree-dream .panel { padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.dream { padding-top: 42px; border-top: 1px solid var(--rule); }
.tree-dream { padding: 48px 35px 58px; background: #e6e6e6; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tree-dream .panel:nth-child(n+3) { grid-column: 1 / -1; width: min(100%, 900px); justify-self: center; }
.tree-dream .panel:nth-child(n+3) figcaption { max-width: 760px; margin: 0 auto; }
.tree-dream .panel p { max-width: 48ch; }
.tree-dream .panel:last-child { border: 0; }
.tree-dream .panel:last-child p { font-size: clamp(25px, 2.7vw, 33px); }
.night { padding: 35px; background: #262626; color: #f5f5f5; }
.night .panel { border-color: #777; }
.night .time { color: #ccc; }
.night .time::before { border-color: #ddd; }
.narrow { max-width: 790px; }
.memory { padding: 45px 35px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #e9e9e9; }
.reality-anchor, .return-to-room { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
.reality-anchor svg, .return-to-room svg { display: block; width: min(260px, 65%); height: auto; filter: grayscale(1) contrast(1.08); opacity: .85; }
.thought-trail { display: block; margin: 18px 0; color: #8b8b8b; font: 25px/1.8 Georgia, serif; letter-spacing: 5px; transform: rotate(90deg); }
.memory .inner-cue { max-width: 36ch; margin: 0 0 20px; font: italic 19px/1.4 var(--serif); }
.return-to-room > p { max-width: 34ch; margin: 20px 0 0; text-align: center; font: italic 27px/1.4 var(--serif); }
.absence { max-width: 930px; gap: 85px; padding: 40px 0; }
.absence .panel:last-child { margin-top: 30px; }
.absence .panel:last-child p { font-style: italic; }
#later { padding-bottom: 70px; background: #f2f0e9; }
#later .chapter-title { border: 0; }
#later .sequence { max-width: 860px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px clamp(24px, 4vw, 70px); background: #1d1d1d; color: #ececec; }
footer a { font: italic 38px var(--serif); text-decoration: none; }
footer span { font: 10px var(--utility); letter-spacing: .17em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero { min-height: 590px; }
  .hero-copy { padding: 50px 30px 40px; }
  .hero h1 { font-size: clamp(5.4rem, 13vw, 9rem); }
  .hero-kicker { font-size: 9px; letter-spacing: .13em; gap: 10px; }
  .hero-bottom { gap: 14px; flex-wrap: wrap; margin-top: 48px; }
  .read-link { min-width: 170px; }
  .read-time { font-size: 10px; }
  .chapter-title, .wide .panel, .wide figcaption { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 64px; }
  .masthead { height: 64px; padding: 0 20px; gap: 15px; }
  .header-caption, .nav-label { display: none; }
  .masthead nav { gap: 15px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { min-height: 430px; padding: 48px 24px 32px; justify-content: flex-start; }
  .hero-kicker { font-size: 10px; letter-spacing: .17em; gap: 14px; }
  .hero h1 { font-size: clamp(6.3rem, 23vw, 10rem); margin-top: 34px; }
  .hero-deck { margin-top: 20px; }
  .hero-bottom { flex-wrap: nowrap; gap: 20px; width: 100%; margin-top: auto; padding-top: 48px; }
  .read-link { min-width: 168px; gap: 28px; font-size: 10px; }
  .read-time { font-size: 10px; }
  .hero-art { min-height: 0; height: 62vw; max-height: 430px; }
  .hero-art figcaption { bottom: 18px; left: 20px; font-size: 9px; }
  .chapter { padding: 0 22px 70px; }
  .chapter-title { display: block; padding: 55px 0 40px; }
  .chapter-title h2 { margin-top: 32px; font-size: clamp(5.1rem, 20vw, 8rem); }
  .chapter-title + .sequence { margin-top: 40px; }
  .sequence + .sequence { margin-top: 55px; }
  .sequence.pair, .sequence.dream, .sequence.memory, .sequence.night, .sequence.tree-dream, .sequence.absence { grid-template-columns: 1fr; gap: 40px; }
  .wide .panel { display: block; padding-bottom: 50px; }
  .wide figcaption { display: block; padding-top: 20px; }
  .wide .time { padding: 0; margin-bottom: 15px; }
  .panel p { font-size: 1.075rem; line-height: 1.75; }
  .art { padding: 5px; box-shadow: 5px 6px 0 rgb(0 0 0 / 7%); }
  .tree-dream, .memory, .night { padding: 25px 18px 35px; }
  .tree-dream .panel:nth-child(n+3) { grid-column: auto; }
  .tree-dream .panel:last-child p { font-size: 27px; }
  .absence { padding: 20px 0; }
  .absence .panel:last-child { margin-top: 0; }
  footer { flex-direction: column; text-align: center; gap: 14px; }
}
@media (max-width: 360px) {
  .hero-copy { padding-right: 20px; padding-left: 20px; }
  .hero-kicker { font-size: 9px; letter-spacing: .13em; }
  .read-link { min-width: 156px; }
  .hero-bottom { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
