/* Hearth & Flame — hearthandflamepub.com */
/* Palette: parchment, sage green, amber gold, warm brown, cream */

:root {
  --parchment: #f5f0e8;
  --sage: #7a8c6e;
  --sage-light: #9aaa8e;
  --amber: #c4913a;
  --amber-dark: #a87a2f;
  --brown: #5c4a3a;
  --cream: #faf8f3;
  --text: #3a3028;
  --text-light: #6b5e52;
  --white: #ffffff;
}

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

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background-color: var(--parchment);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--amber-dark);
  text-decoration: none;
}

a:hover {
  color: var(--amber);
  text-decoration: underline;
}

/* ---- NAV ---- */

nav {
  background-color: var(--sage);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  height: 40px;
}

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

nav ul li a {
  color: var(--cream);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav ul li a:hover {
  color: var(--amber);
  text-decoration: none;
}

/* ---- HERO ---- */

.hero {
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(245,240,232,0.3), rgba(245,240,232,0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.4rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
  font-weight: normal;
  font-style: italic;
}

.hero-content .tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ---- SECTIONS ---- */

section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section h2 {
  font-size: 1.6rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
  font-weight: normal;
  border-bottom: 2px solid var(--sage-light);
  padding-bottom: 0.5rem;
}

/* ---- FEATURED BOOK ---- */

.book-feature {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.book-cover {
  flex: 0 0 250px;
  max-width: 250px;
}

.book-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.book-info {
  flex: 1;
  min-width: 280px;
}

.book-info h3 {
  font-size: 1.4rem;
  color: var(--brown);
  margin-bottom: 0.3rem;
}

.book-info .series-label {
  font-size: 0.85rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.book-info .blurb {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.book-info .blurb p {
  margin-bottom: 0.8rem;
}

.btn {
  display: inline-block;
  background-color: var(--sage);
  color: var(--white);
  padding: 0.7rem 1.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--brown);
  text-decoration: none;
  color: var(--white);
}

/* ---- COMING SOON ---- */

.coming-soon {
  background-color: var(--cream);
  border-left: 4px solid var(--sage);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  border-radius: 0 4px 4px 0;
}

.coming-soon p {
  font-style: italic;
  color: var(--text-light);
}

.coming-soon .book-title {
  font-weight: bold;
  font-style: normal;
  color: var(--brown);
}

/* ---- ABOUT ---- */

.about-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-image {
  flex: 0 0 300px;
  max-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ---- NEWSLETTER ---- */

.newsletter {
  background-color: var(--cream);
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  border-radius: 4px;
}

.newsletter p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* ---- CONNECT ---- */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  background-color: var(--cream);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--brown);
  border: 1px solid var(--sage-light);
  transition: all 0.2s;
}

.social-links a:hover {
  background-color: var(--sage);
  color: var(--white);
  border-color: var(--sage);
  text-decoration: none;
}

/* ---- FOOTER ---- */

footer {
  background-color: var(--sage);
  color: var(--cream);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
}

footer a {
  color: var(--amber);
}

/* ---- MOBILE ---- */

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  nav {
    flex-direction: column;
    gap: 0.8rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 40vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .book-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    flex: none;
    max-width: 200px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image {
    flex: none;
    max-width: 250px;
  }

  section {
    padding: 2rem 1.2rem;
  }
}
