:root {
  color-scheme: light;
  --paper: #f8f0e7;
  --ink: #231f20;
  --muted: #665c55;
  --rose: #c85f62;
  --rose-dark: #87383f;
  --sage: #58715b;
  --cream: #fffaf3;
  --line: rgba(35, 31, 32, 0.16);
  --shadow: 0 26px 80px rgba(37, 29, 28, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(200, 95, 98, 0.15), transparent 46%),
    linear-gradient(180deg, var(--paper), #f1e2d3);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: min(760px, 92vh);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 86px) 0 40px;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 12vw, 9.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.86;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.3vw, 1.48rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--cream);
}

.button.secondary {
  background: rgba(255, 250, 243, 0.54);
}

.book-stage {
  display: grid;
  min-height: 520px;
  place-items: center;
  perspective: 1100px;
}

.book {
  position: relative;
  width: min(330px, 72vw);
  aspect-ratio: 0.68;
  transform: rotateY(-19deg) rotateZ(2deg);
  filter: drop-shadow(var(--shadow));
}

.book-spine {
  position: absolute;
  inset: 4% auto 2% -7%;
  width: 16%;
  border-radius: 5px 0 0 5px;
  background: linear-gradient(90deg, #5c2028, var(--rose-dark));
  transform: skewY(-5deg);
}

.book-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(35, 31, 32, 0.28);
  border-radius: 5px;
  padding: 34px 30px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(145deg, var(--rose), #a94b55 54%, #6f2e38);
  color: var(--cream);
}

.cover-kicker {
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 700;
}

.cover-title {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 12vw, 5.8rem);
  line-height: 0.9;
}

.cover-rule {
  width: 64px;
  height: 3px;
  margin: 28px 0 18px;
  background: var(--cream);
}

.cover-subtitle {
  max-width: 14ch;
  font-size: 0.96rem;
  font-weight: 800;
  text-transform: uppercase;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.details article {
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 250, 243, 0.72);
}

.details h2 {
  margin: 0 0 10px;
  font-size: 1.04rem;
}

.details p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 620px);
    min-height: auto;
  }

  .book-stage {
    min-height: 430px;
  }

  .details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: clamp(3.5rem, 22vw, 4.9rem);
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
