/* ============================================
   Chasing the Viking — Maya Gunn
   Color palette derived from book cover
   ============================================ */

:root {
  --blue: #6BA3BE;
  --blue-dark: #4A8199;
  --blue-light: #A8D0E0;
  --coral: #D4735E;
  --coral-dark: #B85A47;
  --coral-light: #E8937F;
  --cream: #FDF6EE;
  --cream-dark: #F5E6D3;
  --dark: #2C2C2C;
  --dark-light: #4A4A4A;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 163, 190, 0.15);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.nav-brand:hover {
  color: var(--coral);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--dark-light);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: 5rem;
  background: linear-gradient(170deg, var(--blue-light) 0%, var(--cream) 50%, var(--cream-dark) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

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

.hero-image img {
  border-radius: 8px;
  box-shadow:
    0 20px 60px rgba(44, 44, 44, 0.15),
    0 8px 24px rgba(107, 163, 190, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 70px rgba(44, 44, 44, 0.18),
    0 12px 30px rgba(107, 163, 190, 0.25);
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.hero-author {
  font-size: 1.25rem;
  color: var(--dark-light);
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--dark-light);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   Shared Section Styles
   ============================================ */
.section-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark);
}

/* ============================================
   Book Blurb Section
   ============================================ */
.blurb {
  padding: 6rem 0;
  background: var(--white);
}

.blurb-content p {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--dark-light);
}

.blurb-highlight {
  font-family: var(--font-heading);
  font-size: 1.35rem !important;
  color: var(--coral) !important;
  text-align: center;
  padding: 1.5rem 0;
  font-weight: 700;
}

.book-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.9rem;
  color: var(--dark-light);
  flex-wrap: wrap;
}

.detail-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-light);
  display: inline-block;
}

/* ============================================
   Book Trailer Section
   ============================================ */
.trailer {
  padding: 6rem 0;
  background: var(--cream);
}

.trailer-wrapper {
  max-width: 680px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(44, 44, 44, 0.12),
    0 4px 16px rgba(107, 163, 190, 0.15);
}

.trailer-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--dark);
}

/* ============================================
   Buy Links Section
   ============================================ */
.buy {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.buy-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--dark-light);
  margin-bottom: 2.5rem;
}

.buy-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(44, 44, 44, 0.12);
}

.btn-buy:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 44, 44, 0.18);
}

.btn-buy svg {
  flex-shrink: 0;
}

.btn-amazon {
  background: #FF9900;
}

.btn-amazon:hover {
  background: #E68A00;
}

.btn-goodreads {
  background: #553B08;
}

.btn-goodreads:hover {
  background: #3E2B06;
}

/* ============================================
   About Section
   ============================================ */
.about {
  padding: 6rem 0;
  background: var(--white);
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-photo {
  flex: 0 0 auto;
  width: 220px;
}

.about-photo img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(44, 44, 44, 0.12);
}

.about-bio p {
  font-size: 1.1rem;
  color: var(--dark-light);
  margin-bottom: 1rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: 5rem 0;
  background: var(--cream);
}

.contact-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--dark-light);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-light);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--coral);
  transform: translateY(-3px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 2rem 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
  .hero-container {
    gap: 2.5rem;
  }

  .hero-image {
    width: 280px;
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

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

  .hero-image {
    width: 240px;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .blurb,
  .trailer,
  .buy,
  .about,
  .contact {
    padding: 4rem 0;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .about-photo {
    width: 180px;
  }

  .buy-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-buy {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .book-details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .detail-divider {
    display: none;
  }
}
