/* ============================================================
   Black Cat Mysteries — stylesheet
   Palette: pastel pink, pastel green, warm coral/orange
   ============================================================ */

:root {
  --pink:        #f6d4d7;
  --pink-soft:   #fce4e6;
  --green:       #d6e7c1;
  --green-soft:  #e6efd6;
  --coral:       #e07a52;
  --coral-deep:  #c95f3a;
  --peach:       #f1b69a;
  --cream:       #fdfaf5;
  --ink:         #2a2a2a;
  --ink-soft:    #4a4a4a;
  --muted:       #7a7a7a;

  --font-typewriter: "Special Elite", "Courier Prime", "Courier New", monospace;
  --font-script: "Caveat", "Brush Script MT", cursive;
  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.10);

  --radius: 14px;
  --radius-lg: 22px;

  --max: 1140px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--coral-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--coral); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.script-heading {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.section-heading {
  font-family: var(--font-typewriter);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--coral-deep);
  letter-spacing: 0.02em;
}

.accent { color: var(--coral-deep); font-weight: 600; }
.link-accent { color: var(--coral-deep); border-bottom: 1px dotted var(--coral-deep); }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--coral);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary:hover {
  background: var(--coral-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

/* ---------- header ---------- */
.site-header {
  position: relative;
  background: linear-gradient(180deg, var(--green-soft) 0%, var(--green) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  position: relative;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 24px 28px;
  background: var(--pink-soft);
  background: linear-gradient(180deg, var(--pink-soft) 0%, var(--pink) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 18px; color: inherit; }
.brand-logo {
  width: 78px; height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
  transition: transform .5s ease;
}
.brand:hover .brand-logo { transform: translateY(-3px) rotate(-3deg); }

.brand-title {
  font-family: var(--font-typewriter);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-tagline {
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
  letter-spacing: 0.08em;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid var(--ink-soft);
  animation:
    typewriterReveal 2.4s steps(22, end) 0.6s forwards,
    cursorBlink 0.7s step-end 3s 4 forwards;
}
@keyframes typewriterReveal {
  from { width: 0; }
  to   { width: 23.5ch; }
}
@keyframes cursorBlink {
  0%        { border-right-color: var(--ink-soft); }
  50%, 100% { border-right-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-tagline {
    animation: none;
    width: auto;
    border-right: none;
  }
}

/* ---------- nav ---------- */
.site-nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 0;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.nav-menu a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .25s ease, color .25s ease;
}
.nav-menu a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-menu a.active { background: var(--coral); color: #fff; }

.nav-toggle {
  display: none;
  background: var(--ink);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- banner ---------- */
.header-banner {
  background: var(--ink);
  color: var(--pink-soft);
  text-align: center;
  padding: 12px 20px;
  font-family: var(--font-typewriter);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.header-banner strong { color: var(--coral); font-weight: 400; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: #fdfdfb;
  padding: 0 0 0;
  overflow: visible;
}
.hero-divider {
  position: relative;
  background: radial-gradient(ellipse at top, var(--pink-soft) 0%, transparent 70%);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-divider::before, .hero-divider::after {
  content: "";
  position: absolute;
  top: 0; height: 80px; width: 50%;
  background: var(--pink-soft);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.hero-divider::before { left: 0; transform-origin: top right; }
.hero-divider::after { right: 0; transform-origin: top left; }
.hero-divider .clue-trigger {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s ease;
}
.hero-divider .clue-trigger::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,199,92,0.80) 0%, rgba(241,199,92,0.35) 50%, transparent 78%);
  z-index: 0;
  pointer-events: none;
  animation: cluePulse 5.5s ease-in-out infinite;
}
.hero-divider .clue-trigger img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}
.hero-divider .clue-trigger:hover {
  transform: scale(1.22);
}
.hero-divider .clue-trigger[aria-expanded="true"] {
  transform: scale(0.94);
}
.hero-divider .clue-trigger[aria-expanded="true"]::before {
  animation-play-state: paused;
  opacity: 0.4;
}
@keyframes cluePulse {
  0%, 100% { opacity: 0.18; transform: scale(0.92); }
  50%      { opacity: 0.7;  transform: scale(1.05); }
}

/* clue note — torn parchment (case file pop-out) */
.clue-note {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  max-width: 380px;
  width: calc(100vw - 48px);
  z-index: 10;
  pointer-events: auto;
}
.clue-note[hidden] { display: none; }
.clue-note.is-open {
  animation: noteUnfurl 0.7s linear forwards;
}
@keyframes noteUnfurl {
  0%   { opacity: 0; clip-path: inset(0 0 0 100%); }
  15%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

.clue-note-inner {
  position: relative;
  padding: 34px 34px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(120, 80, 30, 0.18) 100%),
    radial-gradient(ellipse at 22% 30%, rgba(120, 80, 30, 0.07), transparent 45%),
    radial-gradient(ellipse at 78% 70%, rgba(110, 75, 25, 0.09), transparent 40%),
    radial-gradient(ellipse at 58% 12%, rgba(130, 90, 40, 0.06), transparent 32%),
    radial-gradient(ellipse at 12% 82%, rgba(120, 80, 35, 0.07), transparent 36%),
    radial-gradient(ellipse at 90% 25%, rgba(100, 65, 20, 0.05), transparent 28%),
    linear-gradient(135deg, #f5e6c0 0%, #ead7a4 60%, #e2cc92 100%);
  filter: drop-shadow(0 14px 18px rgba(60, 40, 10, 0.28)) drop-shadow(0 4px 6px rgba(60, 40, 10, 0.15));
  clip-path: polygon(
    0% 5%, 4% 1%, 9% 4%, 15% 0%, 22% 3%, 29% 1%, 36% 4%, 43% 2%, 50% 0%, 57% 3%, 64% 1%, 71% 4%, 78% 0%, 85% 3%, 92% 1%, 100% 4%,
    100% 12%, 97% 20%, 100% 28%, 98% 36%, 96% 44%, 100% 52%, 97% 60%, 100% 68%, 98% 76%, 96% 84%, 100% 92%,
    100% 96%, 92% 100%, 85% 97%, 78% 100%, 71% 96%, 64% 100%, 57% 97%, 50% 99%, 43% 96%, 36% 100%, 29% 97%, 22% 100%, 15% 96%, 9% 100%, 4% 97%, 0% 96%,
    2% 88%, 0% 80%, 3% 72%, 1% 64%, 0% 56%, 4% 48%, 0% 40%, 2% 32%, 0% 24%, 3% 16%, 0% 8%
  );
}

.clue-note-label {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #8a4a25;
  margin: 0 0 12px;
}
.clue-note-text {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: #3a2410;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.clue-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #8a4a25;
  cursor: pointer;
  padding: 4px 8px;
}
.clue-close:hover { color: #5a2f15; }

/* curved section transitions */
.curve {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  pointer-events: none;
}
.curve-top {
  top: -1px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: #fdfdfb;
}
.curve-bottom {
  bottom: -1px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--green-soft);
}

/* wiggly coral divider — sits on cream between hero and featured */
.wiggly-divider {
  position: relative;
  z-index: 1;
  color: var(--coral);
  width: 100%;
  margin: 30px 0 0;
  padding: 0 0 14px;
  background: #fdfdfb;
}
.wiggly-divider svg {
  display: block;
  width: 100%;
  height: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
.hero-grid > * { min-width: 0; }
.hero-image img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-copy .btn-primary { margin-top: 1.5rem; }

.newsletter-form-hero {
  margin-top: 1.6rem;
  max-width: 440px;
  justify-content: flex-start;
}
.newsletter-form-hero .form-msg { text-align: left; }
@media (max-width: 860px) {
  .newsletter-form-hero {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .newsletter-form-hero .form-msg { text-align: center; }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slideInRight {
  0%   { transform: translateX(80px); opacity: 0; }
  70%  { transform: translateX(-6px); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes nudgeRight {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}
.btn-slide-in {
  animation:
    slideInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both,
    nudgeRight 2.4s ease-in-out 4s 2;
}
.btn-slide-in:hover { animation: none; }

/* ---------- featured book ---------- */
.featured {
  position: relative;
  background: #f5c4a4;
  padding: 90px 0 140px;
  color: var(--ink);
  overflow: hidden;
}

.featured-overline {
  text-align: center;
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 10px;
}
.featured-heading {
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 64px;
  line-height: 1.05;
}

.featured-book {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1020px;
  margin: 0 auto;
  background: rgba(255,255,255,0.55);
  border: 4px double var(--coral);
  border-radius: 6px;
  padding: 36px 40px;
}

.featured-cover {
  position: relative;
  transform: rotate(-3deg);
  transition: transform .5s ease;
}
.featured-cover:hover { transform: rotate(-1deg) translateY(-6px); }
.featured-cover img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 24px 44px rgba(0,0,0,0.18),
    0 8px 16px rgba(0,0,0,0.10),
    -4px 4px 0 rgba(0,0,0,0.06);
}
.featured-cover::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 8%; right: 8%;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.18), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.featured-copy { padding-top: 4px; }

.featured-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--coral-deep);
  border-left: 3px solid var(--coral);
  padding: 4px 0 4px 18px;
  margin: 0 0 28px;
}
.featured-tagline:empty { display: none; }

.featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.15;
}
.featured-series {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}
.featured-author {
  margin: 0 0 26px;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--coral-deep);
}

.featured-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.featured-meta li {
  background: rgba(255,255,255,0.7);
  color: var(--coral-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(201,95,58,0.18);
}

.featured-blurb {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 32px;
}

.featured-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-block;
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--coral-deep);
  border: 1.5px solid var(--coral);
  padding: 12.5px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-ghost:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 760px) {
  .featured { padding: 60px 0 80px; }
  .featured-book {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 520px;
  }
  .featured-cover { max-width: 260px; margin: 0 auto; }
  .featured-copy { text-align: left; }
  .featured-tagline { font-size: 1.05rem; }
}

/* ---------- author ---------- */
.author {
  background: var(--green-soft);
  padding: 4px 0 36px;
  text-align: center;
}
.author .section-heading { margin: 0 0 1.25rem; }
.author .section-heading { color: var(--ink); }

.author-card {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255,255,255,0.55);
  border: 3px double var(--coral);
  border-radius: 8px;
  padding: 28px 26px 30px;
}
.author-portrait {
  width: 160px; height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(135deg, #e9e2d6, #d6cbb7);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .4s ease;
}
.author:hover .author-portrait { transform: scale(1.04) rotate(-2deg); }
.author-name-mark {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1;
}
.author-card h3 {
  font-family: var(--font-typewriter);
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.author-card p { margin: 0; color: var(--ink-soft); }

/* ---------- newsletter ---------- */
.newsletter {
  position: relative;
  background: #fff;
  padding: 50px 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}
.newsletter-bg {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.newsletter-bg-right { transform: scaleX(-1); }

.newsletter-card {
  position: relative;
  z-index: 2;
  flex: 0 1 480px;
  max-width: 480px;
  background: #fff;
  padding: 42px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--ink);
}
.newsletter-card h2 {
  font-family: var(--font-typewriter);
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.newsletter-card p { margin: 0 0 22px; color: var(--ink-soft); }

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 220px;
  padding: 14px 18px;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.newsletter-form input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(224,122,82,0.15);
}
.form-msg { width: 100%; margin: 10px 0 0; color: var(--coral-deep); font-family: var(--font-typewriter); font-size: 0.9rem; min-height: 1.2em; }

/* ---------- peeking cat ---------- */
.peeking-cat-wrap {
  position: relative;
  text-align: right;
  padding: 0 80px 0 24px;
  margin-bottom: -135px;
  pointer-events: none;
  line-height: 0;
}
.peeking-cat {
  display: inline-block;
  height: 200px;
  width: auto;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: bottom center;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.peeking-cat:hover { transform: translateY(-6px); }
.peeking-cat.meowing { animation: catWiggle 0.6s ease; }
@keyframes catWiggle {
  0%, 100% { transform: rotate(0) translateY(0); }
  25%      { transform: rotate(-7deg) translateY(-8px); }
  50%      { transform: rotate(0) translateY(-4px); }
  75%      { transform: rotate(7deg) translateY(-8px); }
}
@media (max-width: 640px) {
  .peeking-cat { height: 150px; }
  .peeking-cat-wrap { margin-bottom: -100px; padding-right: 30px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0 30px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }

.footer-extras {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 36px;
}
.footer-extra { min-width: 220px; max-width: 320px; }
.footer-extra {
  text-align: center;
  border: 1px dashed rgba(241, 182, 154, 0.35);
  border-radius: 8px;
  padding: 16px 20px;
}
.extra-label {
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--peach);
  margin: 0 0 6px;
}
.extra-value {
  font-family: var(--font-script);
  color: var(--cream);
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.25;
}
/* ----------------------------------------------------------------
   Sleuth badge — pinned "member stamp" in the top corner of the page.
   Rotated slightly, dashed border, postmark energy. Personal to the visitor.
   ---------------------------------------------------------------- */
.sleuth-badge {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 5;
  transform: rotate(-6deg);
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
  pointer-events: auto;
  opacity: 0;
  animation: sleuthBadgeIn 600ms ease 300ms forwards;
}
.sleuth-badge:hover {
  transform: rotate(-2deg) scale(1.05);
}
.sleuth-badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 18px 9px;
  min-width: 118px;
  background: var(--cream, #fdf5e6);
  color: var(--charcoal, #2b2b2b);
  border: 2px dashed rgba(224, 122, 82, 0.75);
  border-radius: 6px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18), 0 0 0 4px rgba(253, 245, 200, 0.85);
  font-family: var(--font-typewriter, 'Special Elite', monospace);
  text-align: center;
  line-height: 1.05;
}
.sleuth-badge-word {
  font-weight: 700;
}
.sleuth-badge-star {
  font-size: 0.85rem;
  color: var(--peach, #e07a52);
  letter-spacing: 0.2em;
}
.sleuth-badge-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--peach, #e07a52);
  margin-top: 2px;
}
.sleuth-badge-number {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--charcoal, #2b2b2b);
  margin-top: 2px;
}
@keyframes sleuthBadgeIn {
  0%   { opacity: 0; transform: rotate(-20deg) scale(0.6); }
  70%  { opacity: 1; transform: rotate(-3deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@media (max-width: 640px) {
  .sleuth-badge { top: 10px; right: 14px; transform: rotate(-4deg); }
  .sleuth-badge-inner { min-width: 96px; padding: 7px 12px 6px; }
  .sleuth-badge-number { font-size: 0.95rem; }
  .sleuth-badge-label { font-size: 0.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sleuth-badge { animation: none; opacity: 1; }
}
.footer-mark { cursor: pointer; }
.footer-mark.meowing { animation: catWiggle 0.6s ease; }

@media (max-width: 640px) {
  .footer-extras { grid-template-columns: 1fr; gap: 14px; }
  .extra-value { font-size: 1.2rem; }
}
.footer-mark {
  width: 70px; height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--cream);
  padding: 6px;
  margin-bottom: 8px;
}
.footer-brand {
  font-family: var(--font-typewriter);
  font-size: 1.5rem;
  margin: 0;
}
.footer-tagline {
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--peach);
  margin: 0 0 18px;
}
.footer-social { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0 0 24px; }
.footer-social a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-family: var(--font-typewriter);
  transition: background .25s ease, transform .25s ease, color .25s ease;
}
.footer-social a:hover {
  background: var(--coral);
  color: #fff;
  transform: translateY(-3px);
}
.footer-copy { margin: 0; font-size: 0.8rem; color: rgba(253,250,245,0.5); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s ease;
  will-change: opacity, transform;
}
.reveal[data-reveal="left"] { transform: translateX(-40px); }
.reveal[data-reveal="right"] { transform: translateX(40px); }
.reveal.is-visible { opacity: 1; transform: translate(0,0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal[data-reveal="left"], .reveal[data-reveal="right"] {
    opacity: 1; transform: none; transition: none;
  }
  .hero-image img, .hero-divider .clue-trigger, .clue-note.is-open, .btn-slide-in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- library pages ---------- */
.library-main {
  /* pure white so the spines' white photo backgrounds disappear into the page */
  background: #fff;
  padding: 70px 24px 30px;
}
.library-intro { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.library-intro h2 {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--coral-deep);
  margin: 0 0 10px;
  line-height: 1.05;
}
.library-intro p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.library-title-image {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto 10px;
}

.bookshelf {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
}
.shelf-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.shelf-row::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%; bottom: 0;
  height: 16px;
  background: linear-gradient(180deg, #a06b46 0%, #6b3f23 60%, #4a2b16 100%);
  border-radius: 3px;
  box-shadow: 0 12px 18px rgba(58,32,12,0.22);
}
.shelf-row::before {
  content: "";
  position: absolute;
  left: -4%; right: -4%; bottom: 16px;
  height: 2px;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
}

/* spines variant — wooden shelf PNG, white dropped from spines */
.bookshelf-frame {
  position: relative;
  padding: 0;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 1100px;
}

.bookshelf-frame .shelf-row.spines {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 40px;
  margin: 0;
  flex-wrap: wrap;
}
/* remove the previously-drawn CSS shelf bars */
.bookshelf-frame .shelf-row.spines::after,
.bookshelf-frame .shelf-row.spines::before {
  display: none;
}

.shelf-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 1100px;
  /* plank top sits ~36% down the 3:1 image; lift it so books rest 15px into the plank at any width */
  margin: calc(-11.9% - 15px) auto 0;
  pointer-events: none;
  user-select: none;
}

.cat-by-plant {
  position: absolute;
  right: 40px;
  bottom: -10px;
  height: 220px;
  width: auto;
  z-index: 1;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}

.bookshelf-frame { padding-bottom: 0; }

.spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  transform-origin: bottom center;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.spine img {
  display: block;
  height: 340px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.spine:hover {
  transform: translateY(-14px) rotate(-1.2deg);
  color: var(--coral-deep);
}
.spine-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: inherit;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* covers variant */
.shelf-row.covers { gap: 36px; align-items: flex-end; }
.book {
  text-align: center;
  cursor: pointer;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.book img {
  display: block;
  height: 260px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,0.22));
  transition: filter .4s ease;
}
.book:hover {
  transform: translateY(-12px) rotate(-1deg);
}
.book:hover img {
  filter: drop-shadow(0 22px 24px rgba(0,0,0,0.30));
}
.book .label {
  display: block;
  margin-top: 14px;
  font-family: var(--font-typewriter);
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* Spines come in two groups of three: side by side on one long shelf on wide screens,
   stacked on two shelves where all six won't fit on one line */
.spine-group {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

@media (max-width: 900px) {
  .bookshelf-frame .shelf-row.spines {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    gap: 124px;
    padding: 0 0 100px;
  }
  .spine-group::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    top: calc(100% - 12px);
    aspect-ratio: 3 / 1;
    transform: translateY(-35.75%);
    background: url("Untitled%20design%20(3).png") center / 100% auto no-repeat;
    z-index: 2;
    pointer-events: none;
  }
  .shelf-img { display: none; }
}

@media (max-width: 720px) {
  .bookshelf-frame .shelf-row.spines { gap: 96px; padding-bottom: 72px; }
  .shelf-row.spines .spine img { height: 240px; }
  .shelf-row.covers .book img { height: 200px; }
  .bookshelf { gap: 44px; }
  .bookshelf-frame { padding: 20px 18px 0; }
  .bookshelf-frame .shelf-row.spines::after,
  .bookshelf-frame .shelf-row.spines::before { left: -18px; right: -18px; }
  .spine-label { font-size: 0.78rem; }
}

/* picker (library landing) */
.library-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 820px;
  margin: 40px auto 0;
}
.picker-card {
  display: block;
  position: relative;
  padding: 28px 24px 26px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.picker-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.picker-card h3 {
  font-family: var(--font-typewriter);
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: var(--coral-deep);
}
.picker-card p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.picker-card .picker-preview {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 160px;
  gap: 4px;
  margin-bottom: 18px;
}
.picker-card .picker-preview img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.18));
}
.picker-card .picker-preview.covers img {
  height: 130px;
}
.picker-card .picker-cta {
  display: inline-block;
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
  border-bottom: 1px solid var(--coral-deep);
}

/* ---------- mystic mog page ---------- */
.mystic-main {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(180, 150, 210, 0.25), transparent 60%),
    linear-gradient(180deg, #f4eef9 0%, #ebe3f3 100%);
  padding: 70px 24px 110px;
  text-align: center;
  min-height: 60vh;
  overflow: hidden;
}
.mystic-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.mystic-intro,
.mystic-stage,
.mystic-reveal {
  position: relative;
  z-index: 1;
}
.mystic-reveal { scroll-margin: 24px; }
@media (prefers-reduced-motion: reduce) {
  .mystic-sparkles { display: none; }
}
.mystic-intro {
  max-width: 580px;
  margin: 0 auto 64px;
}
.mystic-title {
  font-family: "Berkshire Swash", "Caveat", cursive;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: #5a3d7a;
  margin: 0 0 6px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.mystic-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #6a4a8a;
  margin: 0;
}
.mystic-blurb {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: #3f2864;
  margin: 16px auto 0;
  max-width: 520px;
}

.mystic-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}
.mystic-cat {
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  background: #9688a9;
  transition: transform .35s ease;
  animation:
    mysticGlow 4.5s ease-in-out infinite,
    mysticBob 5s ease-in-out infinite;
}
.mystic-cat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.18);
  pointer-events: none;
  user-select: none;
}
.mystic-cat:hover {
  transform: scale(1.04) translateY(-6px);
  animation-play-state: paused;
}
.mystic-cat:active { transform: scale(0.97); }

@keyframes mysticBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

@keyframes mysticGlow {
  0%, 100% {
    box-shadow:
      0 0 0 6px #fffaf0,
      0 0 0 10px #5a3d7a,
      0 22px 44px rgba(60, 30, 80, 0.30),
      0 0 24px 8px rgba(255, 220, 70, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 6px #fffaf0,
      0 0 0 10px #5a3d7a,
      0 22px 44px rgba(60, 30, 80, 0.30),
      0 0 80px 38px rgba(255, 220, 70, 1);
  }
}

.mystic-hint {
  margin-top: 52px;
  font-family: var(--font-typewriter);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f2864;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
  transition: opacity .35s ease;
}

.mystic-reveal {
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.mystic-reveal[hidden] { display: none; }
.mystic-reveal.is-revealed { opacity: 1; transform: translateY(0); }

.mystic-card {
  background: #fffbf3;
  border: 3px double #5a3d7a;
  border-radius: 8px;
  padding: 32px 30px 28px;
  text-align: center;
  box-shadow: 0 20px 38px rgba(60, 30, 80, 0.20);
}
.mystic-prophecy {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: #5a3d7a;
  margin: 0 0 22px;
}
.mystic-book {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  text-align: left;
}
.mystic-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.20);
}
.mystic-book-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.2;
}
.mystic-book-author {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--coral-deep);
  margin: 0 0 14px;
}
.mystic-book-description {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 20px;
}
.mystic-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .mystic-cat { width: 260px; height: 260px; }
  .mystic-book {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
  }
  .mystic-book-cover { max-width: 180px; margin: 0 auto; }
  .mystic-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mystic-cat { animation: none; }
}

/* ---------- freebies page ---------- */
.freebies-main {
  background: #fdfdfb;
  padding: 70px 24px 100px;
  text-align: center;
}
.freebies-intro {
  max-width: 620px;
  margin: 0 auto 56px;
}
.freebies-title {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--coral-deep);
  margin: 0 0 8px;
  line-height: 1;
}
.freebies-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

.freebies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.bookmark-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 20px 22px;
  background: #fff;
  border: 1.5px dashed var(--coral);
  border-radius: 10px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bookmark-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.10);
}

.bookmark-preview {
  display: block;
  width: 110px;
  height: 330px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.bookmark-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bookmark-card:hover .bookmark-preview {
  transform: scale(1.03);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
  .bookmark-preview { width: 90px; height: 270px; }
}

/* Locked (subscriber-only) bookmarks — dim the preview and stamp a padlock */
.bookmark-card--locked .bookmark-preview { position: relative; }
.bookmark-card--locked .bookmark-preview img {
  filter: grayscale(0.5) brightness(0.85);
  transition: filter .3s ease;
}
.bookmark-card--locked:hover .bookmark-preview img {
  filter: grayscale(0.2) brightness(0.95);
}
.bookmark-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
  pointer-events: none;
}
.bookmark-unlock {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.freebies-cta {
  max-width: 620px;
  margin: 72px auto 0;
  padding: 32px 28px;
  text-align: center;
  background: #fff;
  border: 1.5px dashed var(--coral);
  border-radius: 12px;
}
.freebies-cta h3 {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--coral-deep);
  margin: 0 0 10px;
}
.freebies-cta p {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* ---------- join landing page ---------- */
body.join-body {
  background:
    radial-gradient(ellipse at top, rgba(246, 212, 215, 0.45), transparent 60%),
    linear-gradient(180deg, #fdfdfb 0%, #fbf6f0 100%);
  min-height: 100vh;
}

.join-header {
  padding: 22px 24px 0;
  text-align: center;
}
.join-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.join-brand img { width: 48px; height: auto; }
.join-brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; text-align: left; }
.join-brand-title {
  font-family: var(--font-typewriter);
  font-size: 1.1rem;
  color: var(--ink);
}
.join-brand-tagline {
  font-family: var(--font-typewriter);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-top: 2px;
}

.join-main {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 36px 24px 60px;
  text-align: center;
}

.join-hero { margin-bottom: 48px; }
.join-overline {
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 14px;
}
.join-headline {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.05;
  font-weight: 700;
}
.join-subhead {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.join-subhead strong { color: var(--coral-deep); font-weight: 600; }

.join-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.join-form input[type="email"] {
  flex: 1 1 240px;
  padding: 16px 20px;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.join-form input[type="email"]:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(224, 122, 82, 0.15);
}
.join-form .btn-primary { padding: 16px 30px; }
.join-form-fineprint {
  width: 100%;
  margin: 14px 0 0;
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.join-form-success {
  width: 100%;
  margin: 14px 0 0;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--coral-deep);
  display: none;
}
.join-form.is-submitted .join-form-success { display: block; }
.join-form.is-submitted input,
.join-form.is-submitted button { display: none; }
.join-form.is-submitted .join-form-fineprint { display: none; }

.join-bookmarks {
  margin: 0 auto 56px;
  max-width: 560px;
}
.join-bookmarks-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 14px;
  perspective: 800px;
}
.join-bookmark-tile {
  width: 90px;
  height: 270px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.18);
  margin: 0 -10px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.join-bookmark-tile:nth-child(1) { transform: rotate(-8deg) translateY(8px); }
.join-bookmark-tile:nth-child(2) { transform: rotate(-2deg); z-index: 2; }
.join-bookmark-tile:nth-child(3) { transform: rotate(3deg); z-index: 3; }
.join-bookmark-tile:nth-child(4) { transform: rotate(9deg) translateY(8px); }
.join-bookmarks-fan:hover .join-bookmark-tile { transform: rotate(0) translateY(-4px); }
.join-bookmarks-caption {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--coral-deep);
  margin: 0;
}

.join-perks ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.join-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.join-perk-icon {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
}

.join-footer {
  padding: 24px;
  text-align: center;
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.join-footer a {
  color: var(--coral-deep);
  text-decoration: none;
  margin-left: 6px;
}
.join-footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .join-bookmark-tile { width: 70px; height: 210px; }
}

/* ---------- placeholder pages ---------- */
.coming-soon {
  min-height: 60vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--cream);
}
.coming-soon h2 {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--coral-deep);
  margin: 0 0 14px;
}
.coming-soon p { color: var(--ink-soft); font-size: 1.1rem; max-width: 520px; }
.coming-soon .cat-mark { width: 120px; margin-bottom: 24px; opacity: 0.85; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-copy .btn-primary { margin-top: 1rem; }
  .book-card { grid-template-columns: 1fr; padding: 24px; }
  .book-cover { max-width: 260px; margin: 0 auto; }

  .header-inner { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 22px; }
  .brand { flex-direction: column; gap: 10px; }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    flex-direction: column;
    background: var(--ink);
    border-radius: var(--radius);
    width: min(90%, 320px);
    padding: 12px;
    z-index: 20;
    transition: transform .25s ease, opacity .25s ease;
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu.open { transform: translateX(-50%) scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-menu a { display: block; text-align: center; }
}

@media (max-width: 860px) {
  .newsletter-bg { display: none; }
  .newsletter { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .featured { padding: 70px 0 90px; }
  .newsletter { padding: 80px 16px; }
  .newsletter-card { padding: 32px 22px; }
  .book-meta { grid-template-columns: 1fr 1fr; }
}

/* Sideways slide-ins push past the screen edge on narrow screens, so rise up instead */
@media (max-width: 860px) {
  .reveal[data-reveal="left"], .reveal[data-reveal="right"] { transform: translateY(24px); }
  .reveal.is-visible { transform: translate(0,0); }
}

/* Compact phone header: logo, title and menu button on one row */
@media (max-width: 640px) {
  .header-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; flex-wrap: nowrap; gap: 12px; padding: 12px 16px; }
  .brand { flex-direction: row; gap: 10px; min-width: 0; }
  .brand-logo { width: 46px; }
  .brand-title { font-size: 1.15rem; }
  .brand-tagline { font-size: 0.72rem; letter-spacing: 0.05em; }
  .nav-toggle { flex-shrink: 0; }
  .header-banner { font-size: 0.82rem; padding: 10px 16px; line-height: 1.5; }
}

/* ---------- genre pages (genre.html?g=...) ---------- */
.genre-main {
  --genre-colour: var(--coral-deep);
  background: #fff;
  padding: 36px 24px 90px;
  text-align: center;
}
.genre-back {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.genre-back:hover { color: var(--genre-colour); }

.genre-intro { max-width: 640px; margin: 0 auto 48px; }
.genre-intro::after {
  content: "";
  display: block;
  width: 120px;
  margin: 28px auto 0;
  border-top: 2px dashed var(--genre-colour);
  opacity: 0.5;
}
.genre-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--genre-colour);
}
.genre-deco {
  display: inline-block;
  font-size: 0.55em;
  animation: genreBob 2.8s ease-in-out infinite;
}
.genre-deco--right { scale: -1 1; animation-delay: -1.4s; }
@keyframes genreBob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-6px) rotate(8deg); }
}
.genre-tagline {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

/* shelf grid: covers + titles; click one for the library card pop-up */
.genre-books {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 22px;
  max-width: 1040px;
  margin: 0 auto;
}
.book-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}
.book-tile-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
  transition: transform .3s ease, box-shadow .3s ease;
}
.book-tile-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.book-tile-cover--blank {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--genre-colour);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.3;
}
.book-tile:hover .book-tile-cover,
.book-tile:focus-visible .book-tile-cover {
  transform: translateY(-6px) rotate(-1.5deg);
  box-shadow: 0 18px 26px rgba(0,0,0,0.24);
}
.book-tile:focus-visible { outline: none; }
.book-tile:focus-visible .book-tile-title { text-decoration: underline; }
.book-tile-paw {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 0.8rem;
}
.book-tile-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* the pop-up, styled like an old library card */
.book-dialog {
  width: min(92vw, 660px);
  max-height: 90vh;
  padding: 30px 30px 26px;
  border: 2px dashed var(--genre-colour, var(--coral));
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(120, 90, 40, 0.08) 29px 30px),
    #fffaf0;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.book-dialog::backdrop { background: rgba(42, 42, 42, 0.55); }
.book-dialog[open] { animation: bookDialogIn .25s ease; }
@keyframes bookDialogIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.book-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.book-dialog-close:hover { background: rgba(0,0,0,0.06); color: var(--ink); }
.book-dialog-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  text-align: left;
}
.book-dialog-body img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 12px 22px rgba(0,0,0,0.2);
  rotate: -2deg;
}
.book-dialog-label {
  margin: 0 0 6px;
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--genre-colour, var(--coral-deep));
}
.book-dialog-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}
.book-dialog-author {
  margin: 0 0 14px;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--coral-deep);
}
.book-dialog-description { margin: 0 0 20px; line-height: 1.65; color: var(--ink-soft); }

.genre-empty { max-width: 460px; margin: 0 auto; color: var(--ink-soft); }
.genre-empty img { width: 90px; margin: 0 auto 14px; opacity: 0.85; }
.genre-empty p:first-of-type {
  margin: 0 0 8px;
  font-family: var(--font-script);
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--genre-colour);
}
.genre-empty-links { margin: 0; }

@media (max-width: 900px) {
  .genre-books { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .genre-books { grid-template-columns: repeat(3, 1fr); gap: 24px 14px; }
  .book-tile-title { font-size: 0.78rem; }
  .book-tile-paw { width: 24px; height: 24px; top: -6px; right: -6px; font-size: 0.7rem; }
  .book-dialog { padding: 26px 20px 22px; }
  .book-dialog-body { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .book-dialog-body img { max-width: 150px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .genre-deco { animation: none; }
  .book-dialog[open] { animation: none; }
  .book-tile:hover .book-tile-cover { transform: none; }
}

/* ---------- First Friday Find (home page) ---------- */
.find {
  background: var(--cream);
  padding: 70px 0;
}
.find-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px;
  background: #fff;
  border: 2px dashed rgba(224, 122, 82, 0.6);
  border-radius: 14px;
  box-shadow: 3px 4px 0 rgba(0,0,0,0.08);
}
.find-photo {
  position: relative;
  width: 200px;
  justify-self: center;
  transform: rotate(-3deg);
}
.find-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}
.find-photo-mystery {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.12) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #e07a52, #b85433);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
  color: #fff;
  font-family: var(--font-script);
  font-size: 6rem;
  line-height: 1;
}
.find-photo-mystery[hidden] { display: none; }
/* handwritten charity-shop price tag */
.find-price {
  position: absolute;
  top: 14px;
  right: -18px;
  padding: 4px 12px 4px 18px;
  background: #fff8e0;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px 8px 8px 3px;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--ink);
  transform: rotate(12deg);
  box-shadow: 1px 2px 4px rgba(0,0,0,0.15);
}
.find-price::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.2);
}
.find-price[hidden] { display: none; }

.find-copy { text-align: left; }
.find-label {
  margin: 0 0 6px;
  font-family: var(--font-typewriter);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.find-title {
  margin: 0 0 4px;
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
}
.find-author {
  margin: 0 0 10px;
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.find-found {
  margin: 0 0 10px;
  font-style: italic;
  color: var(--coral-deep);
}
.find-note { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.6; }
.find-winner { margin: 0 0 14px; font-weight: 600; color: var(--ink); }
.find-copy .btn-primary { margin-top: 4px; }
.find-terms {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

@media (max-width: 680px) {
  .find { padding: 50px 0; }
  .find-card { grid-template-columns: 1fr; gap: 28px; padding: 26px 20px; }
  .find-photo { width: 160px; }
  .find-copy { text-align: center; }
}

/* ---------- About page ---------- */
.about-main {
  background: var(--cream);
  padding: 70px 24px 90px;
}
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto 64px;
}
.about-polaroid {
  margin: 0;
  padding: 14px 14px 18px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,0.14), 0 2px 4px rgba(0,0,0,0.08);
  rotate: -3deg; /* separate from transform, so the fade-in doesn't cancel it */
}
.about-polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-polaroid figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--ink);
}
.about-title {
  margin: 0 0 16px;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--coral-deep);
}
.about-lede { font-size: 1.15rem; color: var(--ink); }
.about-copy p { margin: 0 0 16px; line-height: 1.7; color: var(--ink-soft); }
.about-copy .about-lede { color: var(--ink); }

/* manila case file */
.case-file {
  position: relative;
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 36px 40px 30px;
  background: #f1dcaa;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(120, 90, 40, 0.12) 31px 32px);
  border-radius: 4px 14px 4px 4px;
  box-shadow: 0 10px 22px rgba(80, 55, 20, 0.18);
  rotate: 0.6deg;
}
.case-file::before {
  /* folder tab */
  content: "";
  position: absolute;
  top: -18px;
  left: 28px;
  width: 150px;
  height: 20px;
  background: #f1dcaa;
  border-radius: 8px 8px 0 0;
}
.case-file-stamp {
  position: absolute;
  top: 22px;
  right: 26px;
  margin: 0;
  padding: 4px 12px;
  border: 3px solid rgba(190, 40, 40, 0.75);
  border-radius: 4px;
  color: rgba(190, 40, 40, 0.8);
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}
.case-file-title {
  margin: 0 0 20px;
  font-family: var(--font-typewriter);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #3a2a12;
}
.case-file-list { margin: 0; }
.case-file-list > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(90, 60, 20, 0.3);
}
.case-file-list > div:last-child { border-bottom: none; }
.case-file-list dt {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b4a1c;
}
.case-file-list dd {
  margin: 0;
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  color: #2b2b2b;
}

.about-signoff {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.about-signoff p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 20px; }
.about-signature {
  margin: 22px 0 0 !important;
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--coral-deep) !important;
}

@media (max-width: 760px) {
  .about-main { padding: 44px 18px 70px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-polaroid { max-width: 260px; margin: 0 auto; }
  .about-copy { text-align: center; }
  .case-file { padding: 72px 22px 22px; rotate: none; }
  .case-file-stamp { top: 16px; right: 16px; font-size: 0.8rem; }
  .case-file-list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- "Found one of our books?" page ---------- */
.found-main {
  background: var(--cream);
  padding: 60px 24px 90px;
  text-align: center;
}
/* a round rubber-stamp, like the one inside the books */
.found-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  border: 4px double rgba(43, 43, 43, 0.8);
  border-radius: 50%;
  color: rgba(43, 43, 43, 0.85);
  font-family: var(--font-typewriter);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  rotate: -10deg;
}
.found-stamp-top, .found-stamp-bottom { font-size: 0.85rem; }
.found-stamp-paw { font-size: 2.2rem; line-height: 1.2; }

.found-intro, .found-steps, .found-next { max-width: 620px; margin: 0 auto; }
.found-kicker {
  margin: 0 0 8px;
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.found-title {
  margin: 0 0 16px;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
}
.found-lede { font-size: 1.15rem; color: var(--ink); }
.found-intro p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }
.found-intro .found-lede { color: var(--ink); }

.found-steps {
  margin-top: 44px;
  margin-bottom: 44px;
  padding: 30px 32px;
  background: #fff;
  border: 2px dashed rgba(224, 122, 82, 0.6);
  border-radius: 14px;
}
.found-steps h3 {
  margin: 0 0 16px;
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--coral-deep);
}
.found-steps ol {
  margin: 0 0 24px;
  padding-left: 1.4em;
  text-align: left;
  line-height: 1.7;
  color: var(--ink-soft);
}
.found-steps li { margin-bottom: 8px; }
.found-steps li strong { color: var(--ink); }
.found-small { margin: 16px 0 0; font-size: 0.82rem; color: var(--ink-soft); opacity: 0.85; }

.found-next p { margin: 0 0 12px; line-height: 1.7; color: var(--ink-soft); }
.found-next .btn-ghost { margin-top: 8px; }

@media (max-width: 560px) {
  .found-main { padding: 44px 18px 70px; }
  .found-steps { padding: 24px 20px; }
}

/* ---------- This Week's Picks (home page) ---------- */
.pick-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.elles-shelf-tag {
  margin: 0 0 8px;
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: var(--coral-deep);
}
.elles-shelf-tag::before { content: "🐾 "; font-size: 0.8em; }

.this-week .featured-cover img { max-width: 300px; }

.picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1020px;
  margin: 40px auto 0;
}
.pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 20px;
  text-align: center;
  background: rgba(255,255,255,0.55);
  border: 2px dashed rgba(201, 95, 58, 0.45);
  border-radius: 10px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pick-card:hover { transform: translateY(-4px); box-shadow: 0 14px 24px rgba(0,0,0,0.1); }
.pick-card-cover { width: 120px; margin-bottom: 16px; rotate: -2deg; }
.pick-card:nth-child(even) .pick-card-cover { rotate: 2deg; }
.pick-card-cover img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}
.pick-card-title {
  margin: 0 0 2px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}
.pick-card-author {
  margin: 0 0 10px;
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--coral-deep);
}
.pick-card-description {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-card-buy {
  margin-top: auto;
  padding: 9px 16px;
  font-size: 0.72rem;
}

/* the book a newsletter link pointed at */
.pick-highlight { animation: pickGlow 2.4s ease 0.3s 2; }
@keyframes pickGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 122, 82, 0); }
  50%      { box-shadow: 0 0 0 8px rgba(224, 122, 82, 0.35); }
}

@media (max-width: 980px) {
  .picks-grid { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
}
@media (max-width: 480px) {
  .picks-grid { grid-template-columns: 1fr; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .pick-highlight { animation: none; outline: 3px solid var(--coral); }
}

/* ---------- Author of the Month (home) ---------- */
.aotm-covers {
  display: flex;
  justify-content: center;
  margin: 6px 0 22px;
  height: 170px;
}
.aotm-covers img {
  width: 104px;
  height: 160px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.2);
  margin: 0 -14px;
  transition: transform .3s ease;
}
.aotm-covers img:nth-child(1) { rotate: -8deg; translate: 0 8px; }
.aotm-covers img:nth-child(2) { position: relative; z-index: 1; }
.aotm-covers img:nth-child(3) { rotate: 8deg; translate: 0 8px; }
.author-card:hover .aotm-covers img:nth-child(1) { transform: translateX(-8px); }
.author-card:hover .aotm-covers img:nth-child(3) { transform: translateX(8px); }
.aotm-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.author-card .aotm-intro { margin: 0 0 20px; line-height: 1.65; }

/* ---------- Author of the Month page (paid months) ---------- */
.author-page {
  background: var(--cream);
  padding: 60px 24px 90px;
}
.author-page-intro { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.author-page-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.author-page-month {
  margin: 0 0 6px;
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.author-page-name {
  margin: 0 0 16px;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
}
.author-page-bio { color: var(--ink-soft); line-height: 1.7; }
.author-page-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.author-qa { margin: 0; }
.author-qa .qa-item { padding: 12px 0; border-bottom: 1px dashed rgba(90, 60, 20, 0.3); }
.author-qa .qa-item:last-child { border-bottom: none; }
.author-qa dt {
  margin-bottom: 6px;
  font-family: var(--font-typewriter);
  font-size: 0.95rem;
  color: #6b4a1c;
}
.author-qa dd { margin: 0; font-family: var(--font-serif); line-height: 1.65; color: #2b2b2b; }

.author-page-books { max-width: 1020px; margin: 0 auto; text-align: center; }
.author-page-books h3 {
  margin: 0 0 10px;
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--coral-deep);
}

/* "Retired Teacher Mysteries, book 1" line above a title */
.book-series {
  margin: 0 0 4px;
  font-family: var(--font-typewriter);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* small links row in every footer */
.footer-links {
  margin: 14px 0 4px;
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--coral); }

/* ---------- Privacy + Giveaway terms ---------- */
.legal-main { background: var(--cream); padding: 60px 24px 90px; }
.legal-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 44px;
  background: #fff;
  border: 2px dashed rgba(224, 122, 82, 0.5);
  border-radius: 14px;
  box-shadow: 3px 4px 0 rgba(0,0,0,0.06);
}
.legal-title {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--coral-deep);
}
.legal-updated {
  margin: 4px 0 20px;
  font-family: var(--font-typewriter);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.legal-lede { font-size: 1.08rem; color: var(--ink); line-height: 1.65; }
.legal-card h3 {
  margin: 32px 0 10px;
  font-family: var(--font-typewriter);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.legal-card p, .legal-card li { color: var(--ink-soft); line-height: 1.7; }
.legal-card ul { padding-left: 1.3em; }
.legal-card li { margin-bottom: 8px; }
.legal-card li ul { margin-top: 8px; }
.legal-card strong { color: var(--ink); }
.find-terms a, .join-form-fineprint a { color: inherit; text-decoration: underline; }
@media (max-width: 560px) {
  .legal-main { padding: 40px 14px 70px; }
  .legal-card { padding: 28px 22px; }
}

/* ---------- "Share your verdict" review page ---------- */
.review-main { background: var(--cream); padding: 56px 24px 90px; }
.review-intro { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.review-intro p { color: var(--ink-soft); line-height: 1.7; }
.review-title {
  margin: 0 0 12px;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--coral-deep);
}
.review-card, .review-thanks {
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 36px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(120, 90, 40, 0.07) 31px 32px),
    #fffaf0;
  border: 2px dashed rgba(224, 122, 82, 0.55);
  border-radius: 14px;
  box-shadow: 3px 4px 0 rgba(0,0,0,0.06);
}
.review-field { margin: 0 0 22px; padding: 0; border: none; }
.review-field label, .review-field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--font-typewriter);
  font-size: 0.9rem;
  color: var(--ink);
}
.review-optional { color: var(--ink-soft); font-size: 0.8rem; }
.review-field input[type="text"], .review-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.review-field textarea { resize: vertical; line-height: 1.6; }
.review-field input:focus, .review-field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(224, 122, 82, 0.2); }

/* 5-paw rating: shown 1 to 5 left to right, lighting up as you hover or pick */
.paw-rating { display: inline-flex; flex-direction: row-reverse; gap: 8px; }
.paw-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.paw-rating label {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  filter: grayscale(1);
  opacity: 0.35;
  transition: opacity .15s ease, filter .15s ease, transform .15s ease;
}
.paw-rating label::before { content: "🐾"; }
.paw-rating input:checked ~ label,
.paw-rating label:hover,
.paw-rating label:hover ~ label { filter: none; opacity: 1; }
.paw-rating label:hover { transform: scale(1.12); }
.paw-rating input:focus-visible + label { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.review-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.review-consent input { margin-top: 5px; accent-color: var(--coral); }
.review-status { min-height: 1.4em; margin: 14px 0 0; color: var(--coral-deep); font-weight: 600; }
.review-small { margin: 8px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.review-small a { color: inherit; text-decoration: underline; }

.review-thanks { text-align: center; }
.review-thanks h3 { margin: 10px 0 10px; font-family: var(--font-script); font-size: 2.2rem; color: var(--ink); }
.review-thanks p { color: var(--ink-soft); line-height: 1.7; }
.review-thanks-stamp {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  border: 3px solid rgba(190, 40, 40, 0.75);
  border-radius: 4px;
  color: rgba(190, 40, 40, 0.8);
  font-family: var(--font-typewriter);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  rotate: -6deg;
}

@media (max-width: 560px) {
  .review-main { padding: 40px 14px 70px; }
  .review-card, .review-thanks { padding: 26px 20px; }
}

/* "Recently featured" ribbon across the bottom of a shelf cover */
.book-tile-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  padding: 4px 4px;
  background: var(--genre-colour, var(--coral));
  color: #fff;
  font-family: var(--font-typewriter);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
@media (max-width: 560px) {
  .book-tile-ribbon { font-size: 0.5rem; bottom: 6px; padding: 3px 2px; }
}

/* ---------- page not found (404) ---------- */
.notfound-card { position: relative; text-align: center; }
.notfound-stamp { position: static; display: inline-block; margin: 0 0 14px; }
.notfound-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
