:root {
  --navy: #07111f;
  --navy-soft: #101d31;
  --ink: #f7efd9;
  --muted: #d9c9a5;
  --gold: #d9a441;
  --amber: #b86f21;
  --line: rgba(247, 239, 217, 0.16);
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 164, 65, 0.18), transparent 30rem),
    linear-gradient(145deg, #050913 0%, var(--navy) 46%, #150f0a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 56px;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  color: var(--gold);
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.5rem);
}

h2 {
  color: var(--ink);
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  color: var(--ink);
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.tagline {
  color: var(--ink);
  margin: 22px 0 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.18;
}

.lead {
  color: var(--muted);
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(217, 164, 65, 0.58);
  border-radius: 4px;
  background: linear-gradient(180deg, #e0ad4d, #a9631f);
  color: #100b06;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 36px var(--shadow);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.hero-covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.hero-covers img,
.book-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(217, 164, 65, 0.28);
  box-shadow: 0 22px 46px var(--shadow);
}

.hero-covers img:nth-child(2) {
  transform: translateY(-22px);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.book-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.book-card-content {
  padding: 22px;
}

.book-card p,
.book-copy p {
  color: var(--muted);
  margin: 0 0 18px;
}

.book-hero {
  display: grid;
  grid-template-columns: minmax(230px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.book-title {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.chapter-grid a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.92rem;
}

.chapter-grid a:hover,
.chapter-grid a:focus {
  color: var(--ink);
  border-color: rgba(217, 164, 65, 0.58);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 850px) {
  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

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

  .hero {
    min-height: auto;
  }

  .books-grid,
  .chapter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 48px 0;
  }

  .nav-links {
    gap: 12px;
  }

  .hero-covers {
    gap: 8px;
  }

  .books-grid,
  .chapter-grid {
    grid-template-columns: 1fr;
  }
}
