/* Solana Beach Books — Calm Editorial Publisher Theme */
:root {
  --sage: #4c6b61;
  --sage-dark: #354d45;
  --sage-soft: #e6eeeb;
  --linen: #f8f6f1;
  --sand: #ece6da;
  --white: #ffffff;
  --ink: #1f2a27;
  --muted: #586662;
  --terracotta: #b86443;
  --border: #dfd9cd;
  --radius: 12px;
  --max-w: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--linen);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--terracotta); text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  font-weight: 600;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-links a:hover, .nav-links a.active { color: var(--sage); }
.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem !important;
}
.nav-cta:hover { background: var(--sage-dark); text-decoration: none !important; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #273a34 0%, #3d5950 60%, #527368 100%);
  color: var(--white);
  padding: 72px 0 64px;
}
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cde0d9;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.08rem;
  color: #e2ede9;
  margin-bottom: 26px;
  max-width: 660px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--terracotta); color: var(--white); }
.btn-primary:hover { background: #9e5234; color: var(--white); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.45); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-sage { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: var(--sage-dark); color: var(--white); }
.btn-outline-dark { border: 1.5px solid var(--sage); color: var(--sage-dark); background: transparent; }
.btn-outline-dark:hover { background: var(--sage-soft); color: var(--sage-dark); }

/* Sections */
.section { padding: 60px 0; }
.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.85rem; color: var(--ink); line-height: 1.2; }
.section-head p { color: var(--muted); max-width: 640px; margin-top: 6px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, box-shadow 0.16s;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(31, 42, 39, 0.08);
}

/* CSS Book Cover Mockups */
.book-cover-stage {
  background: var(--sand);
  padding: 28px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.book-mockup {
  width: 156px;
  aspect-ratio: 2 / 3;
  border-radius: 3px 8px 8px 3px;
  padding: 20px 14px 16px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -4px 0 0 rgba(0,0,0,0.18) inset, 6px 10px 20px rgba(0,0,0,0.18);
  text-align: center;
}
.book-mockup.large {
  width: 220px;
  padding: 28px 18px 22px;
}
.cover-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cover-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.22;
  font-weight: 700;
}
.book-mockup.large .cover-title { font-size: 1.42rem; }
.cover-sub {
  font-size: 0.64rem;
  opacity: 0.9;
  margin-top: 6px;
  line-height: 1.32;
}
.cover-author {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.28);
  padding-top: 8px;
}

.cover-sage { background: linear-gradient(155deg, #5a7d71 0%, #3b554c 100%); }
.cover-coastal { background: linear-gradient(155deg, #3c6578 0%, #24404d 100%); }
.cover-twilight { background: linear-gradient(155deg, #35415a 0%, #1d2536 100%); }
.cover-clay { background: linear-gradient(155deg, #9a634b 0%, #6d4230 100%); }
.cover-indigo { background: linear-gradient(155deg, #2d3e57 0%, #172130 100%); }
.cover-amber { background: linear-gradient(155deg, #7e5a3c 0%, #523925 100%); }

.book-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.format-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sage-soft);
  color: var(--sage-dark);
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.pill-ebook {
  background: #e6ecf5;
  color: #274066;
}
.book-body h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.25;
}
.book-body h3 a { color: inherit; }
.book-sub {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}
.book-body p {
  font-size: 0.91rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
}
.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  flex-wrap: wrap;
}
.buy-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.buy-links a { color: var(--terracotta); }

/* Book Detail Page */
.page-banner {
  background: #273a34;
  color: var(--white);
  padding: 42px 0 46px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: #b7cfc7;
  margin-bottom: 14px;
}
.breadcrumb a { color: #d5e6e0; }
.page-banner h1 { font-size: clamp(1.85rem, 3.6vw, 2.55rem); line-height: 1.2; margin-bottom: 10px; }
.page-banner p { color: #dceae5; max-width: 780px; font-size: 1.04rem; }

.book-detail-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: start;
}
.content-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.content-box h2 { font-size: 1.4rem; margin-bottom: 12px; color: var(--ink); }
.content-box h3 { font-size: 1.1rem; margin: 18px 0 8px; color: var(--ink); }
.content-box p { margin-bottom: 14px; }
.content-box ul { padding-left: 20px; margin-bottom: 14px; }
.content-box li { margin-bottom: 8px; }

.companion-callout {
  background: var(--sage-soft);
  border: 1px solid #c9dcd5;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.companion-callout h3 { font-size: 1.1rem; color: var(--sage-dark); margin-bottom: 6px; }
.companion-callout p { font-size: 0.94rem; color: var(--ink); margin-bottom: 12px; }

.specs-list { list-style: none !important; padding-left: 0 !important; }
.specs-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.specs-list li:last-child { border-bottom: 0; }
.specs-list strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
}

.buy-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.buy-stack .btn { width: 100%; }

/* Footer */
.site-footer {
  background: #1d2b27;
  color: #b5c6c0;
  padding: 48px 0 32px;
  margin-top: 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d3e1dc; }
.site-footer a:hover { color: #f0b295; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8ea39c;
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .book-detail-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 44px 0 40px; }
}
