:root {
  --ink: #171a19;
  --paper: #f3f1eb;
  --jade: #164b46;
  --jade-dark: #0d3431;
  --gold: #bd9a5b;
  --muted: #6d726f;
  --line: rgba(23, 26, 25, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  height: 84px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-decoration: none;
}
.wordmark span { color: var(--gold); }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}
.brand-monogram {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
}
.brand-letters {
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.09em;
  transform: translate(-1px, -1px);
}
.brand-signal {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 16px;
  height: 12px;
}
.brand-signal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1.5px;
  background: #2396cc;
}
.brand-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 17px;
  height: 12px;
  transform: translateX(-50%);
  background: #2396cc;
  clip-path: polygon(0 46%, 18% 46%, 29% 29%, 40% 66%, 52% 4%, 65% 94%, 77% 46%, 100% 46%, 100% 58%, 74% 58%, 66% 76%, 53% 29%, 42% 92%, 27% 47%, 22% 58%, 0 58%);
}
.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .2em;
  white-space: nowrap;
}
nav { display: flex; gap: 32px; }
nav a { font-size: .85rem; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--jade); }
.menu-button { display: none; }
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(48px, 8vw, 128px);
  padding: 64px clamp(24px, 7vw, 112px) 80px;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.hero-flatline {
  display: block;
  width: 100%;
  height: 42px;
  margin: 10px 0 0;
  overflow: visible;
  opacity: .38;
  pointer-events: none;
}
.hero-flatline path {
  fill: none;
  stroke: #2396cc;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--jade);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, .opening, blockquote p {
  font-family: "Libre Caslon Display", Georgia, serif;
  font-weight: 400;
}
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3.25rem, 6.5vw, 7.2rem);
  line-height: .97;
  letter-spacing: -.045em;
}
.lede {
  max-width: 620px;
  margin: 36px 0 30px;
  color: #454a47;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}
.text-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.amazon-link, .ingram-link { color: var(--jade); border-color: var(--jade); }
.cover-stage { position: relative; z-index: 1; display: grid; place-items: center; }
.book-cover-image {
  width: min(330px, 70vw);
  height: auto;
  display: block;
  box-shadow: 24px 30px 60px rgba(13, 31, 29, .28);
  transform: rotate(2deg);
}
.book-section, .press-section, .author-section, .contact-section {
  display: grid;
  grid-template-columns: 80px minmax(220px, .7fr) 1.3fr;
  gap: clamp(28px, 5vw, 80px);
  padding: 120px clamp(24px, 7vw, 112px);
  border-top: 1px solid var(--line);
}
.section-number { color: var(--gold); font: 1.4rem "Libre Caslon Display", Georgia, serif; }
h2 { margin: 0; font-size: clamp(3rem, 5vw, 5.5rem); line-height: 1; letter-spacing: -.04em; }
.subtitle { max-width: 320px; color: var(--muted); }
.book-copy, .press-copy, .author-copy, .contact-copy { max-width: 670px; font-size: 1.08rem; }
.opening { margin-top: 0; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.25; }
.availability { flex-wrap: wrap; margin-top: 42px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); font-size: .83rem; }
.availability span { color: var(--muted); }
.purchase-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  flex: 0 0 auto;
  background: var(--jade);
  color: var(--paper);
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.purchase-button:hover, .purchase-button:focus-visible { background: var(--jade-dark); }
blockquote {
  margin: 0;
  padding: 120px clamp(24px, 12vw, 190px);
  background: var(--jade-dark);
  color: var(--paper);
  text-align: center;
}
blockquote p { max-width: 1100px; margin: 0 auto 26px; font-size: clamp(2.4rem, 5vw, 5.2rem); line-height: 1.08; }
blockquote cite { color: var(--gold); font-size: .8rem; font-style: normal; letter-spacing: .15em; text-transform: uppercase; }
.press-section { background: #dedfd8; }
.author-section { background: var(--paper); }
.contact-section { background: var(--jade-dark); color: var(--paper); }
.contact-section .eyebrow, .contact-section .section-number { color: var(--gold); }
.contact-copy p:not(.opening) { color: #c7d0cb; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  color: var(--paper);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  text-decoration: none;
}
.contact-link:hover, .contact-link:focus-visible { color: var(--gold); }
footer {
  padding: 48px clamp(24px, 7vw, 112px);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: .75rem;
}
footer p { margin: 0; color: #b9bcb8; }

@media (min-width: 841px) {
  .hero-flatline { margin-top: 24px; }
  .lede { margin-top: 24px; }
}

@media (max-width: 840px) {
  .site-header { height: 70px; }
  .brand-monogram { width: 40px; height: 40px; }
  .brand-name { font-size: .92rem; letter-spacing: .16em; }
  .brand-signal { top: 14px; }
  .menu-button { display: block; border: 0; background: transparent; color: var(--ink); font: 500 .8rem "DM Sans", sans-serif; }
  nav { position: absolute; z-index: 5; top: 70px; left: 0; right: 0; padding: 24px; display: none; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .eyebrow { order: 1; }
  .hero-copy h1 { order: 2; }
  .hero-copy .lede { order: 3; margin-bottom: 8px; }
  .hero-copy .hero-flatline { order: 4; margin: 0 0 14px; opacity: .32; }
  .hero-copy .hero-actions { order: 5; align-self: flex-start; }
  h1 { font-size: clamp(3.4rem, 15vw, 5.3rem); }
  .cover-stage { padding: 50px 0; }
  .book-section, .press-section, .author-section, .contact-section { grid-template-columns: 42px 1fr; padding-top: 80px; padding-bottom: 80px; }
  .book-copy, .press-copy, .author-copy, .contact-copy { grid-column: 2; }
  .availability { align-items: flex-start; flex-direction: column; }
  blockquote { padding-top: 90px; padding-bottom: 90px; }
  footer { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Dedicated book page */
.book-page .hero { min-height: auto; }
.book-subtitle { font-family: "Libre Caslon Display", Georgia, serif; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.15; margin: 20px 0 16px; }
.book-byline { font-size: 1.1rem; margin: 0; }
.book-page nav a[href="#book"] { color: var(--jade); }
@media (max-width: 840px) {
  .book-page .hero-copy { display: block; }
  .book-page .hero-copy .hero-flatline { margin: 24px 0; }
  .book-page .hero-copy .lede { margin: 24px 0; }
}

/* Prologue reading page */
.reading-main { max-width: 760px; padding: 64px 24px 88px; margin: 0 auto; }
.reading-back { display: inline-block; margin-bottom: 44px; font-size: 1rem; text-underline-offset: 5px; }
.reading-heading .eyebrow { font-size: .875rem; }
.reading-heading h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.08; letter-spacing: -.025em; }
.prologue-text { margin-top: 44px; font-family: Georgia, serif; font-size: clamp(1.125rem, 2vw, 1.25rem); line-height: 1.85; }
.prologue-text p { margin: 0 0 1.4em; }
.reading-end { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.reading-end h2 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.reading-end p { color: var(--muted); margin-bottom: 24px; }
.reading-end .purchase-button { font-size: .875rem; }
@media (max-width: 840px) { .reading-main { padding-top: 40px; } }

.purchase-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
