/* ============================================================
   tom/rhodes — unified stylesheet
   Consolidates the previously-fragmented style systems
   (blog/books, discovery, recommends) into one shared sheet.
   Referenced as /style.css from every page.
   ============================================================ */

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2c2c2c;
  background: #faf8f5;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

/* ========== SHARED SITE NAV (used by every section) ========== */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
}
nav.site-nav .logo { display: flex; align-items: center; gap: .6rem; }
nav.site-nav .logo img { height: 40px; width: auto; border-radius: 6px; }
nav.site-nav .logo-wordmark {
  font-family: 'Cormorant Garamond', 'Inter', serif;
  font-size: 1.5rem; font-weight: 600; letter-spacing: .02em;
  color: #f4f1ea; line-height: 1;
}
nav.site-nav .nav-links { display: flex; gap: 2rem; }
nav.site-nav .nav-links a,
nav.site-nav .section-nav a {
  color: #d4d0c8;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}
nav.site-nav .nav-links a:hover,
nav.site-nav .section-nav a:hover,
nav.site-nav .nav-links a.active { color: #c8a96e; }
/* secondary (in-section) nav, e.g. discovery categories */
nav.site-nav .section-nav {
  display: flex; gap: 1.25rem;
  margin-left: 1.5rem; padding-left: 1.5rem;
  border-left: 1px solid rgba(212,208,200,0.25);
}

/* ========== SHARED FOOTER ========== */
footer.site-footer {
  padding: 3rem 2rem;
  background: #12121f;
  text-align: center;
  color: #555568;
  font-size: 0.8rem;
}
footer.site-footer .wrap { max-width: 760px; margin: 0 auto; }
footer.site-footer .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-bottom: 1rem; }
footer.site-footer .footer-nav a { color: #c8a96e; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
footer.site-footer .footer-nav a:hover { color: #dbbe82; }
footer.site-footer p { margin-bottom: 0.3rem; }

/* ========== PAGE HEADER BAND (blog/books) ========== */
.page-header {
  padding: 10rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  color: #faf8f5;
}
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #faf8f5; font-weight: 300; }
.page-header h1 em { font-style: italic; color: #c8a96e; font-weight: 400; }
.page-header p {
  max-width: 550px; margin: 1rem auto 0; color: #a0a0b0;
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic;
}

/* ========== BLOG SECTIONS / POST CARDS ========== */
.blog-sections { max-width: 900px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.section-header { text-align: center; margin-bottom: 3rem; padding-top: 2rem; }
.section-header:first-child { padding-top: 0; }
.section-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.5rem; }
.section-label.novel { color: #c8a96e; }
.section-label.nonfiction { color: #6b8a6b; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #1a1a2e; }
.section-header p { color: #8b8b9b; font-size: 0.9rem; margin-top: 0.3rem; }
.divider { width: 40px; height: 2px; margin: 1rem auto 0; border: none; }
.divider.gold { background: #c8a96e; }
.divider.green { background: #6b8a6b; }
.post-grid { display: grid; gap: 1.5rem; }
.post-card {
  display: block; padding: 1.8rem 2rem; background: #fff;
  border: 1px solid #e8e4de; border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s; color: inherit;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); text-decoration: none; }
.post-card.novel { border-left: 3px solid #c8a96e; }
.post-card.nonfiction { border-left: 3px solid #6b8a6b; }
.post-card-date { font-size: 0.75rem; color: #8b8b9b; margin-bottom: 0.4rem; }
.post-card h3 { font-size: 1.3rem; color: #1a1a2e; margin-bottom: 0.4rem; }
.post-card p { font-size: 0.9rem; color: #5a5a6a; line-height: 1.6; }

/* ========== AMAZON CTA BANNER (blog) ========== */
.amazon-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  padding: 2.5rem 2rem; text-align: center; border-bottom: 2px solid #c8a96e;
}
.amazon-banner h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3vw, 2rem); color: #faf8f5; font-weight: 300; margin-bottom: 0.3rem; }
.amazon-banner h2 em { font-style: italic; color: #c8a96e; }
.amazon-banner p { color: #a0a0b0; font-size: 0.9rem; margin-bottom: 1.5rem; }
.amazon-banner-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.amazon-btn {
  display: inline-block; padding: 0.7rem 1.8rem; background: #c8a96e; color: #1a1a2e;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 4px; transition: background 0.3s, transform 0.2s; text-decoration: none;
}
.amazon-btn:hover { background: #dbbe82; transform: translateY(-2px); text-decoration: none; }
.amazon-btn.outline { background: transparent; color: #c8a96e; border: 1px solid #c8a96e; }
.amazon-btn.outline:hover { background: rgba(200, 169, 110, 0.1); }

/* ========== BOOKS (landing) ========== */
.hero { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%); color: #faf8f5; }
.hero-label { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: #c8a96e; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 300; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: #a0a8c0; max-width: 500px; }
.books { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.book-card { padding: 2rem; background: #fff; border-radius: 8px; border: 1px solid #e8e4de; transition: transform 0.2s, box-shadow 0.2s; }
.book-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.book-number { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #c8a96e; margin-bottom: 0.5rem; font-weight: 600; }
.book-title { font-size: 1.6rem; margin-bottom: 0.5rem; color: #1a1a2e; }
.book-subtitle { font-size: 0.9rem; color: #6b7b8b; margin-bottom: 0.8rem; line-height: 1.5; }
.book-audience { font-size: 0.85rem; color: #8a8a9a; font-style: italic; margin-bottom: 1rem; }
.book-meta { font-size: 0.75rem; color: #a0a0b0; margin-bottom: 1rem; }
.book-link { display: inline-block; padding: 0.6rem 1.5rem; border: 1px solid #c8a96e; color: #c8a96e; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; border-radius: 3px; transition: all 0.2s; }
.book-link:hover { background: #c8a96e; color: #1a1a2e; }
.faq { padding: 4rem 2rem; max-width: 700px; margin: 0 auto; }
.faq-h { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; text-align: center; margin-bottom: 2rem; color: #1a1a2e; }

/* ========== DISCOVERY CONTENT ========== */
.page { max-width: 760px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
.page { padding-top: 7rem; } /* clear fixed nav */
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .4rem; }
.page h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; border-bottom: 1px solid var(--line, #e4e4e4); padding-bottom: .3rem; }
.lead { font-size: 1.15rem; }
.subtitle { font-weight: normal; color: #5a5a5a; font-size: .85em; }
.byline { color: #5a5a5a; font-style: italic; margin: .2rem 0; }
.start-here { background: #f3f8f5; border-left: 4px solid #1d6b4f; padding: .8rem 1rem; margin: 1.5rem 0; border-radius: 4px; }
.start-here h2 { border: 0; margin: .2rem 0 .4rem; }
.intro p { margin: .6rem 0; }
.book-list { list-style: decimal inside; padding-left: 0; }
.book { margin: 1.6rem 0; padding-bottom: 1.2rem; border-bottom: 1px solid #e4e4e4; }
.book-head h3 { margin: .2rem 0; font-size: 1.15rem; }
.why, .who, .strengths, .weaknesses, .similar, .blurb { margin: .4rem 0; }
.weaknesses { color: #7a4b00; }
.pull-quote { border-left: 3px solid #1d6b4f; margin: .6rem 0; padding: .2rem 0 .2rem 1rem; font-style: italic; color: #5a5a5a; }
.cta a { display: inline-block; background: #1d6b4f; color: #fff; text-decoration: none; padding: .5rem .9rem; border-radius: 4px; font-family: system-ui, sans-serif; font-size: .95rem; }
.cta a:hover { background: #15543d; }
.related ul, .faq-list { padding-left: 1.1rem; }
.shop-cta { background: #f3f8f5; border-left: 4px solid #1d6b4f; padding: .8rem 1rem; margin: 1.5rem 0; border-radius: 4px; }
.shop-cta h2 { border: 0; margin: .2rem 0 .4rem; }
.shop-cta a { color: #1d6b4f; font-weight: bold; }
.faq dt { font-weight: bold; margin-top: .8rem; }
.faq dd { margin: .2rem 0 0; }
.eeat { margin-top: 2.5rem; border-top: 1px solid #e4e4e4; padding-top: 1rem; color: #5a5a5a; font-size: .9rem; }
.eeat .disclosure { font-size: .82rem; }
.topic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.topic-card { display: block; border: 1px solid #e4e4e4; border-radius: 8px; padding: 1rem 1.1rem; text-decoration: none; color: #1a1a1a; background: #fff; transition: border-color .15s, box-shadow .15s; }
.topic-card:hover { border-color: #1d6b4f; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.topic-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; color: #1a1a1a; }
.topic-card:hover h3 { color: #1d6b4f; }
.breadcrumb { font-family: system-ui, sans-serif; font-size: .9rem; color: #5a5a5a; margin: 0 0 1rem; }
.breadcrumb a { color: #1d6b4f; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 .4rem; }
.breadcrumb .current { color: #1a1a1a; }
.journey-list { list-style: none; padding: 0; margin: 1.2rem 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .7rem; }
.journey-list li { margin: 0; display: flex; }
.journey-list a { flex: 1; display: block; padding: .75rem .95rem; border: 1px solid #e4e4e4; border-radius: 8px; background: #fff; text-decoration: none; color: #1a1a1a; font-family: system-ui, sans-serif; font-size: .96rem; line-height: 1.35; transition: border-color .15s, box-shadow .15s, color .15s; }
.journey-list a:hover { border-color: #1d6b4f; box-shadow: 0 2px 10px rgba(0,0,0,.06); color: #1d6b4f; }
.journey-list a:focus-visible { outline: 2px solid #1d6b4f; outline-offset: 2px; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.hub-card { display: block; border: 1px solid #e4e4e4; border-radius: 8px; padding: 1.2rem; text-decoration: none; color: #1a1a1a; background: #fff; transition: border-color .15s, box-shadow .15s; }
.hub-card:hover { border-color: #1d6b4f; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.hub-card h2 { margin: .2rem 0 .4rem; color: #1d6b4f; font-size: 1.2rem; }
.hub-card p { margin: 0; color: #5a5a5a; font-size: .92rem; }

/* ========== RECOMMENDS (sg-* system, kept) ========== */
.sg-wrapper { max-width: 1200px; margin: 0 auto; padding: 7rem 1.5rem 5rem; }
.sg-index-hero { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 2.5rem; box-shadow: 0 4px 18px rgba(15,23,42,.09); }
.sg-index-hero-bg { position: absolute; inset: 0; background: linear-gradient(150deg, #0f2040 0%, #1a0a3e 70%, #2d1b69 100%); }
.sg-index-hero-bg-accent { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(79,70,229,.35), transparent 70%); }
.sg-index-hero-inner { position: relative; z-index: 1; padding: 4rem 2rem; text-align: center; color: #fff; }
.sg-index-tag { display: inline-block; font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .3rem .9rem; border-radius: 20px; margin-bottom: 1rem; color: #a5b4fc; }
.sg-index-title { font-family: 'Poppins', sans-serif; font-size: 2.85rem; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1.08; margin-bottom: .5em; }
.sg-index-sub { font-family: 'Poppins', sans-serif; font-weight: 300; color: #94a3b8; font-size: 1.1rem; }
.sg-index-count { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(79,70,229,.35); border: 1px solid rgba(79,70,229,.45); color: #a5b4fc; padding: .45rem 1.2rem; border-radius: 20px; }
.sg-list-grid { display: grid; grid-template-columns: 1fr; gap: .65rem; }
@media (min-width: 640px) { .sg-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sg-list-grid { grid-template-columns: repeat(3, 1fr); } }
.sg-list-card { background: #fff; border: 1px solid #e2d5c3; border-radius: 10px; padding: 1.15rem 1.3rem; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04); transition: transform .18s ease, box-shadow .2s, border-color .2s, background .18s; display: block; position: relative; overflow: hidden; }
.sg-list-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(15,23,42,.13); border-color: #c9b89a; background: #fffdfb; color: inherit; }
.sg-list-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #4f46e5, #6366f1); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.sg-list-card:hover::after { transform: scaleX(1); }
.sg-list-card-title { font-family: 'Poppins', sans-serif; font-size: .94rem; font-weight: 700; color: #0f172a; line-height: 1.3; margin-bottom: .3em; transition: color .18s; }
.sg-list-card:hover .sg-list-card-title { color: #4f46e5; }
.sg-list-card-meta { font-family: 'Poppins', sans-serif; font-style: italic; color: #64748b; font-size: .78rem; margin-bottom: .45em; }
.sg-list-card-count { font-family: 'Poppins', sans-serif; font-size: .72rem; color: #d97706; font-weight: 600; padding: .15rem .6rem; border-radius: 12px; background: #fffbeb; display: inline-block; }
.sg-footer { text-align: center; color: #64748b; font-family: 'Poppins', sans-serif; font-size: .78rem; padding: 2.5rem 1rem; border-top: 1px solid #e2d5c3; margin-top: 3rem; }
@media (max-width: 580px) { .sg-wrapper { padding: 6rem 1rem 4rem; } .sg-index-title { font-size: 2rem; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  nav.site-nav { padding: 0.75rem 1rem; flex-wrap: wrap; }
  nav.site-nav .nav-links { gap: 1rem; }
  nav.site-nav .nav-links a { font-size: 0.7rem; }
  nav.site-nav .section-nav { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .blog-sections { padding: 3rem 1.5rem 4rem; }
  .books-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  nav.site-nav .nav-links { display: none; }
  .page-header { padding: 8rem 1.5rem 3rem; }
}
