/* Mari Hon. Palette lifted from the two covers: plaster wall, dusty rose linen,
   antique mirror bronze, spruce spine; night teal and pale gold for book two. */
:root {
  --plaster: #ede5d8;
  --linen: #e1d5c3;
  --paper: #f7f2e8;
  --spruce: #1e3532;
  --ink: #27322f;
  --rose: #b98d86;
  --bronze: #8c6b3f;
  --night: #08262a;
  --gold: #e0d7a2;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --gut: clamp(20px, 6vw, 104px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font-family: var(--text); font-size: clamp(18px, 1.25vw, 21px); line-height: 1.6;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* canvas tooth over everything, so flat colour reads as a painted ground */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
cite { font-style: italic; }
::selection { background: var(--rose); color: var(--paper); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; border-radius: 2px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--spruce); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .9em 1.7em 1em; border-radius: 999px;
  background: var(--spruce); color: var(--paper); text-decoration: none; font: 500 1.02em/1.1 var(--text);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--bronze); }
.btn:active { transform: scale(.98); }
.btn--light { background: var(--paper); color: var(--spruce); }
.btn--light:hover { background: var(--gold); color: var(--spruce); }
.btn--big { font-size: clamp(1.05em, 1.5vw, 1.35em); padding: 1.05em 2.1em 1.15em; }
.link-light { display: inline-flex; align-items: center; gap: .45em; color: var(--paper); text-underline-offset: .28em; text-decoration-thickness: 1px; }
.link-light svg { width: .95em; height: .95em; fill: currentColor; transition: transform .35s var(--ease); }
.link-light:hover svg { transform: translate(2px, -2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 2.2em;
  padding: 18px var(--gut); color: var(--paper); transition: background .5s var(--ease), color .5s var(--ease), padding .5s var(--ease);
}
.nav__name { font: 500 1.35rem/1 var(--display); letter-spacing: .01em; text-decoration: none; margin-right: auto; }
.nav__links { display: flex; gap: 1.9em; font-size: .92rem; }
.nav__links a { text-decoration: none; opacity: .86; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.nav__buy { font-size: .92rem; text-decoration: none; padding: .55em 1.15em .62em; border: 1px solid currentColor; border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.nav__buy:hover { background: var(--paper); color: var(--spruce); border-color: var(--paper); }
.nav.is-solid { background: color-mix(in srgb, var(--plaster) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--spruce); padding-block: 11px; }
.nav.is-solid.is-dark { background: color-mix(in srgb, var(--spruce) 82%, transparent); color: var(--paper); }
.nav.is-solid.is-dark .nav__buy:hover { background: var(--paper); color: var(--spruce); border-color: var(--paper); }
.nav.is-solid:not(.is-dark) .nav__buy:hover { background: var(--spruce); color: var(--paper); border-color: var(--spruce); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #6f6656; color: var(--paper); touch-action: pan-y; cursor: none; }
.hero a, .hero button { cursor: pointer; }
@media (hover: none) { .hero { cursor: auto; } }
.hero__stage { position: absolute; inset: -6% 0; opacity: 0; transition: opacity 1.6s ease .1s; }
.is-in .hero__stage { opacity: 1; }
.hero__fallback, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-aspect-ratio: 4/5) { .hero__fallback { object-position: 76% 50%; } }
.hero__canvas { opacity: 0; transition: opacity .8s ease; }
.hero__canvas.is-live { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(98deg, rgba(22, 34, 31, .66) 0%, rgba(22, 34, 31, .36) 30%, rgba(22, 34, 31, 0) 56%),
    linear-gradient(to top, rgba(22, 34, 31, .42) 0%, rgba(22, 34, 31, 0) 34%),
    linear-gradient(to bottom, rgba(22, 34, 31, .34) 0%, rgba(22, 34, 31, 0) 15%);
}
.hero__copy { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(48px, 9vh, 110px); pointer-events: none; text-shadow: 0 2px 30px rgba(18, 28, 26, .45); }
.hero__copy a { pointer-events: auto; }
.hero__by { font-size: 1.05em; font-style: italic; overflow: hidden; margin-bottom: .7em; }
.hero__title { font: 400 clamp(64px, 11.2vw, 190px)/.86 var(--display); letter-spacing: -.025em; margin-left: -.04em; white-space: nowrap; font-optical-sizing: none; font-variation-settings: "opsz" 22; }
.hero__title .line { display: block; overflow: hidden; padding: 0 .1em .09em 0; }
.hero__title em { font-style: normal; }
.hero__lede { margin-top: 1.1em; max-width: 27em; font-size: clamp(1.02em, 1.45vw, 1.3em); line-height: 1.4; overflow: hidden; }
.hero__actions { margin-top: 1.9em; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1em 1.9em; }
.hero__hint { position: absolute; right: var(--gut); bottom: clamp(48px, 9vh, 110px); max-width: 15em; text-align: right; font-style: italic; font-size: .92em; line-height: 1.35; opacity: 0; transition: opacity 1.2s ease 2.2s; text-shadow: 0 1px 14px rgba(20, 30, 28, .7); pointer-events: none; }
.is-in .hero__hint { opacity: .92; }
.hint--touch { display: none; }
@media (hover: none) { .hint--mouse { display: none; } .hint--touch { display: inline; } }

.rise { display: inline-block; transform: translateY(112%); transition: transform 1.25s var(--ease); }
.is-in .rise { transform: none; }
.hero__by .rise { transition-delay: .25s; }
.hero__title .line:nth-child(1) .rise { transition-delay: .35s; }
.hero__title .line:nth-child(2) .rise { transition-delay: .47s; }
.hero__lede .rise { transition-delay: .75s; }
.rise-block { opacity: 0; transform: translateY(14px); transition: opacity 1s ease 1.15s, transform 1s var(--ease) 1.15s; }
.is-in .rise-block { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .hero__veil { background: linear-gradient(to top, rgba(22, 34, 31, .88) 0%, rgba(22, 34, 31, .6) 34%, rgba(22, 34, 31, 0) 62%), linear-gradient(to bottom, rgba(22, 34, 31, .4) 0%, rgba(22, 34, 31, 0) 16%); }
  .hero__copy { bottom: 34px; }
  .hero__title { font-size: 19.5vw; }
  .hero__hint { top: 78px; bottom: auto; right: var(--gut); left: var(--gut); max-width: none; text-align: left; font-size: .85em; }
}

/* ---------- premise ---------- */
.premise { padding: clamp(110px, 24vh, 260px) var(--gut) clamp(90px, 18vh, 200px); }
.premise__q p { font: 400 clamp(44px, 8.2vw, 136px)/.98 var(--display); letter-spacing: -.02em; color: var(--spruce); max-width: 11.5em; }
.premise__text { max-width: 33em; margin: clamp(60px, 12vh, 150px) 0 0 auto; font-size: clamp(1.05em, 1.4vw, 1.25em); line-height: 1.58; }
.premise__q + .premise__text { margin-right: clamp(0px, 8vw, 160px); }
.premise__body p + p { margin-top: 1.05em; }
.premise__body p:first-child::first-letter { font: 400 3.5em/.8 var(--display); float: left; padding: .08em .08em 0 0; color: var(--bronze); }
.premise__kind { margin-top: 1.05em; font-style: italic; color: color-mix(in srgb, var(--ink) 78%, transparent); padding-top: 1.05em; border-top: 1px solid color-mix(in srgb, var(--bronze) 45%, transparent); }
.premise__text .btn { margin-top: 2em; }

.book3d { --tx: 0; --ty: 0; --d: clamp(22px, 2.6vw, 36px); perspective: 1700px; display: grid; justify-items: center; }
.book3d__body {
  --ry: -24; --rx: 3;
  position: relative; width: min(350px, 62vw); aspect-ratio: 853 / 1280; transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg - var(--ty) * 9deg)) rotateY(calc(var(--ry) * 1deg + var(--tx) * 16deg));
  transition: transform .5s var(--ease);
}
.book3d__front, .book3d__back, .book3d__spine, .book3d__pages { position: absolute; top: 0; height: 100%; backface-visibility: hidden; }
.book3d__front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 4px 4px 2px; overflow: hidden; box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .45); }
.book3d__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .18) 0, rgba(0, 0, 0, .14) 2.4%, rgba(255, 255, 255, .1) 4.5%, transparent 9%, transparent 70%, rgba(255, 255, 255, .08) 100%); }
.book3d__front img { width: 100%; height: 100%; object-fit: cover; }
.book3d__back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #cdbfa9; }
.book3d__spine {
  left: 0; width: var(--d); transform: translateX(calc(var(--d) / -2)) rotateY(-90deg);
  background: linear-gradient(90deg, #15292a, #24423f 45%, #16302e); color: #e9e0cd;
  display: flex; align-items: center; justify-content: center; gap: 1.4em; writing-mode: vertical-rl;
  font: 500 calc(var(--d) * .36)/1 var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.book3d__spine span { overflow: hidden; text-overflow: ellipsis; max-height: 92%; }
.book3d__pages { right: 0; width: var(--d); transform: translateX(calc(var(--d) / 2)) rotateY(90deg); background: repeating-linear-gradient(90deg, #f3ecdd 0 1.5px, #d9cfbb 1.5px 2.5px); }
.book3d__shadow { width: min(380px, 66vw); height: 34px; margin-top: 22px; background: radial-gradient(ellipse at center, rgba(40, 32, 20, .42), transparent 68%); filter: blur(9px); }


/* ---------- the book ---------- */
.pages { background: var(--spruce); color: var(--paper); padding: clamp(90px, 16vh, 180px) var(--gut) clamp(80px, 14vh, 160px); }
.pages__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em 2.4em; margin-bottom: clamp(36px, 7vh, 72px); }
.pages__head h2 { font: 400 clamp(44px, 7vw, 112px)/.95 var(--display); letter-spacing: -.02em; }
.pages__head p { font-style: italic; opacity: .82; max-width: 24em; }

.reader { --pw: min(1100px, 100%, calc((100svh - 215px) * 1.3313)); outline-offset: 12px; }
.reader--single { --pw: min(100%, 470px, calc((100svh - 170px) * .6657)); }
.reader__book { position: relative; width: var(--pw); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; perspective: 2600px; cursor: pointer; filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .38)); opacity: 0; transition: opacity .8s ease; -webkit-user-select: none; user-select: none; }
.reader.is-ready .reader__book { opacity: 1; }
.reader--single .reader__book { grid-template-columns: 1fr; }
.reader--single .pg--l { display: none; }

.pg { position: relative; aspect-ratio: 432 / 649; container-type: inline-size; background: var(--paper); color: #2a2622; overflow: hidden; }
.pg--l { background: linear-gradient(to left, rgba(60, 45, 25, .2), rgba(60, 45, 25, .04) 9%, transparent 22%), var(--paper); border-radius: 3px 0 0 3px; }
.pg--r { background: linear-gradient(to right, rgba(60, 45, 25, .2), rgba(60, 45, 25, .04) 9%, transparent 22%), var(--paper); border-radius: 0 3px 3px 0; }
.reader--single .pg--r { border-radius: 3px; }
.pg--probe { position: absolute !important; top: 0; left: 0; width: 50%; visibility: hidden; pointer-events: none; }
.reader--single .pg--probe { width: 100%; }
.reader__gutter { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(60, 45, 25, .28); pointer-events: none; }
.reader--single .reader__gutter { display: none; }

/* scoped: WordPress puts a "page" class on <body> */
.pg .page { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8.5cqw 11cqw 6.5cqw; font: 400 3.32cqw/1.43 var(--text); }
.page__run { flex: none; height: 7cqw; text-align: center; font-size: 2.15cqw; letter-spacing: .16em; text-transform: uppercase; color: #6d6456; }
.page__body { flex: 1; min-height: 0; overflow: hidden; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.page__body p { text-indent: 1.5em; }
.page__body p.cont, .page__body p.first { text-indent: 0; }
.page__body p.split { text-align-last: justify; }
.page__body p.chap { text-indent: 0; text-align: center; font: 400 5.6cqw/1.1 var(--display); padding: 13cqw 0 9cqw; }
.page__body p.brk { text-indent: 0; text-align: center; padding: 1.1em 0; }
.page__body p.first::first-letter { font: 400 3.05em/.82 var(--display); float: left; padding: .06em .08em 0 0; }
.reader--single .page { font-size: 4.2cqw; padding-inline: 9cqw; }
.pg .page--cover { padding: 0; }
.page--cover a, .page--cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page__no { flex: none; height: 5cqw; padding-top: 2cqw; text-align: center; font-size: 2.5cqw; color: #6d6456; }
.page__title, .page__end { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; hyphens: none; }
.page__title .t1 { max-width: 7em; text-wrap: balance; text-indent: 0; font: 400 9.2cqw/1.02 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.page__title .t2 { text-indent: 0; margin-top: 9cqw; font: 400 3.6cqw/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: #6d6456; }
.page__end .e1 { text-indent: 0; font: italic 400 7.4cqw/1.05 var(--display); }
.page__end .e2 { text-indent: 0; margin: 5cqw 0 8cqw; max-width: 19em; font-size: 3.5cqw; line-height: 1.45; text-align: center; }
.page__end .btn { font-size: 3.5cqw; }

.leaf { position: absolute; top: 0; width: 50%; height: 100%; z-index: 5; transform-style: preserve-3d; pointer-events: none; }
.leaf__face { position: absolute; inset: 0; aspect-ratio: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf__face--b { transform: rotateY(180deg); }
.leaf__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(40, 30, 15, .5), rgba(40, 30, 15, 0) 70%); opacity: 0; animation: shade 1s ease both; }
.leaf--fwd { left: 50%; transform-origin: left center; animation: flipF 1s cubic-bezier(.45, .05, .25, 1) both; }
.leaf--back { left: 0; transform-origin: right center; animation: flipB 1s cubic-bezier(.45, .05, .25, 1) both; }
.leaf--back .leaf__shade { background: linear-gradient(to left, rgba(40, 30, 15, .5), rgba(40, 30, 15, 0) 70%); }
.leaf--single { left: 0; width: 100%; transform-origin: left center; }
.leaf--single.leaf--fwd { animation: liftF .8s cubic-bezier(.5, 0, .3, 1) both; }
.leaf--single.leaf--back { animation: liftB .8s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes flipF { to { transform: rotateY(-180deg); } }
@keyframes flipB { to { transform: rotateY(180deg); } }
@keyframes liftF { to { transform: rotateY(-96deg); opacity: .2; } }
@keyframes liftB { from { transform: rotateY(-96deg); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes shade { 50% { opacity: .55; } }

.reader__bar { display: flex; align-items: center; justify-content: center; gap: 1.6em; margin-top: clamp(26px, 5vh, 46px); }
.reader__count { min-width: 9.5em; text-align: center; font-style: italic; }
.turn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(247, 242, 232, .55); background: none; color: var(--paper); cursor: pointer; transition: background .3s, color .3s, opacity .3s, transform .3s var(--ease); }
.turn svg { width: 21px; height: 21px; fill: currentColor; }
.turn:hover:not(:disabled) { background: var(--paper); color: var(--spruce); }
.turn:active:not(:disabled) { transform: scale(.94); }
.turn:disabled { opacity: .3; cursor: default; }
.reader__noscript { text-align: center; margin-top: 2em; }

/* ---------- lines ---------- */
.lines { padding: clamp(110px, 22vh, 240px) var(--gut) clamp(90px, 16vh, 190px); }
.lines.is-empty { display: none; }
.lines__h { font: italic 400 clamp(1.25em, 2vw, 1.7em)/1.2 var(--text); color: var(--bronze); margin-bottom: clamp(50px, 10vh, 110px); }
.quote { margin-bottom: clamp(64px, 13vh, 150px); max-width: min(17em, 100%); font-size: clamp(31px, 4.5vw, 72px); }
.quote blockquote p { font: 400 1em/1.06 var(--display); letter-spacing: -.015em; color: var(--spruce); text-wrap: balance; }
.quote--long { font-size: clamp(25px, 3.1vw, 48px); max-width: min(22em, 100%); }
.quote--long blockquote p { line-height: 1.14; }
.quote figcaption { margin-top: 1.1em; font: italic 400 max(16px, .27em)/1.3 var(--text); color: var(--bronze); }
.quote--long figcaption { font-size: max(16px, .38em); }
.quote--1 { margin-left: auto; }
.quote--2 { margin-left: clamp(0px, 14vw, 260px); }

.moments { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 110px); padding-top: clamp(50px, 9vh, 100px); border-top: 1px solid color-mix(in srgb, var(--bronze) 45%, transparent); }
.moments__h { font: 400 clamp(32px, 4vw, 60px)/1 var(--display); letter-spacing: -.015em; color: var(--spruce); max-width: 8em; }
.moment { border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.moment summary { list-style: none; display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 1.2em; padding: 1.15em 0; cursor: pointer; }
.moment summary::-webkit-details-marker { display: none; }
.moment__label { font: 400 clamp(1.35em, 2.1vw, 1.9em)/1.1 var(--display); color: var(--spruce); transition: color .3s; }
.moment summary:hover .moment__label { color: var(--bronze); }
.moment__ch { font-style: italic; font-size: .9em; color: var(--bronze); white-space: nowrap; }
.moment summary svg { width: 18px; height: 18px; fill: var(--spruce); align-self: center; transition: transform .45s var(--ease); }
.moment[open] summary svg { transform: rotate(45deg); }
.moment__body { padding: .2em 0 2em; max-width: 34em; font-size: 1.08em; line-height: 1.62; }
.moment__body p + p { text-indent: 1.5em; }
.moment[open] .moment__body { animation: unfold .7s var(--ease) both; }
@keyframes unfold { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 860px) {
  .moments { grid-template-columns: 1fr; }
  .quote--2 { margin-left: 0; }
  .moment summary { grid-template-columns: 1fr auto; }
  .moment__ch { grid-column: 1; grid-row: 2; margin-top: -.9em; }
  .moment summary svg { grid-row: 1; grid-column: 2; }
}

/* ---------- buy ---------- */
.buy { background: var(--rose); color: #2a1f1d; padding: clamp(100px, 20vh, 220px) var(--gut); display: grid; justify-items: center; text-align: center; gap: clamp(36px, 6vh, 64px); }
.buy__line { font: 400 clamp(40px, 6.6vw, 112px)/1 var(--display); letter-spacing: -.02em; max-width: 12em; text-wrap: balance; }
.buy .btn { background: #2a1f1d; }
.buy .btn:hover { background: var(--spruce); }

/* ---------- next book ---------- */
.next { position: relative; min-height: 112svh; overflow: hidden; background: var(--night); color: var(--paper); display: grid; align-items: center; padding: clamp(100px, 18vh, 200px) var(--gut); }
.next__bg { position: absolute; inset: -8% 0; }
.next__bg img { width: 100%; height: 100%; object-fit: cover; }
.next__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(4, 22, 25, .9) 0%, rgba(4, 22, 25, .66) 50%, rgba(4, 22, 25, .34) 100%), linear-gradient(to bottom, var(--night) 0%, rgba(8, 38, 42, 0) 22%); }
.next__inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.next__cover { position: relative; width: min(370px, 58vw); }
.next__cover img:first-child { border-radius: 2px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.next__mirror { position: absolute; top: 100%; left: 0; width: 100%; transform: scaleY(-1); opacity: .32; filter: blur(1.5px); -webkit-mask-image: linear-gradient(to top, #000, transparent 34%); mask-image: linear-gradient(to top, #000, transparent 34%); }
.next__status { font-style: italic; color: var(--gold); font-size: 1.2em; margin-bottom: .9em; }
.next h2 { font: 500 clamp(52px, 9.4vw, 164px)/.9 var(--display); letter-spacing: .01em; text-transform: uppercase; font-optical-sizing: none; font-variation-settings: "opsz" 14; text-shadow: 0 4px 40px rgba(3, 16, 18, .7); }
.next h2 em { font-style: normal; color: var(--gold); display: block; font-size: 1.24em; }
.next__text p:last-child { margin-top: 1.5em; font-size: 1.15em; opacity: .9; }
@media (max-width: 760px) { .next__inner { grid-template-columns: 1fr; } .next__cover { width: min(300px, 70vw); margin-bottom: 70px; } }

/* ---------- author ---------- */
.author { padding: clamp(110px, 22vh, 240px) var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.author__art { width: min(430px, 76vw); aspect-ratio: 2 / 3.1; border-radius: 999px 999px 0 0; overflow: hidden; justify-self: center; border: 7px solid var(--bronze); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 30px 50px -24px rgba(50, 38, 20, .55); }
.author__art img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; }
.author__text { max-width: 33em; }
.author h2 { font: 400 clamp(56px, 8vw, 128px)/.9 var(--display); letter-spacing: -.02em; color: var(--spruce); margin-bottom: .45em; }
.author__lead { font-size: clamp(1.15em, 1.7vw, 1.45em); line-height: 1.42; color: var(--spruce); }
.author__body { margin-top: 1.05em; }
.author__body p + p { margin-top: 1.05em; }
@media (max-width: 860px) { .author { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--spruce); color: var(--paper); padding: 54px var(--gut) 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1em 2.6em; }
.foot__name { font: 400 2rem/1 var(--display); margin-right: auto; }
.foot nav { display: flex; gap: 1.8em; font-size: .95rem; }
.foot nav a { text-underline-offset: .3em; text-decoration-thickness: 1px; }
.foot__legal { flex-basis: 100%; font-size: .85rem; opacity: .68; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-block, .hero__stage, .hero__hint { transition: none !important; }
  .leaf, .leaf__shade, .moment[open] .moment__body { animation: none !important; }
}

/* one narrow page reads better ragged than stretched */
.reader--single .page__body { text-align: left; }
.reader--single .page__body p.split { text-align-last: auto; }
.reader--single .page__body p.chap, .reader--single .page__body p.brk { text-align: center; }


/* ---------- WordPress additions: shelf, book page, plain pages ---------- */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
.nav__links a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.status { font-style: italic; font-size: 1.3em; color: var(--bronze); }

.shelf { padding: clamp(110px, 22vh, 240px) var(--gut) clamp(80px, 14vh, 170px); }
.shelf__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em 2.4em; margin-bottom: clamp(50px, 10vh, 110px); }
.shelf__head h2 { font: 400 clamp(60px, 10vw, 170px)/.9 var(--display); letter-spacing: -.025em; color: var(--spruce); }
.shelf__head p { max-width: 26em; font-size: 1.1em; }
.shelf__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(56px, 9vh, 100px) clamp(36px, 6vw, 96px); max-width: 1500px; }
.shelf__empty { font-style: italic; }
.vol { display: grid; align-content: start; gap: 30px; text-decoration: none; color: inherit; }
.vol__cover { display: block; aspect-ratio: 2 / 3; max-width: 400px; border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--linen); position: relative;
  box-shadow: 0 2px 3px rgba(50, 38, 20, .25), 0 26px 44px -18px rgba(50, 38, 20, .6); transition: transform .7s var(--ease), box-shadow .7s var(--ease); transform-origin: 50% 100%; }
.vol__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .2) 0, rgba(0, 0, 0, .16) 2.2%, rgba(255, 255, 255, .1) 4.4%, transparent 9%); }
.vol__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.vol:hover .vol__cover, .vol:focus-visible .vol__cover { transform: translateY(-12px) rotate(-1.2deg); box-shadow: 0 2px 3px rgba(50, 38, 20, .2), 0 46px 60px -22px rgba(50, 38, 20, .62); }
.vol:hover .vol__cover img { transform: scale(1.035); }
.vol__text { display: grid; gap: .5em; max-width: 24em; }
.vol__status { font-style: italic; color: var(--bronze); }
.vol__title { font: 400 clamp(1.9em, 3vw, 2.7em)/1 var(--display); letter-spacing: -.015em; color: var(--spruce); }
.vol__tag { line-height: 1.5; }
.vol__more { justify-self: start; margin-top: .5em; text-decoration: underline; text-underline-offset: .32em; text-decoration-thickness: 1px; color: var(--spruce); }
.vol:hover .vol__more { color: var(--bronze); }

.bh { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; padding: clamp(120px, 18vh, 190px) var(--gut) clamp(70px, 12vh, 130px); }
.bh--dark { background: var(--night); color: var(--paper); }
.bh--light { background: var(--plaster); padding-top: clamp(140px, 20vh, 210px); }
.bh__bg { position: absolute; inset: -6% 0; }
.bh__bg img { width: 100%; height: 100%; object-fit: cover; }
.bh__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8, 24, 24, .86) 0%, rgba(8, 24, 24, .7) 48%, rgba(8, 24, 24, .46) 100%), linear-gradient(to bottom, rgba(8, 24, 24, .5) 0%, rgba(8, 24, 24, 0) 24%); }
.bh__inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: center; }
.bh .book3d__body { width: min(340px, 56vw); }
.bh__kicker { font-style: italic; font-size: 1.1em; margin-bottom: .9em; }
.bh--dark .bh__kicker { color: var(--gold); }
.bh--light .bh__kicker { color: var(--bronze); }
.bh__title { font: 400 clamp(54px, 8.6vw, 150px)/.9 var(--display); letter-spacing: -.02em; max-width: 8.5em; text-wrap: balance; }
.bh--dark .bh__title { font-optical-sizing: none; font-variation-settings: "opsz" 20; text-shadow: 0 4px 40px rgba(3, 16, 18, .6); }
.bh--light .bh__title { color: var(--spruce); }
.bh__tag { margin-top: 1.3em; max-width: 27em; font-size: clamp(1.05em, 1.5vw, 1.3em); line-height: 1.45; }
.bh__actions { margin-top: 2em; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1em 2em; }
.bh__read { text-underline-offset: .3em; text-decoration-thickness: 1px; }
.bh--dark .status { color: var(--gold); }
@media (max-width: 820px) {
  .bh__inner { grid-template-columns: 1fr; }
  .bh .book3d { justify-items: start; }
  .bh .book3d__body { width: min(230px, 54vw); }
  .bh .book3d__shadow { display: none; }
}

.lines--moments { padding-top: 0; }
.lines:has(+ .lines--moments) { padding-bottom: clamp(50px, 9vh, 100px); }
.lines--moments .moments { border-top: 1px solid color-mix(in srgb, var(--bronze) 45%, transparent); }

.plain { max-width: 46rem; margin-inline: auto; padding: clamp(140px, 22vh, 220px) var(--gut) clamp(80px, 14vh, 160px); }
.plain h1 { font: 400 clamp(44px, 6vw, 90px)/1 var(--display); letter-spacing: -.02em; color: var(--spruce); margin-bottom: .7em; }
.prose p + p, .prose ul, .prose ol, .prose h2 { margin-top: 1.05em; }
.prose h2 { font: 400 1.8em/1.1 var(--display); color: var(--spruce); }
.reader__noscript { max-width: 34em; margin: 0 auto; }
.reader__noscript p + p { text-indent: 1.5em; }

/* ---------- quotes as a stage: one line at a time over a painting ---------- */
.lines__bgs, .lines__bar { display: none; }
.lines.is-stage { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; gap: clamp(28px, 6vh, 70px); background: var(--night); color: var(--paper); padding: clamp(110px, 16vh, 170px) var(--gut) clamp(44px, 8vh, 80px); outline-offset: -6px; touch-action: pan-y; }
.is-stage .lines__bgs { display: block; position: absolute; inset: 0; }
.is-stage .lines__bgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.09); transition: opacity 1.5s ease, transform 9s ease-out; }
.is-stage .lines__bgs img.is-on { opacity: 1; transform: none; }
.is-stage .lines__bgs::after { content: ""; position: absolute; inset: 0; background: linear-gradient(96deg, rgba(8, 22, 22, .8) 0%, rgba(8, 22, 22, .52) 46%, rgba(8, 22, 22, .1) 100%), linear-gradient(to top, rgba(8, 22, 22, .6) 0%, rgba(8, 22, 22, 0) 32%), linear-gradient(to bottom, rgba(8, 22, 22, .5) 0%, rgba(8, 22, 22, 0) 20%); }
.is-stage .lines__h { position: relative; margin: 0; color: var(--gold); }
.is-stage .lines__list { position: relative; display: grid; align-items: center; }
.is-stage .quote { grid-area: 1 / 1; margin: 0; max-width: min(15.5em, 100%); opacity: 0; visibility: hidden; transform: translateY(22px); filter: blur(7px); transition: opacity .6s ease, transform .9s var(--ease), filter .6s ease, visibility 0s .6s; }
.is-stage .quote--long { max-width: min(21em, 100%); }
.is-stage .quote.is-on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .25s, .25s, .25s, 0s; }
.is-stage .quote blockquote p { color: var(--paper); font-optical-sizing: none; font-variation-settings: "opsz" 26; text-shadow: 0 3px 34px rgba(4, 14, 14, .55); }
.is-stage .quote blockquote::before { content: "\201C"; display: block; height: .42em; font: 400 2.9em/1 var(--display); color: var(--gold); margin-left: -.05em; }
.is-stage .quote--long blockquote::before { font-size: 3.6em; }
.is-stage .quote figcaption { color: var(--gold); }
.is-stage .lines__bar { position: relative; display: flex; align-items: center; gap: 1.3em; }
.lines__count { min-width: 4.6em; text-align: center; font-style: italic; font-variant-numeric: tabular-nums; }
.lines__track { flex: 1; max-width: 420px; height: 1px; background: rgba(247, 242, 232, .3); margin-left: .6em; }
.lines__track i { display: block; height: 3px; margin-top: -1px; width: 0; background: var(--gold); transition: width .8s var(--ease); }
.lines.is-stage:has(+ .lines--moments) { padding-bottom: clamp(44px, 8vh, 80px); }
.lines.is-stage + .lines--moments { padding-top: clamp(80px, 14vh, 160px); }
.lines.is-stage + .lines--moments .moments { border-top: 0; padding-top: 0; }
@media (max-width: 720px) { .is-stage .lines__bgs::after { background: linear-gradient(to bottom, rgba(8, 22, 22, .66), rgba(8, 22, 22, .5)); } .is-stage .lines__bgs img { object-position: 62% 50%; } .lines__track { display: none; } .is-stage .lines__bar { justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .is-stage .quote, .is-stage .lines__bgs img { transition: none !important; transform: none !important; filter: none !important; } }

.foot__social { display: flex; flex-wrap: wrap; gap: .5em 1.8em; font-size: .95rem; }
.foot__social a { text-underline-offset: .3em; text-decoration-thickness: 1px; }

/* ---------- line drawings and watercolour behind the light sections ---------- */
.has-art { position: relative; overflow: hidden; isolation: isolate; }
.has-art > :not(.art) { position: relative; }
.art { position: absolute; z-index: -1; pointer-events: none; opacity: .42; width: clamp(240px, 38vw, 620px); height: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path 2.4s cubic-bezier(.3, .1, .2, 1); }
.art.is-seen { clip-path: inset(0 0 0 0); }
.shelf, .author, .collage, .note { background-color: var(--plaster); background-blend-mode: multiply; background-image: url("img/wash.webp"); background-repeat: no-repeat; background-size: min(1500px, 130%) auto; }
.shelf { background-position: 115% -8%; }
.author { background-position: -30% 110%; }
.collage { background-position: 50% 40%; }
.note { background-position: 120% 50%; }
.shelf .art { right: -3vw; top: clamp(20px, 6vh, 90px); }
.author .art { right: -6vw; bottom: -4vh; width: clamp(260px, 44vw, 700px); transform: rotate(-8deg); }
.premise .art { left: clamp(0px, 5vw, 110px); bottom: clamp(30px, 8vh, 110px); width: clamp(220px, 30vw, 460px); }
.lines--moments .art { left: clamp(-20px, 2vw, 60px); bottom: 2vh; width: clamp(240px, 34vw, 520px); }
.collage .art { right: 2vw; top: 2vh; width: clamp(200px, 26vw, 400px); }
.note .art { left: -4vw; bottom: -6vh; width: clamp(260px, 40vw, 640px); }
@media (max-width: 860px) { .art { opacity: .26; } .premise .art, .lines--moments .art { left: auto; right: -12vw; width: 70vw; } }
@media (prefers-reduced-motion: reduce) { .art { clip-path: none; transition: none; } }

/* ---------- picture band ---------- */
.band { position: relative; min-height: 86svh; overflow: hidden; display: grid; align-items: end; background: var(--night); color: var(--paper); padding: clamp(90px, 16vh, 170px) var(--gut) clamp(60px, 11vh, 120px); }
.band__bg { position: absolute; inset: -8% 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 22, 22, .82) 0%, rgba(8, 22, 22, .3) 46%, rgba(8, 22, 22, .12) 100%); }
.band__text { position: relative; max-width: 20em; font-size: clamp(30px, 4.6vw, 76px); }
.band__text blockquote p { font: 400 1em/1.05 var(--display); letter-spacing: -.015em; text-wrap: balance; font-optical-sizing: none; font-variation-settings: "opsz" 26; text-shadow: 0 3px 34px rgba(4, 14, 14, .6); }
.band__text figcaption { margin-top: 1.1em; font: italic 400 max(16px, .27em)/1.3 var(--text); color: var(--gold); }

/* ---------- captioned pictures ---------- */
.collage { padding: clamp(100px, 18vh, 210px) var(--gut); }
.collage__head { max-width: 40em; margin-bottom: clamp(50px, 9vh, 100px); }
.collage__head h2 { font: 400 clamp(44px, 6.4vw, 104px)/.95 var(--display); letter-spacing: -.02em; color: var(--spruce); }
.collage__head p { margin-top: 1.2em; max-width: 30em; font-size: 1.1em; }
.collage__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(30px, 5vw, 80px) clamp(20px, 3vw, 48px); align-items: start; }
.plate { grid-column: span 4; }
.plate:nth-child(3n + 2) { margin-top: clamp(40px, 10vh, 130px); }
.plate:nth-child(3n) { margin-top: clamp(10px, 4vh, 50px); }
.plate__img { overflow: hidden; border-radius: 999px 999px 0 0; aspect-ratio: 3 / 4.1; border: 6px solid var(--bronze); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 30px 50px -26px rgba(50, 38, 20, .6); background: var(--linen); }
.plate:nth-child(even) .plate__img { border-radius: 3px; aspect-ratio: 4 / 5; }
.plate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.plate:hover .plate__img img { transform: scale(1.05); }
.plate figcaption { display: grid; gap: .35em; margin-top: 1.1em; max-width: 22em; }
.plate__name { font: 400 clamp(1.3em, 1.9vw, 1.7em)/1.1 var(--display); color: var(--spruce); }
.plate__text { font-size: .98em; line-height: 1.5; }
@media (max-width: 860px) { .plate { grid-column: span 12; margin-top: 0 !important; max-width: 420px; } }

/* ---------- text with a drawing ---------- */
.note { padding: clamp(100px, 18vh, 210px) var(--gut); display: grid; justify-items: end; }
.note__card { width: min(100%, 38em); }
.note h2 { font: 400 clamp(40px, 5.6vw, 92px)/.95 var(--display); letter-spacing: -.02em; color: var(--spruce); margin-bottom: .55em; }
.note__body { font-size: clamp(1.05em, 1.4vw, 1.22em); line-height: 1.6; }
.note__body p + p { margin-top: 1.05em; }
.note__sign { margin-top: 1.5em; font: italic 400 1.5em/1.2 var(--display); color: var(--bronze); }
.note .btn { margin-top: 2em; }
