/* selfhelpsnacks.com · warm, light, friendly. Brand accent matches the covers.
   accent #E8543F · accent-dark #C43E2C · ink #2B2420 · muted #7A6E66
   bg #FFF9F4 · bg-alt #FBEEE3 · card #FFFFFF · radius 14px */

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2B2420;
  background: #FFF9F4;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #C43E2C; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: #FFF9F4; border-bottom: 1px solid rgba(232, 84, 63, 0.15); }
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
}
.site-header .brand { font-size: 1.2rem; color: #2B2420; white-space: nowrap; }
.site-header .brand strong { color: #E8543F; }
.site-header .brand:hover { text-decoration: none; }
.site-header .site-nav { white-space: nowrap; }
.site-header .site-nav a { margin-left: 1.5rem; color: #2B2420; font-weight: 500; }
.site-header .site-nav a:hover { color: #E8543F; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #FFF9F4 0%, #FBEEE3 100%);
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.hero h1 { font-size: 2.8rem; margin: 0 0 1rem; }
.hero h1 .accent { color: #E8543F; }
.hero .hero-lead { font-size: 1.2rem; color: #7A6E66; max-width: 620px; margin: 0 auto 2rem; }

/* Signup (Kit embed lives inside .kit-embed) */
.kit-embed { max-width: 480px; margin: 0 auto; }
.signup-fine { font-size: 0.85rem; color: #7A6E66; text-align: center; margin-top: 0.75rem; }

/* Buttons & badges */
.btn {
  display: inline-block; padding: 0.8rem 1.4rem; border: none; border-radius: 14px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #E8543F; color: #fff; }
.btn-primary:hover { background: #C43E2C; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.badge-soon {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 14px;
  background: rgba(232, 84, 63, 0.1); color: #C43E2C; font-weight: 600; font-size: 0.9rem;
}
.buy-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: #FBEEE3; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; margin: 0 0 0.5rem; }
.section-header p { color: #7A6E66; max-width: 640px; margin: 0 auto; }
.shelf-label {
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #7A6E66; margin: 2.5rem 0 1.25rem;
}

/* Book grid */
.books-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
}
.book-card {
  display: flex; flex-direction: column;
  background: #FFFFFF; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(43, 36, 32, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(43, 36, 32, 0.12); }
.book-card .book-cover { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; }

/* Cover-style title tile (square stand-in for the tall cover on cards) */
.book-tile {
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; width: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center; line-height: 1.1;
}
.book-tile:hover { text-decoration: none; }
.book-tile .tile-topic { font-size: 12cqw; font-weight: 800; }
.book-tile .tile-series { font-size: 10.5cqw; font-weight: 800; letter-spacing: 0.14em; margin-top: 1cqw; }
.book-card .book-card-body {
  display: flex; flex-direction: column; align-items: flex-start; flex: 1;
  padding: 1rem 1.1rem 1.25rem;
}
.book-card .book-card-body .btn,
.book-card .book-card-body .badge-soon { margin-top: auto; }
.book-card .book-card-title { margin: 0 0 0.4rem; font-size: 1.1rem; }
.book-card .book-card-title a { color: #2B2420; }
.book-card .book-card-desc { font-size: 0.88rem; color: #7A6E66; margin: 0 0 0.9rem; }

/* Book detail */
.book-detail {
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start;
}
.book-detail .book-detail-cover img { border-radius: 14px; box-shadow: 0 8px 24px rgba(43, 36, 32, 0.18); }
.book-detail h1 { margin: 0 0 0.3rem; font-size: 2.2rem; }
.book-detail .book-subtitle { font-size: 1.15rem; color: #7A6E66; margin: 0 0 0.4rem; }
.book-detail .book-byline { font-size: 0.9rem; color: #7A6E66; margin: 0 0 1.5rem; }
.book-detail .book-blurb { margin-bottom: 1.5rem; }
.book-detail .back-link { margin-top: 2.5rem; }

/* Newsletter CTA band */
.newsletter-cta {
  background: #FBEEE3;
  border-top: 1px solid rgba(232, 84, 63, 0.15);
  padding: 3.5rem 0;
}

@media (max-width: 520px) {
  .site-header .header-inner { padding: 0.85rem 1rem; }
  .site-header .brand { font-size: 1rem; }
  .site-header .site-nav a { margin-left: 1rem; font-size: 0.95rem; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 2.1rem; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail .book-detail-cover { max-width: 260px; margin: 0 auto; }
}

/* Three-up feature row */
.three-up {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem;
}
.three-up h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.three-up p { color: #7A6E66; margin: 0; font-size: 0.95rem; }

/* Prose pages */
.prose { max-width: 680px; }
.prose h1 { font-size: 2.2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(232, 84, 63, 0.15);
  padding: 2.5rem 0; text-align: center; color: #7A6E66; font-size: 0.95rem;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer .footer-fine { font-size: 0.8rem; }
