:root {
  color-scheme: dark;
  --ink: #f7f2ea;
  --muted: #c9bbb2;
  --dim: #958782;
  --ember: #d9391e;
  --ember-light: #ff7a32;
  --gold: #f0b752;
  --ash: #313844;
  --raven: #07090d;
  --night: #100c0d;
  --panel: rgba(19, 17, 20, 0.76);
  --line: rgba(247, 242, 234, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 85, 32, 0.22), transparent 30rem),
    radial-gradient(circle at 82% 22%, rgba(49, 56, 68, 0.36), transparent 32rem),
    linear-gradient(145deg, #07090d 0%, #171015 45%, #0b1011 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(247, 242, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 234, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

body::after {
  position: fixed;
  right: -14vw;
  bottom: -18vw;
  z-index: -1;
  width: min(54vw, 680px);
  aspect-ratio: 1;
  content: "";
  background:
    radial-gradient(circle at 42% 46%, rgba(255, 122, 50, 0.38), transparent 0 12%, transparent 20%),
    radial-gradient(circle at 50% 52%, rgba(217, 57, 30, 0.22), transparent 0 28%, transparent 38%);
  filter: blur(22px);
  opacity: 0.9;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
}

.brand,
.nav,
.actions,
.purchase-links,
.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--night);
  background:
    radial-gradient(circle at 62% 32%, #fff0c7, transparent 0 12%, transparent 21%),
    linear-gradient(135deg, var(--gold), var(--ember-light) 58%, var(--ember));
  font-size: 0.82rem;
}

.nav {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  padding: 8px 2px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 46px 0 82px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 13vw, 10.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow:
    0 0 38px rgba(217, 57, 30, 0.26),
    0 2px 0 rgba(7, 9, 13, 0.8);
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.6;
}

.button,
.purchase-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.purchase-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 85, 0.56);
}

.primary {
  border-color: transparent;
  color: #1d120f;
  background: linear-gradient(135deg, var(--ember-light), var(--gold));
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.book-feature {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
}

.raven-sigil {
  position: absolute;
  top: -54px;
  left: 50%;
  width: min(128%, 460px);
  aspect-ratio: 4 / 1.45;
  transform: translateX(-50%);
  pointer-events: none;
}

.wing {
  position: absolute;
  top: 26%;
  width: 45%;
  height: 52%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(247, 242, 234, 0.18), transparent 0 8%, transparent 15%),
    linear-gradient(170deg, #050609 0%, #111722 42%, #020305 100%);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42));
}

.left-wing {
  left: 2%;
  border-radius: 100% 8% 72% 12%;
  clip-path: polygon(0 60%, 30% 20%, 70% 5%, 100% 48%, 76% 70%, 38% 78%);
}

.right-wing {
  right: 2%;
  border-radius: 8% 100% 12% 72%;
  clip-path: polygon(0 48%, 30% 5%, 70% 20%, 100% 60%, 62% 78%, 24% 70%);
}

.flame-core {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 22%;
  aspect-ratio: 0.72;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 72% 8% 72% 42%;
  background:
    radial-gradient(circle at 68% 68%, #fff0c7, transparent 0 12%, transparent 24%),
    linear-gradient(135deg, var(--gold) 0%, var(--ember-light) 44%, var(--ember) 76%, #6e130d 100%);
  box-shadow:
    0 0 36px rgba(255, 122, 50, 0.44),
    0 0 86px rgba(217, 57, 30, 0.28);
}

.cover-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 122, 50, 0.18), transparent 34%),
    linear-gradient(160deg, #1d1011, #07090d);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 122, 50, 0.08),
    0 0 54px rgba(217, 57, 30, 0.16);
}

.cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: space-between;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(215, 181, 109, 0.2), transparent 42%),
    linear-gradient(330deg, rgba(49, 56, 68, 0.58), transparent 50%),
    #160d10;
}

.cover-fallback span,
.cover-fallback em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-fallback strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.9;
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: var(--muted);
}

.feature-meta strong {
  color: var(--ink);
}

.book-section,
.about-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.book-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 80px);
}

.book-grid {
  display: grid;
  gap: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.book-hook {
  margin: 0;
  border-left: 3px solid var(--ember-light);
  padding: 6px 0 6px 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.16;
}

.alternate-hook {
  border-left-color: var(--gold);
  color: var(--muted);
  font-size: clamp(1.18rem, 2.4vw, 1.6rem);
  line-height: 1.28;
}

.series-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.series-card {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(150deg, rgba(255, 122, 50, 0.1), transparent 34%),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.series-card img {
  width: 82px;
  aspect-ratio: 2 / 3;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.series-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.series-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 0.98;
}

.series-card p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.series-card small {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-links {
  flex-wrap: wrap;
}

.purchase-links a {
  background: rgba(255, 255, 255, 0.06);
}

.about-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 6vw, 80px);
}

.about-section p:last-child {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.75;
}

.site-footer {
  min-height: 96px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 118px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .book-section,
  .about-section {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
  }

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

  .book-feature {
    justify-self: start;
    max-width: 320px;
  }

  .raven-sigil {
    top: -42px;
    width: min(118%, 360px);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .series-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
