:root {
  --ink: #090909;
  --ink-soft: #11110f;
  --paper: #f3f0e8;
  --paper-dim: #d8d3c4;
  --muted: #918b7d;
  --line: #2d2a24;
  --line-bright: #4a463d;
  --serif: Georgia, "Times New Roman", serif;
  --display: "Bodoni Moda", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .22, 1);
  --page: min(1180px, calc(100vw - 8vw));
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .045;
  background:
    repeating-radial-gradient(circle at 13% 27%, #fff 0 .45px, transparent .55px 3px),
    repeating-radial-gradient(circle at 73% 67%, #fff 0 .35px, transparent .5px 4px);
  mix-blend-mode: screen;
}

#grain { display: none !important; }

a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
::selection { background: var(--paper); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  background: var(--paper);
  color: var(--ink);
  font: 700 11px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  width: var(--page);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  font: 600 10px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.site-brand,
.site-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-brand {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .08em;
}

.site-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.site-links a { color: var(--muted); transition: color .2s; }
.site-links a:hover,
.site-links a[aria-current="page"] { color: var(--paper); }

.nav-group { display: flex; align-items: center; }

.progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--paper);
}

.page-shell { width: var(--page); margin: 0 auto; }

.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--muted);
  font: 600 10px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 10vw, 142px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .84;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .88;
  text-transform: uppercase;
}

.lede {
  margin: 0;
  color: var(--paper-dim);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  line-height: 1.45;
  text-wrap: balance;
}

.body-copy { max-width: 720px; }
.body-copy p { margin: 0 0 1.55em; color: #c8c2b3; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.78; }
.body-copy strong, .body-copy em { color: var(--paper); }
.body-copy a,
.legal a,
.signal-privacy a { min-height: 24px; display: inline-flex; align-items: center; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  color: var(--paper);
  background: transparent;
  font: 700 10.5px/1.2 var(--sans);
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s;
}

.button:hover { border-color: var(--paper); transform: translateY(-2px); }
.button-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button-quiet { color: var(--muted); }

.home-hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr);
  gap: clamp(48px, 8vw, 124px);
  align-items: center;
  padding: clamp(54px, 8vh, 104px) 0;
}

.monument { display: inline-flex; flex-direction: column; align-items: flex-start; }
.monument span { display: block; font-family: var(--display); font-weight: 900; line-height: .77; text-transform: uppercase; }
.monument .m1 { font-size: clamp(50px, 7vw, 100px); }
.monument .m2 { margin-left: 8%; font-size: clamp(128px, 20vw, 290px); letter-spacing: -.04em; }
.monument .m3 { align-self: center; font-size: clamp(50px, 7vw, 100px); letter-spacing: -.025em; }
.home-genre { margin: 28px 0 0; color: var(--muted); font: 600 10px/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; }

.open-door { border-top: 1px solid var(--line-bright); border-bottom: 1px solid var(--line); padding: 30px 0 32px; }
.door-state { color: var(--paper); }
.door-title { margin: 0; font-family: var(--display); font-size: clamp(44px, 6vw, 76px); font-weight: 900; line-height: .92; text-transform: uppercase; }
.door-hook { margin: 20px 0 12px; color: var(--paper-dim); font-size: clamp(18px, 2vw, 23px); font-style: italic; line-height: 1.45; }
.door-copy { margin: 0 0 28px; max-width: 46ch; color: var(--muted); font-size: 15px; line-height: 1.65; }

.home-index { margin-top: 26px; border-top: 1px solid var(--line); }
.home-index a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.home-index strong { font-size: 17px; }
.home-index span { color: var(--muted); font: 10px/1.2 var(--sans); letter-spacing: .08em; text-align: right; }

.page-head { padding: clamp(64px, 10vh, 126px) 0 clamp(54px, 8vh, 96px); border-bottom: 1px solid var(--line); }
.page-head .lede { max-width: 760px; margin-top: 28px; }

.books-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); padding: clamp(58px, 9vh, 110px) 0; }
.book-card { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: clamp(24px, 4vw, 52px); align-items: end; color: inherit; text-decoration: none; }
.book-cover { position: relative; overflow: hidden; aspect-ratio: 5 / 8; background: #171613; box-shadow: 0 24px 60px #000; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.book-card:hover .book-cover img { transform: scale(1.015); }
.book-meta h2 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(30px, 3.8vw, 54px); line-height: .95; text-transform: uppercase; }
.book-meta p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.status { display: inline-flex; align-items: center; min-height: 30px; margin-bottom: 16px; padding: 0 10px; background: var(--paper); color: var(--ink); font: 700 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-bright); font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }

.future-note { margin: 0 0 clamp(70px, 11vh, 140px); padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; color: var(--muted); }
.future-note strong { color: var(--paper); font-family: var(--display); font-size: 24px; text-transform: uppercase; }

.book-hero { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(48px, 9vw, 130px); align-items: center; padding: clamp(56px, 9vh, 112px) 0; }
.book-hero-cover { position: relative; max-width: 340px; box-shadow: 0 36px 90px #000; }
.book-hero-cover img { width: 100%; display: block; }
.book-hero-copy .display-title { font-size: clamp(58px, 8vw, 118px); }
.book-hero-copy .lede { max-width: 560px; margin-top: 26px; }
.book-blurb { max-width: 600px; margin: 22px 0 28px; color: #aaa496; font-size: 16px; line-height: 1.72; }
.facts { display: flex; flex-wrap: wrap; gap: 18px 34px; margin: 0 0 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { min-width: 120px; }
.facts dt { margin-bottom: 5px; color: var(--muted); font: 600 9px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--paper-dim); font-size: 13px; }

.book-details { display: grid; grid-template-columns: .72fr 1fr; gap: clamp(46px, 9vw, 126px); padding: clamp(64px, 10vh, 124px) 0; border-top: 1px solid var(--line); }
.note-card { align-self: start; padding: 28px; background: var(--ink-soft); border: 1px solid var(--line); }
.note-card h2 { margin: 0 0 14px; font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.note-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-size: 17px; }
.faq summary::after { content: "+"; color: var(--muted); font-family: var(--sans); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 0 24px; color: var(--muted); line-height: 1.7; }

.prose-layout { display: grid; grid-template-columns: minmax(200px, .55fr) minmax(0, 1fr); gap: clamp(50px, 10vw, 150px); padding: clamp(64px, 10vh, 128px) 0; }
.prose-aside { position: sticky; top: 40px; align-self: start; }
.prose-aside .section-title { font-size: clamp(42px, 6vw, 80px); }
.prose-aside p { margin: 22px 0 0; max-width: 30ch; color: var(--muted); font-size: 14px; line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(44px, 9vw, 130px); padding: clamp(64px, 10vh, 128px) 0; }
.email-link { min-height: 44px; display: inline-flex; align-items: center; margin: 28px 0 26px; border-bottom: 2px solid var(--paper); font-family: var(--display); font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.social-text { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social-text a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.press-card { align-self: start; padding: clamp(26px, 4vw, 48px); background: var(--ink-soft); border: 1px solid var(--line); }
.press-card h2 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; }
.press-card p { margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.contact-kinds { margin: 24px 0 0; color: var(--muted); font: 10px/1.8 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

.signal-page { min-height: calc(100svh - 74px); display: grid; grid-template-columns: 1fr minmax(300px, .7fr); gap: clamp(50px, 10vw, 150px); align-items: center; padding: clamp(64px, 10vh, 128px) 0; }
.signal-copy .display-title { max-width: 6ch; }
.signal-copy .lede { max-width: 30ch; margin-top: 28px; }
.signal-promise { margin: 25px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.signal-panel { padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); background: var(--ink-soft); }

.signal-form { display: grid; gap: 16px; }
.signal-form label { color: var(--muted); font: 600 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.signal-form input[type="email"] { min-height: 54px; width: 100%; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-bright); outline: 0; background: transparent; color: var(--paper); font: italic 19px/1 var(--serif); }
.signal-form input[type="email"]::placeholder { color: #696459; }
.signal-form button { width: 100%; }
.signal-message { min-height: 20px; margin: 0; color: var(--paper-dim); font-size: 13px; line-height: 1.5; }
.signal-form[data-state="sent"] input[type="email"],
.signal-form[data-state="sent"] button { display: none; }
.signal-privacy { margin: 18px 0 0; color: var(--muted); font: 10px/1.65 var(--sans); }
.signal-privacy a { color: var(--paper-dim); }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.legal { max-width: 760px; padding: clamp(64px, 10vh, 128px) 0; }
.legal h1 { margin-bottom: 38px; }
.legal h2 { margin: 44px 0 14px; font-family: var(--display); font-size: 27px; text-transform: uppercase; }
.legal p, .legal li { color: #bbb5a7; font-size: 16px; line-height: 1.75; }
.legal a { color: var(--paper); }

.site-footer { width: var(--page); margin: 0 auto; padding: 42px 0 48px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font: 10px/1.5 var(--sans); letter-spacing: .11em; text-transform: uppercase; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

.not-found { min-height: 100svh; display: grid; place-items: center; padding: 40px 4vw; text-align: center; }
.not-found .display-title { margin-bottom: 26px; }
.not-found .lede { margin-bottom: 34px; }
.not-found .button-row { justify-content: center; }

/* Improvements for the two long-form pages that retain their literary layout. */
body[data-page="chapter"] .top,
body[data-page="pain"] .top { min-height: 74px; }
body[data-page="chapter"] .back-btn,
body[data-page="pain"] .back-btn,
body[data-page="chapter"] .top-nav a,
body[data-page="pain"] .top-nav a,
body[data-page="chapter"] .f-social a,
body[data-page="pain"] .footer-social a { min-height: 44px; display: inline-flex; align-items: center; }
body[data-page="chapter"] .chapter-wrap,
body[data-page="pain"] .rcol { scroll-margin-top: 32px; }
body[data-page="chapter"] .rbtn,
body[data-page="pain"] .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
body[data-page="chapter"] .f-signal input { min-height: 44px; }
body[data-page="chapter"] .f-signal button { min-width: 44px; min-height: 44px; }
body[data-page="chapter"] .f-signal[data-state="sent"] input[type="email"],
body[data-page="chapter"] .f-signal[data-state="sent"] button { display: none; }
body[data-page="pain"] .base { color: #918b7d; }

.reader-tools { display: flex; justify-content: center; gap: 12px; margin: -7vh auto 10vh; padding: 0 4vw; }
.reader-tools .button { min-width: 160px; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; }
  .open-door { max-width: 680px; }
  .books-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: minmax(150px, 230px) 1fr; }
  .book-hero, .book-details, .prose-layout, .contact-grid, .signal-page { grid-template-columns: 1fr; }
  .book-hero-cover { max-width: 260px; }
  .prose-aside { position: static; }
}

@media (max-width: 640px) {
  :root { --page: calc(100vw - 36px); }
  .site-nav { min-height: 64px; }
  .site-links { gap: 8px; }
  .site-links a { padding: 0 7px; font-size: 9px; }
  .site-links a:nth-child(3) { display: none; }
  .home-hero { min-height: auto; padding: 54px 0 70px; }
  .monument .m2 { font-size: clamp(118px, 43vw, 180px); }
  .display-title { font-size: clamp(48px, 17vw, 78px); }
  .page-head { padding-top: 56px; }
  .book-card { grid-template-columns: 126px 1fr; gap: 22px; }
  .book-meta p { display: none; }
  .book-hero { padding-top: 50px; }
  .book-hero-cover { max-width: 190px; }
  .future-note, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer { gap: 8px; }
  .reader-tools { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-nav, .site-footer, .reader-tools, body::after { display: none !important; }
  body { background: #fff; color: #111; }
  a { color: #111; }
}
