:root {
  color-scheme: dark;
  --bg: #0d0b0b;
  --text: #f6f0e4;
  --muted: rgba(246, 240, 228, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d79b4b;
  --accent-strong: #f3c985;
  --shadow: 0 32px 96px rgba(0, 0, 0, 0.44);
  --max-width: 1080px;
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --sans: "IBM Plex Sans", "PingFang SC", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(215, 155, 75, 0.24), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(243, 201, 133, 0.12), transparent 20%),
    linear-gradient(180deg, #1b1410 0%, #0d0b0b 48%, #090909 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.015)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.016) 3px,
      rgba(255, 255, 255, 0.016) 4px
    );
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 40px 0 28px;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100svh - 132px);
}

.book-stage {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  perspective: 1400px;
}

.book-stage::before {
  content: "";
  position: absolute;
  inset: auto 8% -7% 8%;
  height: 54px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(18px);
}

.book-stage-glow {
  position: absolute;
  inset: -8% -8% -10%;
  border-radius: 40px;
  background:
    radial-gradient(circle at 28% 24%, rgba(243, 201, 133, 0.22), transparent 30%),
    radial-gradient(circle at 72% 72%, rgba(138, 85, 33, 0.24), transparent 40%);
  filter: blur(28px);
}

.book-cover {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: rotateY(-13deg) rotateX(4deg);
  animation:
    rise-in 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both,
    hover-float 5.6s ease-in-out 1s infinite;
}

.spotlight-copy {
  max-width: 560px;
  animation: rise-in 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 span {
  display: block;
  margin-top: 14px;
  color: rgba(246, 240, 228, 0.92);
  font-size: 0.58em;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.meta-strip div {
  min-width: 0;
}

.meta-strip dt {
  margin-bottom: 8px;
  color: rgba(246, 240, 228, 0.48);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta-strip dd {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 600;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.site-footer a {
  text-decoration: none;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
}

.primary-action {
  color: #130d09;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 16px 36px rgba(215, 155, 75, 0.28);
}

.secondary-action {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.primary-action:hover,
.secondary-action:hover,
.site-footer a:hover {
  transform: translateY(-2px);
}

.secondary-action:hover,
.site-footer a:hover {
  color: var(--text);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-brand {
  letter-spacing: 0.02em;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hover-float {
  0%,
  100% {
    transform: rotateY(-13deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-11deg) rotateX(2deg) translateY(-8px);
  }
}

@media (max-width: 920px) {
  .spotlight {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
    padding: 14px 0 24px;
  }

  .book-stage {
    width: min(72vw, 340px);
  }

  .spotlight-copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 24px;
  }

  .meta-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .action-row {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
