/* The Nazarene reader. One face, set plainly. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2-variations"), url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2-variations"), url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F4EEE3;
  --paper-2: #ECE5D8;
  --ink: #2A211B;
  --ink-2: #5A4E45;
  --ink-3: #8B7E72;
  --rule: rgba(42, 33, 27, 0.14);
  --ox: #6F2B27;
  --btn: #2A211B;
  --btn-ink: #F4EEE3;
  --shade: 42, 33, 27;
  --fs: 20px;
  --measure: 33rem;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --read-paper: #FAF6EE;
  --own-bg: #221A15;
  --own-ink: #EFE6D6;
  --own-ink-2: #B9AC9A;
  --gutter: 24px;
  --sec: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --paper: #17120F; --paper-2: #201A16; --ink: #E6DBC9; --ink-2: #B5A794; --ink-3: #85786B;
    --rule: rgba(230, 219, 201, 0.13); --ox: #C08376; --btn: #E6DBC9; --btn-ink: #17120F; --shade: 0, 0, 0;
    color-scheme: dark;
  }
}
:root[data-theme="night"] {
  --paper: #17120F; --paper-2: #201A16; --ink: #E6DBC9; --ink-2: #B5A794; --ink-3: #85786B;
  --rule: rgba(230, 219, 201, 0.13); --ox: #C08376; --btn: #E6DBC9; --btn-ink: #17120F; --shade: 0, 0, 0;
  color-scheme: dark;
}
:root[data-size="1"] { --fs: 18px; }
:root[data-size="2"] { --fs: 20px; }
:root[data-size="3"] { --fs: 22px; }
:root[data-size="4"] { --fs: 25px; }
:root[data-size="5"] { --fs: 28px; }
@media (min-width: 760px) {
  :root { --fs: 21px; --measure: 34rem; }
  :root[data-size="1"] { --fs: 19px; }
  :root[data-size="2"] { --fs: 21px; }
  :root[data-size="3"] { --fs: 23px; }
  :root[data-size="4"] { --fs: 26px; }
  :root[data-size="5"] { --fs: 29px; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "onum";
  transition: background-color 300ms ease, color 300ms ease;
}
::selection { background: rgba(111, 43, 39, 0.16); }
a { color: inherit; }
p, h1, h2, h3, figure, blockquote, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { font-family: var(--sans); font-size: 12.5px; font-weight: 500; line-height: 1.4; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }

/* Actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--btn);
  border-radius: 3px;
  background: var(--btn);
  color: var(--btn-ink);
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-feature-settings: "kern", "lnum";
  transition: opacity 160ms ease;
}
.btn:hover { opacity: 0.88; }
.btn .price { margin-left: 12px; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--btn-ink) 30%, transparent); }
.btn-plain {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--ink-3);
  cursor: pointer;
  font-feature-settings: "kern", "lnum";
}
.btn-plain:hover { text-decoration-color: var(--ink); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.center .acts, .acts.center { justify-content: center; }
.note { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink-3); font-feature-settings: "kern", "lnum"; }

/* Covers, flat, as printed */
.cover {
  display: block;
  aspect-ratio: 1000 / 1600;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px rgba(var(--shade), .06), 0 2px 4px rgba(var(--shade), .10), 0 14px 28px -12px rgba(var(--shade), .30);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.row-of-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 330px;
  margin: 0 auto;
}

/* Top bar */
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: transform 320ms ease, opacity 320ms ease, background-color 300ms ease;
}
.bar.away { transform: translateY(-100%); opacity: 0; }
.bar-title { flex: 1; min-width: 0; text-align: center; font-size: 15px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 8px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
  font-size: 15px;
}
.icon-btn svg { width: 20px; height: 20px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 21; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ox); opacity: .7; transform-origin: left center; transform: scaleX(0); }

/* Settings: a small box under the Aa button */
.sheet-scrim { position: fixed; inset: 0; z-index: 30; background: transparent; pointer-events: none; }
.sheet-scrim.open { pointer-events: auto; }
.sheet {
  position: fixed;
  top: calc(52px + env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 31;
  width: 236px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 24px -12px rgba(var(--shade), .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.sheet.open { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 180ms ease, visibility 0s; }
.seg { display: flex; border: 1px solid var(--rule); }
.seg button { flex: 1; min-height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--paper-2); color: var(--ink); }
.seg button:disabled { opacity: .35; cursor: default; }
.seg .a-s { font-size: 14px; }
.seg .a-l { font-size: 21px; }

/* Reading */
.read {
  max-width: var(--measure);
  margin: 0 auto;
  padding: calc(84px + env(safe-area-inset-top, 0px)) max(26px, env(safe-area-inset-right, 0px)) 0 max(26px, env(safe-area-inset-left, 0px));
}
.opening { padding: 72px 0 52px; text-align: center; }

.opening h1 {
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-wrap: balance;
  animation: fade 700ms ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prose {
  font-size: var(--fs);
  line-height: 1.64;
  hyphens: manual;
  hanging-punctuation: first;
  transition: font-size 200ms ease;
}
.prose p { text-indent: 1.3em; text-wrap: pretty; }
.prose p.first, .prose p.after-break { text-indent: 0; }
.prose em { font-style: italic; }
.prose .break { display: block; height: 2.2em; }
.prose .break::after { content: "*"; display: block; text-align: center; color: var(--ink-3); line-height: 2.2em; font-size: 0.9em; }

.chapter-end { margin-top: 12vh; }
.next {
  display: block;
  padding: 26px 0 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
}
.next .label { display: block; }
.next .t { display: block; margin-top: 6px; font-size: 28px; line-height: 1.2; }
.next:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--ink-3); }
.end-links { display: flex; justify-content: center; gap: 28px; margin-top: 22px; }
.end-links .btn-plain { font-size: 16px; color: var(--ink-2); }

/* Between chapters: the books */
.books-break { margin: 14vh 0 12vh; text-align: center; }
.books-break .row-of-books { max-width: 270px; }
.books-break h2 { margin-top: 30px; font-size: 24px; line-height: 1.3; font-weight: 400; text-wrap: balance; }
.books-break .say { margin: 10px auto 0; max-width: 24rem; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.voice { margin: 24px auto 0; max-width: 24rem; }
.voice blockquote { font-size: 18px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.voice figcaption { margin-top: 6px; font-size: 14px; color: var(--ink-3); }

/* Landing */
.land-top {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: 64rem; margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px));
  font-size: 16px;
}
.land-top a { text-decoration: none; }
.land-top .own { color: var(--ink-2); }
.hero {
  max-width: 64rem; margin: 0 auto;
  padding: 9vh max(24px, env(safe-area-inset-right, 0px)) 10vh max(24px, env(safe-area-inset-left, 0px));
  display: grid; gap: 44px; align-items: center;
}
.hero .cover { width: min(52vw, 220px); margin: 0 auto; }
.hero-text { text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.05; font-weight: 400; letter-spacing: -0.01em; }
.hero .by { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.hero .hook { margin: 26px auto 0; max-width: 22rem; font-size: 22px; line-height: 1.4; text-wrap: balance; }
.hero .acts { justify-content: center; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 300px 1fr; gap: 96px; padding-top: 14vh; }
  .hero .cover { width: 300px; }
  .hero-text { text-align: left; }
  .hero h1 { font-size: 64px; }
  .hero .hook { margin-left: 0; font-size: 26px; max-width: 26rem; }
  .hero .acts { justify-content: flex-start; }
}
.sec { border-top: 1px solid var(--rule); }
.sec-in {
  max-width: 36rem; margin: 0 auto;
  padding: 10vh max(26px, env(safe-area-inset-right, 0px)) 10vh max(26px, env(safe-area-inset-left, 0px));
}
.sec h2 { font-size: 15px; font-weight: 400; color: var(--ink-3); margin-bottom: 22px; }
.first-lines { font-size: 21px; line-height: 1.64; }
.first-lines p + p { text-indent: 1.3em; }
.premise p { font-size: 21px; line-height: 1.6; text-wrap: pretty; }
.premise p + p { margin-top: 14px; }
.voices { display: grid; gap: 34px; }
.voices blockquote { font-size: 20px; line-height: 1.55; text-wrap: pretty; }
.voices figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.paper { text-align: center; }
.paper .row-of-books { margin-bottom: 34px; }
.paper .title { font-size: 26px; line-height: 1.3; text-wrap: balance; }
.paper .say { margin: 10px auto 0; max-width: 26rem; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.foot {
  border-top: 1px solid var(--rule);
  padding: 30px 22px calc(36px + env(safe-area-inset-bottom, 0px));
  text-align: center; font-size: 15px; color: var(--ink-3); line-height: 2.1;
}
.foot a { color: inherit; text-decoration: none; margin: 0 9px; }
.foot a:hover { color: var(--ink); }

/* Contents */
.toc-head { text-align: center; padding: 6vh 0 7vh; }
.toc-head .cover { width: 130px; margin: 0 auto 34px; }
.toc-head h1 { font-size: 40px; line-height: 1.1; font-weight: 400; }
.toc-head .by { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.toc-head .epigraph { margin-top: 30px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.toc-head .epigraph small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.toc { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: baseline; gap: 6px; padding: 17px 2px; text-decoration: none; }
.toc a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--ink-3); }
.toc .n { font-size: 16px; color: var(--ink-3); font-feature-settings: "lnum", "tnum"; }
.toc .t { font-size: 20px; line-height: 1.3; }
.toc .s { font-size: 14px; color: var(--ink-3); white-space: nowrap; font-feature-settings: "lnum"; }
.toc li.done .t { color: var(--ink-2); }
.toc-foot { padding: 7vh 0 9vh; text-align: center; }

/* Signup */
.signup { margin: 40px auto 0; max-width: 26rem; text-align: center; }
.signup p { font-size: 17px; color: var(--ink-2); }
.signup form { display: flex; margin-top: 12px; border: 1px solid var(--ink-3); border-radius: 3px; }
.signup input { flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 17px; }
.signup input::placeholder { color: var(--ink-3); }
.signup button { border: 0; border-left: 1px solid var(--ink-3); background: transparent; padding: 0 18px; font-family: var(--serif); font-size: 17px; cursor: pointer; color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  transform: translateX(-50%); opacity: 0; padding: 10px 18px; border-radius: 3px;
  background: var(--btn); color: var(--btn-ink); font-size: 15px; pointer-events: none; transition: opacity 240ms ease;
}
.toast.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}
@media print {
  .bar, .progress, .sheet, .sheet-scrim, .chapter-end, .toast { display: none !important; }
  .read { padding-top: 0; }
}

/* ===== System: sans for interface, serif for the book ===== */
.btn, .btn-plain, .note, .bar, .icon-btn, .bar-title, .seg button, .toc .n, .toc .s, .foot, .land-top,
.voice figcaption, .voices figcaption, .signup p, .signup input, .signup button, .end-links .btn-plain, .next .label, .toast, .facts {
  font-family: var(--sans);
}
.btn { font-size: 16px; font-weight: 500; letter-spacing: 0.005em; min-height: 50px; }
.btn-plain { font-size: 16px; }
.note { font-size: 14px; }
.bar-title { font-size: 14px; }
.icon-btn { font-size: 15px; }
.toc .n { font-size: 14px; }
.toc .s { font-size: 13px; }
.foot { font-size: 14px; }
.voice figcaption, .voices figcaption { font-size: 13px; letter-spacing: 0.01em; }

/* Widths and rhythm */
@media (min-width: 760px) { :root { --gutter: 48px; --sec: 112px; } }
.wrap { max-width: calc(1160px + var(--gutter) * 2); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.measure { max-width: calc(33rem + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: var(--gutter); padding-right: var(--gutter); }

/* ===== Discover ===== */
.land-top { display: flex; justify-content: space-between; align-items: baseline; padding-top: calc(22px + env(safe-area-inset-top, 0px)); font-size: 15px; max-width: calc(1160px + var(--gutter) * 2); }
.hero { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: var(--sec); }
.hero-cover .cover { width: min(56vw, 230px); margin: 0 auto; }
.hero-text { text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.04; font-weight: 400; letter-spacing: -0.012em; }
.hero .by { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.hero .hook { margin: 24px auto 0; max-width: 21rem; font-size: 22px; line-height: 1.4; text-wrap: balance; }
.hero .acts { justify-content: center; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 7fr; gap: 0 8%; padding-top: 96px; min-height: min(86vh, 820px); }
  .hero-cover .cover { width: min(100%, 360px); margin: 0 0 0 auto; }
  .hero-text { text-align: left; }
  .hero h1 { font-size: 72px; }
  .hero .by { font-size: 18px; }
  .hero .hook { margin-left: 0; font-size: 28px; max-width: 26rem; }
  .hero .acts { justify-content: flex-start; }
}

/* ===== Read (the sample on the home page, and every chapter) ===== */
.env-read-band { background: var(--read-paper); padding: var(--sec) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sample-head { margin-top: 22px; font-size: 15px; color: var(--ink-3); font-family: var(--sans); }
.sample-head span { display: block; margin-top: 6px; font-family: var(--serif); font-size: 32px; line-height: 1.15; color: var(--ink); }
.env-read-band .first-lines { margin-top: 28px; font-size: 20px; line-height: 1.6; }
.env-read-band .first-lines p + p { text-indent: 1.3em; }
@media (prefers-color-scheme: light) { :root:not([data-theme="night"]) body[data-page="chapter"] { --paper: var(--read-paper); } }
:root[data-theme="day"] body[data-page="chapter"] { --paper: var(--read-paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) { --read-paper: #1B1612; } }
:root[data-theme="night"] { --read-paper: #1B1612; }

/* About: left-aligned explanatory material, nested width */
.about { padding-top: var(--sec); padding-bottom: var(--sec); }
.about-grid { display: grid; gap: 18px; max-width: 40rem; margin: 0 auto; }
.about .premise p { font-size: 21px; line-height: 1.6; text-wrap: pretty; }
.about .premise p + p { margin-top: 14px; color: var(--ink-2); font-size: 19px; }
.about .voices { margin: 64px auto 0; display: grid; gap: 36px; max-width: 40rem; }
.about .voice { margin: 0; max-width: 30rem; }
.about .voice blockquote { font-size: 19px; }
@media (min-width: 1100px) {
  .about-grid { grid-template-columns: 220px 1fr; gap: 0 48px; max-width: none; margin: 0; }
  .about .voices { max-width: none; }
  .about .premise { max-width: 40rem; }
  .about .voices { grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--rule); }
}

/* ===== Own ===== */
.env-own { background: var(--own-bg); color: var(--own-ink); --ink: var(--own-ink); --ink-2: var(--own-ink-2); --ink-3: #8F8373; --rule: rgba(239, 230, 214, 0.14); --btn: var(--own-ink); --btn-ink: var(--own-bg); --shade: 0, 0, 0; }
.own-in { padding-top: var(--sec); padding-bottom: var(--sec); }
.env-own .label { color: #A79A88; }
.row-of-books.big { max-width: 620px; gap: 18px; margin: 34px 0 0; }
.env-own .cover { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 18px 40px -16px rgba(0,0,0,.6); }
.own-copy { margin-top: 44px; max-width: 32rem; }
.own-copy h2 { font-size: 30px; line-height: 1.2; font-weight: 400; text-wrap: balance; }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.5; color: var(--own-ink-2); }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 1px; background: currentColor; }
.env-own .btn-plain { text-decoration-color: rgba(239, 230, 214, 0.4); }
@media (min-width: 900px) {
  .own-in { display: grid; grid-template-columns: 7fr 5fr; gap: 0 72px; align-items: end; }
  .own-in .label { grid-column: 1 / -1; }
  .row-of-books.big { max-width: none; }
  .own-copy { margin-top: 0; }
  .own-copy h2 { font-size: 36px; }
}

/* Chapter break band (soft) and finale (dark) inside the reader */
.band-soft { background: var(--paper-2); padding-top: 64px; padding-bottom: 64px; margin-top: 12vh; margin-bottom: 0; }
.chapter-end .env-own.bleed { padding-top: 72px; padding-bottom: 72px; margin-top: 10vh; }
.chapter-end .env-own .say, .chapter-end .env-own .voice blockquote { color: var(--own-ink); }

/* ===== Motion: four moves, nothing on the prose ===== */
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js .hero-cover { animation: settle 560ms cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-text { animation: settle 560ms cubic-bezier(.2, .7, .2, 1) 120ms both; }
.js [data-reveal] { opacity: 0; transform: translateY(6px); transition: opacity 260ms ease, transform 300ms cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.btn, .btn-plain, .seg button, .icon-btn { transition: opacity 180ms ease, background-color 180ms ease, text-decoration-color 180ms ease; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-cover, .js .hero-text { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.env-read-band .first-lines .gap { height: 1.4em; }
.env-read-band .first-lines p.gap + p, .env-read-band .first-lines p.ni { text-indent: 0; }

/* The collection photograph */
.photo { margin: 0 auto; max-width: 560px; }
.photo img { width: 100%; height: auto; border-radius: 2px; }
.books-break .photo { margin-bottom: 30px; }
.photo.big { max-width: none; margin-top: 30px; }
.env-own .photo img { box-shadow: 0 24px 48px -28px rgba(0,0,0,.7); }
@media (min-width: 900px) { .photo.big { margin-top: 34px; } }

/* Next chapter: a clear, quiet page turn */
.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px 28px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease;
}
.next .t { margin-top: 4px; }
.next-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.next-go svg { width: 20px; height: 20px; }
.next:hover .next-go { transform: translateX(3px); border-color: var(--ink); }
.next:active { background-color: var(--paper-2); }
.next:active .next-go { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.next:hover .t { text-decoration: none; }

/* Two-line action (Continue reading + chapter) */
.btn.has-sub { flex-direction: column; gap: 3px; min-height: 58px; padding-top: 9px; padding-bottom: 9px; line-height: 1.2; white-space: normal; text-align: center; }
.btn-sub { font-size: 13px; font-weight: 400; opacity: 0.78; }

/* Contents drawer */
.toc-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 41;
  width: min(86vw, 360px);
  display: flex; flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  box-shadow: 16px 0 40px -24px rgba(var(--shade), .35);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 280ms cubic-bezier(.2, .7, .2, 1), visibility 0s linear 280ms;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.toc-drawer.open { transform: none; visibility: visible; transition: transform 280ms cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 10, 8, 0.28); opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
html.drawer-open, html.drawer-open body { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 8px 0 22px; border-bottom: 1px solid var(--rule); }
.drawer-book { font-size: 18px; text-decoration: none; color: var(--ink); }
.drawer-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.drawer-x svg { width: 20px; height: 20px; }
.drawer-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1; }
.drawer-list a { display: grid; grid-template-columns: 2rem 1fr auto; align-items: baseline; gap: 6px; min-height: 52px; padding: 14px 18px 14px 22px; text-decoration: none; color: var(--ink); transition: background-color 150ms ease; }
.drawer-list a:active { background: var(--paper-2); }
.drawer-list .n { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-feature-settings: "tnum"; }
.drawer-list .t { font-size: 18px; line-height: 1.3; }
.drawer-list .s { font-family: var(--sans); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.drawer-list li.current a { background: var(--paper-2); box-shadow: inset 2px 0 0 var(--ox); }
.drawer-list li.current .s { color: var(--ox); }
.drawer-list li.done .t { color: var(--ink-2); }
.drawer-foot { display: flex; gap: 22px; padding: 14px 22px 18px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 14px; }
.drawer-foot a { color: var(--ink-2); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .toc-drawer, .drawer-scrim { transition: none; } }

/* Books cut out of the photo: they sit on any surface, day or night */
.photo img { border-radius: 0; box-shadow: none !important; filter: drop-shadow(0 14px 16px rgba(42, 33, 27, 0.28)) drop-shadow(0 2px 3px rgba(42, 33, 27, 0.18)); }
.env-own .photo img { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .photo img { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); } }
:root[data-theme="night"] .photo img { filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }

/* Paperbacks made from the flat cover files: upright, a thin page block, a soft shadow */
.paperbacks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7%; max-width: 380px; margin: 0 auto; }
.books-break .paperbacks { margin-bottom: 34px; }
.paperbacks.big { max-width: 560px; margin: 34px 0 0; gap: 6%; }
.paperbacks .cover {
  box-shadow:
    1px 1px 0 #EFE8DA, 2px 2px 0 #E2D9C8, 3px 3px 0 #EFE8DA, 4px 4px 0 #D8CEBC,
    0 18px 30px -16px rgba(20, 14, 10, 0.45);
}
.env-own .paperbacks .cover, :root[data-theme="night"] .paperbacks .cover {
  box-shadow:
    1px 1px 0 #E9E1D2, 2px 2px 0 #CFC5B3, 3px 3px 0 #E9E1D2, 4px 4px 0 #BDB29F,
    0 20px 34px -14px rgba(0, 0, 0, 0.7);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .paperbacks .cover {
  box-shadow: 1px 1px 0 #E9E1D2, 2px 2px 0 #CFC5B3, 3px 3px 0 #E9E1D2, 4px 4px 0 #BDB29F, 0 20px 34px -14px rgba(0, 0, 0, 0.7); } }

/* ===== Final pass: three acts on the front page ===== */
:root { --paper: #F0E8DB; --paper-2: #E7DECF; --read-paper: #FCF9F3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) { --paper: #17120F; --paper-2: #201A16; --read-paper: #1D1814; } }
:root[data-theme="night"] { --paper: #17120F; --paper-2: #201A16; --read-paper: #1D1814; }

/* Act two: Read. A bright page and the first line set like a book opening */
.env-read-band { padding: calc(var(--sec) * 1.15) 0; box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); border: 0; }
.env-read-band .first-lines p:first-child { font-size: 27px; line-height: 1.35; margin-bottom: 4px; text-wrap: balance; }
@media (min-width: 760px) { .env-read-band .first-lines p:first-child { font-size: 32px; } }

/* Act three: Own. The visual high point */
.climax { background: radial-gradient(ellipse 80% 55% at 50% 42%, #3A2C22 0%, #2A201A 45%, var(--own-bg) 80%); }
.climax .own-in { display: block !important; text-align: center; padding-top: calc(var(--sec) * 1.2); padding-bottom: calc(var(--sec) * 1.2); }
.climax .label { text-align: center; }
.climax h2 { margin-top: 14px; font-size: 34px; line-height: 1.15; font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
.climax .paperbacks.big { max-width: 760px; margin: 44px auto 0; gap: 5.5%; }
.climax .own-line { margin: 44px auto 0; max-width: 30rem; font-size: 19px; line-height: 1.55; color: var(--own-ink-2); text-wrap: pretty; }
.climax .acts { margin-top: 26px; }
.climax .note { max-width: 28rem; margin-left: auto; margin-right: auto; color: #9C8F7E; }
@media (min-width: 900px) { .climax h2 { font-size: 46px; } .climax .paperbacks.big { margin-top: 60px; } }

/* Motion: a little more presence, still quiet. The novel's text never moves. */
.js [data-reveal] { transform: translateY(6px); transition: opacity 260ms ease, transform 300ms cubic-bezier(.2, .7, .2, 1); }
.js .paperbacks.stage[data-reveal] { opacity: 1; transform: none; }
.js .paperbacks.stage .cover { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 900ms cubic-bezier(.2, .7, .2, 1); }
.js .paperbacks.stage.in .cover { opacity: 1; transform: none; }
.js .paperbacks.stage.in .cover:nth-child(2) { transition-delay: 60ms; }
.js .paperbacks.stage.in .cover:nth-child(3) { transition-delay: 120ms; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .paperbacks.stage .cover { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Book setting for phones: ragged right like a trade paperback, an even right edge, a fuller line */
.prose { text-align: left; hyphens: manual; font-kerning: normal; font-variant-ligatures: common-ligatures; font-feature-settings: "kern", "liga", "onum"; }
.prose p { text-wrap: pretty; }
@media (max-width: 759px) {
  :root { --fs: 21px; }
  :root[data-size="1"] { --fs: 18px; }
  :root[data-size="2"] { --fs: 21px; }
  :root[data-size="3"] { --fs: 23px; }
  :root[data-size="4"] { --fs: 25px; }
  :root[data-size="5"] { --fs: 28px; }
  .measure { padding-left: 22px; padding-right: 22px; }
  .prose { line-height: 1.6; }
  .prose p { text-indent: 1.15em; }
}
/* Light type on a dark page reads heavier and wider, so night mode is set a touch lighter */
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .prose { font-weight: 370; } }
:root[data-theme="night"] .prose { font-weight: 370; }

/* Four-book set (shown only once Third Day is for sale) */
.paperbacks.n4 { grid-template-columns: repeat(4, 1fr); max-width: 520px; gap: 5%; }
.climax .paperbacks.big.four { max-width: 900px; grid-template-columns: repeat(4, 1fr); gap: 4%; }
@media (max-width: 599px) { .climax .paperbacks.big.four { grid-template-columns: repeat(2, 1fr); max-width: 330px; gap: 22px 9%; } }
.price-line { margin: 30px auto 0; font-family: var(--serif); font-size: 23px; line-height: 1.3; text-align: center; text-wrap: balance; }
.was { margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--ink-3); text-align: center; }
.env-own .was, .climax .was { color: #9C8F7E; }
.price-line + .was + .acts, .price-line + .acts { margin-top: 18px; }
.also { margin-top: 18px; font-family: var(--sans); font-size: 15px; color: var(--own-ink-2); text-align: center; }
.also a { color: var(--own-ink); text-underline-offset: 3px; }
.gift-h { margin-top: 14px; font-size: 36px; line-height: 1.12; font-weight: 400; letter-spacing: -0.012em; color: var(--own-ink); text-wrap: balance; }
@media (min-width: 900px) { .gift-h { font-size: 52px; } .price-line { font-size: 26px; } }
/* The book title in the bar and the chapter heading both open the contents */
a.bar-title { text-decoration: none; color: var(--ink-3); }
.opening[data-toc-also] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Language row in the reading settings */
.sheet .langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 12px 6px 2px; border-top: 1px solid var(--rule); margin-top: 6px; font-family: var(--sans); font-size: 15px; }
.sheet .langs a { color: var(--ink-2); text-decoration: none; padding: 6px 2px; }
.sheet .langs a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* The saga, at the foot of the contents */
.saga { margin-top: 9vh; padding: 7vh 0 9vh; border-top: 1px solid var(--rule); }
.saga > .label, .saga > h2 { text-align: center; }
.saga > h2 { margin-top: 10px; font-size: 28px; font-weight: 400; line-height: 1.2; text-wrap: balance; }
.saga-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 34px; }
.saga-list li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; }
.saga-list .cover img { width: 100%; height: auto; display: block; }
.saga-list .cover.soon { display: grid; place-items: center; aspect-ratio: 1000 / 1600; background: var(--paper-2); color: var(--ink-3); font-family: var(--serif); font-size: 13px; text-align: center; border: 1px solid var(--rule); }
.saga-list h3 { margin: 4px 0 0; font-size: 22px; font-weight: 400; line-height: 1.2; }
.saga-list .line { margin: 6px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.saga-list .links { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 15px; }
.saga-list .links a { color: var(--ink); text-underline-offset: 3px; }
.saga-list .soon-t { color: var(--ink-3); }
.saga-foot { margin-top: 44px; text-align: center; font-family: var(--sans); font-size: 15px; }
.saga-foot a { color: var(--ink-2); text-underline-offset: 3px; }
@media (min-width: 760px) { .saga-list li { grid-template-columns: 104px 1fr; gap: 26px; } .saga > h2 { font-size: 34px; } }
.saga { max-width: calc(36rem + 44px); margin-left: auto; margin-right: auto; padding-left: 22px; padding-right: 22px; }
.saga-list .cover { box-shadow: 1px 1px 0 rgba(255,255,255,.06), 0 10px 22px -12px rgba(0,0,0,.5); }
/* Other languages, one quiet line */
.also-in { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.toc-head .also-in, .hero-text .also-in { justify-content: center; }
@media (min-width: 900px) { .hero-text .also-in { justify-content: flex-start; } }
.also-in a { color: var(--ink-3); text-decoration: none; }
.also-in a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* Korean: break between words, never inside one, and prefer a serif Hangul face where the device has one */
:lang(ko) .prose, :lang(ko) h1, :lang(ko) h2, :lang(ko) .toc .t { word-break: keep-all; overflow-wrap: break-word; }
:lang(ko) .prose { font-family: "Newsreader", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Batang", serif; line-height: 1.75; }
.saga-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }

/* Question pages */
.qa { max-width: calc(34rem + 44px); margin: 0 auto; padding: 9vh 22px 10vh; }
.qa-kicker { color: var(--ink-3); }
.qa-h { margin-top: 10px; font-size: 34px; line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
.qa-lede { margin-top: 16px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.qa-body { margin-top: 28px; font-size: var(--fs); line-height: 1.6; }
.qa-body h3 { margin: 34px 0 8px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.qa-body p { margin: 0 0 1em; text-wrap: pretty; }
.qa-body blockquote { margin: 18px 0; padding-left: 18px; border-left: 2px solid var(--rule); color: var(--ink-2); font-style: italic; }
.qa-body blockquote p { margin: 0; }
.qa-body a { color: var(--ink); text-underline-offset: 3px; }
.qa-more { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 15px; }
.qa-more ul, .qa-group ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.qa-more a, .qa-group a { color: var(--ink); text-underline-offset: 3px; }
.qa-group { margin-top: 40px; }
.qa-group h2 { font-size: 24px; font-weight: 400; }
.qa-group li { font-size: 18px; line-height: 1.4; }
@media (min-width: 760px) { .qa-h { font-size: 44px; } }
.qa-more > p:last-child { margin-top: 16px; }

/* No sideways scroll anywhere: full-bleed bands can poke past the scrollbar on desktop */
html, body { overflow-x: clip; }

/* Home top bar: Aa sits beside Own the books. On a mouse device it stays faint until you move into the bar */
.land-top .top-r { display: inline-flex; align-items: baseline; gap: 18px; }
.land-top .top-aa { font-size: 16px; padding: 0 2px; background: none; border: 0; color: var(--ink-2); cursor: pointer; }
@media (hover: hover) {
  .land-top .top-aa { opacity: 0; transition: opacity 220ms ease; }
  .land-top:hover .top-aa, .land-top .top-aa:focus-visible, .land-top .top-aa[aria-expanded="true"] { opacity: 1; }
}
body[data-page="home"] .sheet { top: calc(56px + env(safe-area-inset-top, 0px)); }

/* Languages: English alone on top, then pairs */
.sheet .langs { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 2px 8px; }
.sheet .langs a[lang="en"] { grid-column: 1 / -1; }
.end-links { flex-wrap: wrap; gap: 10px 24px; }

/* Questions index and FAQ share one system */
.qa-group { margin-top: 52px; }
.qa-group h2, .qa-body.faq h2 { font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.qa-group h2 { padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.qa-group ul { margin-top: 18px; gap: 14px; }
.qa-body.faq h2 { margin: 52px 0 12px; }
.qa-body.faq h3 { margin-top: 30px; }
.qa-body.faq ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin: 10px 0 16px; }
.qa-body.faq li { line-height: 1.5; }
@media (min-width: 760px) { .qa-group h2, .qa-body.faq h2 { font-size: 34px; } }

/* Covers are links to the paperback. A small lift on hover, nothing more */
.cover-link { display: block; color: inherit; -webkit-tap-highlight-color: transparent; }
.cover-link img { display: block; width: 100%; height: auto; }
.paperbacks .cover, .saga-list .cover { translate: 0 0; transition: opacity 700ms ease, transform 900ms cubic-bezier(.2, .7, .2, 1), translate 260ms ease, box-shadow 260ms ease; }
.js .paperbacks.stage.in .cover:nth-child(2) { transition-delay: 60ms, 60ms, 0s, 0s; }
.js .paperbacks.stage.in .cover:nth-child(3) { transition-delay: 120ms, 120ms, 0s, 0s; }
@media (hover: hover) {
  .paperbacks .cover:has(.cover-link:hover), .saga-list .cover:has(.cover-link:hover) { translate: 0 -6px; }
}
.cover-link:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .paperbacks .cover, .saga-list .cover { translate: none !important; } }
.say.sig a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.say.sig a:hover { border-bottom-color: var(--ink-3); }
.say.sig a { -webkit-tap-highlight-color: transparent; }

/* Book four, faded, coming soon */
.climax .paperbacks.big.with-soon { max-width: 900px; grid-template-columns: repeat(4, 1fr); gap: 4%; }
@media (max-width: 599px) { .climax .paperbacks.big.with-soon { grid-template-columns: repeat(2, 1fr); max-width: 330px; gap: 22px 9%; } }
.paperbacks .soon-cover { position: relative; box-shadow: none !important; }
.paperbacks .soon-cover img { opacity: .32; filter: grayscale(.55); }
.soon-tag { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--own-ink-2); white-space: nowrap; }
.climax .paperbacks.big.with-soon { margin-bottom: 28px; }
.paperbacks .soon-cover { background: transparent !important; } .paperbacks .soon-cover img { filter: grayscale(.55) brightness(.9); }
.saga-list .soon-cover { box-shadow: none !important; background: transparent !important; }
.saga-list .soon-cover img { display: block; width: 100%; height: auto; opacity: .32; filter: grayscale(.55) brightness(.9); }

/* A question that matches the chapter, quiet, under the end links */
.ch-q { margin: 30px auto 0; max-width: 30rem; text-align: center; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.ch-q span { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.ch-q a { color: var(--ink-2); text-underline-offset: 3px; }
/* Questions on the front page */
.home-q { margin-top: 40px; font-family: var(--sans); font-size: 16px; }
.home-q ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.home-q a { color: var(--ink); text-underline-offset: 3px; }
.home-q .more { display: inline-block; margin-top: 12px; color: var(--ink-3); }
/* Third Day: free early copy, softer fade than "coming soon" */
.soon-cover.early img { opacity: .78 !important; filter: grayscale(.15) !important; }
.soon-cover.early:hover img { opacity: 1 !important; filter: none !important; }
.chapter-end .signup { margin-top: 36px; }
.signup-done { font-size: 18px; color: var(--ink); padding: 14px 0; }
/* Hero cover: same small lift, opens "The book" */
.hero-cover .cover { translate: 0 0; transition: translate 260ms ease, box-shadow 260ms ease; }
@media (hover: hover) { .hero-cover .hero-link:hover .cover { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .hero-cover .cover { translate: none !important; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#the-book { scroll-margin-top: 72px; }
/* The book: four moments, a tease of the story */
.beats { list-style: none; padding: 0; margin: 36px 0 8px; display: grid; gap: 14px; }
@media (min-width: 700px) { .beats { grid-template-columns: 1fr 1fr; gap: 16px; } }
.beats a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px 18px; border: 1px solid var(--rule); border-radius: 3px; color: inherit; text-decoration: none; transition: border-color 220ms ease, translate 260ms ease; }
@media (hover: hover) { .beats a:hover { border-color: var(--ink-3); translate: 0 -3px; } }
.beats .age { font-family: var(--serif); font-size: 25px; line-height: 1.2; color: var(--ink); }
.beats .beat { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.beats .ch { margin-top: auto; padding-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .beats a { translate: none !important; } }
.read-again { margin-top: 30px; }
/* Question pages: breadcrumbs, chapter card, updated date */
.crumbs { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.crumbs a:hover { border-bottom-color: var(--ink-3); }
.qa-card { display: flex; flex-direction: column; gap: 6px; margin: 44px 0 0; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 3px; color: inherit; text-decoration: none; transition: border-color 220ms ease, translate 260ms ease; }
@media (hover: hover) { .qa-card:hover { border-color: var(--ink-3); translate: 0 -3px; } }
.qa-card .t { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--ink); }
.qa-card .s { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.qa-updated { margin-top: 22px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .qa-card { translate: none !important; } }
.novel-note { max-width: 30rem; margin: 18px auto 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.55; color: var(--ink-3); } .novel-note a { color: var(--ink-3); font-style: normal; font-family: var(--sans); font-size: 13px; white-space: nowrap; }
/* Three story cards: one column, read top to bottom */
.beats { grid-template-columns: 1fr !important; }
.prose p[id] { scroll-margin-top: 84px; }
/* Paperback block: an even rhythm and lines that break in balanced pairs */
.note, .say, .own-line, .books-break h2, .climax h2 { text-wrap: balance; }
.climax .paperbacks.big.with-soon { margin-bottom: 0; }
.soon-tag { position: static; display: block; margin-top: 14px; }
.climax .own-line { margin: 56px auto 0; max-width: 34rem; font-size: 19px; text-wrap: balance; }
.climax .acts { margin-top: 32px; }
.climax .note { max-width: 36rem; margin-top: 22px; }
.climax .note.note-td { margin-top: 6px; }
@media (max-width: 599px) {
  .climax .own-line { margin-top: 44px; font-size: 18px; }
  .climax .note { max-width: 22rem; }
}
.climax .paperbacks.big.with-soon { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 4%; }
@media (max-width: 599px) { .climax .paperbacks.big.with-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; gap: 26px 28px; } }
.note a, .say a { white-space: nowrap; }
/* Third Day stays still until its paperback exists */
.paperbacks .cover.soon-cover, .saga-list .cover.soon-cover { translate: none !important; transition: none !important; }
.soon-cover.early:hover img { opacity: .78 !important; filter: grayscale(.15) !important; }
/* Reading progress: a visible track, so the line reads as progress, not decoration */
.progress { height: 3px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.progress i { opacity: 1; border-radius: 0 2px 2px 0; }

/* ===== Staged revision: first screen, samples, book ending, contrast ===== */
:root { --ink-3: #6B5F53; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) { --ink-3: #A39582; } }
:root[data-theme="night"] { --ink-3: #A39582; }
.env-own { --ink-3: #ADA08D; }
.climax .note { color: #B7A994; }
.land-top .top-lang { font-family: var(--sans); font-size: 15px; padding: 0 2px; background: none; border: 0; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }

/* First screen: the promise and the button before the cover */
.hero-v2 { padding-top: 28px; gap: 28px; }
.hero-v2 .hero-text { order: 1; }
.hero-v2 .hero-cover { order: 2; }
.hero-v2 .kicker { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ox); margin-bottom: 12px; }
:root[data-theme="night"] .hero-v2 .kicker { color: #D69A8F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .hero-v2 .kicker { color: #D69A8F; } }
.hero-v2 h1 { font-size: 44px; }
.hero-v2 .hook { margin-top: 14px; font-size: 21px; }
.hero-v2 .acts { margin-top: 22px; }
.hero-v2 .start-meta { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.hero-v2 .by { margin-top: 18px; font-size: 15px; color: var(--ink-3); font-family: var(--sans); }
.hero-v2 .hero-cover .cover { width: min(38vw, 150px); }
@media (min-width: 900px) {
  .hero-v2 { padding-top: 88px; }
  .hero-v2 .hero-cover { order: 0; }
  .hero-v2 .hero-text { order: 1; }
  .hero-v2 .hero-cover .cover { width: min(100%, 320px); }
  .hero-v2 h1 { font-size: 68px; }
  .hero-v2 .hook { font-size: 26px; }
}

/* Book ending: the next book first */
.next-book { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; max-width: 34rem; margin: 34px auto 0; text-align: left; }
.next-book .nb-cover .cover { width: 120px; }
.next-book h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin-top: 4px; }
.next-book .say { text-align: left; margin-top: 10px; }
.next-book .acts { justify-content: flex-start; margin-top: 18px; flex-wrap: wrap; }
.next-book .note { text-align: left; margin-top: 12px; }
@media (max-width: 480px) { .next-book { grid-template-columns: 1fr; } .next-book .nb-cover .cover { width: 130px; } }
.books-break.carry { margin-top: 48px; }

/* Samples: a scene opened from a card or a question */
.sample-intro { max-width: 33rem; margin: 0 auto 26px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 3px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.sample-intro a { color: var(--ink); }
.sample-end { max-width: 33rem; margin: 40px auto 0; padding: 22px 20px; border: 1px solid var(--rule); border-radius: 3px; text-align: center; }
.sample-end p { font-family: var(--serif); font-size: 20px; line-height: 1.45; color: var(--ink); }
.sample-end .acts { justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.next-book { padding: 0 22px; box-sizing: border-box; }
.next-book .say { font-size: 18px; line-height: 1.55; }
.next-book .note { line-height: 1.55; }
.js.returning .start-meta { display: none; }

/* ===== The title-page identity, sitewide ===== */
/* Prototype: the Nazarene as a printed title page */
@font-face { font-family: "Fell"; src: url("/assets/fonts/fell-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/garamond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/garamond-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/garamond-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root { --serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif; --paper: #F7F5EF; --paper-2: #EFECE3; --read-paper: #F7F5EF; --ink: #24231F; --ink-2: #58564E; --ink-3: #6A675E; --rule: rgba(36, 35, 31, 0.16); --btn: #24231F; --btn-ink: #F7F5EF; }
:root[data-size="2"] { --fs: 21px; }
@media (min-width: 720px) { :root[data-size="2"] { --fs: 22px; } }
.proto .prose p, .proto .first-lines p { line-height: 1.57; }
.the { font-family: "Fell", "IM Fell English", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Home */
body.proto { background: var(--paper); }
.pt-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 14px 20px 0; font-family: var(--sans); font-size: 15px; }
.pt-nav a, .pt-nav .pt-lang { color: var(--ink-2); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px 0; }
.pt-nav span { display: flex; gap: 18px; }
.pt-nav .pt-lang { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }

.title-page { text-align: center; padding: 22px 20px 34px; max-width: 34rem; margin: 0 auto; }
.masthead { margin: 0; line-height: 1; font-weight: 400; }
.masthead .the { display: block; font-size: 36px; line-height: .9; margin-bottom: -4px; color: var(--ink); transform: none; }
.masthead .naz { display: block; font-family: "EB Garamond", serif; font-weight: 500; font-size: 44px; letter-spacing: .06em; color: var(--ink); }
.book-label { margin-top: 14px; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; color: var(--ink-2); }
.author { margin-top: 4px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }
.promise { margin: 20px auto 0; font-size: 27px; line-height: 1.22; color: var(--ink); }
.pt-btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; margin-top: 22px; padding: 0 30px; background: var(--btn); color: var(--btn-ink); font-family: var(--sans); font-size: 17px; border-radius: 3px; }
.pt-btn .btn-sub { font-size: 13px; opacity: .8; }
.free { margin-top: 12px; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.restart { display: none; margin-top: 10px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.js.returning .restart { display: inline-block; }

.pt-excerpt { max-width: 560px; margin: 0 auto; padding: 34px 20px 8px; border-top: 1px solid var(--rule); }
.pt-chlabel { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; color: var(--ink-2); text-align: center; }
.pt-chtitle { font-size: 34px; font-weight: 400; text-align: center; margin: 6px 0 26px; }
.pt-excerpt .first-lines p { font-size: var(--fs); text-indent: 1.3em; margin: 0; }
.pt-excerpt .first-lines p:first-child { text-indent: 0; font-size: 1.12em; }
.pt-excerpt .first-lines p.gap { height: 1.2em; }
.pt-excerpt .first-lines p.ni { text-indent: 0; }
.pt-excerpt .pt-btn { display: flex; margin: 28px auto 0; width: max-content; }

.pt-section { max-width: 560px; margin: 0 auto; padding: 46px 20px 0; }
.pt-label { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.pt-section p { font-size: 19px; line-height: 1.55; }
.pt-section p + p { margin-top: 12px; }
.pt-lede { font-size: 22px !important; }
.pt-small { font-family: var(--sans); font-size: 14px !important; color: var(--ink-2); margin-top: 14px; }
.proto .beats { margin-top: 0; }
.pt-review .voice { margin: 0; }
.pt-review blockquote { font-size: 24px; line-height: 1.4; font-style: italic; }
.reading-order { list-style: none; padding: 0; margin: 0; }
.reading-order li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.reading-order img { width: 76px; height: auto; box-shadow: 0 6px 12px rgba(36,35,31,.18); }
.reading-order .soon-img { opacity: 1; }
.reading-order .ro-n { font-family: var(--sans); font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.reading-order h3 { font-size: 24px; font-weight: 400; margin: 2px 0 4px; }
.reading-order .ro-l { font-size: 17px !important; color: var(--ink-2); }
.reading-order .ro-a { margin-top: 8px !important; font-family: var(--sans); font-size: 15px !important; }
.reading-order .ro-a a { color: var(--ink); }
.reading-order .soon { color: var(--ink-2); }
.pt-links ul { list-style: none; padding: 0; margin: 0 0 14px; }
.pt-links li { padding: 6px 0; font-size: 19px; }
.pt-links a { color: var(--ink); }
.proto .foot { margin-top: 64px; }

/* Chapter: masthead in the bar */
.pt-mini { font-family: "EB Garamond", serif; font-weight: 500; letter-spacing: .08em; font-size: 15px; color: var(--ink); }
.pt-mini .the { font-size: 17px; letter-spacing: 0; margin-right: 1px; }

@media (min-width: 720px) {
  .title-page { padding-top: 64px; padding-bottom: 54px; }
  .masthead .the { font-size: 52px; }
  .masthead .naz { font-size: 76px; }
  .promise { font-size: 34px; }
}
.pt-section .pt-label { font-size: 12px; line-height: 1.4; }
.proto .beats li { opacity: 1 !important; transform: none !important; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/garamond-cyr.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/garamond-cyr-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Every page, not just the prototype */
.prose p, .first-lines p { line-height: 1.57; }
.pt-mini { white-space: nowrap; }
.lang-title { padding-top: 34px; }
.lang-title .promise { font-size: 25px; }
:lang(ko) .masthead .naz, .lang-title .masthead .naz:lang(ko) { letter-spacing: .02em; }
.toc { margin-top: 8px; }
.lang-title .promise, .lang-title .free, .lang-title .author { word-break: keep-all; text-wrap: balance; }

/* ===== Go-live polish ===== */
:root { --paper: #F6F1E8; --paper-2: #EEE8DC; --read-paper: #F6F1E8; --ink: #26221D; --btn-ink: #F6F1E8; }
.title-page .pt-btn, .pt-excerpt .pt-btn { display: flex; align-items: center; justify-content: center; width: 280px; max-width: 100%; min-height: 52px; margin-left: auto; margin-right: auto; white-space: nowrap; }
.resume-where { margin-top: 22px; font-family: var(--sans); font-size: 15px; color: var(--ink-2); }
.resume-where + .pt-btn { margin-top: 10px; }
.btn, .pt-btn { transition: background-color 160ms ease, transform 120ms ease, opacity 160ms ease; }
.btn:active, .pt-btn:active { transform: translateY(1px) scale(.99); opacity: .9; }
a { text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 180ms ease, color 180ms ease; }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; }
.place-mark { box-shadow: -14px 0 0 -11px var(--ox); transition: box-shadow 1200ms ease; }
.place-mark-out { box-shadow: -14px 0 0 -14px transparent; }
.passage-btn { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 40; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.18); transition: opacity 160ms ease, transform 200ms ease; }
.passage-btn.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
::target-text { background: rgba(111, 43, 39, .16); }
@media (prefers-reduced-motion: reduce) { .btn, .pt-btn, .passage-btn, .place-mark { transition: none !important; } }

/* ===== Cover panel: the top of the homepage reads like a cloth book cover ===== */
.cover-panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(60,45,25,.016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(60,45,25,.012) 0 1px, transparent 1px 3px); }
.cover-panel .pt-nav { width: 100%; }
.cover-panel .title-page { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px 12vh; }
.cover-panel .masthead .the { font-size: 46px; }
.cover-panel .masthead .naz { font-size: 50px; }
.cover-panel .promise { margin-top: 40px; }
.cover-read { display: inline-block; margin-top: 40px; padding: 12px 18px; font-size: 22px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ox); text-decoration-thickness: 1px; text-underline-offset: 7px; }
.cover-read:hover { text-decoration-thickness: 2px; }
.cover-panel .author { margin-top: 26px; }
.cover-panel .pt-btn { display: none; }
.js.returning .cover-panel { min-height: 0; }
.js.returning .cover-panel .title-page { padding: 28px 24px 40px; }
.js.returning .cover-read { display: none; }
.js.returning .cover-panel .pt-btn { display: flex; }
.js.returning .cover-panel .promise { margin-top: 18px; }
.pt-intro { max-width: 34rem; margin: 0 auto; padding: 56px 24px 8px; text-align: center; border-top: 1px solid var(--rule); }
.pt-intro .pt-lede { margin-top: 16px; font-size: 22px; line-height: 1.4; }
.pt-intro .free { margin-top: 16px; }
.js.returning .pt-intro { display: none; }
@media (min-width: 700px) {
  .cover-panel .masthead .the { font-size: 64px; }
  .cover-panel .masthead .naz { font-size: 96px; }
  .cover-panel .promise { font-size: 36px; }
}
[data-theme="dark"] .cover-panel { background-image: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cover-panel { background-image: none; } }
.reading-order img { background: #E4DCCD; }

/* Homepage footer: links sit on the same left edge as the sections above */
.proto .foot { text-align: left; padding-left: 0; padding-right: 0; }
.proto .foot > div { max-width: 560px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 0; }
.proto .foot a { margin: 0; }

/* Far Country, chapter one in the same reader */
.fc-sample .progress, .fc-sample .sheet .langs { display: none; }
.fc-next .acts.center { margin-top: 18px; }
.fc-next .note { text-align: center; }
.next-book .acts { flex-wrap: wrap; row-gap: 10px; }
.nw { white-space: nowrap; }
.pt-chlabel { text-transform: uppercase; }
.js.returning .pt-excerpt .pt-btn { display: none; }
/* Reading order: two matching actions per book */
.reading-order .ro-a{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px !important}
.reading-order .ro-a a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:132px;padding:0 18px;border:1px solid var(--ink);border-radius:3px;text-decoration:none;font-size:15px}
.reading-order .ro-a a + a{background:var(--ink);color:var(--paper)}
.ro-set{margin-top:28px;display:grid;gap:12px;justify-items:start}
.ro-set p{margin:0 !important;font-family:var(--sans);font-size:14px;color:var(--ink-2)}
.reading-order .ro-a{display:grid;grid-template-columns:1fr 1fr;max-width:320px}
.reading-order .ro-a a{min-width:0;padding:0 10px;white-space:nowrap}
.reading-order .ro-a a + a{background:transparent;color:var(--ink)}
.reading-order .ro-a a:first-child{background:var(--ink);color:var(--paper)}
.reading-order .ro-t{margin-top:10px !important;font-family:var(--sans);font-size:15px !important}
.reading-order .ro-t a{color:var(--ink);text-underline-offset:.24em}
/* Hero: all four books are out */
.cover-four{display:inline-flex;flex-direction:column;align-items:center;gap:10px;margin-top:26px;text-decoration:none;color:var(--ink-2)}
.cover-four .cf-row{display:flex;gap:6px}
.cover-four img{width:40px;height:auto;box-shadow:0 4px 10px -4px rgba(20,14,10,.5);transition:translate .25s ease}
.cover-four:hover img{translate:0 -3px}
.cover-four .cf-t{font-family:var(--sans);font-size:14px;text-decoration:underline;text-underline-offset:.24em;text-decoration-color:var(--ink-3)}
.cover-panel .author,.author{text-wrap:balance}
/* Gift page: the header sits on the dark page, not a cream strip */
body[data-page="gift"] .land-top{padding-bottom:22px;color:var(--own-ink);background:var(--own-bg);box-shadow:0 0 0 100vmax var(--own-bg);clip-path:inset(0 -100vmax)}
body[data-page="gift"] .land-top a,body[data-page="gift"] .land-top .own{color:var(--own-ink)}
/* Gift page quotes: centered, with air between them */
body[data-page="gift"] .about .voice{text-align:center;margin:0 auto 40px;max-width:36rem}
body[data-page="gift"] .about .voice figcaption{margin-top:10px}
body[data-page="gift"] .about{padding-top:72px;padding-bottom:72px}
@media (max-width:600px){.reading-order .ro-a{margin-top:22px !important}}
body[data-page="gift"] .gift .price-line{margin-top:18px}
body[data-page="gift"] .gift .note + .paperbacks{margin-top:48px}
.free-note{margin-top:10px !important;font-family:var(--sans);font-size:14px;color:var(--ink-2)}
.js.returning .free-note{display:none}
.js.returning .cover-four{display:flex;margin:22px auto 0}
/* Four-book rows: the fourth cover gets its own beat, and hover eases like the rise */
.js .paperbacks.stage.in .cover:nth-child(4) { transition-delay: 180ms, 180ms, 0s, 0s; }
.paperbacks .cover, .saga-list .cover { transition: opacity 700ms ease, transform 900ms cubic-bezier(.2, .7, .2, 1), translate 320ms cubic-bezier(.2, .7, .2, 1), box-shadow 320ms ease; }
