:root {
  --ink: #111318;
  --muted: #5c6270;
  --paper: #f7f4ee;
  --paper-strong: #fffaf1;
  --line: #d8d0c2;
  --gold: #d8a63a;
  --magenta: #d41472;
  --teal: #2f8d8b;
  --charcoal: #171b22;
  --white: #ffffff;
  --max: 1180px;
  --shadow: 0 28px 70px rgba(13, 16, 22, 0.24);
}

* {
  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.55;
}

body,
button,
input,
textarea,
select {
  letter-spacing: 0;
}

button {
  appearance: none;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 0 28px;
  color: var(--white);
  background: rgba(17, 19, 24, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

nav a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: var(--white);
  background: #101318;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 8, 12, 0.98) 0%, rgba(17, 19, 24, 0.94) 48%, rgba(42, 52, 58, 0.68) 100%),
    linear-gradient(180deg, rgba(216, 166, 58, 0.1), rgba(212, 20, 114, 0.08));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  width: min(var(--max), calc(100% - 44px));
  min-height: calc(78svh - 66px);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 92px) 0;
}

.hero-copy {
  max-width: 740px;
}

.hero-edition {
  margin: -4px 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 6.4rem;
  line-height: 0.9;
  max-width: 820px;
}

h2 {
  font-size: 3.7rem;
  line-height: 1.02;
  margin-bottom: 24px;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.subtitle {
  max-width: 720px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.55rem;
  line-height: 1.22;
}

.hero-text {
  max-width: 630px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--magenta);
}

.button.primary:hover {
  background: #b71061;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary:hover,
.nav-cta:hover {
  border-color: var(--gold);
}

.button.large {
  min-height: 54px;
  padding-inline: 28px;
}

.book-figure {
  justify-self: center;
  width: min(390px, 72vw);
  margin: 0;
  perspective: 1200px;
}

.book-figure img {
  border-radius: 2px;
  box-shadow: var(--shadow);
  transform: rotateY(-5deg) rotateZ(0.5deg);
  transform-origin: center;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 44px));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(22, 22, 24, 0.12);
}

.signal-item {
  min-height: 108px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.signal-item:last-child {
  border-right: 0;
}

.signal-item strong,
.signal-item span {
  display: block;
}

.signal-item strong {
  margin-bottom: 8px;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.signal-item span {
  color: var(--muted);
}

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 120px) 0;
}

.two-column,
.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 8vw, 96px);
  align-items: start;
}

.text-flow {
  color: #30343c;
  font-size: 1.08rem;
}

.text-flow p {
  margin-bottom: 18px;
}

.section-lead {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0;
  color: var(--magenta);
  font-weight: 900;
  background: transparent;
  border: 0;
  border-bottom: 2px solid currentColor;
  cursor: pointer;
}

.text-link:hover {
  color: #a80f58;
}

.cover-section {
  border-bottom: 1px solid var(--line);
}

.cover-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 1.28fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: start;
}

.cover-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.cover-panel {
  margin: 0;
}

.cover-thumb {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--charcoal);
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px rgba(18, 20, 24, 0.16);
  cursor: zoom-in;
}

.cover-thumb:hover,
.cover-thumb:focus-visible {
  border-color: var(--magenta);
}

.cover-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.cover-panel figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.cover-modal {
  width: min(100% - 32px, 1040px);
  max-height: calc(100svh - 32px);
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  overflow: visible;
}

.cover-modal::backdrop {
  background: rgba(6, 8, 12, 0.84);
  backdrop-filter: blur(10px);
}

.modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  max-height: calc(100svh - 32px);
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.modal-bar h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.2;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.36);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--gold);
}

.modal-frame {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: auto;
}

.modal-frame img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 112px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

.thesis-section {
  padding-top: clamp(80px, 10vw, 142px);
}

.audience-section,
.concepts-section {
  width: 100%;
  max-width: none;
  padding-inline: max(22px, calc((100% - var(--max)) / 2));
  background: #efe7da;
}

.audience-section h2,
.concepts-section h2 {
  max-width: 860px;
}

.audience-grid,
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.audience-card,
.concept-grid article {
  min-height: 190px;
  padding: 26px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.audience-card p,
.concept-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.excerpt-section {
  border-bottom: 1px solid var(--line);
}

.excerpt-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

blockquote {
  margin: 0;
  padding: 22px 0 22px 22px;
  border-left: 4px solid var(--magenta);
  color: #222831;
  font-size: 1.08rem;
  line-height: 1.42;
}

.featured-quote {
  grid-column: 1 / -1;
  padding-top: 28px;
  padding-bottom: 28px;
  border-left-color: var(--gold);
  font-size: 1.34rem;
}

.quote-label {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

blockquote p {
  margin-bottom: 0;
}

.toc-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 32px;
}

.toc-heading p {
  color: var(--muted);
}

.reading-arc {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 54px;
  background: var(--line);
  border: 1px solid var(--line);
}

.arc-step {
  min-height: 174px;
  padding: 22px;
  background: var(--paper-strong);
}

.arc-step span {
  display: block;
  margin-bottom: 28px;
  color: var(--magenta);
  font-size: 0.82rem;
  font-weight: 900;
}

.arc-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.15;
}

.arc-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.toc-parts {
  display: grid;
  gap: 36px;
}

.toc-part {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.toc-part-header {
  display: grid;
  grid-template-columns: 150px minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 18px;
}

.toc-part-header p {
  margin: 0;
  color: var(--magenta);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.toc-part-header h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.08;
}

.toc-part-header span {
  color: var(--muted);
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.toc-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  min-height: 62px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.toc-list span {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
}

.toc-list strong {
  font-size: 0.98rem;
  line-height: 1.28;
}

.author-section {
  border-top: 1px solid var(--line);
}

.author-intro h2 {
  margin-bottom: 28px;
}

.author-portrait {
  width: min(300px, 100%);
  margin: 0;
  background: var(--charcoal);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(18, 20, 24, 0.14);
}

.author-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.buy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto 70px;
  padding: clamp(34px, 5vw, 54px);
  color: var(--white);
  background: var(--charcoal);
  border-top: 4px solid var(--magenta);
}

.buy-section h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 3rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .book-figure {
    justify-self: start;
    width: min(238px, 58vw);
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .subtitle {
    font-size: 1.28rem;
  }

  .buy-section h2 {
    font-size: 2.4rem;
  }

  .signal-band,
  .two-column,
  .cover-layout,
  .author-layout,
  .toc-heading,
  .toc-part-header,
  .buy-section {
    grid-template-columns: 1fr;
  }

  .signal-band {
    margin-top: 0;
  }

  .signal-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-item:last-child {
    border-bottom: 0;
  }

  .audience-grid,
  .concept-grid,
  .toc-list {
    grid-template-columns: 1fr;
  }

  .cover-layout {
    gap: 32px;
  }

  .reading-arc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 42px;
  }

  .arc-step {
    min-height: 0;
  }

  .toc-part-header {
    gap: 10px;
  }

  .toc-list li,
  .toc-list li:nth-child(odd),
  .toc-list li:nth-child(even) {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 16px 0;
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav-cta {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner,
  .section,
  .signal-band,
  .buy-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero-inner {
    min-height: auto;
    padding: 30px 0 26px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .subtitle {
    font-size: 1.08rem;
  }

  .buy-section h2 {
    font-size: 1.9rem;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }

  .book-figure {
    width: 176px;
  }

  .section {
    padding: 62px 0;
  }

  .audience-section,
  .concepts-section {
    padding-inline: 14px;
  }

  .audience-card,
  .concept-grid article {
    min-height: 0;
  }

  .cover-spread,
  .excerpt-list {
    grid-template-columns: 1fr;
  }

  .featured-quote {
    font-size: 1.12rem;
  }

  .reading-arc {
    grid-template-columns: 1fr;
  }

  .arc-step {
    padding: 20px;
  }

  .arc-step span {
    margin-bottom: 12px;
  }

  .toc-list li,
  .toc-list li:nth-child(odd),
  .toc-list li:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .buy-section {
    margin-bottom: 46px;
    padding: 28px 20px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 30px;
  }
}
