/* =========================================================
   AFTER THE LIE
   mykindlebooks.net/books/after-the-lie/
   Main stylesheet
========================================================= */

:root {
  --bg: #f5f1e8;
  --bg-soft: #fffaf3;
  --text: #222222;
  --muted: #6a6258;
  --accent: #7a2d2d;
  --accent-dark: #542020;
  --gold: #b38a4a;
  --border: #d8cfc2;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  --radius: 16px;
  --max-width: 1180px;
}

/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin-top: 0;
}

/* LAYOUT */

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

section {
  padding: 70px 0;
}

.center {
  text-align: center;
}

.text-narrow {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */

.site-header {
  background: #171717;
  color: var(--white);
  border-bottom: 3px solid var(--gold);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.site-title a {
  color: var(--white);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
  color: #e3c28b;
}

/* HERO */

.hero {
  padding: 80px 0;
  background:
    linear-gradient(
      90deg,
      rgba(16, 16, 16, 0.93),
      rgba(16, 16, 16, 0.72)
    ),
    url("images/after-the-lie-hero.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 55px;
  align-items: center;
}

.hero-cover {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero .subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: #ead9bd;
  max-width: 780px;
  margin-bottom: 24px;
}

.hero .author {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero p {
  max-width: 760px;
}

/* BUTTONS */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition: 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--gold);
  color: #1b160f;
}

.btn-secondary:hover {
  background: #cba568;
  color: #1b160f;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: #1a1a1a;
}

/* PAGE BANNER */

.page-banner {
  padding: 65px 0;
  text-align: center;
  background: #24211e;
  color: var(--white);
}

.page-banner h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 12px;
}

.page-banner p {
  max-width: 760px;
  margin: 0 auto;
  color: #ddd3c4;
}

/* CONTENT */

.content-section {
  background: var(--bg-soft);
}

.content-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.content-section h3 {
  font-size: 1.5rem;
  color: var(--accent-dark);
}

.lead {
  font-size: 1.22rem;
  line-height: 1.8;
}

.highlight {
  color: var(--accent);
  font-weight: 700;
}

/* CARDS */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card h3 {
  margin-bottom: 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* QUESTION CARDS */

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.question-card {
  background: var(--white);
  padding: 26px;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.question-card p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
}

/* CORE FRAMEWORK */

.framework {
  background: #1e1e1e;
  color: var(--white);
}

.framework h2 {
  text-align: center;
}

.framework-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 35px;
}

.framework-step {
  text-align: center;
  padding: 28px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}

.framework-step strong {
  display: block;
  color: #e7c993;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

/* QUOTES */

.quote-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 34px 38px;
  background: var(--white);
  border-left: 6px solid var(--gold);
  box-shadow: var(--shadow);
  border-radius: 12px;
}

.quote-box p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  line-height: 1.5;
}

/* CHAPTER LIST */

.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.chapter-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 12px;
}

.chapter-item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
}

/* TWO-COLUMN SECTIONS */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.two-column-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* AUTHOR */

.author-section {
  background: #ebe3d7;
}

.author-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
}

.author-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* REVIEWS */

.review {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.review-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-style: italic;
}

.review-source {
  margin-top: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* CTA */

.cta {
  text-align: center;
  background: var(--accent-dark);
  color: var(--white);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.cta p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #efe2d4;
}

/* RECOMMENDED READING */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.book-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.book-card img {
  max-height: 330px;
  margin: 0 auto 20px;
}

.book-card h3 {
  font-size: 1.35rem;
}

/* MEDIA */

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER */

.site-footer {
  background: #141414;
  color: #d7d7d7;
  padding: 45px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
}

.site-footer h3 {
  color: var(--white);
}

.site-footer a {
  color: #e2c693;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

/* UTILITIES */

.spacer-small {
  height: 20px;
}

.spacer-medium {
  height: 40px;
}

.spacer-large {
  height: 70px;
}

.rounded {
  border-radius: var(--radius);
}

.shadow {
  box-shadow: var(--shadow);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .author-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero p,
  .hero .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .button-row {
    justify-content: center;
  }

  .card-grid,
  .book-grid,
  .framework-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-photo {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  section {
    padding: 50px 0;
  }

  .header-inner {
    flex-direction: column;
    padding: 18px 0;
  }

  .main-nav {
    justify-content: center;
  }

  .hero {
    padding: 55px 0;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-cover {
    max-width: 280px;
  }

  .card-grid,
  .question-grid,
  .chapter-list,
  .book-grid,
  .framework-row,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .quote-box {
    padding: 26px 24px;
  }

  .btn {
    width: 100%;
  }

  .page-banner {
    padding: 45px 0;
  }
}