/* Base layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1c2230 0, #05070b 55%, #000000 100%);
  color: #e5e9f0;
  line-height: 1.6;
}

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

a {
  color: #e3b341;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(5,7,11,0.9), rgba(15,18,28,0.9));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.brand-author {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

.nav-links a {
  margin-left: 1.4rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-cover img {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: #a0aec0;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.hero-author-line {
  margin: 0 0 0.6rem;
}

.hero-author-line span {
  font-weight: 600;
}

.hero-meta {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-bottom: 1rem;
}

.hero-blurb {
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-cta .btn {
  margin-right: 0.8rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  padding: 3rem 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.04) 0, rgba(0,0,0,0.96) 60%);
}

.section h2,
.section-alt h2,
.section h1 {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.4rem;
}

.narrow {
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.info-card {
  background: rgba(7,10,16,0.96);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.7);
  margin-bottom: 1.4rem;
}

.info-card h3 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e3b341;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.info-card li + li {
  margin-top: 0.3rem;
}

.contact-card a {
  word-break: break-all;
}

/* Books grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.book-card {
  background: rgba(7,10,16,0.96);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 14px 32px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-cover img {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.book-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.book-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e3b341;
  margin: 0 0 0.6rem;
}

.book-copy {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.book-meta {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-top: auto;
}

/* Rights page */
.rights-block {
  margin-bottom: 2.2rem;
}

.rights-block h2 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.meta-list li + li {
  margin-top: 0.2rem;
}

/* Newsletter */
.newsletter-form {
  margin-top: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1rem;
}

label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cbd5f5;
}

input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(7,10,16,0.9);
  color: #e5e9f0;
  outline: none;
}

input[type="email"]:focus {
  border-color: #e3b341;
  box-shadow: 0 0 0 1px rgba(227,179,65,0.4);
}

.form-note {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #e3b341, #ffce63);
  color: #111111;
  font-weight: 600;
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: rgba(255,255,255,0.5);
  color: #e5e9f0;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.06);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #05070b;
  padding: 1.4rem 0 1.6rem;
  font-size: 0.85rem;
  color: #9fa6b2;
}

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

.footer-inner p {
  margin: 0.2rem 0;
}

/* Responsive */
@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-cover {
    max-width: 360px;
    margin: 0 auto 1.6rem;
  }
}

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    margin-top: 0.4rem;
  }
  .nav-links a {
    margin-left: 0;
    margin-right: 1rem;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
