:root {
  --black: #090909;
  --black-soft: #171111;
  --blood: #8d0714;
  --blood-bright: #d41226;
  --blood-soft: rgba(212, 18, 38, 0.14);
  --paper: #f3eee8;
  --muted: rgba(243, 238, 232, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(212, 18, 38, 0.18), transparent 28%),
    linear-gradient(180deg, #0e0b0b 0%, #0a0909 26%, #120a0b 46%, #1d0a0c 68%, #26090d 84%, #0a0909 100%);
  color: var(--paper);
}

html, body {
  scroll-behavior: smooth;
}

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

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

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(9, 9, 9, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 1rem;
}

.brand-link {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 2.7vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--blood-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(201, 15, 31, 0.7), transparent 26%),
    linear-gradient(180deg, #120c0d 0%, #0d0909 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent 30%, transparent 70%, rgba(255,255,255,0.015));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blood-bright);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--paper);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lead {
  max-width: 560px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  min-height: 52px;
  border-radius: 999px;
  background: var(--blood-bright);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px rgba(212, 18, 38, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(212, 18, 38, 0.38);
}

.button-alt {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.button-alt:hover,
.button-alt:focus-visible {
  background: rgba(255, 255, 255, 0.02);
}

.cover-panel {
  display: flex;
  justify-content: center;
}

.book-cover {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 0.74;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.book-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0d0d0d;
}

/* If there is no image yet, the block will stay dark. Replace src="assets/cover.jpg" with your file. */

.cover-author,
.cover-title,
.cover-subtitle,
.cover-tagline,
.cover-silhouette {
  position: relative;
  z-index: 1;
}

.cover-author {
  text-align: center;
  margin-top: 0.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2vw, 2.4rem);
  font-weight: 600;
  color: rgba(255, 245, 240, 0.96);
}

.cover-title {
  margin-top: 1.8rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.08em;
  line-height: 0.76;
}

.cover-title span {
  display: block;
  font-size: clamp(4rem, 7vw, 9.8rem);
}

.cover-title-line {
  margin-top: -0.18em;
}

.cover-subtitle {
  margin-top: 0.5rem;
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 249, 246, 0.94);
}

.cover-silhouette {
  width: 36%;
  height: 30%;
  margin: 1.8rem auto 0;
  border-radius: 52% 48% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.68));
  position: relative;
}

.cover-silhouette::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 0.32rem;
  height: 42%;
  transform: translateX(-50%);
  border-radius: 14px 14px 0 0;
  background: rgba(0, 0, 0, 0.9);
}

.cover-silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 62%;
  height: 36%;
  transform: translateX(-50%);
  border-radius: 50% 50% 18% 18%;
  background: rgba(0, 0, 0, 0.9);
}

.cover-tagline {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.2rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  color: rgba(255, 242, 236, 0.88);
  font-size: clamp(1.1rem, 1.7vw, 2.5rem);
  line-height: 1.25;
}

.about,
.excerpt,
.author-block {
  padding: 2.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.about-grid h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--paper);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

.story-copy {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;

}

.story-copy p {
  margin: 0 0 1.2rem;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.quote-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
  background: linear-gradient(90deg, rgba(212,18,38,0.06), transparent 50%, rgba(212,18,38,0.04));
}

blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.1;
  color: var(--paper);
  max-width: 850px;
}

.author-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.author-photo-wrap {
  display: flex;
  justify-content: center;
}

.author-photo-placeholder {
  width: min(100%, 360px);
  height: 420px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 25%, rgba(212,18,38,0.15), rgba(255,255,255,0.02) 40%, rgba(0,0,0,0.12));
  color: rgba(255, 255, 255, 0.46);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.14);
}

.author-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--paper);
}

.author-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.04rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  position: relative;
  z-index: 1;
  background: #000000;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .author-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.9rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .brand-link {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .book-cover {
    width: min(100%, 420px);
  }

  .author-photo-placeholder {
    height: 300px;
  }

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