/* insearchofresonance.com — variant "derived".
   Visual language from derived-spec-book-hero.md: a black room, a very large
   light serif, and a shelf of hardcover books in true CSS 3D that the pointer
   pulls out one at a time. The essays are the books. */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic-latin.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #070605;
  --bg-2: #0e0c0a;
  --bg-3: #16130f;
  --ink: #efe9dd;
  --ink-2: #c4bcac;
  --ink-3: #978e7e;
  --line: #27231d;
  --line-2: #3a352d;
  --gilt: #cdb57c;
  --page: #e4dcc4;
  --pill-bg: #121110;
  --display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-pull: 620ms;
  --t-release: 760ms;
  --gutter: clamp(16px, 3vw, 44px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ nav */
.nav { position: relative; z-index: 20; height: 60px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.nav--over { position: absolute; inset: 0 0 auto 0; border-bottom: 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: .005em; min-height: 32px; }
.logo__glyph { width: 15px; height: 19px; color: var(--ink); flex: none; }
.nav__mid ul { display: flex; gap: 6px; }
.nav__mid a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink); border-radius: 999px; transition: background-color .2s var(--ease-in-out), color .2s var(--ease-in-out); }
.nav__mid a:hover { background: rgba(239, 233, 221, .08); }
.nav__mid a[aria-current="page"] { background: rgba(239, 233, 221, .1); }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--pill-bg); color: var(--ink); cursor: pointer; place-items: center; padding: 0; }
.burger span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 2.5px auto; transition: transform .3s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(2px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-2px) rotate(-45deg); }
.menu { position: fixed; z-index: 19; inset: 60px 0 auto 0; background: rgba(7, 6, 5, .97); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; }
.menu[hidden] { display: none; }
.menu a { display: block; padding: 10px 0; font-family: var(--display); font-size: 2rem; font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu a[aria-current="page"] { color: var(--gilt); }

/* ------------------------------------------------------------ pills */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 15px; border-radius: 999px; font: 500 12.5px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease-in-out), border-color .2s var(--ease-in-out), color .2s var(--ease-in-out), transform .2s var(--ease-in-out); }
.pill--light { background: #f4f1ea; color: #0b0a09; border: 0; font-weight: 600; }
.pill--light:hover { background: #fff; transform: translateY(-1px); }
.pill--dark { background: var(--pill-bg); color: #ddd6c9; border: 1px solid var(--line-2); }
.pill--dark:hover { background: #1d1b18; border-color: #5a544a; }
.pill--dark i { width: 8px; height: 8px; border-radius: 2px; background: var(--cloth); box-shadow: 0 0 0 1px rgba(239, 233, 221, .25); }
.pill--dark[aria-pressed="true"] { background: var(--ink); color: #0b0a09; border-color: var(--ink); }

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: radial-gradient(ellipse 70% 45% at 50% 22%, #14110d 0%, var(--bg) 70%); }
.hero__copy { position: relative; padding-top: calc(64px + 3.2svh); text-align: center; }
.mark { position: relative; z-index: 1; font-family: var(--display); font-weight: 300; color: var(--ink); }
.mark__pre { display: block; font-style: italic; font-size: clamp(1.35rem, 2.3vw, 2.4rem); line-height: 1.1; color: var(--ink-2); letter-spacing: .01em; }
.mark__word { display: block; font-size: clamp(4.6rem, 15.2vw, 15rem); line-height: .86; letter-spacing: -.025em; }
.hero__lede { position: absolute; z-index: 3; left: var(--gutter); top: calc(92px + 3.2svh + 15.7vw); /* just under the wordmark */ width: min(25ch, 28vw); text-align: left; font: italic 400 1.12rem/1.45 var(--serif); color: var(--ink-2); }
/* Wide, short screens: the shelf climbs higher than the space under the
   wordmark, so the lede moves up beside the small italic line instead. */
@media (min-width: 721px) and (min-aspect-ratio: 17/10) {
  .hero__lede { top: calc(70px + 3.2svh); width: min(24ch, 17vw); font-size: 1rem; }
}
.hero__pills { position: absolute; z-index: 4; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }

/* ------------------------------------------------------------ the shelf (signature motion)
   Book i stands on a straight rail running right and away at phi = 32deg
   (the spec's 40deg converged before the right edge at 16:10; see DESIGN).
   Rail distance t = (i + s) x spacing, where s is the parting offset JS writes
   when a book is pulled. x = x0 + t cos(phi), z = -t sin(phi), and every book
   is turned rotateY(-50deg) so its cover faces the reader's left. */
.shelf {
  --bh: min(46svh, 31vw); --bw: calc(var(--bh) * .68); --bd: calc(var(--bw) * .2); --sp: calc(var(--bw) * .72);
  --cos: .848; --sin: .53; --ry: -50deg; --x0: -4vw; --base: 5svh;
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 62%;
  perspective: 2100px; perspective-origin: 30% -20%;
  /* A horizontal drag on the shelf scrubs it; a vertical one still scrolls the page. */
  touch-action: pan-y;
}
.shelf__row { position: absolute; inset: 0; transform-style: preserve-3d; }
.book { position: absolute; display: block; width: var(--bw); height: var(--bh); transform-style: preserve-3d; text-decoration: none; color: inherit; }
.shelf .book {
  left: 0; bottom: 0;
  --t: calc((var(--i) + var(--s, 0) - var(--pan, 0)) * var(--sp));
  transform:
    translate3d(calc(var(--x0) + var(--t) * var(--cos)), calc(var(--base) + var(--rise, 0px)), calc(var(--t) * var(--sin) * -1))
    rotateY(calc(var(--ry) + var(--turn, 0deg)))
    translateZ(var(--lift, 0px));
  transition: transform var(--t-release) var(--ease-out);
}
.shelf__row.is-open .book, .shelf .book.is-pulled { transition-duration: var(--t-pull); }
.shelf .book.is-pulled { --turn: 24deg; --lift: calc(var(--bw) * .42); --rise: -4.5svh; }
.shelf .book.is-hl { --rise: -2.6svh; }
.shelf .book.is-pulled.is-hl { --rise: -4.5svh; }
.shelf .book--gap { pointer-events: none; }
.shelf [data-row].is-live .book { will-change: transform; }
.shelf .book:focus-visible { outline: none; }
.shelf .book:focus-visible .cover { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Entrance: books rise onto the shelf, near to far. `translate` composes with
   the transform above, so the entrance never fights the pull. */
.js .shelf .book { animation: shelve 1.05s var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 45ms); }
@keyframes shelve { from { translate: 0 62svh; } to { translate: 0 0; } }
.js .mark, .js .hero__lede, .js .hero__pills, .js .nav--over { animation: fade-in .9s var(--ease-out) both; }
.js .hero__lede { animation-delay: .35s; }
.js .hero__pills { animation-delay: .7s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.js .mark__word { animation: rise-in 1.1s var(--ease-out) both .05s; display: block; }
@keyframes rise-in { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }

.face { position: absolute; inset: 0; backface-visibility: hidden; transition: filter .45s var(--ease-in-out); }
.book.is-dim .face { filter: brightness(.38) saturate(.7); }
.cover {
  display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
  padding: 9% 9% 8%; background-color: var(--cloth); /* % of the book width: cqw here would resolve against the viewport */ color: var(--cink);
  border-radius: 2px 4px 4px 2px;
  box-shadow: inset 7px 0 11px -5px rgba(0, 0, 0, .65), inset -1px 0 0 rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cover::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.32) 0, rgba(0,0,0,0) 7%, rgba(255,255,255,.07) 8.5%, rgba(0,0,0,0) 12%),
              linear-gradient(112deg, rgba(255,255,255,.1), rgba(255,255,255,0) 42%); }
.cv-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cv-theme, .cv-title, .cv-rule, .cv-mark { position: relative; z-index: 1; }
/* On the shelf the nearer book hides the left of each cover, so the type is
   set ranged right in the right-hand two thirds: the title stays readable at
   rest, not only when the book is pulled. */
.shelf .cover, .book--solo .cover { align-items: flex-end; text-align: right; padding-left: 30%; }
.shelf .cv-title, .book--solo .cv-title { font-size: max(14px, 11.2cqw); }
.shelf .cv-mark, .book--solo .cv-mark { align-self: flex-end; }
.cv-theme { font: 600 max(11px, 4.1cqw)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.cv-title { margin-top: 3.5cqw; font: 500 max(14px, 12.6cqw)/.98 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.cv-rule { margin-top: 4cqw; width: 14cqw; height: 1px; background: currentColor; opacity: .7; }
.cv-mark { margin-top: auto; align-self: flex-start; font: 600 max(11px, 3.6cqw)/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 2cqw 3cqw; border: 1px solid currentColor; border-radius: 99px; opacity: .8; }
.edge { left: 100%; right: auto; width: var(--bd); transform-origin: left center; transform: rotateY(90deg);
  background: linear-gradient(90deg, rgba(0,0,0,.02), rgba(0,0,0,.42)), repeating-linear-gradient(90deg, #a69d77 0 1px, #8f8763 1px 2.5px); }
.top { bottom: auto; height: var(--bd); transform-origin: top center; transform: rotateX(-90deg); backface-visibility: visible;
  background: linear-gradient(180deg, #ebe3cb, #cfc6a8); }

/* ------------------------------------------------------------ inner chrome */
.sheet, .page, .read { position: relative; }
.band { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.band__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.band__title { font: 300 clamp(2rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: -.01em; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font: 500 13.5px/1 var(--sans); color: var(--ink-2); text-decoration: none; }
.more:hover { color: var(--ink); }
.kicker { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt); }
.kicker a { text-decoration: none; display: inline-flex; min-height: 24px; align-items: center; }
.kicker a:hover { text-decoration: underline; }
.page { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 0; }
.page__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.page__title { margin-top: 14px; font: 300 clamp(3.2rem, 9vw, 7.5rem)/.92 var(--display); letter-spacing: -.02em; }
.page__lede { margin-top: 18px; font: italic 400 1.2rem/1.5 var(--serif); color: var(--ink-2); max-width: 46ch; }
.page__count { margin-top: 12px; font: 500 13px/1.2 var(--sans); color: var(--ink-3); }
.page__head--theme { display: flex; gap: clamp(20px, 4vw, 40px); align-items: stretch; max-width: 900px; }
.theme-spine { flex: none; width: clamp(54px, 7vw, 84px); border-radius: 3px 3px 2px 2px; background: var(--cloth);
  box-shadow: inset -8px 0 14px -6px rgba(0,0,0,.55), inset 0 18px 0 -16px var(--cink), inset 0 -18px 0 -16px var(--cink); min-height: 200px; }
.sample { display: inline-block; font: 500 12px/1.35 var(--sans); letter-spacing: .02em; color: var(--gilt); border: 1px solid rgba(205, 181, 124, .45); border-radius: 999px; padding: 4px 10px; }

/* ------------------------------------------------------------ cards: a volume on its own shelf */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { min-width: 0; }
.card[hidden] { display: none; }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .3s var(--ease-in-out), background-color .3s var(--ease-in-out); }
.card__link:hover { border-color: var(--line-2); background: #110f0c; }
.card__shelf { position: relative; height: 240px; perspective: 900px; perspective-origin: 50% 20%;
  background: radial-gradient(ellipse 60% 55% at 50% 100%, rgba(205, 181, 124, .1), rgba(0,0,0,0) 70%); }
.card__shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: linear-gradient(90deg, rgba(0,0,0,0), var(--line-2) 20%, var(--line-2) 80%, rgba(0,0,0,0)); }
.book--card { --bh: 176px; --bw: 120px; --bd: 24px; left: 50%; bottom: 22px; margin-left: -66px;
  transform: rotateY(-42deg); transition: transform var(--t-release) var(--ease-out); }
.book--card .cover { padding: 11px 10px 10px; }
.book--card .cv-title { margin-top: 0; font-size: 15px; line-height: 1.02; }
.book--card .cv-mark { font-size: 11px; padding: 3px 6px; }
.card__link:hover .book--card, .card__link:focus-visible .book--card { transform: translateY(-10px) rotateY(-16deg) translateZ(26px); transition-duration: var(--t-pull); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cloth); box-shadow: 0 0 0 1px rgba(239, 233, 221, .25); }
.card__state { font: 500 12px/1.2 var(--sans); color: var(--ink-3); }
.card__title { font: 400 clamp(1.6rem, 2.2vw, 1.95rem)/1.05 var(--display); letter-spacing: -.005em; color: var(--ink); }
.card__dek { font: 400 1rem/1.5 var(--serif); color: var(--ink-2); }
.card .sample { align-self: flex-start; margin-top: auto; }

/* ------------------------------------------------------------ theme spines */
.spines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.spine-card { display: flex; gap: 22px; height: 100%; padding: 22px; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; transition: border-color .3s var(--ease-in-out); }
.spine-card:hover { border-color: var(--line-2); }
.spine { flex: none; width: 72px; height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0; border-radius: 3px 3px 2px 2px; background: var(--cloth); color: var(--cink);
  box-shadow: inset -9px 0 14px -6px rgba(0,0,0,.55), inset 4px 0 6px -4px rgba(255,255,255,.18), 0 18px 30px -18px rgba(0,0,0,.9);
  transition: transform var(--t-release) var(--ease-out); }
.spine__band { width: 100%; height: 6px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .7; }
.spine__name { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 1.35rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.spine-card:hover .spine, .spine-card:focus-visible .spine { transform: translateY(-10px) rotate(-2deg); transition-duration: var(--t-pull); }
.spine-card__body { display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.spine-card__name { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--display); color: var(--ink); }
.spine-card__line { font: 400 1.02rem/1.5 var(--serif); color: var(--ink-2); }
.spine-card__count { font: 500 13px/1.2 var(--sans); color: var(--gilt); }
.spines--big .spine { height: 300px; width: 84px; }

/* ------------------------------------------------------------ filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters .pill { min-height: 34px; font-size: 13px; }
.filter-status { font: 500 13px/1.3 var(--sans); color: var(--ink-3); margin-bottom: 22px; }
.filter-empty { color: var(--ink-2); font-family: var(--serif); font-style: italic; }

/* ------------------------------------------------------------ reading */
.progress { position: fixed; z-index: 30; inset: 0 0 auto 0; height: 2px; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--gilt); }
.read { padding: clamp(36px, 6vw, 80px) var(--gutter) 0; }
.read__head { max-width: 1100px; margin: 0 auto clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px/1.2 var(--sans); color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 28px; text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.read__sample { margin-top: 18px; }
.read__title { margin-top: 18px; font: 300 clamp(2.7rem, 6vw, 5.4rem)/.98 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.read__dek { margin-top: 20px; max-width: 44ch; font: italic 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.45 var(--serif); color: var(--ink-2); }
.read__meta { margin-top: 18px; font: 500 13px/1.2 var(--sans); color: var(--ink-3); }
.read__book { position: relative; width: 250px; height: 330px; perspective: 1000px; perspective-origin: 20% 0%; }
.book--solo { --bh: 300px; --bw: 204px; --bd: 40px; left: 10px; bottom: 0; transform: rotateY(-20deg); transition: transform 1.2s var(--ease-out); }
.js .book--solo { transform: rotateY(-50deg) translateX(-14px); }
.js .is-ready .book--solo, .js.is-ready .book--solo { transform: translateY(-8px) rotateY(-20deg) translateZ(30px); }

.prose { max-width: 66ch; margin: 0 auto; font: 400 1.25rem/1.72 var(--serif); color: #e6dfd1; font-optical-sizing: auto; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font: 500 clamp(1.7rem, 2.6vw, 2.1rem)/1.1 var(--display); color: var(--ink); letter-spacing: -.005em; }
.prose h2 + p { margin-top: .7em; }
.prose .lead::first-letter { float: left; font: 400 4.6em/.8 var(--display); padding: .06em .09em 0 0; color: var(--gilt); }
.fnref { font-size: .7em; line-height: 0; vertical-align: super; }
.fnref a { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; font: 600 .95em/24px var(--sans); color: var(--gilt); text-decoration: none; border-radius: 999px; }
.fnref a:hover { background: rgba(205, 181, 124, .14); }
.pull { margin: 2em 0; padding: 1.1em 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pull p { font: italic 300 clamp(1.7rem, 2.8vw, 2.3rem)/1.2 var(--display); color: var(--page); text-wrap: balance; }
.aside { font: 400 .95rem/1.55 var(--sans); color: var(--ink-2); border-left: 2px solid var(--gilt); padding: .2em 0 .2em 1em; }
.aside__mark { display: block; font: 600 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt); margin-bottom: .45em; }
@media (min-width: 1280px) {
  .aside { float: right; clear: right; width: 240px; margin: .3em -300px 1em 0; }
  .prose > .aside + * { margin-top: 1.15em; }
}
.footnotes { max-width: 66ch; margin: clamp(48px, 6vw, 80px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); font: 400 1.25rem/1.6 var(--serif); color: var(--ink-2); }
.footnotes ol { font-size: .8em; }
@media (max-width: 720px) { .footnotes { font-size: 1.125rem; } }
.footnotes h2 { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt); margin-bottom: 14px; }
.footnotes ol { padding-left: 1.3em; }
.footnotes li + li { margin-top: .7em; }
.fnback { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; text-decoration: none; color: var(--gilt); }
.pn { max-width: 1100px; margin: clamp(56px, 7vw, 96px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn__link { display: flex; flex-direction: column; gap: 8px; padding: 22px; min-height: 120px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); text-decoration: none; transition: border-color .3s var(--ease-in-out); }
.pn__link:hover { border-color: var(--line-2); }
.pn__none { visibility: hidden; }
.pn__next { text-align: right; align-items: flex-end; }
.pn__dir { font: 500 12.5px/1.2 var(--sans); color: var(--gilt); letter-spacing: .04em; }
.pn__title { font: 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.1 var(--display); }

/* ------------------------------------------------------------ about, others, 404 */
.about { max-width: 640px; }
.about__lead { font: 400 clamp(1.35rem, 2.4vw, 1.75rem)/1.45 var(--serif); }
.about__more { margin-top: 18px; font: italic 400 1.15rem/1.5 var(--serif); color: var(--ink-2); }
.about__links, .lost__links { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.others { margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); }
.others__h { font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.others ul { display: flex; flex-wrap: wrap; gap: 8px; }
.hero--lost .hero__copy { padding-top: calc(80px + 4svh); }
.hero--lost .kicker { position: relative; z-index: 3; }
.mark--lost .mark__word { font-size: clamp(3rem, 9vw, 8.5rem); line-height: .95; }
.hero--lost .hero__lede { position: relative; left: auto; top: auto; width: auto; max-width: 40ch; margin: 18px auto 0; text-align: center; }
.hero--lost .lost__links { position: relative; z-index: 3; justify-content: center; }
.hero--lost .shelf { height: 48%; }

/* ------------------------------------------------------------ footer */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); background: var(--bg-2); }
.foot__inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: start; }
.foot__about { font: italic 400 1.02rem/1.5 var(--serif); color: var(--ink-2); max-width: 44ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 32px; font: 500 13px/1 var(--sans); color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__note { grid-column: 1 / -1; font: 400 12.5px/1.5 var(--sans); color: var(--ink-3); padding-top: 18px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ scroll reveals */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { --bh: min(44svh, 46vw); }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__mid { display: none; }
  .no-js .nav__mid { display: block; grid-column: 1 / -1; }
  .burger { display: grid; }
  .read__head { grid-template-columns: 1fr; }
  .read__book { display: none; }
  .spines { grid-template-columns: 1fr; }
  .foot__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__right .pill--light { display: none; }
  .hero { min-height: 600px; }
  .hero__copy { padding-top: calc(72px + 4svh); }
  .mark__word { font-size: clamp(3.6rem, 20.5vw, 6rem); }
  .hero__lede { position: relative; left: auto; top: auto; width: auto; max-width: 30ch; margin: 16px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 1.05rem; }
  .shelf { --bh: min(46svh, 76vw); --cos: .5; --sin: .866; --ry: -38deg; --x0: -16vw; --base: 3svh;
    height: 64%; perspective: 1000px; perspective-origin: 24% -12%; }
  .shelf .cover { padding-left: 22%; }
  .shelf .cv-title { font-size: max(15px, 13.2cqw); }
  .hero__pills { left: 0; right: 0; transform: none; overflow-x: auto; padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .hero__pills::-webkit-scrollbar { display: none; }
  .hero__pills .pill { scroll-snap-align: start; flex: none; }
  .cards { grid-template-columns: 1fr; }
  .card__shelf { height: 220px; }
  .prose { font-size: 1.125rem; line-height: 1.68; }
  .pull { margin: 1.6em 0; }
  .pn { grid-template-columns: 1fr; }
  .pn__none { display: none; }
  .spine-card { padding: 18px; gap: 18px; }
  .spine, .spines--big .spine { width: 60px; height: 200px; }
  .page__head--theme { gap: 18px; }
  .theme-spine { width: 44px; }
}

/* ------------------------------------------------------------ reduced motion
   Everything in its final state. A pointed or focused book is still pulled, so
   its cover becomes readable, but it changes instantly instead of swinging. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .book--solo { transform: translateY(-8px) rotateY(-20deg) translateZ(30px); }
}
