*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #24170d;
  --muted: #685747;
  --cream: #fffaf1;
  --paper: #fffdf8;
  --line: rgba(73, 47, 25, 0.14);
  --violet: #6846a6;
  --violet-dark: #4e327e;
  --violet-soft: #eee7fa;
  --sky: #dff2fb;
  --sun: #f2ba35;
  --amber: #c57228;
  --amber-soft: #faead6;
  --sage: #56755d;
  --shadow: 0 18px 55px rgba(43, 27, 14, 0.13);
  --shadow-soft: 0 10px 30px rgba(43, 27, 14, 0.08);
  --display: "Lora", Georgia, serif;
  --body: "Nunito", Arial, sans-serif;
  --max: 1180px;
  --radius: 24px;
  --radius-sm: 14px;
}

html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.65; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1a70b0; outline-offset: 4px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; background: #fff; padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 250, 241, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-shell { max-width: var(--max); margin: 0 auto; min-height: 74px; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-family: var(--display); font-weight: 600; }
.brand img { width: 41px; height: 46px; object-fit: contain; }
.brand span { white-space: nowrap; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.55rem; padding: 0; margin: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--violet-dark); }
.nav-buy { background: var(--violet); color: #fff !important; padding: .65rem 1rem; border-radius: 999px; }
.menu-button { display: none; background: transparent; border: 0; color: var(--ink); padding: .6rem; cursor: pointer; }
.menu-button span { width: 24px; height: 2px; background: currentColor; display: block; margin: 5px 0; }

.wrap { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
.section { padding: clamp(4.2rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.eyebrow { margin: 0 0 .8rem; color: var(--violet-dark); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.eyebrow.amber { color: #925018; }
.section-title { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.12; margin: 0; letter-spacing: -.025em; }
.section-lead { max-width: 700px; margin: 1rem 0 0; color: var(--muted); font-size: 1.08rem; }
.kicker { display: inline-flex; gap: .55rem; align-items: center; padding: .45rem .8rem; border-radius: 999px; color: var(--violet-dark); background: #fff; border: 1px solid rgba(104,70,166,.2); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(242,186,53,.18); }
.hero-intro { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.from-author { color: var(--violet-dark); font-size: .9rem; font-weight: 800; text-decoration-color: rgba(104,70,166,.32); text-underline-offset: .22em; }
.from-author em { font-family: var(--display); font-size: 1.03em; }
.from-author:hover { text-decoration-color: currentColor; }

.button-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.2rem; border-radius: 12px; font-weight: 800; text-decoration: none; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 25px rgba(104,70,166,.24); }
.button-primary:hover { background: var(--violet-dark); }
.button-secondary { background: rgba(255,255,255,.78); border-color: rgba(78,50,126,.25); color: var(--violet-dark); }
.button-amazon { background: #ffad2f; color: #211300; box-shadow: 0 9px 24px rgba(197,114,40,.22); }
.button-small { min-height: 42px; padding: .55rem .9rem; font-size: .9rem; }

.home-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff7e6 0%, #f7edff 50%, #eaf8ff 100%); border-bottom: 1px solid var(--line); }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); opacity: .6; }
.home-hero::before { width: 420px; height: 420px; background: rgba(242,186,53,.16); left: -190px; top: -160px; }
.home-hero::after { width: 520px; height: 520px; background: rgba(104,70,166,.12); right: -240px; bottom: -220px; }
.hero-grid { position: relative; z-index: 1; min-height: calc(100svh - 74px); display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
.hero-copy h1 { font-family: var(--display); font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; margin: 1.2rem 0 1.3rem; }
.hero-copy h1 em { color: var(--violet); font-style: normal; }
.hero-copy > p { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.23rem); max-width: 620px; margin: 0 0 1.7rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 1.4rem; font-size: .86rem; color: var(--muted); font-weight: 700; }
.hero-art { position: relative; min-height: 520px; }
.hero-scene { position: absolute; inset: 0 0 5% 10%; width: 90%; height: 88%; object-fit: cover; object-position: 67% center; border-radius: 48% 22% 34% 22% / 30% 26% 38% 30%; box-shadow: var(--shadow); }
.hero-cover { position: absolute; width: min(58%, 390px); left: 0; bottom: 0; border-radius: 20px; box-shadow: 0 26px 65px rgba(45,28,15,.28); transform: rotate(-2.5deg); border: 5px solid #fff; }
.hero-sticker { position: absolute; right: 2%; top: 5%; width: 118px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--sun); color: #3b2700; font-family: var(--display); font-weight: 700; line-height: 1.1; box-shadow: 0 10px 28px rgba(87,53,3,.2); transform: rotate(8deg); }

.book-feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.feature-art { position: relative; padding: 1.5rem; }
.feature-art::before { content: ""; position: absolute; inset: 8% 0 0 13%; background: var(--amber-soft); border-radius: 34% 66% 55% 45% / 47% 37% 63% 53%; }
.feature-art img { position: relative; width: min(100%, 470px); border-radius: 20px; box-shadow: var(--shadow); }
.feature-copy h2 { font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1.1; margin: .9rem 0 1.1rem; }
.feature-copy p { color: var(--muted); font-size: 1.06rem; }
.theme-chip { display: inline-block; margin: .25rem .4rem .25rem 0; padding: .4rem .7rem; border-radius: 999px; background: var(--amber-soft); color: #7d4516; font-size: .78rem; font-weight: 800; }

.series-section { background: var(--cream); border-block: 1px solid var(--line); }
.series-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.series-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; box-shadow: var(--shadow-soft); }
.series-card img { aspect-ratio: 1; object-fit: cover; }
.series-card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.series-card h3 { font-family: var(--display); font-size: 1.3rem; line-height: 1.25; margin: .25rem 0 .4rem; }
.series-card p { color: var(--muted); margin: 0; font-size: .92rem; }
.series-card .status { margin-top: auto; padding-top: 1rem; color: var(--violet-dark); font-weight: 800; font-size: .82rem; }
.series-card.featured { border: 2px solid rgba(104,70,166,.55); transform: translateY(-8px); }
.new-ribbon { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--sun); border-radius: 999px; padding: .4rem .7rem; font-weight: 900; font-size: .73rem; text-transform: uppercase; letter-spacing: .05em; }

.story-banner { overflow: hidden; position: relative; background: var(--sky); }
.story-banner-grid { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 610px; }
.story-banner-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-banner-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5rem); }
.story-banner-copy blockquote { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 3.25rem); line-height: 1.2; margin: .6rem 0 1.2rem; }
.story-banner-copy p { color: #425c67; font-size: 1.04rem; }

.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.audience-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.audience-card .number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet-dark); font-family: var(--display); font-weight: 700; }
.audience-card h3 { font-family: var(--display); margin: 1rem 0 .5rem; }
.audience-card p { margin: 0; color: var(--muted); }

.author-section { background: linear-gradient(115deg, #211c2c, #46345f); color: #fff; overflow: hidden; }
.author-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.author-photo { width: 100%; max-width: 420px; aspect-ratio: .86; object-fit: cover; object-position: top center; border-radius: 42% 42% 18px 18px; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.author-copy .eyebrow { color: #e8d9ff; }
.author-copy h2 { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.1; margin: 0 0 1.2rem; }
.author-copy p { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.credentials { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.credentials span { padding: .45rem .7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9); font-size: .78rem; }

.reviews-home { background: #fff; }
.review-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.review-panel { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: var(--cream); }
.review-panel h3 { font-family: var(--display); margin: 0 0 .25rem; }
.review-feed { margin-top: 1rem; }
.review-card { padding: 1.15rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.review-stars { color: #e4a900; letter-spacing: .08em; }
.review-quote { font-family: var(--display); font-size: 1.05rem; margin: .6rem 0; }
.review-author { color: var(--muted); font-size: .84rem; font-weight: 800; }
.review-empty, .review-loading { color: var(--muted); font-size: .92rem; }

.follow-strip { background: var(--cream); border-top: 1px solid var(--line); }
.follow-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; }
.social-links a { text-decoration: none; padding: .7rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 800; font-size: .9rem; }

.site-footer { background: #1f1915; color: rgba(255,255,255,.72); padding: 2rem 0; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }

/* Book pages */
.book-hero { overflow: hidden; background: linear-gradient(140deg, var(--cream), var(--violet-soft)); border-bottom: 1px solid var(--line); }
.book-hero.moose { background: linear-gradient(140deg, #fffaf0, #f6e6d0); }
.book-hero-grid { display: grid; grid-template-columns: minmax(290px, 470px) 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; padding-block: clamp(3.8rem, 8vw, 7rem); }
.book-cover-large { border-radius: 22px; box-shadow: var(--shadow); border: 5px solid #fff; }
.book-hero-copy h1 { font-family: var(--display); font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 1.02; letter-spacing: -.04em; margin: 1.1rem 0 1rem; }
.book-hero-copy > p { color: var(--muted); font-size: 1.12rem; }
.book-page-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.book-page-meta span { padding: .42rem .7rem; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 800; }

.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.editorial-grid.reverse .editorial-media { order: 2; }
.editorial-media img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-soft); }
.editorial-copy h2 { font-family: var(--display); font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.15; margin: .6rem 0 1rem; }
.editorial-copy p { color: var(--muted); font-size: 1.04rem; }

.full-bleed-art { background: var(--sky); }
.full-bleed-art img { width: 100%; max-height: 810px; object-fit: cover; }
.art-caption { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.3rem; color: #425c67; }
.art-caption strong { font-family: var(--display); font-size: 1.25rem; color: var(--ink); }

.covers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.cover-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); }
.cover-card img { width: 100%; }
.cover-card figcaption { padding: 1rem 1.2rem; color: var(--muted); }
.cover-card a { text-decoration: none; font-weight: 800; color: var(--violet-dark); }

.parent-note { background: linear-gradient(120deg, #e9f5fa, #f1ecfb); border: 1px solid rgba(104,70,166,.16); border-radius: 24px; padding: clamp(1.7rem, 4vw, 3rem); }
.parent-note h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0 0 .8rem; }
.parent-note p { color: var(--muted); margin: 0; max-width: 850px; }

.reviews-section { background: var(--cream); border-top: 1px solid var(--line); }
.review-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; align-items: start; }
.review-list { display: grid; gap: .8rem; }
.review-form { padding: 1.5rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.review-form h3 { font-family: var(--display); font-size: 1.55rem; margin: 0 0 .25rem; }
.review-form label { display: block; margin-top: 1rem; font-weight: 800; font-size: .86rem; }
.review-form input, .review-form select, .review-form textarea { width: 100%; margin-top: .35rem; border-radius: 10px; border: 1px solid rgba(73,47,25,.3); background: #fffdf9; padding: .72rem .8rem; color: var(--ink); }
.review-form textarea { min-height: 130px; resize: vertical; }
.review-form-note { color: var(--muted); font-size: .78rem; }
.review-message { margin: .8rem 0 0; color: var(--sage); font-weight: 800; }

.compact-author { background: #2f283b; color: #fff; }
.compact-author-grid { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.4rem; align-items: center; }
.compact-author img { width: 110px; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 50%; }
.compact-author h2 { font-family: var(--display); margin: 0 0 .3rem; }
.compact-author p { color: rgba(255,255,255,.78); margin: 0; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links { position: fixed; inset: 74px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.5rem 1.5rem; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .85rem 0; }
  .nav-buy { text-align: center; margin-top: .5rem; padding-inline: 1rem !important; }
  .hero-grid, .book-feature, .story-banner-grid, .author-grid, .book-hero-grid, .editorial-grid, .review-layout { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 3.5rem; }
  .hero-art { min-height: 520px; }
  .feature-art { max-width: 560px; }
  .story-banner-image { min-height: 500px; }
  .series-grid { grid-template-columns: 1fr 1fr; }
  .series-card:last-child { grid-column: 1 / -1; }
  .author-photo { max-width: 360px; }
  .editorial-grid.reverse .editorial-media { order: initial; }
  .compact-author-grid { grid-template-columns: 90px 1fr; }
  .compact-author .button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 2rem), var(--max)); }
  .nav-shell { padding-inline: 1rem; }
  .brand span { font-size: .91rem; }
  .hero-grid { min-height: auto; gap: 2.2rem; }
  .hero-copy h1 { font-size: clamp(2.55rem, 13vw, 3.7rem); }
  .hero-art { min-height: 420px; }
  .hero-scene { inset: 0 0 7% 6%; width: 94%; height: 82%; }
  .hero-cover { width: 55%; }
  .hero-sticker { width: 88px; font-size: .78rem; }
  .button-row .button { width: 100%; }
  .series-heading { align-items: start; flex-direction: column; }
  .series-grid, .audience-grid, .review-columns, .covers-grid, .follow-grid { grid-template-columns: 1fr; }
  .series-card.featured { transform: none; }
  .series-card:last-child { grid-column: auto; }
  .story-banner-image { min-height: 390px; }
  .social-links { justify-content: flex-start; }
  .book-hero-grid { grid-template-columns: 1fr; }
  .book-cover-large { max-width: 420px; margin-inline: auto; }
  .art-caption { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .compact-author-grid { grid-template-columns: 72px 1fr; }
  .compact-author img { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
