:root {
  --bg: #f6f1e9;
  --paper: #fffcf6;
  --ink: #121212;
  --muted: #56514b;
  --charcoal: #0d0e0f;
  --wine: #801324;
  --wine-dark: #5d0e1a;
  --line: rgba(18, 18, 18, 0.12);
  --soft-line: rgba(248, 243, 236, 0.18);
  --shadow: 0 22px 54px rgba(14, 10, 8, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(128, 19, 36, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.045) 0 1px, transparent 1px 100%),
    var(--bg);
  background-size: 72px 72px;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 233, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.book-hero,
.book-body,
.footer-inner {
  width: min(1180px, calc(100% - 42px));
  margin: 0 auto;
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  width: 190px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  font-size: 1rem;
}

.nav a {
  position: relative;
  padding: 10px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.book-hero {
  min-height: calc(100vh - 96px);
  padding: clamp(42px, 6vw, 76px) 0 44px;
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.cover-panel {
  position: relative;
  justify-self: center;
  width: min(100%, 370px);
}

.cover-panel::before {
  content: "";
  position: absolute;
  inset: 24px -18px -24px 28px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.55);
  transform: rotate(-4deg);
}

.cover-panel img {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 900;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.book-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--wine);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.45rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.author {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
}

.intro {
  margin: clamp(28px, 4vw, 44px) 0 0;
  max-width: 660px;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.42;
}

.buy-strip {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.price {
  min-width: 128px;
  padding: 12px 16px;
  border-left: 4px solid var(--wine);
  background: rgba(255, 252, 246, 0.72);
  font-family: Arial, Helvetica, sans-serif;
}

.price strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 5px;
  background: var(--wine);
  color: #fff8ef;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
}

.book-body {
  padding: 20px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 380px);
  gap: clamp(38px, 7vw, 92px);
  align-items: start;
}

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

.content-section + .content-section {
  margin-top: 38px;
}

.content-section h2,
.details-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.content-section p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  line-height: 1.72;
}

.content-section p + p {
  margin-top: 16px;
}

.details-card {
  position: sticky;
  top: 124px;
  padding: 28px;
  border-radius: 6px;
  background: var(--charcoal);
  color: #f8f3ec;
  box-shadow: var(--shadow);
}

.details-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.details-list div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--soft-line);
}

.details-list dt {
  color: rgba(248, 243, 236, 0.62);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details-list dd {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--paper);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .logo {
    width: 175px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
  }

  .book-hero,
  .book-body {
    grid-template-columns: 1fr;
  }

  .book-hero {
    min-height: auto;
  }

  .cover-panel {
    width: min(100%, 310px);
  }

  .details-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .book-hero,
  .book-body,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 22px;
    padding-bottom: 4px;
  }

  .buy-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .price,
  .btn {
    width: 100%;
  }

  .details-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
