/* ============================================
   Bush Digital Guides — Premium Redesign
   Inspired by: James Clear, Austin Kleon, 
   Mike Michalowicz — clean, bold, conversion-focused
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --black: #111111;
  --dark: #1a1a1a;
  --charcoal: #2d2d2d;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: #fef3c7;
  --green: #059669;
  --blue: #2563eb;
  --red: #dc2626;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --max-width: 1180px;
  --content-width: 720px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.75;
  background: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5 { 
  font-family: var(--font-display); 
  color: var(--black); 
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.8rem; }
p { margin-bottom: 1.2rem; }
strong { color: var(--black); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }

/* ================================================
   HEADER — Minimal, sticky, sophisticated
   ================================================ */
.site-header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.site-logo:hover { color: var(--black); text-decoration: none; }
.site-logo span { color: var(--accent); }

.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: var(--transition);
}
.site-nav a:hover { color: var(--black); text-decoration: none; }

/* ================================================
   HERO — Bold, James Clear style
   ================================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--black);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ================================================
   BOOK SHOWCASE — Magazine-style cards
   ================================================ */
.books-section { padding: 80px 0; }
.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.book-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 32px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  align-items: start;
}
.book-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.book-card-cover {
  width: 140px;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 8px 24px -4px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.book-card-body { padding-top: 4px; }
.book-card-body h3 { 
  font-family: var(--font-display);
  font-size: 1.3rem; 
  margin-bottom: 4px;
  color: var(--black);
}
.book-card-body .subtitle {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
  line-height: 1.5;
}
.book-card-body .excerpt {
  font-size: 0.92rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.6;
}
.book-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--charcoal);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: var(--white);
}
.btn-outline {
  border: 2px solid var(--gray-300);
  color: var(--black);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--black);
  text-decoration: none;
}
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ================================================
   BLOG SECTION
   ================================================ */
.blog-section { padding: 80px 0; background: var(--gray-50); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 8px 30px -8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
}
.blog-card .date {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--black);
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
}
.blog-card .tag {
  display: inline-block;
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-right: 4px;
  margin-bottom: 4px;
}
.blog-card .read-more {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ================================================
   NEWSLETTER — Conversion focused
   ================================================ */
.newsletter-section { padding: 100px 0; text-align: center; }
.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}
.newsletter-inner h2 {
  margin-bottom: 16px;
}
.newsletter-inner p {
  color: var(--gray-500);
  margin-bottom: 32px;
  font-size: 1.05rem;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--black);
  transition: var(--transition);
  background: var(--white);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.newsletter-form input[type="email"]::placeholder { color: var(--gray-400); }

/* ================================================
   SOCIAL PROOF / STATS
   ================================================ */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin: 0 auto;
  max-width: 700px;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================================================
   BOOK LANDING PAGE
   ================================================ */
.book-hero {
  padding: 80px 0;
  color: var(--white);
}
.book-hero-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: center;
}
.book-hero-text h1 { 
  color: var(--white);
  margin-bottom: 12px; 
}
.book-hero-text .subtitle {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-bottom: 28px;
  line-height: 1.6;
}
.book-hero-text .meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  opacity: 0.6;
}
.book-cover-placeholder {
  width: 280px;
  height: 400px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.08);
}

.chapter-list { list-style: none; padding: 0; }
.chapter-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}
.chapter-list .num {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
  min-width: 32px;
}

/* ================================================
   BLOG POST
   ================================================ */
.post-header {
  padding: 80px 0 32px;
  text-align: center;
}
.post-header h1 {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.post-meta {
  max-width: var(--content-width);
  margin: 16px auto 0;
  color: var(--gray-400);
  font-size: 0.88rem;
}

.post-content {
  max-width: var(--content-width);
  margin: 48px auto 80px;
  padding: 0 24px;
}
.post-content h2 { 
  margin-top: 2.5rem; 
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.post-content h3 { margin-top: 1.8rem; }
.post-content ul, .post-content ol { 
  margin-left: 1.5rem; 
  margin-bottom: 1.2rem; 
}
.post-content li { margin-bottom: 0.4rem; }
.post-content img {
  width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.post-content table { 
  width: 100%; 
  border-collapse: collapse; 
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.post-content th, .post-content td { 
  border: 1px solid var(--gray-200); 
  padding: 12px 16px; 
  text-align: left; 
}
.post-content th { 
  background: var(--gray-50); 
  font-weight: 600;
  color: var(--black);
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 1.5rem 0;
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  color: var(--gray-700);
  font-style: italic;
}

.post-book-cta {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  margin: 2.5rem 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.post-book-cta .emoji { font-size: 2.5rem; flex-shrink: 0; }
.post-book-cta strong { display: block; margin-bottom: 4px; color: var(--black); }
.post-book-cta a { font-weight: 600; }

/* ================================================
   ABOUT PAGE
   ================================================ */
.about-header {
  padding: 80px 0 40px;
  text-align: center;
}

/* ================================================
   FOOTER — Clean, minimal
   ================================================ */
.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 56px 0 32px;
  color: var(--gray-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-col h4 { 
  color: var(--black); 
  margin-bottom: 16px; 
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { 
  color: var(--gray-500); 
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--black); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { gap: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 60px 0 48px; }
  .book-card { grid-template-columns: 100px 1fr; gap: 20px; padding: 20px; }
  .book-card-cover { width: 100px; height: 145px; font-size: 2.5rem; }
  .book-card-body h3 { font-size: 1.1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .book-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .book-cover-placeholder { width: 200px; height: 290px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .stats-row { flex-wrap: wrap; gap: 32px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 0.82rem; }
  .section-header { margin-bottom: 36px; }
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}
.related-posts h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-posts ul {
  list-style: none;
  padding: 0;
}
.related-posts li {
  padding: 0.5rem 0;
}
.related-posts li a {
  font-weight: 600;
}
