@charset "UTF-8";
:root {
  --bg: #ffffff;
  --bg-elev: #f5f5f7;
  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --ink-soft: #98989d;
  --hairline: #e5e5ea;
  --hairline-strong: #d1d1d6;
  --accent: #e63312;
  --accent-dark: #c62a0d;
  --accent-soft: rgba(230, 51, 18, 0.08);
  --glass-bg: color-mix(in srgb, var(--bg-elev) 72%, transparent);
  --glass-bg-strong: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  --glass-border: color-mix(in srgb, var(--hairline) 80%, transparent);
  --tint-ink: color-mix(in srgb, var(--ink) 7%, transparent);
  --tint-ink-hover: color-mix(in srgb, var(--ink) 12%, transparent);
  --tint-soft: color-mix(in srgb, var(--ink-soft) 18%, transparent);
  --tint-soft-hover: color-mix(in srgb, var(--ink-soft) 28%, transparent);
  --focus-ring: color-mix(in srgb, var(--accent) 15%, transparent);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-brand: "Fraunces", Georgia, serif;
  --fs-display: 28px;
  --fs-modal-title: 19px;
  --fs-hero-sub: 15px;
  --fs-section: 18px;
  --fs-result-label: 14px;
  --fs-body: 16px;
  --fs-ui: 15px;
  --fs-secondary: 14px;
  --fs-small: 13px;
  --fs-caption: 12px;
  --fs-label: 11px;
  --fs-author: 13px;
  --fs-micro: 10px;
  --max-w: 1320px;
  --pad-x: 20px;
  --section-y: 80px;
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.14), 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-ui: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --fs-display: 44px;
    --fs-modal-title: 23px;
    --fs-hero-sub: 18px;
    --fs-result-label: 16px;
    --pad-x: 56px;
    --section-y: 160px;
  }
}
[data-theme=dark] {
  --bg: #111111;
  --bg-elev: #1a1a1a;
  --ink: #f8f7f4;
  --ink-muted: #a1a1aa;
  --ink-soft: #71717a;
  --hairline: #2a2a2a;
  --hairline-strong: #404040;
  --accent: #ff5722;
  --accent-dark: #e63312;
  --accent-soft: rgba(255, 87, 34, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: var(--ink-main);
  --bg: var(--bg-base);
  --hairline: var(--border-color);
  --font-sans: var(--font-ui);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fs-display: 1.9rem;
  --fs-section: 1.5rem;
  --fs-quote: 1.3rem;
  --fs-lead: 1.15rem;
  --fs-brand: 1.05rem;
}

@media (min-width: 768px) {
  :root {
    --fs-display: 2.4rem;
    --fs-section: 1.75rem;
    --fs-quote: 1.6rem;
    --fs-lead: 1.35rem;
    --fs-brand: 1.1rem;
  }
}
html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }
}

body {
  background: var(--bg-base);
  color: var(--ink-main);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: hidden;
  position: relative;
  transition: var(--theme-transition);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-spacing {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.section-label {
  margin-bottom: 2rem;
}
.section-label h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-section);
  color: var(--ink-main);
  letter-spacing: -0.01em;
}
.section-label p {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.bg-surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

/* ===== SECTION PICTOGRAM ===== */
.section-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  color: var(--ink-main);
  opacity: 0.75;
  transition: color 0.35s ease, opacity 0.35s ease;
}

@keyframes pen-stroke {
  0%, 100% {
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dashoffset: 6;
  }
}
.si-path {
  animation: pen-stroke 3s ease-in-out infinite;
}

.si-path-2 {
  animation: pen-stroke 3s ease-in-out infinite 0.4s;
}

.si-path-3 {
  animation: pen-stroke 3s ease-in-out infinite 0.8s;
}

.si-path-4 {
  animation: pen-stroke 3s ease-in-out infinite 1.2s;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* ===== RIPPLE ON NAV BUY BUTTON ===== */
.buy-link {
  position: relative;
  overflow: hidden;
}
.buy-link .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-out 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-out {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
/* ===== FLOATING PARTICLES ===== */
.spice-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  animation: spice-float 1s ease-out forwards;
}

@keyframes spice-float {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.3);
  }
}
/* ===== MISC ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== STICKY HEADER NAV ===== */
/* --header-bg and --header-bg-dark are defined per publisher in each HTML's :root */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme=dark] .site-header {
  background: var(--header-bg-dark);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .site-header {
    background: var(--header-bg-dark);
    border-bottom-color: rgba(255, 255, 255, 0.07);
  }
}
@media (max-width: 480px) {
  .site-header {
    padding: 1rem;
  }
}
.site-header .publisher-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-brand);
  color: var(--ink-main);
  text-decoration: none;
  letter-spacing: 0;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.site-header .publisher-link:hover {
  color: var(--ink-faint);
}
.site-header .buy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--brand-cta);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.site-header .buy-link:hover {
  background: var(--brand-cta-hover);
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Publisher image logo (Speaking Tiger style) */
.publisher-logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Publisher SVG wordmark logo (West Side Press style) */
.wsp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--ink-faint);
}
.theme-toggle:active {
  transform: scale(0.88) rotate(30deg) !important;
}
.theme-toggle svg {
  width: 15px;
  height: 15px;
  stroke: var(--ink-main);
  transition: stroke 0.2s ease;
}
.theme-toggle.spinning svg {
  animation: spin-once 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spin-once {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* ===== SUN / MOON ICON VISIBILITY ===== */
.icon-sun {
  display: none;
}
[data-theme=dark] .icon-sun {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .icon-sun {
    display: block;
  }
}
[data-theme=light] .icon-sun {
  display: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) .icon-sun {
    display: none;
  }
}

.icon-moon {
  display: block;
}
[data-theme=dark] .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .icon-moon {
    display: none;
  }
}
[data-theme=light] .icon-moon {
  display: block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme=dark]) .icon-moon {
    display: block;
  }
}

/* ===== HERO ===== */
.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
    gap: 1.5rem;
  }
}
.hero-cover {
  position: relative;
  perspective: 1000px;
}
@media (max-width: 768px) {
  .hero-cover {
    max-width: 220px;
    margin: 0 auto;
  }
}
.hero-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-text {
  padding-top: 0.25rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-main);
  margin-bottom: 0.35rem;
}
.hero-subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-lead);
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.hero-author {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-main);
  margin-bottom: 0.1rem;
}
.hero-publisher {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 1.75rem;
}
.hero-publisher a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-description {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.hero-description .read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 0.82rem;
  border: none;
  background: none;
  font-family: var(--font-ui);
  font-weight: 500;
  padding: 0;
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.hero-description .read-more-btn:hover {
  color: var(--ink-main);
}
.hero-description .read-more-btn .btn-arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-description .read-more-btn.open .btn-arrow {
  transform: rotate(180deg);
}
.hero-description .full-blurb {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.35s ease;
}
.hero-description .full-blurb.show {
  max-height: 600px;
  opacity: 1;
  margin-top: 0.65rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-weight: 500;
}
@media (max-width: 768px) {
  .hero-meta {
    justify-content: center;
  }
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-buy-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}
@media (max-width: 768px) {
  .hero-buy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-buy-row .price {
    order: -1;
    text-align: center;
  }
}
.hero-buy-row .bs-atc-btn {
  width: auto;
  height: auto;
  min-width: 10rem;
  padding: 0.8rem 1.75rem;
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 99px;
}
.hero-buy-row .bs-qty-stepper {
  width: auto;
  height: auto;
  min-width: 10rem;
  margin-top: 0;
  flex-shrink: 0;
  border-radius: 99px;
}
.hero-buy-row .bs-qty-stepper .bs-qty-btn {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  width: auto;
}
.hero-buy-row .bs-qty-stepper .bs-qty-count {
  padding: 0.8rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
}

/* ===== BUY CTA BUTTON ===== */
/* --brand-cta-shadow is defined per book in each HTML's :root */
.btn-buy-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand-cta);
  padding: 0.8rem 1.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-buy-large:hover {
  background: var(--brand-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--brand-cta-shadow);
}
.btn-buy-large:hover::after {
  opacity: 1;
}
.btn-buy-large {
  /* Radial shimmer */
}
.btn-buy-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.price {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-main);
}

/* ===== REVIEWS CAROUSEL ===== */
.reviews-section {
  position: relative;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-slide {
  min-width: 100%;
  padding: 0 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 480px) {
  .review-slide {
    padding: 0 2.5rem;
  }
}

.reviewer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--bg-surface);
  margin: 0 auto 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.reviewer-avatar {
  /* Publication logo avatars: contain instead of cover */
}
.reviewer-avatar--pub {
  padding: 10px;
}
.reviewer-avatar--pub img {
  object-fit: contain !important;
  object-position: center !important;
}

/* Initials fallback (rendered by JS onerror) */
.reviewer-initials {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink-faint);
  line-height: 1;
}

/* Monogram for colored avatar backgrounds */
.reviewer-monogram {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.review-quote {
  font-family: var(--font-heading);
  font-size: var(--fs-lead);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-main);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.review-byline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink-faint);
  transition: color 0.2s ease;
  z-index: 2;
}
.review-arrow:hover {
  color: var(--ink-main);
}
.review-arrow:hover svg {
  transform: scale(1.15);
}
.review-arrow svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}
.review-arrow-prev {
  left: 0;
}
.review-arrow-next {
  right: 0;
}

.reviews-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 2rem;
}
.reviews-indicator span {
  height: 4px;
  border-radius: 99px;
  background: var(--border-color);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
  width: 16px;
  cursor: pointer;
}
.reviews-indicator span.active {
  width: 36px;
  background: var(--ink-main);
}

/* ===== THEMES LIST ===== */
.themes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  list-style: none;
}
@media (max-width: 768px) {
  .themes-list {
    grid-template-columns: 1fr;
  }
}
.themes-list li {
  font-size: 0.95rem;
  color: var(--ink-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.themes-list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
  margin-top: 8px;
}
.themes-list li:has(strong) {
  flex-direction: column;
}

/* ===== TIMELINE ===== */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  position: relative;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.5rem;
}
@media (max-width: 480px) {
  .timeline-item {
    grid-template-columns: 60px 1fr;
  }
}
.timeline-item:hover .timeline-card {
  background: var(--bg-surface);
  transform: translateX(4px);
  border-color: transparent;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
}
.timeline-item:hover .timeline-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: dot-ping 0.6s ease-out forwards;
  opacity: 0;
}
.timeline-item:hover .timeline-link-arrow {
  transform: translateX(4px);
  color: var(--ink-main);
}
.timeline-item:hover .timeline-item-image img {
  opacity: 0.9;
}
.timeline-item:last-child .timeline-date-col::after {
  display: none;
}
.timeline-item:last-child .timeline-card {
  border-bottom: none;
}

@keyframes dot-ping {
  0% {
    opacity: 0.6;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
.timeline-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  position: relative;
  /* Connecting dashed line */
}
.timeline-date-col::after {
  content: "";
  position: absolute;
  top: calc(1.5rem + 10px);
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  border-left: 2px dashed var(--border-color);
  z-index: 1;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-base);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.timeline-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--bg-base);
  z-index: 2;
}
@media (max-width: 480px) {
  .timeline-date {
    font-size: 0.65rem;
  }
}

.timeline-card {
  padding: 1.5rem 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.25s ease;
  border-radius: 8px;
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.timeline-source {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-main);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.timeline-link-arrow {
  font-size: 1rem;
  color: var(--ink-faint);
  margin-left: 0.25rem;
  transition: transform 0.2s, color 0.2s;
  display: inline-block;
}

/* ===== TIMELINE ITEM IMAGE ===== */
.timeline-item-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  max-height: 450px;
  aspect-ratio: 2/1;
}
.timeline-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

/* ===== LISTEN / WATCH EMBED ===== */
.media-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--bg-surface);
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

/* ===== TAGS ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  line-height: 1;
  background: var(--bg-surface);
  color: var(--ink-main);
  border: 1px solid var(--border-light);
}
.tag svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
}
.tag-interview {
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.08);
  border-color: rgba(45, 106, 79, 0.15);
}
.tag-event {
  color: #a66512;
  background: rgba(193, 120, 23, 0.08);
  border-color: rgba(193, 120, 23, 0.15);
}
.tag-listen {
  color: #8b3a62;
  background: rgba(139, 58, 98, 0.08);
  border-color: rgba(139, 58, 98, 0.15);
}
.tag-excerpt {
  color: #5c4b8a;
  background: rgba(92, 75, 138, 0.08);
  border-color: rgba(92, 75, 138, 0.15);
}
.tag-review {
  color: #b85c38;
  background: rgba(184, 92, 56, 0.08);
  border-color: rgba(184, 92, 56, 0.15);
}
.tag-bookshop {
  color: #3a6b8b;
  background: rgba(58, 107, 139, 0.08);
  border-color: rgba(58, 107, 139, 0.15);
}
.tag-academic {
  color: #4a5568;
  background: rgba(74, 85, 104, 0.08);
  border-color: rgba(74, 85, 104, 0.15);
}
.tag-award {
  color: #92640d;
  background: rgba(146, 100, 13, 0.08);
  border-color: rgba(146, 100, 13, 0.15);
}
.tag-banned {
  color: #9b2c2c;
  background: rgba(155, 44, 44, 0.08);
  border-color: rgba(155, 44, 44, 0.15);
}
.tag-news {
  color: #2b6cb0;
  background: rgba(43, 108, 176, 0.08);
  border-color: rgba(43, 108, 176, 0.15);
}
.tag-obituary {
  color: #4a5568;
  background: rgba(74, 85, 104, 0.08);
  border-color: rgba(74, 85, 104, 0.15);
}

/* ===== FROM THE AUTHOR ===== */
.author-quote {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.author-quote:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.author-quote blockquote {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-main);
  line-height: 1.45;
  padding: 0 1rem;
  border: none;
  z-index: 2;
}
.author-quote blockquote::before {
  content: "“";
  position: absolute;
  left: -0.5rem;
  top: -1.75rem;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--border-color);
  opacity: 0.4;
  line-height: 1;
  z-index: -1;
}
.author-quote .quote-source {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 1.25rem;
  padding-left: 1rem;
}
.author-quote .quote-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.author-quote .quote-source a:hover {
  color: var(--ink-main);
}

/* ===== ABOUT THE AUTHOR ===== */
.author-editorial {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  padding: 1.5rem 0;
}
@media (max-width: 768px) {
  .author-editorial {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 2.5rem;
  }
}
.author-editorial:hover .author-photo-wrapper::before {
  transform: translate(-4px, -4px);
}
.author-editorial:hover .author-photo {
  filter: grayscale(0%) contrast(1.05);
}

.author-photo-wrapper {
  flex: 0 0 220px;
  position: relative;
}
@media (max-width: 768px) {
  .author-photo-wrapper {
    max-width: 200px;
    margin: 0 auto;
  }
}
.author-photo-wrapper::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--theme-color-1), var(--theme-color-2));
  opacity: 0.25;
  border-radius: 8px;
  z-index: 0;
  transition: transform 0.4s ease;
}

.author-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  filter: grayscale(100%) contrast(1.1);
  z-index: 1;
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.author-bio-content {
  flex: 1;
  padding-top: 1rem;
}

.author-bio-name {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-main);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.author-bio-text {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.author-bio-text a {
  color: var(--ink-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.author-bio-links {
  display: flex;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .author-bio-links {
    justify-content: flex-start;
  }
}
.author-bio-links a {
  position: relative;
  color: var(--ink-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.author-bio-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--brand-cta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.author-bio-links a:hover {
  color: var(--brand-cta);
}
.author-bio-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== FOOTER ===== */
.page-footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-light);
  margin-top: 2rem;
  max-width: 100%;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 480px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.footer-row a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.footer-row a:hover {
  text-decoration: underline;
  color: var(--ink-main);
}

.bs-qty-stepper[hidden],
.bs-atc-btn[hidden] {
  display: none;
}

.bs-atc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 32px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  text-transform: capitalize;
  font-weight: 500;
  color: var(--ink);
  background: var(--tint-ink);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.bs-atc-btn svg {
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.bs-atc-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--bg);
}
.bs-atc-btn:hover:not(:disabled) svg {
  color: var(--bg);
}
.bs-atc-btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.bs-atc-btn--remove {
  background: transparent;
  border-color: var(--hairline);
}

.bs-qty-stepper {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 32px;
  margin-top: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bs-qty-btn {
  flex-shrink: 0;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.bs-qty-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}
.bs-qty-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.bs-qty-count {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}

.bs-cart-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%) translateY(72px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s var(--ease);
}
.bs-cart-pill.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 480px) {
  .bs-cart-pill {
    bottom: 16px;
  }
}

.bs-cart-pill__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-secondary);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), 0 1px 6px rgba(0, 0, 0, 0.14);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bs-cart-pill__link:hover {
  background: color-mix(in srgb, var(--ink) 82%, var(--bg));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.18);
}
.bs-cart-pill__link svg {
  flex-shrink: 0;
}

.bs-cart-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #ffc900;
  color: #000;
  font-size: var(--fs-label);
  font-weight: 700;
  border-radius: 999px;
}

/*# sourceMappingURL=life-of-a-book.css.map */
