/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  --green: #071009;
  --green-mid: #0d1f10;
  --gold: #c9a84c;
  --gold-dark: #a88835;
  --white: #ffffff;
  --cream: #f5f0e6;
  --text-muted: rgba(255, 255, 255, 0.7);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-width: 1100px;
  --section-pad: 100px 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--green);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
   Shared
   ============================================= */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
}

.section-title--left {
  text-align: left;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s;
}

.btn--gold {
  background: var(--gold);
  color: #1a1200;
}

.btn--gold:hover {
  background: var(--gold-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav__links a:hover {
  opacity: 1;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 48px 120px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.8;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.hero__link:hover {
  opacity: 1;
}

.hero__book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.book-cover {
  width: 260px;
  height: 380px;
  background: linear-gradient(160deg, #3a1008 0%, #1a0603 50%, #0d0302 100%);
  border-radius: 4px;
  box-shadow: -8px 8px 32px rgba(0,0,0,0.6), 4px 0 0 rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(800px) rotateY(-5deg);
}

.book-cover__placeholder {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__quote {
  text-align: center;
  max-width: 280px;
}

.hero__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero__quote cite {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   THE PROTAGONIST
   ============================================= */
.protagonist {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.protagonist__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.portrait-placeholder {
  width: 260px;
  height: 320px;
  background: linear-gradient(160deg, #1e3a22 0%, #0f2312 100%);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.protagonist__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.protagonist__bio p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* =============================================
   A GLIMPSE INSIDE
   ============================================= */
.excerpt {
  padding: var(--section-pad);
  background: var(--green);
}

.excerpt__header {
  text-align: center;
  margin-bottom: 48px;
}

.excerpt__chapter {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.excerpt__panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--cream);
  color: #1a1a1a;
  padding: 64px 72px;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}

.excerpt__panel p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
  color: #2a2420;
}

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

.excerpt__drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  float: left;
  line-height: 0.75;
  padding-right: 10px;
  padding-top: 6px;
}

/* =============================================
   CONTINUE YOUR JOURNEY
   ============================================= */
.purchase {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.purchase__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.purchase__card {
  background: var(--white);
  border-radius: 6px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: var(--card-shadow);
}

.purchase__icon {
  color: #2a2420;
  opacity: 0.6;
}

.purchase__label {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
  flex: 1;
}

/* =============================================
   LISTEN TO THE AUTHOR
   ============================================= */
.listen {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.listen__text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.listen__link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.listen__link:hover {
  border-color: var(--white);
}

.video-thumb {
  position: relative;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb__play {
  background: rgba(201, 168, 76, 0.9);
  border: none;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.video-thumb__play:hover {
  background: var(--gold);
  transform: scale(1.05);
}

.video-thumb__play svg {
  margin-left: 4px;
}

.video-thumb__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0,0,0,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* =============================================
   REQUEST FROM YOUR LOCAL LIBRARY
   ============================================= */
.library {
  padding: var(--section-pad);
  text-align: center;
  background: var(--green-mid);
}

.library__sub {
  max-width: 520px;
  margin: -28px auto 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.library__template {
  max-width: 600px;
  margin: 0 auto 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 32px 40px;
  text-align: left;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

.library__template p {
  margin-bottom: 12px;
}

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

.library__template ul {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.library__template li {
  padding: 2px 0;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #050c07;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .nav {
    padding: 16px 24px;
  }

  .nav__links {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 64px 24px 80px;
    text-align: center;
  }

  .hero__body {
    max-width: 100%;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__book {
    order: -1;
  }

  .protagonist__grid {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    width: 200px;
    height: 240px;
    margin: 0 auto;
  }

  .excerpt__panel {
    padding: 40px 32px;
  }

  .purchase__cards {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .listen {
    grid-template-columns: 1fr;
  }

  .section-title--left {
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root {
    --section-pad: 64px 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: block;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .book-cover {
    width: 200px;
    height: 290px;
  }

  .excerpt__panel {
    padding: 32px 20px;
  }

  .library__template {
    padding: 24px 20px;
  }
}
