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

/* === Design Tokens === */
:root {
  --bg: #f5f0e8;
  --text: #2c2416;
  --accent: #7a5c3a;
  --muted: #9e8b76;
  --surface: #ede6d6;
  --cta: #5c3d1e;
  --font: 'Georgia', 'Times New Roman', serif;
  --max-width: 720px;
}

/* === Base === */
html {
  font-size: 17px;
  line-height: 1.7;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Container === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* === Navigation === */
nav {
  border-bottom: 1px solid var(--surface);
  padding: 1.25rem 0;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.nav-links a:hover {
  border-bottom-color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* === Main === */
main {
  flex: 1;
}

/* === Hero Section === */
.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.hero-cover {
  flex-shrink: 0;
  width: 240px;
}

.hero-cover img {
  width: 100%;
  display: block;
  box-shadow: 0 4px 20px rgba(44, 36, 22, 0.18);
}

.hero-text {
  flex: 1;
  padding-top: 0.5rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-tagline {
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.hero-blurb {
  color: var(--text);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* === CTA Buttons === */
.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--cta);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.btn-primary {
  background-color: var(--cta);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--cta);
}

.btn-secondary:hover {
  background-color: var(--surface);
}

/* === Pull Quote === */
.pull-quote {
  background-color: var(--surface);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 1rem 0;
}

.pull-quote blockquote {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
}

/* === Series Teaser === */
.series-teaser {
  padding: 3rem 0;
  text-align: center;
}

.series-teaser p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.series-teaser a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  font-size: 0.95rem;
}

.series-teaser a:hover {
  color: var(--cta);
  border-bottom-color: var(--cta);
}

/* === Page Header (Books, About, Newsletter) === */
.page-section {
  padding: 3.5rem 0 2.5rem;
}

.page-section + .page-section {
  border-top: 1px solid var(--surface);
  padding-top: 3rem;
}

/* === Book Layout === */
.book-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.book-cover {
  flex-shrink: 0;
  width: 240px;
}

.book-cover img {
  width: 100%;
  display: block;
  box-shadow: 0 4px 20px rgba(44, 36, 22, 0.18);
}

.book-details {
  flex: 1;
}

.book-details h2 {
  font-size: 1.6rem;
  font-weight: normal;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.book-details .series-label {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.book-description {
  margin-bottom: 1.75rem;
}

.book-description p {
  margin-bottom: 1rem;
}

.book-description p:last-child {
  margin-bottom: 0;
}

.pub-info {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* === Coming Soon === */
.coming-soon {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--surface);
  margin-top: 1rem;
}

.coming-soon h2 {
  font-size: 1.2rem;
  font-weight: normal;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.coming-soon p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.coming-soon a {
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.coming-soon a:hover {
  color: var(--cta);
  border-bottom-color: var(--cta);
}

/* === About === */
.about-bio {
  padding: 3.5rem 0 2rem;
}

.about-bio h1 {
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  color: var(--muted);
}

.about-bio p {
  margin-bottom: 1.25rem;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.contact-line {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--cta);
}

/* === Newsletter === */
.newsletter-section {
  padding: 3.5rem 0 2rem;
}

.newsletter-section h1 {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.newsletter-section .lead {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.6rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  background-color: var(--bg);
  border: 1px solid var(--muted);
  color: var(--text);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 0.6rem 1.4rem;
  font-family: var(--font);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background-color: var(--cta);
  color: var(--bg);
  border: 1px solid var(--cta);
  cursor: pointer;
  transition: background-color 0.15s;
}

.newsletter-form button:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.newsletter-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.thankyou-message {
  display: none;
  padding: 1.5rem 0;
  color: var(--accent);
  font-style: italic;
  font-size: 1.05rem;
}

/* === Footer === */
footer {
  border-top: 1px solid var(--surface);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* === Mobile === */
@media (max-width: 680px) {
  nav .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links {
    gap: 1.25rem;
    justify-content: center;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 1.75rem;
  }

  .hero-cover {
    width: 100%;
  }

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

  .book-layout {
    flex-direction: column;
    gap: 1.75rem;
  }

  .book-cover {
    width: 100%;
  }

  .pull-quote {
    padding: 2.5rem 1.5rem;
  }

  .pull-quote blockquote {
    font-size: 1.1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    min-width: 0;
    width: 100%;
  }
}
