/* Replica of littlemikebooks.com (Squarespace-based) */
/* Fonts loaded from Google Fonts */

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

:root {
  --primary: #1a1a1a;
  --accent: #1e3a5f;
  --btn-bg: #1e3a5f;
  --btn-hover: #152a45;
  --green-accent: #2d5a4a;
  --green-btn-bg: #2d5a4a;
  --green-btn-hover: #234a3c;
  --bg: #ffffff;
  --bg-alt: #f9f7f4;
  --text: #111111;
  --text-light: #555555;
  --border: #e0ddd8;
  --font-heading: 'Inter Tight', sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: #111;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(30,30,30,0.85);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.cart-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: rgba(30,30,30,0.85);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
  padding: 80px 40px;
}

.page-section.alt-bg {
  background: var(--bg-alt);
}

.page-section .section-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Hero section  full-bleed background image */
.hero-section {
  position: relative;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 0;
  text-align: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Light overlay so dark text remains readable on bright image */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.76);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 500;
  color: #111;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.0;
  text-shadow: 0 2px 20px rgba(255,255,255,0.8);
}

.hero-section .tagline {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: rgba(30,30,30,0.88);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-body);
  font-style: italic;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  padding: 1rem 2.8rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
  border: 2px solid #000000;
}

.cta-button:hover {
  background: #333333;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Section headings */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* Post title with subtitle */
.post-title .title-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.4rem;
  letter-spacing: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 2rem;
}

.testimonial {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--accent);
}

.testimonial p {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

/* Author preview */
.author-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.author-preview img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.author-preview h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.author-preview p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.author-preview a {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== BLOG ===== */
.blog-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-post-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
}

.blog-post-card:last-child {
  border-bottom: none;
}

.blog-post-card .post-meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.blog-post-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.blog-post-card h2 .title-sub {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.25rem;
  letter-spacing: 0;
}

.blog-post-card h2 a {
  color: var(--text);
  transition: color 0.2s;
}

.blog-post-card h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.blog-post-card .post-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.read-more-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.read-more-link:hover {
  text-decoration: none;
}

/* Article content */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text);
  line-height: 1.3;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
  color: var(--text);
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
  margin-bottom: 0.5rem;
  font-style: italic;
}

.article-content blockquote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
}

.article-content a:hover {
  text-decoration: none;
}

/* ===== Q&A ===== */
.qa-form-section {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.qa-form {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  margin-top: 0.8rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* How it works */
.how-it-works {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.how-it-works p { margin-bottom: 0.8rem; }
.how-it-works strong { color: var(--text); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 40px;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-light);
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

/* Book cards */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.book-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-cover-img {
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

.book-cover-placeholder {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-light);
  border: 2px dashed var(--border);
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.book-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* View fullsize link */
.view-fullsize {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .nav-toggle { display: block; }
  
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 2rem; width: 100%; }
  
  .page-section { padding: 60px 20px; }
  .hero-section { padding: 60px 20px; }
  
  .author-preview {
    grid-template-columns: 1fr;
  }
  
  .blog-post-card {
    grid-template-columns: 1fr;
  }
  
  .form-row { grid-template-columns: 1fr; }
  
  .book-covers { gap: 1.5rem; }
  .book-cover { width: 160px; }
  
  .books-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-cover-img, .book-cover-placeholder { max-width: 180px; }
}
