/* The Adventures of Dino and Benny — dinobenny.com
   Palette locked to the series character sheet. */

:root {
  --green: #7FC96A;
  --green-dark: #4E8B3C;
  --belly: #E6F4CC;
  --blue: #3E8EDE;
  --blue-dark: #2F6FB0;
  --brown: #C08A5E;
  --muzzle: #ECD5B0;
  --red: #E1483A;
  --red-dark: #C23628;
  --ink: #41382F;
  --cream: #FFF8EC;
  --white: #FFFFFF;
  --sky: #DCEFFD;
  --shadow: 0 6px 24px rgba(65, 56, 47, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', 'Trebuchet MS', sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .logo, .btn {
  font-family: 'Fredoka', 'Trebuchet MS', sans-serif;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.4rem; }

a { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream);
  border-bottom: 2px solid var(--belly);
}
.nav {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 20px; max-width: 1060px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.35rem; font-weight: 700; color: var(--green-dark);
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { margin-left: auto; display: flex; gap: 6px 18px; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 0.98rem;
  padding: 6px 2px; border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red); color: var(--white);
  font-weight: 600; font-size: 1.05rem;
  padding: 13px 28px; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--red-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-dark); }
.btn-blue { background: var(--blue); box-shadow: 0 4px 0 var(--blue-dark); }
.btn-blue:hover { box-shadow: 0 2px 0 var(--blue-dark); }
.btn-green { background: var(--green-dark); box-shadow: 0 4px 0 #38652B; }
.btn-green:hover { box-shadow: 0 2px 0 #38652B; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%);
  padding: 48px 0 20px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 24px; align-items: end;
}
.hero .kicker {
  font-weight: 800; color: var(--green-dark);
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
  margin: 0 0 6px;
}
.hero p.lead { font-size: 1.15rem; max-width: 44ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 30px; }
.hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.hero-art img { filter: drop-shadow(0 10px 12px rgba(65,56,47,0.18)); }
.hero-art .dino { width: min(46%, 240px); margin-right: -20px; z-index: 2; }
.hero-art .benny { width: min(40%, 205px); }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
.section-alt { background: var(--white); }
.center { text-align: center; }
.sub { color: #6d6357; max-width: 62ch; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- Book cards ---------- */
.book-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 30px;
}
.book-card {
  background: var(--white); border-radius: 22px; padding: 20px;
  box-shadow: var(--shadow); text-align: center;
  text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease;
  border: 2px solid transparent;
}
.book-card:hover { transform: translateY(-6px); border-color: var(--belly); }
.book-card img { border-radius: 12px; box-shadow: 0 4px 14px rgba(65,56,47,0.2); }
.book-card .badge {
  display: inline-block; background: var(--belly); color: var(--green-dark);
  font-weight: 800; font-size: 0.8rem; border-radius: 999px;
  padding: 3px 12px; margin: 14px 0 6px;
}
.book-card .badge-soon { background: var(--sky); color: var(--blue-dark); }
.book-card.no-link { cursor: default; }
.book-card.no-link:hover { transform: none; border-color: transparent; }
.book-card h3 { margin: 2px 0 4px; }
.book-card p { margin: 0; font-size: 0.95rem; color: #6d6357; }

/* ---------- Value props ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.prop {
  background: var(--white); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow); border-top: 6px solid var(--green);
}
.prop:nth-child(2) { border-top-color: var(--blue); }
.prop:nth-child(3) { border-top-color: var(--red); }
.prop .emoji { font-size: 1.9rem; display: block; margin-bottom: 8px; }

/* ---------- Meet the characters ---------- */
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.meet-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--white); border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow);
}
.meet-card img { width: 110px; flex-shrink: 0; }
.meet-card p { margin: 4px 0 0; font-size: 0.98rem; }

/* ---------- Email band ---------- */
.email-band { background: var(--belly); }
.email-band .inner {
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.email-band h2 { margin: 0 0 4px; }
.email-band p { margin: 0; }

/* ---------- Book detail page ---------- */
.book-hero { padding-top: 40px; }
.book-layout {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 44px; align-items: start;
}
.book-layout .cover img {
  border-radius: 14px; box-shadow: 0 10px 30px rgba(65,56,47,0.28);
}
.crumbs { font-size: 0.9rem; margin: 18px 0 8px; }
.crumbs a { text-decoration: none; font-weight: 800; }
.book-meta { list-style: none; padding: 0; margin: 18px 0; }
.book-meta li { padding: 4px 0 4px 30px; position: relative; }
.book-meta li::before { content: "✦"; position: absolute; left: 6px; color: var(--green); }
.buy-box {
  background: var(--white); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow); margin-top: 20px;
}
.buy-box .formats { font-size: 0.92rem; color: #6d6357; margin: 10px 0 0; }
.more-strip { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.more-strip a {
  text-align: center; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 0.92rem; width: 150px;
}
.more-strip img { border-radius: 10px; box-shadow: 0 4px 12px rgba(65,56,47,0.22); margin-bottom: 8px; }

/* ---------- Printables ---------- */
.print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.print-card {
  background: var(--white); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow); text-align: center;
}
.print-card .soon {
  display: inline-block; background: var(--sky); color: var(--blue-dark);
  font-weight: 800; font-size: 0.8rem; border-radius: 999px; padding: 3px 12px;
  margin-top: 10px;
}
.print-card .emoji { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.print-card .preview {
  width: 180px; height: auto; border-radius: 10px; margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(65,56,47,0.22); border: 1px solid var(--belly);
}
.print-card .btn { margin-top: 12px; font-size: 0.95rem; padding: 11px 22px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: var(--cream);
  padding: 36px 0; margin-top: 40px; font-size: 0.95rem;
}
footer a { color: var(--belly); }
.foot { display: flex; gap: 16px 40px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.foot .fine { color: #b7ac9e; font-size: 0.85rem; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 70px 20px; }
.lost img { width: 180px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid, .book-layout, .meet { grid-template-columns: 1fr; }
  .book-grid, .props, .print-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .book-layout .cover { max-width: 300px; margin: 0 auto; }
  .hero-art { margin-top: 10px; }
  .hero-art .dino { width: 200px; }
  .hero-art .benny { width: 170px; }
}
