/* Nosey Nelson & Naughty Nana site styles
   Palette matches the books themselves: the cream/ink combination used
   on their title and "About this book" pages, plus warm accent colours
   from the illustration style guide (honeyed yellows, soft greens, warm
   browns, never bold or saturated). */

:root {
  --cream: #fdf2df;
  --cream-card: #fffdf8;
  --cream-deep: #f5e5c4;
  --ink: #3e2f23;
  --ink-soft: #6f5b47;
  --gold: #e0a94e;
  --gold-deep: #c98f34;
  --green: #7c9473;
  --green-deep: #64785d;
  --brown: #a06a3f;
  --brown-deep: #7c4f2c;
  --border: #e8d9b8;
  --shadow: 0 10px 30px rgba(62, 47, 35, 0.1);
  --radius: 18px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: var(--brown-deep);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

a:hover { color: var(--gold-deep); }

img { max-width: 100%; display: block; }

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

/* ---------- Header / nav ---------- */

.site-header {
  padding: 22px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand .paw {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  gap: 24px;
  font-weight: 700;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.05rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* ---------- Buttons / badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brown);
  color: #fff;
}

.btn-primary:hover { background: var(--brown-deep); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.badge {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}

.badge-available {
  background: var(--green);
  color: #fff;
}

.badge-soon {
  background: var(--cream-deep);
  color: var(--ink-soft);
  border: 1.5px dashed var(--border);
}

.badge-age {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--border);
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 20px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  width: 100%;
  max-width: 480px;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 45%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

/* ---------- Sections ---------- */

section { padding: 44px 0; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-heading p { color: var(--ink-soft); }

.section-alt {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Characters ---------- */

.characters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.character-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.character-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.character-card .character-body {
  padding: 22px 24px 26px;
}

.character-card h3 {
  margin-bottom: 6px;
}

.character-tag {
  font-family: "Baloo 2", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-deep);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Featured book ---------- */

.featured-book {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--cream-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.featured-book .cover-frame img {
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.featured-book .badges {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.price-tag {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brown-deep);
}

/* ---------- Book grid (listing page) ---------- */

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.book-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  color: var(--ink);
}

.book-card .cover-wrap {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--cream-deep), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.book-card .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card .cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
}

.book-card .cover-placeholder .paw-small {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.book-card .cover-placeholder span {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.book-card .card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.book-card .card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.book-card h3 { font-size: 1.15rem; margin-bottom: 2px; }

.book-card .logline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.book-card .read-more {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brown-deep);
}

/* ---------- Book detail page ---------- */

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.book-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: start;
}

.book-detail .cover-frame img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 100%;
}

.book-detail .cover-frame .cover-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cream-deep), var(--cream));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

.book-detail .cover-placeholder .paw-large {
  width: 70px;
  height: 70px;
  opacity: 0.45;
}

.book-detail .badges {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.coming-soon-note {
  background: var(--cream-deep);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--ink-soft);
  margin: 18px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.gallery img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.not-found {
  text-align: center;
  padding: 60px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 20px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer .brand {
  font-size: 1rem;
}

.site-footer .brand .paw { width: 24px; height: 24px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .characters-grid { grid-template-columns: 1fr; }
  .featured-book { grid-template-columns: 1fr; text-align: center; }
  .featured-book .cover-frame { justify-self: center; max-width: 260px; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail .cover-frame { max-width: 280px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.1rem; }
}

@media (max-width: 520px) {
  .books-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
}
