/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0a1628;
  --navy-mid: #111f3a;
  --navy-light: #1a2f52;
  --gold: #f4c842;
  --gold-light: #f9e080;
  --white: #f0f4ff;
  --grey: #8a9bbf;
  --font-heading: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== SWIRL BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 60, 120, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(20, 40, 90, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(15, 35, 80, 0.4) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 200, 66, 0.15);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  border-radius: 4px;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 4rem 4rem;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-book {
  flex: 0 0 auto;
  width: 340px;
}

.hero-book img {
  width: 100%;
  border-radius: 8px;
  box-shadow:
    0 0 40px rgba(244, 200, 66, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-book img:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow:
    0 0 60px rgba(244, 200, 66, 0.3),
    0 30px 80px rgba(0, 0, 0, 0.7);
}

.hero-text {
  flex: 1;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-title em {
  color: var(--gold);
  font-style: normal;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--grey);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-author {
  font-size: 0.95rem;
  color: var(--grey);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero-author strong {
  color: var(--white);
}

.btn-buy {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(244, 200, 66, 0.3);
}

.btn-buy:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 200, 66, 0.4);
}

/* ===== SECTION BASE ===== */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.25;
}

/* ===== ABOUT THE BOOK ===== */
.book-section {
  background: var(--navy-mid);
  border-top: 1px solid rgba(244, 200, 66, 0.1);
  border-bottom: 1px solid rgba(244, 200, 66, 0.1);
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.book-description p {
  color: var(--grey);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.book-description p strong {
  color: var(--white);
}

.book-back img {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* ===== BLURB ===== */
.blurb {
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  background: rgba(244, 200, 66, 0.05);
  border-radius: 0 8px 8px 0;
}

.blurb p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem !important;
  color: var(--white) !important;
}

/* ===== ABOUT RUNNING CAMEL ===== */
.about-section {
  background: var(--navy);
}

.about-content {
  max-width: 680px;
}

.about-content p {
  color: var(--grey);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-logo {
  height: 90px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: block;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--navy-mid);
  border-top: 1px solid rgba(244, 200, 66, 0.1);
  text-align: center;
}

.contact-section .section-inner {
  padding: 5rem 4rem;
}

.contact-section p {
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.contact-section a {
  color: var(--gold);
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  background: rgba(5, 12, 25, 0.9);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(244, 200, 66, 0.08);
}

footer p {
  color: var(--grey);
  font-size: 0.85rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
}

/* ===== DECORATIVE STARS ===== */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--duration) var(--delay) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--brightness); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav {
    padding: 1rem 2rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .hero {
    flex-direction: column;
    padding: 6rem 2rem 3rem;
    gap: 3rem;
    text-align: center;
  }

  .hero-book {
    width: 260px;
  }

  .section-inner {
    padding: 4rem 2rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .book-back {
    order: -1;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 2rem;
  }
}

@media (max-width: 600px) {
  nav ul {
    display: none;
  }

  .hero-title {
    font-size: 1.8rem;
  }
}
