:root {
  --bg: #0a0b12;
  --bg-alt: #11131c;
  --ink: #efe9db;
  --ink-dim: #9b9689;
  --accent-gold: #cda45e;
  --accent-gold-bright: #f0d38a;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ticking background flavor */
.ticking-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 15%, rgba(205, 164, 94, 0.10), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(205, 164, 94, 0.06), transparent 35%),
    radial-gradient(circle at 50% 95%, rgba(255, 255, 255, 0.04), transparent 45%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 20, 43, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.logo-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--accent-gold);
  color: #0a0b12 !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-gold-bright);
  box-shadow: 0 0 16px rgba(240, 211, 138, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 70px 0 90px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  background: linear-gradient(120deg, var(--accent-gold-bright), var(--accent-gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.tagline {
  font-size: 1.15rem;
  color: var(--ink-dim);
  margin-bottom: 28px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent-gold);
  color: #0a0b12;
  box-shadow: 0 8px 24px rgba(205, 164, 94, 0.25);
}

.btn-primary:hover {
  background: var(--accent-gold-bright);
  box-shadow: 0 8px 28px rgba(240, 211, 138, 0.55);
}

.btn-ghost {
  border: 2px solid rgba(239, 233, 219, 0.25);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 16px rgba(240, 211, 138, 0.3);
}

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

.hero-byline {
  color: var(--ink-dim);
}

.hero-byline strong {
  color: var(--ink);
}

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

.cover-frame {
  width: min(320px, 80vw);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.06);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}

.cover-frame:hover { transform: rotate(0deg); }

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-kicker {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.highlight {
  color: var(--accent-gold-bright);
}

.section-copy {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 68ch;
}

.section-copy + .section-copy {
  margin-top: 16px;
}

.tag-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(205, 164, 94, 0.12);
  border: 1px solid rgba(205, 164, 94, 0.4);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Fun facts */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.fact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 164, 94, 0.5);
  box-shadow: 0 0 20px rgba(205, 164, 94, 0.15);
}

.fact-icon {
  display: inline-flex;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.fact-icon svg {
  width: 28px;
  height: 28px;
}

.fact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.fact-card p {
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* Author */
.author-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.author-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #6b5a34);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a0b12;
}

.author-photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Buy */
.rating-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent-gold);
}

.rating-stars svg {
  width: 18px;
  height: 18px;
}

.rating-text {
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

.buy-section .section-copy { margin-bottom: 32px; }

.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 20px;
}

.buy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.buy-card:hover {
  transform: translateY(-3px);
  background: rgba(205, 164, 94, 0.1);
  box-shadow: 0 0 20px rgba(205, 164, 94, 0.2);
}

.buy-card-cta {
  color: var(--accent-gold);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--ink-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.footer-sub {
  font-size: 0.85rem;
  margin-top: 6px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { order: 2; }
  .hero-cover { order: 1; }
  .hero-actions { justify-content: center; }
  .author-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-cta { align-self: flex-start; }
}
