/* ========================================================================
   Living Aligned — Landing Page
   ======================================================================== */

:root {
  --ink: #1a1814;
  --ink-soft: #3d3832;
  --ink-muted: #6b645a;
  --paper: #faf7f2;
  --paper-warm: #f4ede0;
  --paper-card: #ffffff;
  --accent: #8b6f3f;
  --accent-soft: #c4aa84;
  --rule: #d9d2c2;
  --serif-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --serif-display: 'Playfair Display', Georgia, serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--serif-display);
  font-size: 22px; font-weight: 700;
  color: var(--ink); letter-spacing: 0.3px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--ink-soft); font-size: 16px; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 32px 70px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px;
  align-items: center;
}
.hero-kicker {
  font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 20px;
}
.hero-title {
  font-family: var(--serif-display);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 700; line-height: 1; margin: 0 0 24px;
  color: var(--ink);
}
.hero-subtitle {
  font-family: var(--serif-display);
  font-style: italic; font-size: 26px; line-height: 1.35;
  color: var(--ink-soft); margin: 0 0 28px; font-weight: 400;
}
.hero-lede {
  font-size: 19px; line-height: 1.65; color: var(--ink-soft);
  max-width: 540px; margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 28px;
  font-family: var(--serif-body); font-size: 17px;
  border-radius: 2px; transition: all 0.2s ease;
  cursor: pointer; text-decoration: none; border: none;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover {
  background: var(--accent); border-color: var(--accent);
  color: var(--paper); text-decoration: none;
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink); color: var(--paper); text-decoration: none;
}

/* ---------- Book Cover ---------- */
.hero-cover { display: flex; justify-content: center; }
.book-cover {
  width: 310px; height: 460px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 20px 40px rgba(26, 24, 20, 0.25),
    0 40px 80px rgba(26, 24, 20, 0.15);
  transform: perspective(1200px) rotateY(-8deg);
  transition: transform 0.4s ease;
}
.book-cover:hover { transform: perspective(1200px) rotateY(-4deg) translateY(-4px); }
.book-cover-spine {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
}
.book-cover-face {
  position: absolute; inset: 0; left: 12px;
  background: linear-gradient(155deg, #2a2520 0%, #1a1814 55%, #0f0d0a 100%);
  color: #ede4d2;
  padding: 50px 38px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.book-cover-kicker {
  font-family: var(--serif-body); font-style: italic;
  font-size: 13px; letter-spacing: 1.5px;
  color: var(--accent-soft); margin-bottom: 28px;
}
.book-cover-title {
  font-family: var(--serif-display); font-weight: 700;
  font-size: 58px; line-height: 1; margin-bottom: 22px;
  color: #f4ead4;
}
.book-cover-rule {
  width: 70px; height: 1px; background: var(--accent-soft);
  margin-bottom: 22px;
}
.book-cover-sub {
  font-family: var(--serif-display); font-style: italic;
  font-size: 15px; line-height: 1.5;
  color: #d6cbb2; flex: 1;
}
.book-cover-author {
  font-family: var(--serif-body);
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-soft); margin-top: auto;
}

/* ---------- Pullquote ---------- */
.pullquote {
  padding: 80px 32px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pullquote blockquote {
  max-width: 780px; margin: 0 auto; text-align: center;
}
.pullquote p {
  font-family: var(--serif-display); font-style: italic;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.4;
  color: var(--ink); margin: 0 0 20px;
}
.pullquote cite {
  font-family: var(--serif-body); font-style: normal;
  font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Excerpt ---------- */
.excerpt { padding: 90px 32px; background: var(--paper-warm); }
.excerpt-inner { max-width: 720px; margin: 0 auto; }
.section-title {
  font-family: var(--serif-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400; font-style: italic;
  margin: 0 0 40px; text-align: center; color: var(--ink);
}
.section-lede {
  text-align: center; font-size: 19px; color: var(--ink-soft);
  margin: -20px 0 50px;
}
.excerpt-body p {
  font-size: 20px; line-height: 1.75; margin: 0 0 20px;
  color: var(--ink-soft);
}
.excerpt-body p:first-child::first-letter {
  font-family: var(--serif-display); font-weight: 700;
  font-size: 64px; float: left; line-height: 0.9;
  margin: 6px 10px 0 0; color: var(--accent);
}
.excerpt-cta { text-align: center; margin-top: 50px; }

/* ---------- Chapters ---------- */
.chapters { padding: 100px 32px; background: var(--paper); }
.chapters-inner { max-width: var(--max); margin: 0 auto; }
.chapter-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin: 0 0 50px;
}
.chapter-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 22px 24px;
  display: flex; gap: 18px; align-items: baseline;
  transition: all 0.2s ease;
}
.chapter-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26,24,20,0.06);
}
.c-num {
  font-family: var(--serif-display); font-weight: 700;
  font-size: 26px; color: var(--accent); line-height: 1;
}
.c-title {
  font-family: var(--serif-body); font-size: 17px;
  line-height: 1.35; color: var(--ink);
}
.chapters-cta { text-align: center; }

/* ---------- About ---------- */
.about { padding: 90px 32px; background: var(--paper-warm); }
.about-inner { max-width: 720px; margin: 0 auto; }
.about p {
  font-size: 19px; line-height: 1.75; color: var(--ink-soft);
  margin: 0 0 20px;
}

/* ---------- Connect ---------- */
.connect { padding: 90px 32px; background: var(--paper); text-align: center; }
.connect-inner { max-width: 620px; margin: 0 auto; }
.connect p { font-size: 18px; color: var(--ink-soft); }
.signup {
  display: flex; gap: 10px; margin: 30px auto 0; max-width: 480px;
}
.signup input {
  flex: 1; padding: 14px 18px;
  font-family: var(--serif-body); font-size: 17px;
  border: 1px solid var(--rule); background: var(--paper-card);
  color: var(--ink); border-radius: 2px;
}
.signup input:focus { outline: none; border-color: var(--accent); }
.signup-msg {
  margin-top: 20px; color: var(--accent); font-style: italic;
}

/* ---------- Footer ---------- */
.footer {
  background: #1a1814; color: #bdb4a4;
  padding: 50px 32px; margin-top: 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-brand {
  font-family: var(--serif-display); font-size: 22px;
  font-weight: 700; color: #ede4d2;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: #bdb4a4; font-size: 15px; }
.footer-links a:hover { color: var(--accent-soft); text-decoration: none; }
.footer-copy { font-size: 14px; color: #8a8175; width: 100%; text-align: center; padding-top: 16px; border-top: 1px solid #2a2520; margin-top: 10px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { padding: 60px 24px 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .book-cover { width: 260px; height: 390px; }
  .book-cover-title { font-size: 48px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 15px; }
  .nav-inner { padding: 14px 20px; }
  .excerpt, .chapters, .about, .connect, .pullquote { padding-left: 22px; padding-right: 22px; }
  .signup { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-title { font-size: 64px; }
}
