/* Color Palette */
:root {
  --bg-deep: #0d1a2f;
  --violet: #4b2d73;
  --magenta: #a74b7c;
  --amber: #f6a623;
  --sun: #ffd87a;
  --text: #f5f5f5;
  --light-text: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
}

a {
  color: var(--amber);
  text-decoration: none;
}
a:hover {
  color: var(--sun);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--violet);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  color: var(--sun);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.site-nav a {
  font-weight: 600;
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--sun);
  cursor: pointer;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-deep), var(--violet));
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.hero-text {
  flex: 1;
}
.hero-text h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--sun);
}
.tagline {
  font-size: 1.1rem;
  margin-top: 10px;
  color: var(--light-text);
  font-style: italic;
  line-height: 1.5;
}
.hero-image img {
  max-width: 100%;
  max-height: 700px;   /* ✨ new line — adjust number to taste */
  border: 4px solid var(--amber);
  border-radius: 6px;
}
.hero-image .tagline {
  display: block;
  text-align: center;
  max-width: 45ch;
  margin: 15px auto 0;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  color: #ffd87a;   /* golden accent */
}
.hero-image .tagline em {
  font-style: italic;
  color: #ffd87a;   /* gold accent */
  font-weight: 600;
}
.btn {
  display: inline-block;
  background: var(--amber);
  color: #000;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: bold;
  position: relative;    /* added for hover swap */
  overflow: hidden;      /* added to keep hover text inside */
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--sun);
  color: transparent;    /* hides original text */
}

.btn::after {
  content: "Buy Now";    /* hover text */
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  opacity: 0;
  color: #000;           /* same as normal text color */
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;            /* fade in hover text */
}
/* Override for the Discover button */
.btn.discover::after {
  content: "Read More";  /* unique hover text */
}
/* Sections */
.section {
  padding: 3rem 0;
}
.section.alt {
  background: var(--violet);
}
.section h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--sun);
}
.purchase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.purchase-links .btn {
  flex: 1 1 150px;
  text-align: center;
}
/* ------------------------------
   Synopsis Section
--------------------------------*/
#synopsis h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffd87a;    /* gold accent */
  text-align: center;
}

#synopsis p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem; 
  color: #f5f5f5;
  font-family: Georgia, "Times New Roman", serif;
}
/* ------------------------------
   About the Author
--------------------------------*/
#about h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #ffd87a;      /* gold accent */
  text-align: center;
}

#about p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
  color: #f5f5f5; 
  font-family: Georgia, "Times New Roman", serif;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;  /* keeps paragraphs nicely centered */
}
#about a {
  color: #ffd87a;
  text-decoration: none;
}

#about a:hover {
  text-decoration: underline;
}
/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: var(--violet);
  font-size: 0.9rem;
  color: var(--text);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 0;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    background: var(--violet);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
  }
  .site-nav ul {
    flex-direction: column;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav.active {
    display: block;
  }
}
