:root {
  --paper: #f6f2ea;
  --paper-warm: #efe8db;
  --paper-edge: #e7ddcb;
  --ink: #1c1a17;
  --ink-soft: #3a352e;
  --ink-mute: #6b6357;
  --rule: #c9bca6;
  --accent: #8a3324;
  --accent-soft: #a85a4a;
  --shadow: 0 1px 0 rgba(28,26,23,0.04), 0 12px 32px -16px rgba(28,26,23,0.18);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.book-editorial-body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(168, 90, 74, 0.04), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 51, 36, 0.03), transparent 50%);
  background-attachment: fixed;
}

body.book-editorial-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.book-page,
.book-page * {
  box-sizing: border-box;
}

.book-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  color: var(--ink);
}

.book-page a {
  color: inherit;
}

.book-page nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.book-page nav.top a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.book-page nav.top a:hover {
  color: var(--accent);
}

.book-page nav.top .brand {
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.book-page nav.top .links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.book-page .hero {
  padding: 80px 48px 120px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.book-page .eyebrow,
.book-page .hero .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.book-page .hero .eyebrow::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.book-page .hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--ink);
}

.book-page .hero h1 em,
.book-page h2 em,
.book-page h3 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.book-page .hero .thesis,
.book-page .hero .deck {
  max-width: 640px;
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 0 48px;
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.book-page .hero .author {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 56px;
}

.book-page .cta,
.book-page .btn.is-active,
.book-page .btn-secondary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  transition: all 0.25s;
  background: transparent;
  text-align: center;
}

.book-page .cta:hover,
.book-page .btn.is-active:hover,
.book-page .btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.book-page .section-rule {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

.book-page .section-rule hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.book-page .section,
.book-page .duality {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 48px;
}

.book-page .label,
.book-page .section .label,
.book-page .editions .label,
.book-page .inside .label,
.book-page .reader .label,
.book-page .author-block .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}

.book-page .section h2,
.book-page .duality h2,
.book-page .editions h2,
.book-page .inside h2,
.book-page .section-header h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  max-width: 820px;
}

.book-page .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.book-page .about-grid .body p,
.book-page .body-copy p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.book-page .about-grid .body p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 0.85;
  float: left;
  padding: 8px 12px 0 0;
  color: var(--accent);
  font-weight: 400;
}

.book-page .about-grid .pull,
.book-page .pull-box {
  position: sticky;
  top: 40px;
  padding: 40px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
}

.book-page .pull blockquote,
.book-page .pull-box blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 24px;
}

.book-page .pull cite,
.book-page .pull-box cite {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-style: normal;
}

.book-page .editions,
.book-page .inside,
.book-page .books-band {
  background: var(--paper-warm);
  padding: 96px 48px;
}

.book-page .editions-inner,
.book-page .inside-inner,
.book-page .books-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.book-page .editions h2 {
  margin-bottom: 16px;
}

.book-page .editions .deck,
.book-page .books-band .deck {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink-mute);
  margin: 0 0 64px;
  max-width: 680px;
}

.book-page .edition-grid,
.book-page .book-grid,
.book-page .framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-edge);
  border: 1px solid var(--paper-edge);
}

.book-page .book-grid {
  grid-template-columns: repeat(3, 1fr);
}

.book-page .framework-grid {
  grid-template-columns: repeat(4, 1fr);
}

.book-page .edition,
.book-page .book-card,
.book-page .framework-item {
  background: var(--paper);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 420px;
}

.book-page .framework-item {
  min-height: 300px;
}

.book-page .edition .num,
.book-page .book-card .num,
.book-page .tool .n,
.book-page .framework-item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.book-page .edition h3,
.book-page .book-card h3,
.book-page .framework-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--ink);
}

.book-page .book-card .subtitle,
.book-page .framework-item .word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.35;
  color: var(--accent);
  margin: -8px 0 20px;
}

.book-page .edition .desc,
.book-page .book-card .desc,
.book-page .framework-item p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  flex: 1;
}

.book-page .edition .meta,
.book-page .book-card .meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
  line-height: 1.8;
}

.book-page .edition .meta span,
.book-page .book-card .meta span {
  display: block;
}

.book-page .edition .meta b,
.book-page .book-card .meta b {
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
}

.book-page .price {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  margin: 4px 0 24px;
}

.book-page .price .currency,
.book-page .price .suffix {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.book-page .edition .btn,
.book-page .book-card .btn {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 14px 0;
  border: 1px solid var(--rule);
  background: transparent;
  text-decoration: none;
  transition: all 0.2s;
}

.book-page .edition .btn.is-disabled,
.book-page .book-card .btn.is-disabled {
  color: var(--ink-mute);
  cursor: not-allowed;
}

.book-page .edition .btn.is-disabled:hover,
.book-page .book-card .btn.is-disabled:hover {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

.book-page .edition .btn.is-active,
.book-page .book-card .btn.is-active {
  width: 100%;
  padding: 14px 0;
}

.book-page .duality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.book-page .duality-col h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.book-page .duality-col.is h3 {
  color: var(--accent);
}

.book-page .duality-col.isnt h3 {
  color: var(--ink-mute);
}

.book-page .duality-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.book-page .duality-col li {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  padding: 14px 0;
  border-bottom: 1px dotted var(--paper-edge);
  color: var(--ink-soft);
}

.book-page .duality-col li:last-child {
  border-bottom: none;
}

.book-page .duality-col.isnt li {
  text-decoration: line-through;
  text-decoration-color: var(--ink-mute);
  text-decoration-thickness: 1px;
  color: var(--ink-mute);
  font-style: italic;
}

.book-page .inside h2 {
  margin-bottom: 64px;
}

.book-page .tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.book-page .tool {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.book-page .tool .n {
  font-size: 13px;
  margin-bottom: 12px;
}

.book-page .tool h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.book-page .tool p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.book-page .reader {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 48px;
  text-align: left;
}

.book-page .reader p {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.book-page .reader p em {
  font-style: italic;
  color: var(--ink);
}

.book-page .reader .sig {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.book-page .author-block {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 48px;
}

.book-page .author-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.book-page .author-block .label {
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.book-page .author-block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  color: var(--paper);
  margin: 0;
}

.book-page .author-block .bio p {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(246, 242, 234, 0.78);
  margin: 0 0 18px;
}

.book-page .author-block a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.book-page footer {
  padding: 48px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.book-page footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.book-page footer a:hover {
  color: var(--accent);
}

.book-page footer .links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 1000px) {
  .book-page .edition-grid,
  .book-page .framework-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .book-page .book-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .book-page .tool-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 800px) {
  .book-page .about-grid,
  .book-page .duality-grid,
  .book-page .author-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .book-page .about-grid .pull,
  .book-page .pull-box {
    position: static;
  }

  .book-page .author-block h2 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .book-page nav.top {
    padding: 20px 24px;
    align-items: flex-start;
    gap: 18px;
  }

  .book-page nav.top .links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .book-page .hero,
  .book-page .section,
  .book-page .editions,
  .book-page .duality,
  .book-page .inside,
  .book-page .reader,
  .book-page .author-block,
  .book-page .books-band {
    padding-left: 24px;
    padding-right: 24px;
  }

  .book-page .section-rule {
    padding: 0 24px;
  }

  .book-page footer {
    flex-direction: column;
    gap: 16px;
    padding: 40px 24px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .book-page .edition-grid,
  .book-page .framework-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .book-page .tool-grid {
    grid-template-columns: 1fr;
  }
}
