:root {
  --bg: #f4ecdf;
  --bg-deep: #d9c8b0;
  --ink: #241a22;
  --ink-soft: #625264;
  --accent: #c99741;
  --accent-strong: #f0c66b;
  --accent-dark: #8d6334;
  --violet-deep: #5a5376;
  --card: rgba(254, 249, 242, 0.74);
  --line: rgba(49, 34, 51, 0.12);
  --shadow: 0 28px 60px rgba(62, 42, 76, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 228, 164, 0.48), transparent 30%),
    radial-gradient(circle at top left, rgba(116, 97, 151, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(201, 151, 65, 0.24), transparent 28%),
    linear-gradient(180deg, #fff9ef 0%, #f2e9df 36%, #ece1d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
}

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

.site-header,
.hero,
.story-grid,
.spotlight,
.praise,
.author-section,
.events-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 22px;
}

.wordmark,
.site-nav a,
.button,
.site-footer a {
  text-decoration: none;
}

.wordmark {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: 78vh;
  padding: 40px 0 48px;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.hero h1,
.story-card h2,
.spotlight h2,
.section-heading h2,
.author-copy h2 {
  margin: 10px 0 16px;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(3.6rem, 9vw, 7.2rem);
  max-width: 8ch;
}

.hero-manifesto {
  margin: -4px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--accent-dark);
}

.hero-subtitle,
.story-card p,
.spotlight p,
.author-copy p,
.event-card p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.newsletter-form button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf2;
  background: linear-gradient(135deg, #d5a54a 0%, #a8712d 100%);
  box-shadow: 0 16px 28px rgba(168, 113, 45, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(49, 34, 51, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats li,
.story-card,
.spotlight,
.praise-grid article,
.event-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-stats li {
  border-radius: var(--radius-md);
  padding: 18px;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.book-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  isolation: isolate;
}

.book-aura {
  position: absolute;
  width: 92%;
  aspect-ratio: 1 / 1.08;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 242, 191, 0.7) 0%, rgba(240, 198, 107, 0.34) 28%, rgba(90, 83, 118, 0.08) 62%, transparent 76%);
  filter: blur(10px);
  z-index: 0;
}

.sky-panel {
  position: relative;
  width: min(430px, 92%);
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  opacity: 0.28;
  transform: translateY(42px);
  filter: saturate(1.08) blur(0.4px);
  box-shadow: var(--shadow);
  z-index: 0;
}

.book-stack {
  position: absolute;
  width: min(430px, 88%);
  aspect-ratio: 0.8;
}

.book-card {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(39, 20, 58, 0.28);
}

.back-cover {
  transform: translate(-42px, 14px) rotate(-10deg);
  opacity: 0.42;
  filter: saturate(0.9) brightness(0.92);
}

.back-cover,
.front-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(36, 26, 34, 0.18);
}

.front-cover-wrap {
  transform: translate(20px, -8px) rotate(7deg);
  border: 1px solid rgba(255, 255, 255, 0.54);
  animation: floatBook 5.5s ease-in-out infinite;
}

.front-cover {
  display: block;
}

.story-grid,
.author-section,
.events-grid {
  display: grid;
  gap: 22px;
}

.story-grid {
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 24px;
}

.story-card,
.spotlight,
.event-card {
  border-radius: var(--radius-xl);
  padding: 32px;
}

.story-card h2,
.spotlight h2,
.author-copy h2,
.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.feature-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.feature-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin: 22px 0;
}

.spotlight-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(201, 151, 65, 0.14), rgba(255, 255, 255, 0.56));
}

.quote-mark {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  line-height: 0.7;
  color: var(--accent-dark);
}

.spotlight-panel blockquote {
  margin: 8px 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.2;
}

.quote-attribution {
  margin: 0;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.praise {
  padding: 60px 0 30px;
}

.section-heading {
  max-width: 700px;
}

.praise-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.praise-grid article {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.praise-grid p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.praise-grid strong {
  display: block;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.author-section {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  padding: 34px 0 18px;
}

.author-portrait {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.portrait-halo {
  position: absolute;
  width: min(420px, 96%);
  aspect-ratio: 0.95;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 246, 214, 0.9), rgba(240, 198, 107, 0.42) 28%, rgba(90, 83, 118, 0.16) 64%, transparent 76%),
    linear-gradient(160deg, rgba(201, 151, 65, 0.28), rgba(90, 83, 118, 0.18));
  filter: blur(4px);
}

.portrait-image {
  position: relative;
  width: min(390px, 90%);
  aspect-ratio: 0.79;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.portrait-card {
  position: absolute;
  bottom: 34px;
  right: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 239, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.portrait-card span,
.portrait-card strong {
  display: block;
}

.portrait-card span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portrait-card strong {
  margin-top: 8px;
  font-size: 1.2rem;
}

.events-section {
  padding-top: 28px;
}

.events-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.social-section {
  padding: 28px 0 8px;
}

.social-heading {
  max-width: 560px;
}

.social-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 34px 0 10px;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 700;
}

@keyframes floatBook {
  0%,
  100% {
    transform: translate(20px, -8px) rotate(7deg) translateY(0);
  }

  50% {
    transform: translate(20px, -14px) rotate(8deg);
  }
}

@media (max-width: 960px) {
  .hero,
  .story-grid,
  .spotlight,
  .author-section,
  .events-grid,
  .praise-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .book-showcase {
    min-height: 460px;
    order: -1;
  }

  .book-stack {
    width: min(340px, 84%);
  }

  .back-cover {
    transform: translate(-24px, 10px) rotate(-8deg);
  }

  .front-cover-wrap {
    transform: translate(12px, -4px) rotate(6deg);
  }

  .hero h1 {
    max-width: 100%;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-header {
    gap: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .story-card,
  .spotlight,
  .event-card {
    padding: 24px;
  }

  .spotlight-panel blockquote {
    font-size: 1.6rem;
  }

  .portrait-card {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }
}
