/* ===================================
   IRENE GRACE DANIELS - AUTHOR SITE
   Color Palette: Grounded Grace
   =================================== */

:root {
  /* Core Brand Colors */
  --deep-sage: #5C6B54;
  --warm-cream: #FAF8F5;
  --soft-taupe: #A89F91;
  --charcoal: #3D3D3D;
  --deep-blush: #C27878;
  --muted-gold: #C9A227;
  
  /* Semantic Mappings */
  --foundation: var(--deep-sage);
  --primary: var(--deep-blush);
  --secondary: var(--deep-sage);
  --accent: var(--muted-gold);
  --background: var(--warm-cream);
  --text: var(--charcoal);
  --white: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --container-max: 1200px;
  --container-narrow: 800px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--text); background-color: var(--background); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--foundation); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--foundation); margin: 0 0 var(--space-sm); }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-sm); }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.container-narrow { max-width: var(--container-narrow); }
.text-center { text-align: center; }

.btn { display: inline-block; padding: 0.875rem 2rem; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 500; text-decoration: none; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-primary { background-color: var(--foundation); color: var(--white); }
.btn-primary:hover { background-color: var(--text); color: var(--white); }
.btn-secondary { background-color: transparent; color: var(--foundation); border: 2px solid var(--foundation); }
.btn-secondary:hover { background-color: var(--foundation); color: var(--white); }
.btn-rose-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-rose-outline:hover { background-color: var(--primary); color: var(--white); }
.btn-accent { background-color: var(--accent); color: var(--white); }
.btn-accent:hover { background-color: var(--primary); }

/* Light buttons for dark backgrounds */
.btn-light { background-color: var(--warm-cream); color: var(--foundation); }
.btn-light:hover { background-color: var(--white); color: var(--text); }
.btn-light-outline { background-color: transparent; color: var(--warm-cream); border: 2px solid var(--warm-cream); }
.btn-light-outline:hover { background-color: var(--warm-cream); color: var(--foundation); }

/* Header & Logo */
.site-header { background-color: var(--white); padding: var(--space-xs) 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo-image { height: 60px; width: auto; transition: opacity 0.3s ease; }
.logo:hover .logo-image { opacity: 0.85; }
.logo-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--foundation); }
.logo:hover .logo-name { color: var(--primary); }
.main-nav .nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--space-md); }
.main-nav a { font-size: 0.9375rem; font-weight: 500; color: var(--text); padding: var(--space-xs) 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary); transition: width 0.3s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--foundation); }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-xs); }
.hamburger { display: block; width: 24px; height: 2px; background-color: var(--foundation); position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 24px; height: 2px; background-color: var(--foundation); }
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.site-footer { background-color: var(--foundation); color: var(--white); padding: var(--space-lg) 0 var(--space-md); margin-top: var(--space-xl); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-tagline { font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; color: var(--warm-cream); margin: 0; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-xs); }
.site-footer a { color: rgba(255, 255, 255, 0.8); font-size: 0.9375rem; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { padding-top: var(--space-md); border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.footer-bottom p { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

.hero { padding: var(--space-xl) 0; text-align: center; }

/* Sage hero with cream text */
.hero-home {
  padding: var(--space-md) 0 var(--space-lg);
  background: linear-gradient(135deg, var(--foundation) 0%, #6B7A62 100%);
}

/* Clean two-column hero with book as star */
.hero-two-col {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-two-col .hero-text-col {
  flex: 1 1 380px;
  text-align: left;
  min-width: 280px;
}
.hero-accent-line {
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  margin-bottom: var(--space-sm);
  border-radius: 2px;
}
.hero-two-col .hero-tagline {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-style: italic;
  color: var(--warm-cream);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}
.hero-two-col .hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-width: 420px;
  color: rgba(255, 255, 255, 0.9);
}
.hero-two-col .hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero-book-feature {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-book-feature img {
  max-width: 220px;
  width: 220px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-book-feature:hover img {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}
.hero-book-feature .btn-book {
  margin-top: var(--space-sm);
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Horizontal 3-column hero: Logo - Text - Book (legacy) */
.hero-horizontal { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-md); align-items: center; max-width: 1000px; margin: 0 auto; }
.hero-logo-col { display: flex; align-items: center; justify-content: center; }
.hero-logo-img { height: 260px; width: auto; }
.hero-text-col { text-align: center; padding: 0 var(--space-sm); }
.hero-text-col .hero-tagline { margin-bottom: var(--space-xs); font-size: 1.35rem; }
.hero-text-col .hero-description { font-size: 0.95rem; margin-bottom: var(--space-sm); max-width: 100%; line-height: 1.6; }
.hero-book-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-book-col img { height: 260px; width: auto; border-radius: 4px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hero-book-col a:hover img { transform: translateY(-4px); box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25); }
.hero-book-col .book-badge { margin-top: var(--space-xs); font-size: 0.75rem; padding: 0.3rem 0.6rem; }

.hero-split { display: grid; grid-template-columns: 1fr 240px; gap: var(--space-lg); align-items: center; text-align: left; max-width: 950px; margin: 0 auto; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: var(--space-sm); }
.hero-tagline { font-family: var(--font-heading); font-size: 1.5rem; font-style: italic; color: var(--primary); margin-bottom: var(--space-md); }
.hero-description { font-size: 1.125rem; margin-bottom: var(--space-md); max-width: 500px; }
.hero-image img { border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
.hero-buttons { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.hero-buttons-center { justify-content: center; }

/* Hero with inline logo */
.hero-logo-inline { height: 200px; width: auto; margin-bottom: var(--space-sm); }

/* Hero book display */
.hero-book { position: relative; text-align: center; }
.hero-book img { max-width: 240px; margin: 0 auto; border-radius: 4px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hero-book a:hover img { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.book-badge { display: inline-block; background-color: var(--primary); color: var(--white); padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-top: var(--space-sm); }

/* Centered Hero Layout */
.hero-centered { text-align: center; max-width: 700px; margin: 0 auto; }
.hero-centered h1 { font-size: 2.75rem; margin-bottom: var(--space-xs); }
.hero-centered .hero-tagline { margin-bottom: var(--space-sm); }
.hero-centered .hero-description { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: var(--space-md); }
.hero-logo { height: 120px; width: auto; margin: 0 auto var(--space-md); }

/* Page hero - sage background with cream tagline */
.page-hero { padding: var(--space-lg) 0; background: linear-gradient(135deg, var(--foundation) 0%, #6B7A62 100%); text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-xs); }
.page-hero p { color: rgba(255, 255, 255, 0.9); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }
.page-hero .hero-tagline { color: var(--warm-cream); }

.section { padding: var(--space-xl) 0; }
.section-alt { background-color: var(--white); }
.section-header { text-align: center; margin-bottom: var(--space-lg); }
.section-header h2 { margin-bottom: var(--space-xs); color: var(--primary); }
.section-header p { font-size: 1.125rem; color: var(--soft-taupe); max-width: 600px; margin: 0 auto; }

.book-feature { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-lg); align-items: start; }
.book-cover { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); border-radius: 4px; overflow: hidden; }
.book-cover img { width: 100%; }
.book-info h3 { font-size: 2rem; margin-bottom: var(--space-xs); }
.book-subtitle { font-family: var(--font-heading); font-style: italic; font-size: 1.25rem; color: var(--primary); margin-bottom: var(--space-md); }
.book-description { margin-bottom: var(--space-md); }
.book-status { display: inline-block; background-color: var(--primary); color: var(--white); padding: var(--space-xs) var(--space-sm); border-radius: 4px; font-size: 0.875rem; font-weight: 500; margin-bottom: var(--space-md); }

/* Book Series Intro */
.series-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.series-intro h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}
.series-intro .series-subtitle {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--foundation);
  margin-bottom: var(--space-md);
}
.series-intro .series-description {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

/* Book Series Grid */
.book-series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.book-card {
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}
.book-card-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-card-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.book-volume {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--soft-taupe);
  margin-bottom: var(--space-xs);
}
.book-card-info h3 {
  font-size: 1.5rem;
  color: var(--foundation);
  margin-bottom: var(--space-xs);
}
.book-card-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.book-verse {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--soft-taupe);
  border-left: 3px solid var(--accent);
  padding-left: var(--space-sm);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
  flex-grow: 1;
}
.book-card-info .btn {
  align-self: flex-start;
  margin-top: auto;
}

.about-preview { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-lg); align-items: center; }
.about-image img { border-radius: 8px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.about-image-small { max-width: 280px; }
.about-image-small img { width: 100%; }
.about-text h2 { margin-bottom: var(--space-sm); color: var(--primary); }
.about-text p { margin-bottom: var(--space-md); }

.about-full { display: grid; grid-template-columns: 350px 1fr; gap: var(--space-lg); align-items: start; }
.about-full .about-image { position: sticky; top: 120px; }
.about-full .about-image img { border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
.about-full .about-bio h2 { margin-top: var(--space-lg); }
.about-full .about-bio h2:first-child { margin-top: 0; }

.blogs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.blog-card { background-color: var(--white); border-radius: 8px; padding: var(--space-md); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; display: block; border-left: 4px solid transparent; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); border-left-color: var(--primary); }
.blog-card h3 { margin-bottom: var(--space-xs); color: var(--primary); }
.blog-card p { color: var(--soft-taupe); margin-bottom: var(--space-sm); }

.newsletter-section { background-color: var(--primary); padding: var(--space-lg) 0; text-align: center; }
.newsletter-section h2 { color: var(--white); margin-bottom: var(--space-xs); }
.newsletter-section p { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-md); }
.newsletter-form { display: flex; gap: var(--space-sm); max-width: 500px; margin: 0 auto; }
.newsletter-form input[type="email"] { flex: 1; padding: 0.875rem var(--space-sm); font-size: 1rem; border: none; border-radius: 4px; font-family: var(--font-body); }
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--accent); }

.posts-list { list-style: none; margin: 0; padding: 0; }
.post-card { background-color: var(--white); border-radius: 8px; padding: var(--space-md); margin-bottom: var(--space-md); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.post-card h2 { font-size: 1.5rem; margin-bottom: var(--space-xs); }
.post-card h2 a { color: var(--foundation); }
.post-card h2 a:hover { color: var(--primary); }
.post-meta { font-size: 0.875rem; color: var(--soft-taupe); margin-bottom: var(--space-sm); }
.post-excerpt { margin-bottom: var(--space-sm); }

.post-header { padding: var(--space-lg) 0; background: linear-gradient(135deg, var(--foundation) 0%, #6B7A62 100%); text-align: center; }
.post-header h1 { color: var(--white); font-size: 2.5rem; max-width: 800px; margin: 0 auto var(--space-sm); }
.post-header .post-meta { color: rgba(255, 255, 255, 0.9); }
.post-content { max-width: var(--container-narrow); margin: 0 auto; padding: var(--space-lg) var(--space-md); }
.post-content p { margin-bottom: var(--space-md); }
.post-content h2 { margin-top: var(--space-lg); }

.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; margin-bottom: var(--space-xs); font-weight: 500; color: var(--foundation); }
.form-group input, .form-group textarea { width: 100%; padding: 0.875rem var(--space-sm); font-size: 1rem; font-family: var(--font-body); border: 2px solid #E5E0DB; border-radius: 4px; background-color: var(--white); transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 150px; resize: vertical; }

/* Rose accent utilities */
.text-rose { color: var(--deep-blush); }
.bg-rose { background-color: var(--deep-blush); }
.border-rose { border-color: var(--deep-blush); }

/* Two-column hero responsive */
@media (max-width: 700px) {
  .hero-two-col {
    flex-direction: column;
    text-align: center;
  }
  .hero-two-col .hero-text-col {
    text-align: center;
    order: 2;
  }
  .hero-accent-line {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-two-col .hero-tagline {
    font-size: 1.6rem;
  }
  .hero-two-col .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-two-col .hero-buttons {
    justify-content: center;
  }
  .hero-book-feature {
    order: 1;
  }
  .hero-book-feature img {
    max-width: 180px;
    width: 180px;
  }
}

@media (max-width: 800px) {
  .hero-horizontal { grid-template-columns: 1fr; gap: var(--space-sm); text-align: center; }
  .hero-logo-col { order: 1; }
  .hero-logo-img { height: 180px; }
  .hero-text-col { order: 2; }
  .hero-book-col { order: 3; }
  .hero-book-col img { height: 180px; }
  
  /* Book series grid to single column */
  .book-series-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .book-card {
    display: grid;
    grid-template-columns: 140px 1fr;
  }
  .book-card-cover {
    aspect-ratio: auto;
    height: 100%;
    min-height: 210px;
  }
  .book-card-info {
    padding: var(--space-sm);
  }
  .book-card-info h3 {
    font-size: 1.25rem;
  }
  .book-card-tagline {
    font-size: 0.95rem;
  }
  .book-verse {
    font-size: 0.8rem;
  }
}

@media (max-width: 968px) {
  .hero-split, .book-feature, .about-preview, .about-full { grid-template-columns: 1fr; }
  .hero-split { text-align: center; max-width: 100%; }
  .hero-logo-inline { margin-left: auto; margin-right: auto; height: 160px; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; max-width: 400px; margin: 0 auto; }
  .hero-book { order: -1; margin-bottom: var(--space-md); }
  .hero-book img { max-width: 180px; }
  .book-cover { max-width: 250px; margin: 0 auto; }
  .about-image { max-width: 250px; margin: 0 auto; }
  .about-image-small { max-width: 220px; }
  .about-full .about-image { position: static; }
  .footer-content { grid-template-columns: 1fr; text-align: center; gap: var(--space-md); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-centered h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1.25rem; }
  .hero-two-col .hero-tagline { font-size: 1.4rem; }
  .hero-logo { height: 100px; }
  .hero-logo-inline { height: 140px; }
  .logo-image { height: 50px; }
  .mobile-menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background-color: var(--white); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); padding: var(--space-md); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav .nav-list { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: var(--space-sm) 0; border-bottom: 1px solid #E5E0DB; }
  .main-nav li:last-child a { border-bottom: none; }
  .blogs-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .section { padding: var(--space-lg) 0; }
  
  .series-intro h2 { font-size: 2rem; }
  .series-intro .series-subtitle { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  :root { --space-md: 1.5rem; --space-lg: 3rem; --space-xl: 4rem; }
  h1 { font-size: 2rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-centered h1 { font-size: 1.75rem; }
  .hero-logo { height: 80px; }
  .hero-logo-inline { height: 120px; }
  .hero-logo-img { height: 140px; }
  .hero-book img { max-width: 150px; }
  .hero-book-col img { height: 140px; }
  .hero-book-feature img { max-width: 160px; width: 160px; }
  .hero-two-col .hero-tagline { font-size: 1.25rem; }
  .logo-image { height: 45px; }
  
  .book-card {
    grid-template-columns: 1fr;
  }
  .book-card-cover {
    aspect-ratio: 2 / 3;
    max-height: 280px;
  }
}
