
:root{
  --bg:#f6f3ee;
  --ink:#2f261b;
  --accent:#8c6239;
  --accent-2:#d9c9a3;
  --rustic:#b17d4a;
  --rustic-dark:#8a6138;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Crimson Text", Georgia, serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  font-size:18px;
}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{position:static;padding:.5rem;background:#fff;border:2px solid var(--accent)}
.hero{
  min-height:58vh;
  background:url('images/beagle-book-club-foreword.jpg') center/cover no-repeat;
  position:relative;
}
.hero .overlay{
  background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35));
  min-height:58vh;display:flex;align-items:center;justify-content:center;
  text-align:center;color:#fff;padding:6vh 4vw;
}
.brand h1{margin:0;font-size:clamp(2rem,6vw,4rem);letter-spacing:.5px;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.tagline{font-style:italic;margin-top:.5rem;font-size:clamp(1.05rem,2.5vw,1.35rem)}
.topnav{
  display:flex;gap:18px;justify-content:center;align-items:center;
  background:var(--accent);padding:.6rem 1rem;position:sticky;top:0;z-index:99;
  font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.topnav a{color:#fff;text-decoration:none;font-weight:600}
.topnav a:hover{text-decoration:underline}
.section{max-width:1100px;margin:0 auto;padding:48px 20px}
.section h2{
  color:var(--accent);border-bottom:2px solid var(--accent-2);padding-bottom:6px;margin-top:0;
  font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.section.alt{background:#fff8ee}
.nice-list{margin:.2rem 0 1rem 1.2rem}
.btn{
  display:inline-block;background:var(--accent);color:#fff;padding:10px 18px;border-radius:6px;text-decoration:none;font-weight:600;
  font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.btn:hover{background:#704b2e}
.btn-row{display:flex;gap:10px;flex-wrap:wrap}
.social-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:.75rem}
.social-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;text-decoration:none;font-weight:700;
  font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  border:2px solid rgba(0,0,0,.12);background:var(--rustic);color:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.12), inset 0 0 0 9999px rgba(255,255,255,.02);
}
.social-btn:hover{background:var(--rustic-dark)}
/* Book section */
.book-card{display:flex;gap:20px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e7dcc7;border-radius:12px;padding:18px 20px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.book-copy h3{margin:.2rem 0 .4rem 0;font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;color:var(--accent)}
.book-btn{font-size:1rem}
@media (max-width:700px){.book-card{flex-direction:column;align-items:flex-start}}
/* Gallery grid */
.gallery{display:grid;grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));gap:18px;margin-top:16px}
.card{background:#fff;border:1px solid #e7dcc7;border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.card img{width:100%;height:auto;display:block}
.card figcaption{padding:12px 14px}
.card h3{margin:.1rem 0 .25rem 0;font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;color:var(--accent)}
.card p{margin:0;color:#4b3c2f;font-size:.98rem}
.site-footer{background:#3b2f23;color:#f6f3ee;text-align:center;padding:22px 16px;font-size:.95rem;font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* Book cover + sample box */
.book-cover{max-width:360px;width:100%;height:auto;border:1px solid #e7dcc7;border-radius:8px;box-shadow:0 3px 12px rgba(0,0,0,.08);margin:0 0 12px 0}
details.sample{margin-top:14px;background:#fff;border:1px solid #e7dcc7;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
details.sample > summary{cursor:pointer;padding:10px 14px;font-weight:700;color:#8c6239;font-family:"Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif}
details.sample[open] > summary{border-bottom:1px solid #e7dcc7;background:#fffaf3}
.sample-body{padding:12px 14px}
.sample-body p{margin:.6rem 0}

/* Buy row w/ Kindle badge */
.buy-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
.kindle-badge{height:34px;width:auto;vertical-align:middle}
