:root {
  --ink: #11131a;
  --ink-soft: #2b2f3a;
  --paper: #f6efe7;
  --paper-2: #fffaf1;
  --plum: #725561;
  --plum-dark: #3b2635;
  --gold: #f3c84b;
  --gold-2: #ffd966;
  --teal: #153f46;
  --teal-2: #0f2c32;
  --mint: #b6d6c6;
  --blue: #a9d6e5;
  --shadow: 0 18px 50px rgba(17,19,26,.15);
  --shadow-dark: 0 22px 70px rgba(0,0,0,.4);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter,Montserrat,Arial,sans-serif;
  background: radial-gradient(circle at top left,#fff8ed 0,#f6efe7 34%,#eee2d7 100%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem,3vw,2rem);
  background: rgba(25,24,31,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: #f9f0e7;
  padding: 4px;
}

.brand-text {
  font-family: "Playfair Display",serif;
  font-size: clamp(1.1rem,2.2vw,1.55rem);
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a,
.dropdown-trigger {
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  color: #f8efe8;
  padding: .7rem .9rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-menu a:hover,
.site-menu a.active,
.dropdown-trigger:hover {
  background: rgba(243,200,75,.16);
  color: var(--gold-2);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 12px;
  font-size: 1.5rem;
  padding: .35rem .6rem;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  min-width: 290px;
  list-style: none;
  padding: .65rem;
  margin: 0;
  background: rgba(24,23,29,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: var(--shadow-dark);
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  border-radius: 12px;
  padding: .65rem .85rem;
  color: #f8efe8;
}

.hero,
.page-hero,
.section-block,
.cta-panel,
.story-panel,
.detail-layout,
.book-detail-hero {
  width: min(var(--max),calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(280px,.72fr);
  gap: clamp(2rem,5vw,4rem);
  align-items: center;
  padding: clamp(2.2rem,6vw,5rem) 0;
}

.hero-home {
  min-height: calc(100vh - 82px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 900;
  color: var(--plum);
  margin: 0 0 .65rem;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.cta-panel h2,
.detail-copy h1,
.detail-main h2,
.story-panel h2 {
  font-family: "Playfair Display",serif;
  line-height: 1.02;
  margin: .05rem 0 .9rem;
}

.hero h1 {
  font-size: clamp(2.5rem,6vw,5.4rem);
  letter-spacing: -.04em;
}

.hero-lede,
.page-hero p,
.section-heading p,
.cta-panel p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 900;
  padding: .86rem 1.2rem;
  border: 2px solid transparent;
  transition: transform .2s ease,box-shadow .2s ease,background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,.14);
}

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

.btn-secondary {
  background: #fff;
  color: var(--plum);
  border-color: rgba(114,85,97,.22);
}

.btn-sun {
  background: var(--gold);
  color: #1a1718;
}

.btn-outline-light {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

.btn-small {
  font-size: .82rem;
  padding: .54rem .85rem;
}

.portrait-stack {
  position: relative;
}

.author-portrait {
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 7px solid rgba(255,255,255,.78);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 900;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.section-block {
  padding: clamp(2rem,4vw,3.5rem) 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2,
.cta-panel h2,
.story-panel h2 {
  font-size: clamp(2rem,4vw,3.4rem);
}

.text-link {
  font-weight: 900;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(205px,1fr));
  gap: 1.35rem;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
}

.cover-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(17,19,26,.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(17,19,26,.08);
  overflow: hidden;
  transition: transform .22s ease,box-shadow .22s ease;
}

.cover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cover-link {
  display: block;
  background: #1c1c24;
}

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

.cover-card-body {
  padding: 1rem;
}

.cover-card h3 {
  margin: .25rem 0 .6rem;
  font-size: 1.05rem;
  line-height: 1.18;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  background: rgba(243,200,75,.24);
  color: #583e11;
  border: 1px solid rgba(165,119,0,.16);
  font-weight: 900;
  font-size: .78rem;
  padding: .28rem .65rem;
  margin: 0 0 .75rem;
}

.status-pill.large {
  font-size: .95rem;
  padding: .5rem .9rem;
}

.kids-preview-section,
.kids-series-section:nth-of-type(even) {
  background: linear-gradient(135deg,rgba(182,214,198,.32),rgba(169,214,229,.27));
  border-radius: 36px;
  padding-inline: clamp(1rem,3vw,2rem);
}

.kids-strip-art {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: clamp(.5rem,2vw,1.4rem);
  margin: -.5rem 0 1rem;
}

.kids-strip-art img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.12));
}

.kids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 1.3rem;
}

.kids-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg,#fff,#fff8e7);
  box-shadow: 0 10px 28px rgba(57,40,30,.1);
  border: 1px solid rgba(114,85,97,.1);
}

.kids-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #fff;
}

.kids-card-body {
  padding: 1rem;
}

.kids-label,
.age-label {
  display: block;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--plum);
}

.age-label {
  color: #46675d;
  margin: .2rem 0 .4rem;
}

.kids-card h3 {
  font-family: "Luckiest Guy",Inter,sans-serif;
  letter-spacing: .02em;
  color: var(--teal);
  font-size: 1.25rem;
  line-height: 1.05;
  margin: .45rem 0;
}

.mini-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: .8rem;
}

.kids-card .btn-outline-light {
  color: var(--plum);
  border-color: rgba(114,85,97,.3);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,.5fr);
  gap: 1.4rem;
  align-items: center;
  background: linear-gradient(135deg,var(--teal-2),#1b1f2b);
  color: #fff;
  border-radius: 36px;
  padding: clamp(1.4rem,4vw,3rem);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-dark);
}

.cta-panel .eyebrow,
.detail-copy .eyebrow {
  color: var(--gold);
}

.cta-panel p {
  color: #f1ece7;
}

.retailer-row {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.retailer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  min-width: 145px;
  background: #fff;
  border-radius: 16px;
  padding: .75rem;
  border: 1px solid rgba(17,19,26,.1);
  transition: transform .2s ease;
}

.retailer-card:hover {
  transform: translateY(-3px);
}

.retailer-card img {
  max-height: 38px;
  max-width: 155px;
  object-fit: contain;
}

.retailer-row-dark .retailer-card {
  background: rgba(255,255,255,.94);
}

.site-footer {
  background: #15151d;
  color: #f8efe8;
  margin-top: 3rem;
  padding: 2.3rem 1rem;
}

.footer-inner {
  width: min(var(--max),100%);
  margin: auto;
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-family: "Playfair Display",serif;
  font-weight: 900;
  font-size: 1.4rem;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f6d46b;
  text-decoration: none;
  font-weight: 800;
}

.centered-hero {
  text-align: center;
  padding: clamp(2.5rem,6vw,5rem) 0 1.5rem;
}

.centered-hero h1 {
  font-size: clamp(2.4rem,5vw,4.6rem);
}

.book-detail-page {
  background: radial-gradient(circle at top,#26313b 0,#101319 48%,#090a0d 100%);
  color: #f6efe7;
}

.book-detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0,1fr);
  gap: clamp(2rem,6vw,4rem);
  align-items: center;
  padding: clamp(2.3rem,6vw,5rem) 0;
}

.detail-cover {
  border-radius: 20px;
  box-shadow: var(--shadow-dark);
  border: 4px solid rgba(243,200,75,.68);
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2.5rem,6vw,5rem);
  color: #fff;
}

.tagline {
  font-size: clamp(1.2rem,2.4vw,1.8rem);
  font-family: "Playfair Display",serif;
  color: #f5d678;
  margin: 0 0 1rem;
}

.placeholder-note {
  color: #d7cbc2;
  font-size: .95rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 1.4rem;
  align-items: start;
}

.glass-card,
.side-card {
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: clamp(1.2rem,3vw,2rem);
  box-shadow: var(--shadow-dark);
}

.detail-main h2 {
  font-size: clamp(1.8rem,3vw,2.6rem);
  color: #fff;
}

.detail-main p,
.side-card p,
.side-card li {
  color: #eee2d7;
}

.detail-sidebar {
  display: grid;
  gap: 1rem;
}

.side-card h3 {
  margin-top: 0;
  color: var(--gold);
}

.theme-list {
  padding-left: 1.1rem;
}

.related-books .cover-card {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}

.related-books .cover-card .eyebrow {
  color: var(--gold);
}

.about-hero {
  grid-template-columns: minmax(290px,.7fr) minmax(0,1fr);
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(280px,1fr);
  gap: 1.4rem;
  align-items: center;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(17,19,26,.08);
  border-radius: 36px;
  padding: clamp(1.4rem,4vw,3rem);
  box-shadow: var(--shadow);
}

.wide-photo {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 14px 35px rgba(0,0,0,.14);
  object-fit: cover;
}

.kids-page {
  background: linear-gradient(135deg,#fff9e9 0,#d8f0e2 55%,#e5f3ff 100%);
}

.kids-hero {
  width: min(var(--max),calc(100% - 2rem));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,.9fr);
  gap: 1.4rem;
  align-items: center;
  padding: clamp(2rem,6vw,5rem) 0;
}

.kids-hero h1 {
  font-family: "Luckiest Guy",Inter,sans-serif;
  letter-spacing: .02em;
  font-size: clamp(2.3rem,5vw,4.8rem);
  line-height: 1.03;
  color: var(--teal);
  margin: .2rem 0 1rem;
}

.kids-hero-copy p {
  font-size: 1.08rem;
  max-width: 720px;
}

.kids-hero-art {
  position: relative;
  min-height: 480px;
  border-radius: 42px;
  background: radial-gradient(circle at center,#fff 0,#fff9df 50%,#b6d6c6 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kids-hero-art img {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.15));
}

.float-one {
  width: 30%;
  left: 20%;
  top: 2%;
}
.float-two {
  width: 30%;
  left: 50%;
  top: 2%;
}

.float-five {
  width: 34%;
  left: 4%;
  bottom: 2%;
}

.float-three {
  width: 34%;
  right: 3%;
  bottom: 1%;
}

.float-four {
  width: 35%;
  left: 32%;
  bottom: 0;
}

.character-section {
  background: rgba(255,255,255,.48);
  border-radius: 36px;
  padding-inline: clamp(1rem,3vw,2rem);
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 1rem;
}

.character-card {
  background: #fff;
  border: 1px solid rgba(17,19,26,.08);
  border-radius: 24px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(17,19,26,.07);
}

.character-card img {
  height: 210px;
  width: 100%;
  object-fit: contain;
}

.character-card h3 {
  font-family: "Luckiest Guy",Inter,sans-serif;
  color: var(--plum);
  font-size: 1.35rem;
  margin: .4rem 0;
}

.character-card p {
  font-size: .92rem;
  color: var(--ink-soft);
}

code {
  background: rgba(0,0,0,.12);
  padding: .1rem .35rem;
  border-radius: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(20px);
  background: #11131a;
  color: #fff;
  padding: .85rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-dark);
  z-index: 2000;
  opacity: 0;
  transition: .22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width:900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(25,24,31,.98);
    display: none;
    padding: 1rem;
  }

  .site-nav.open {
    display: block;
  }

  .site-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .site-menu a,
  .dropdown-trigger {
    text-align: left;
    width: 100%;
    display: block;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    min-width: 0;
    background: rgba(255,255,255,.06);
    margin-top: .4rem;
  }

  .hero,
  .kids-hero,
  .book-detail-hero,
  .detail-layout,
  .cta-panel,
  .story-panel {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: auto;
  }

  .detail-cover-wrap {
    max-width: 340px;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .kids-hero-art {
    min-height: 380px;
  }

  .brand-text {
    display: none;
  }
}

@media (max-width:560px) {
  .cover-grid,
  .kids-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .retailer-row {
    flex-direction: column;
  }

  .retailer-card {
    width: 100%;
  }

  .kids-strip-art img {
    height: 82px;
  }

  .site-header {
    padding: .65rem 1rem;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .kids-hero-art {
    min-height: 320px;
  }

  .character-card img {
    height: 180px;
  }
}
