:root {
  --ink: #171513;
  --paper: #f5f0e8;
  --paper-2: #ebe4d8;
  --cream: #fbf8f2;
  --muted: #70695f;
  --line: rgba(23,21,19,.16);
  --accent: #a14b36;
  --accent-dark: #743326;
  --white: #fffdf9;
  --shadow: 0 24px 60px rgba(24,20,16,.14);
  --radius: 2px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 1000;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,240,232,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--ink); color: var(--paper); border-radius: 50%;
  font-family: Georgia, serif; font-size: 23px;
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 18px; line-height: 1.1; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 13px; }
.site-nav a { color: #403b35; }
.site-nav a:hover { color: var(--accent); }
.nav-cta { padding: 10px 16px; background: var(--ink); color: var(--paper) !important; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px; }

.hero { position: relative; overflow: hidden; min-height: 690px; background: var(--paper); }
.hero::before {
  content: ""; position: absolute; width: 650px; height: 650px; border-radius: 50%;
  right: -220px; top: -180px; background: var(--paper-2); opacity: .9;
}
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; position: relative; }
.hero-copy { padding: 70px 0; }
.eyebrow { margin: 0 0 15px; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--accent); }
.hero h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(48px, 6vw, 82px); line-height: .98; letter-spacing: -.045em; }
em { color: var(--accent); font-style: italic; }
.hero-text { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 20px; border: 1px solid var(--ink); font-size: 13px; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.55); }
.text-link { font-size: 13px; font-weight: 700; }
.text-link span { color: var(--accent); margin-left: 8px; }
.hero-stats { display: flex; gap: 35px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.hero-stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { min-height: 570px; display: grid; place-items: center; position: relative; }
.book-stack { width: 450px; height: 510px; position: relative; transform: rotate(-2deg); }
.hero-book {
  position: absolute; width: 260px; height: 390px; padding: 34px 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  justify-content: center; text-align: center; border: 1px solid rgba(0,0,0,.12);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-book-main { z-index: 3; left: 85px; top: 70px; background-color: #e7d8c2; color: #fffdf9; }
.hero-book-back { z-index: 2; left: 185px; top: 25px; background-color: #26352f; color: #fffdf9; transform: rotate(8deg); }
.hero-book span,
.hero-book strong,
.hero-book small,
.hero-book i {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
}
.hero-book span { font-size: 16px; letter-spacing: .18em; }
.hero-book-main span { font-size: 82px; line-height: .8; font-family: Georgia, serif; }
.hero-book strong { margin-top: 18px; font: 600 34px/.95 Georgia, serif; letter-spacing: -.04em; }
.hero-book small { margin-top: 14px; font-size: 10px; letter-spacing: .15em; }
.hero-book i { margin-top: auto; font-size: 10px; letter-spacing: .15em; font-style: normal; }
.hero-book-back strong { font-size: 25px; }
.floating-note {
  position: absolute; z-index: 5; right: 12px; bottom: 55px;
  width: 120px; height: 120px; display: grid; place-items: center;
  background: var(--accent); color: #fff8ef; border-radius: 50%;
  text-align: center; font: 700 11px/1.2 Georgia, serif; letter-spacing: .1em;
  transform: rotate(9deg);
}
.scribble { position: absolute; left: 10px; bottom: 70px; font: italic 25px/1.05 Georgia, serif; transform: rotate(-9deg); color: var(--accent); }

.marquee-section { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.marquee { width: max-content; display: flex; align-items: center; gap: 25px; padding: 17px 0; animation: marquee 30s linear infinite; font: 700 12px Georgia, serif; letter-spacing: .16em; }
.marquee b { color: #c88d76; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 65px); line-height: .98; letter-spacing: -.04em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 14px; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 35px; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 9px 14px; font-size: 12px; }
.filter:hover, .filter.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.book-card { min-width: 0; transition: transform .25s ease; }
.book-card:hover { transform: translateY(-6px); }
.book-cover {
  position: relative; aspect-ratio: .68; overflow: hidden; padding: 28px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 16px 35px rgba(20,16,12,.12); border: 1px solid rgba(0,0,0,.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.book-cover::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.28); pointer-events: none; }
.book-cover .cover-kicker,
.book-cover .cover-author {
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 1px 1px rgba(0,0,0,0.4);
}
.book-cover .cover-title {
  font: 600 26px/.94 Georgia, serif;
  letter-spacing: -.035em;
  max-width: 95%;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
}
.book-cover .cover-author { letter-spacing: .15em; }
.book-meta { padding-top: 15px; }
.book-meta h3 { margin: 0; font-size: 18px; line-height: 1.15; }
.book-meta h3 a:hover { color: var(--accent) !important; }
.book-meta p { margin: 6px 0 12px; color: var(--muted); font-size: 12px; }
.book-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 800; transition: color 0.2s ease; }
.card-links { display: flex; gap: 15px; align-items: center; margin-top: 10px; }
.card-links .buy-link { color: var(--ink); }
.card-links .buy-link:hover { color: var(--accent); }
.status { display: inline-block; margin-left: 7px; padding: 3px 6px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }

.featured-quote { background: var(--accent); color: #fff7ed; padding: 85px 0; }
.quote-grid { display: grid; grid-template-columns: .2fr 1fr auto; gap: 40px; align-items: start; }
.quote-label { font-size: 10px; letter-spacing: .18em; line-height: 1.4; opacity: .75; }
blockquote { margin: 0; font: 500 clamp(31px, 4vw, 52px)/1.08 Georgia, serif; letter-spacing: -.035em; }
.quote-grid > p { margin: 10px 0 0; font-size: 12px; opacity: .8; white-space: nowrap; }

.about-section { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.about-image { position: relative; }
.portrait-placeholder {
  aspect-ratio: .82; max-width: 410px; margin: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper-2); border: 1px solid var(--line); position: relative;
}
.portrait-placeholder::before { content: ""; position: absolute; inset: 18px; border: 1px solid var(--line); }
.portrait-placeholder span { font: 120px Georgia, serif; color: var(--accent); line-height: 1; }
.portrait-placeholder small { letter-spacing: .2em; font-size: 9px; text-align: center; }
.about-copy h2 { margin: 0 0 25px; font-size: clamp(40px, 5vw, 63px); line-height: 1; letter-spacing: -.04em; }
.about-copy p { max-width: 650px; color: var(--muted); font-size: 15px; }
.signature { margin-top: 35px; font: italic 34px Georgia, serif; color: var(--accent); }

.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.idea-card { min-height: 290px; padding: 28px; border-right: 1px solid var(--line); position: relative; }
.idea-card:last-child { border-right: 0; }
.idea-card > span { color: var(--accent); font: 13px Georgia, serif; }
.idea-card h3 { font-size: 28px; line-height: 1.05; margin: 35px 0 12px; }
.idea-card p { color: var(--muted); font-size: 13px; }
.idea-card a { position: absolute; bottom: 25px; font-size: 12px; font-weight: 800; color: var(--accent); }

.author-journey { padding: 105px 0; background: var(--ink); color: var(--paper); }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.journey-copy h2 { font-size: clamp(42px, 5vw, 65px); line-height: .98; margin: 0 0 24px; letter-spacing: -.04em; }
.journey-copy p { color: rgba(245,240,232,.68); max-width: 550px; }
.journey-copy .button { margin-top: 20px; }
.journey-timeline { border-top: 1px solid rgba(245,240,232,.25); }
.journey-timeline > div { display: grid; grid-template-columns: 45px 100px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(245,240,232,.25); align-items: center; }
.journey-timeline strong { color: #c88d76; font: 14px Georgia, serif; }
.journey-timeline span { font: 600 16px Georgia, serif; }
.journey-timeline p { margin: 0; color: rgba(245,240,232,.58); font-size: 12px; }

.follow-section { background: var(--paper-2); }
.follow-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.follow-grid h2 { margin: 0 0 20px; font-size: clamp(42px, 5vw, 65px); line-height: 1; letter-spacing: -.04em; }
.follow-grid p { color: var(--muted); max-width: 480px; }
.social-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-card { min-height: 145px; padding: 22px; background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; transition: .2s ease; }
.social-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.social-icon { font-size: 22px; }
.social-card strong { font: 20px Georgia, serif; }
.social-card small { color: var(--muted); font-size: 11px; }

.newsletter { padding: 75px 0; background: var(--cream); border-top: 1px solid var(--line); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.newsletter h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.03; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: relative; }
.newsletter-form input { min-width: 0; border: 1px solid var(--line); background: var(--paper); padding: 15px; outline: none; }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 15px 20px; font-weight: 700; }
.form-message { grid-column: 1 / -1; margin: 0 !important; color: var(--accent) !important; font-size: 12px !important; }

.site-footer { background: var(--ink); color: var(--paper); padding: 55px 0 25px; }
.footer-top { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 45px; border-bottom: 1px solid rgba(245,240,232,.2); }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand small { color: rgba(245,240,232,.5); }
.footer-top > div > p { color: rgba(245,240,232,.5); font-size: 12px; }
.footer-links { display: flex; gap: 24px; align-items: center; font-size: 12px; }
.footer-links a:hover { color: #c88d76; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; color: rgba(245,240,232,.45); font-size: 10px; letter-spacing: .05em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; 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; }

@media (max-width: 980px) {
  .site-nav { gap: 15px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .about-grid, .journey-grid, .follow-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { min-height: auto; padding-top: 40px; }
  .hero-copy { padding-bottom: 25px; }
  .hero-visual { min-height: 520px; }
  .section-heading, .newsletter-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-grid, .journey-grid, .follow-grid { gap: 55px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 68px;
    background: var(--cream); border: 1px solid var(--line); padding: 12px;
    box-shadow: var(--shadow); flex-direction: column; align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .nav-cta { text-align: center; }
  .hero h1 { font-size: 51px; }
  .hero-text { font-size: 15px; }
  .hero-stats { gap: 17px; flex-wrap: wrap; }
  .hero-stats span { font-size: 9px; }
  .book-stack { transform: scale(.78) rotate(-2deg); transform-origin: center; margin: -40px 0; }
  .hero-visual { min-height: 410px; overflow: hidden; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .book-cover { padding: 20px 15px; }
  .book-cover .cover-title { font-size: 21px; }
  .quote-grid { grid-template-columns: 1fr; gap: 18px; }
  .quote-grid > p { margin: 0; }
  .idea-grid, .social-cards { grid-template-columns: 1fr; }
  .idea-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .idea-card:last-child { border-bottom: 0; }
  .journey-timeline > div { grid-template-columns: 35px 75px 1fr; gap: 10px; }
  .newsletter-form { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

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

/* ==========================================================================
   Book Detail Page Styles
   ========================================================================== */
.book-detail-page {
  background-color: var(--paper);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-top: 30px;
  margin-bottom: 40px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .separator {
  color: var(--line);
  font-size: 11px;
}

.breadcrumbs .current {
  color: var(--ink);
  font-weight: 600;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  margin-bottom: 100px;
}

.book-detail-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.book-detail-visual .book-cover {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 0.68;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.buy-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.buy-btn {
  width: 100%;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buy-btn span {
  margin-left: 6px;
}

.buy-btn.amazon-btn {
  background: var(--ink);
  color: var(--paper);
}

.buy-btn.amazon-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.buy-btn:not(.amazon-btn) {
  background: transparent;
  color: var(--ink);
}

.buy-btn:not(.amazon-btn):hover {
  background: var(--paper-2);
}

.meta-box {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
}

.meta-box h4 {
  margin: 0 0 16px;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(23,21,19,0.1);
}

.meta-row:last-child {
  border-bottom: 0;
}

.meta-row span {
  color: var(--muted);
}

.meta-row strong {
  color: var(--ink);
  font-weight: 600;
}

.book-detail-copy {
  display: flex;
  flex-direction: column;
}

.book-detail-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 10px 0;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.author-attribution {
  font-size: 16px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 20px;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 30px;
}

.book-rating .stars {
  color: #d4af37;
  font-size: 18px;
  letter-spacing: 2px;
}

.book-rating .rating-value {
  font-weight: 700;
  color: var(--ink);
}

.book-rating .rating-count {
  color: var(--muted);
}

.full-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 40px;
}

.full-description p {
  margin-bottom: 20px;
}

.full-description p:last-child {
  margin-bottom: 0;
}

.detail-section {
  margin-bottom: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  font-size: 24px;
  margin: 0 0 20px;
  font-family: Georgia, serif;
  color: var(--ink);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.toc-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--ink);
}

.toc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #d4af37;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-text {
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 16px;
  flex-grow: 1;
}

.reviewer {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-to-library {
  margin-top: 40px;
}

/* Media query updates for Book Detail Page */
@media (max-width: 980px) {
  .book-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .book-detail-visual {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .toc-list {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.book-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--muted);
  margin-top: -5px;
  margin-bottom: 25px;
  font-family: Georgia, serif;
  font-style: italic;
}


