:root {
  --ink: #08090b;
  --paper: #f4f1eb;
  --ember: #e84a2a;
  --blue: #2258f5;
  --line: #2b2e35;
  --dim: #9a9ca4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 86px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.wordmark { display: flex; align-items: center; gap: 13px; }
.wordmark span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  font: 700 13px/1 Arial, sans-serif;
  letter-spacing: .06em;
}
.wordmark strong { font-size: 15px; letter-spacing: .02em; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.site-header nav a { transition: color .2s ease; }
.site-header nav a:hover { color: #ff7457; }
.nav-download { display: flex; align-items: center; gap: 8px; }

.hero {
  position: relative;
  min-height: 820px;
  height: min(920px, 100vh);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  align-items: center;
  padding: 120px clamp(24px, 5vw, 78px) 56px;
  background:
    linear-gradient(90deg, rgba(8,9,11,.97) 0%, rgba(8,9,11,.88) 40%, rgba(8,9,11,.16) 72%),
    radial-gradient(circle at 78% 28%, rgba(34,88,245,.44), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(232,74,42,.42), transparent 32%),
    #08090b;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent 0%, black 65%, black 100%);
}
.hero-copy { position: relative; z-index: 5; max-width: 740px; }
.eyebrow {
  margin: 0 0 24px;
  color: #ff6b4d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font: 400 clamp(60px, 7.3vw, 116px)/.84 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
  max-width: 900px;
}
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(244,241,235,.68); }
.hero-intro {
  width: min(530px, 90%);
  margin: 34px 0 30px;
  color: #c4c2bd;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}
.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  background: var(--ember);
  color: white;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.primary-cta:hover { transform: translateY(-2px); background: #ff5b38; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bundle-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.34);
  color: #f4f1eb;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.bundle-cta:hover { transform: translateY(-2px); border-color: white; background: rgba(255,255,255,.08); }

.cover-stage { position: relative; z-index: 3; height: 610px; perspective: 1500px; }
.hero-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 16vw, 270px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 35px 80px rgba(0,0,0,.58);
  transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.cover-1 { transform: translate(-105%, -43%) rotate(-16deg) translateZ(-80px); filter: brightness(.54); }
.cover-2 { transform: translate(-79%, -48%) rotate(-8deg) translateZ(-40px); filter: brightness(.72); }
.cover-3 { transform: translate(-50%, -52%) rotate(0deg); z-index: 3; }
.cover-4 { transform: translate(-21%, -48%) rotate(8deg) translateZ(-40px); filter: brightness(.72); }
.cover-5 { transform: translate(5%, -43%) rotate(16deg) translateZ(-80px); filter: brightness(.54); }
.cover-stage:hover .cover-1 { transform: translate(-120%, -45%) rotate(-19deg) translateZ(-80px); }
.cover-stage:hover .cover-2 { transform: translate(-86%, -50%) rotate(-9deg) translateZ(-40px); }
.cover-stage:hover .cover-4 { transform: translate(-14%, -50%) rotate(9deg) translateZ(-40px); }
.cover-stage:hover .cover-5 { transform: translate(20%, -45%) rotate(19deg) translateZ(-80px); }
.hero-index {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 5vw, 78px);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #aaa;
  font-size: 12px;
  letter-spacing: .08em;
}
.hero-index i { width: 72px; height: 1px; background: rgba(255,255,255,.32); }

.collection { padding: 120px clamp(24px, 5vw, 78px) 130px; background: #f0eee9; color: #121317; }
.section-heading {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid #c8c6c0;
}
.section-heading .eyebrow { color: #bd351c; margin-bottom: 15px; }
.section-heading h2 { margin: 0; font: 400 clamp(46px, 6vw, 84px)/.95 Georgia, serif; letter-spacing: -.055em; }
.section-heading > p { margin: 0 0 7px; color: #5d5f65; line-height: 1.65; max-width: 470px; }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-card {
  display: grid;
  grid-template-columns: minmax(155px, 41%) 1fr;
  gap: clamp(22px, 3vw, 48px);
  min-height: 480px;
  padding: 52px 0;
  border-bottom: 1px solid #c8c6c0;
}
.book-card:nth-child(odd) { padding-right: clamp(30px, 4vw, 72px); border-right: 1px solid #c8c6c0; }
.book-card:nth-child(even) { padding-left: clamp(30px, 4vw, 72px); }
.book-card:last-child { grid-column: 1 / -1; width: 50%; border-right: 1px solid #c8c6c0; padding-right: clamp(30px, 4vw, 72px); }
.book-cover-wrap { position: relative; align-self: start; }
.book-cover-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(24,25,29,.2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.book-card:hover .book-cover-wrap img { transform: translateY(-7px); box-shadow: 0 28px 48px rgba(24,25,29,.28); }
.book-number {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: -14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.book-details { display: flex; flex-direction: column; min-width: 0; }
.book-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #6c6e74; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.book-details h3 { margin: 17px 0 18px; font: 400 clamp(29px, 3vw, 43px)/1 Georgia, serif; letter-spacing: -.04em; }
.book-details > p { margin: 0; color: #55575d; line-height: 1.65; }
.purchase-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 26px; }
.purchase-row a {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b5b4af;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  background: #16181d;
  color: white;
  border-color: #16181d;
}
.purchase-row a:hover { background: var(--ember); color: white; border-color: var(--ember); }
.purchase-row span { color: #6c6e74; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.author {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
  min-height: 680px;
  background: #111318;
}
.author-portrait { position: relative; overflow: hidden; }
.author-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -80px 0 110px rgba(17,19,24,.48);
  pointer-events: none;
}
.author-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.author-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 90px clamp(40px, 8vw, 150px);
  border-left: 1px solid rgba(255,255,255,.12);
}
.author-copy .eyebrow { margin-bottom: 18px; }
.author-copy h2 {
  margin: 0;
  font: 400 clamp(58px, 7vw, 106px)/.9 Georgia, serif;
  letter-spacing: -.06em;
}
.author-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 34px 0 36px;
  color: #c4c2bd;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.6;
}
.author-copy > a {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.36);
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.author-copy > a:hover { transform: translateY(-2px); background: var(--ember); border-color: var(--ember); }

footer {
  min-height: 260px;
  padding: 60px clamp(24px, 5vw, 78px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: end;
  background: #08090b;
  color: #9d9fa7;
  font-size: 14px;
}
.footer-mark { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #555862; color: white; font-weight: 800; letter-spacing: .07em; }
footer p { margin: 0; }
footer a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; height: auto; min-height: 920px; align-content: center; }
  .hero-copy { padding-top: 40px; }
  .cover-stage { position: absolute; inset: 160px -100px auto 47%; height: 590px; opacity: .62; }
  .hero-copy { max-width: 660px; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card, .book-card:nth-child(odd), .book-card:nth-child(even), .book-card:last-child { width: 100%; grid-column: auto; padding: 48px 0; border-right: none; }
  .author { grid-template-columns: minmax(290px, .85fr) minmax(0, 1.15fr); min-height: 600px; }
  .author-copy { padding: 70px clamp(34px, 6vw, 74px); }
}

@media (max-width: 700px) {
  .site-header { height: 72px; }
  .wordmark strong, .site-header nav > a:first-child { display: none; }
  .hero { min-height: 860px; padding-top: 112px; align-items: start; }
  .hero h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-intro { width: 100%; }
  .cover-stage { inset: auto -45% 25px 2%; height: 400px; opacity: .7; transform: scale(.78); }
  .hero-index { display: none; }
  .collection { padding-top: 82px; padding-bottom: 80px; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .book-card { grid-template-columns: minmax(0, min(30vw, 116px)) minmax(0, 1fr); min-height: 0; gap: clamp(16px, 5vw, 22px); }
  .book-details h3 { font-size: 28px; overflow-wrap: anywhere; }
  .book-meta { font-size: 11px; }
  .hero-actions { align-items: stretch; }
  .hero-actions a { justify-content: center; }
  .purchase-row { margin-top: 18px; padding-top: 0; }
  .purchase-row a { flex: 1 0 100%; padding: 0 10px; }
  .author { grid-template-columns: 1fr; min-height: 0; }
  .author-portrait { aspect-ratio: 1 / 1; }
  .author-portrait::after { box-shadow: inset 0 -55px 75px rgba(17,19,24,.4); }
  .author-copy { padding: 64px 24px 72px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .author-copy h2 { font-size: clamp(52px, 16vw, 76px); }
  footer { grid-template-columns: 1fr; align-items: start; }
}

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