/* =================================================================
   Prof Y Not - Clean White & Yellow Design
   Simple, Professional, Modern
================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* =================================================================
   CSS Variables
================================================================== */
:root {
  /* Colors - White & Yellow Theme */
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f9f9f9;
  --gray-100: #f3f3f3;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --black: #0a0a0a;
  
  /* Yellow Accent */
  --yellow: #fbbf24;
  --yellow-light: #fcd34d;
  --yellow-dark: #f59e0b;
  --yellow-50: #fffbeb;
  --yellow-100: #fef3c7;
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Sizing */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition: 0.3s ease;
}

/* =================================================================
   Reset
================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* =================================================================
   Typography
================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* =================================================================
   Layout
================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* Books Archive - Account for fixed header */
.books-archive {
  padding-top: calc(var(--header-height) + 60px);
}

.text-center { text-align: center; }

/* =================================================================
   Header
================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 280px;
  display: block;
}

@media (max-width: 480px) {
  .logo-img {
    height: 32px;
    max-width: 200px;
  }
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.logo:hover {
  color: var(--yellow-dark);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gray-900);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-600);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.mobile-toggle span {
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--gray-800);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--yellow-dark);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav,
  .header-cta {
    display: none;
  }
}

/* =================================================================
   Buttons
================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--gray-900);
}

.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-dark {
  background: var(--gray-900);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gray-800);
  border: 2px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--yellow);
  background: var(--yellow-50);
}

.btn-white {
  background: var(--white);
  color: var(--gray-900);
}

.btn-white:hover {
  background: var(--gray-100);
}

/* =================================================================
   Hero
================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--yellow-50) 0%, var(--white) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  max-width: 500px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--yellow-dark);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-book {
  position: relative;
}

.hero-book img {
  max-width: 350px;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.hero-book:hover img {
  transform: translateY(-10px) rotate(2deg);
}

.hero-book::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--yellow);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.3;
  transform: rotate(-3deg);
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-book img {
    max-width: 280px;
  }
}

/* =================================================================
   Section Headers
================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yellow-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--gray-500);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =================================================================
   Featured Section
================================================================== */
.featured-section {
  background: var(--white);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.featured-cover img {
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  max-width: 400px;
}

.featured-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.featured-title {
  margin-bottom: 16px;
}

.featured-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--yellow-dark);
  margin-bottom: 24px;
}

.featured-desc {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.featured-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.featured-quote {
  background: var(--gray-50);
  border-left: 4px solid var(--yellow);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
}

.featured-quote p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.featured-quote cite {
  font-size: 0.9rem;
  color: var(--gray-500);
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .featured-cover {
    display: flex;
    justify-content: center;
  }
  
  .featured-cover img {
    max-width: 300px;
  }
  
  .featured-actions {
    justify-content: center;
  }
}

/* =================================================================
   Books Grid
================================================================== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .books-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Archive Header */
.archive-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.archive-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.archive-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.book-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.book-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-100);
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.book-card:hover .book-card-cover img {
  transform: scale(1.05);
}

.book-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.book-card:hover .book-card-overlay {
  opacity: 1;
}

.book-card-overlay-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card-body {
  padding: 24px;
}

.book-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.book-card-title a:hover {
  color: var(--yellow-dark);
}

.book-card-tagline {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.book-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-card-rating {
  color: var(--yellow-dark);
  font-weight: 600;
}

.book-card-price {
  font-weight: 700;
  color: var(--gray-900);
}

/* =================================================================
   About Section
================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.about-text {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.about-signature {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--yellow-dark);
  margin: 24px 0;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about-image {
    display: flex;
    justify-content: center;
  }
  
  .about-image img {
    max-width: 300px;
  }
}

/* =================================================================
   Blog Grid
================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yellow-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-title a:hover {
  color: var(--yellow-dark);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-date {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yellow-dark);
  transition: var(--transition);
}

.blog-card-link:hover {
  color: var(--gray-900);
}

/* =================================================================
   Newsletter
================================================================== */
.newsletter-section {
  background: var(--mustard);
  color: var(--black);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  color: var(--black);
  margin-bottom: 16px;
  font-size: 3rem;
}

.newsletter-desc {
  color: var(--near-black);
  margin-bottom: 32px;
  font-size: 1.2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  font-size: 1rem;
  border: 2px solid var(--black);
  border-radius: 50px;
  background: var(--white);
  color: var(--black);
}

.newsletter-form input::placeholder {
  color: var(--gray-500);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--near-black);
}

.newsletter-form .btn {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}

.newsletter-form .btn:hover {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 600px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* =================================================================
   Footer
================================================================== */
.footer {
  background: var(--gray-50);
  padding: 80px 0 40px;
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-style: italic;
  color: var(--yellow-dark);
  margin-bottom: 16px;
}

.footer-description {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  color: var(--gray-600);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.footer-social a:hover {
  background: var(--yellow);
  color: var(--gray-900);
  border-color: var(--yellow);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--gray-900);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-500);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--yellow-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-200);
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--gray-800);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* =================================================================
   Utilities
================================================================== */
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 40px; }
.mt-2xl { margin-top: 60px; }
.mt-3xl { margin-top: 80px; }

.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 40px; }

/* =================================================================
   Animations
================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =================================================================
   Scroll Hint (Hero)
================================================================== */
.scroll-hint {
  display: none;
}

/* =================================================================
   Dark Mode (Optional)
================================================================== */
[data-theme="dark"] {
  --white: #1a1a1a;
  --off-white: #222;
  --gray-50: #262626;
  --gray-100: #333;
  --gray-200: #444;
  --gray-800: #f0f0f0;
  --gray-900: #fff;
}

[data-theme="dark"] body {
  background: #1a1a1a;
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #2a2a1a 0%, #1a1a1a 100%);
}

[data-theme="dark"] .mobile-nav {
  background: #1a1a1a;
}

[data-theme="dark"] .footer {
  background: #222;
}

/* =================================================================
   Page Layouts
================================================================== */
.page-header {
  padding: calc(var(--header-height) + 60px) 0 60px;
  background: var(--gray-50);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
}

.page-content {
  padding: 60px 0;
}

/* Single Post/Book */
.single-header {
  padding: calc(var(--header-height) + 40px) 0 40px;
}

.single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}

.single-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.single-content h2 {
  margin: 48px 0 24px;
}

.single-content ul, 
.single-content ol {
  margin: 24px 0;
  padding-left: 24px;
}

.single-content li {
  margin-bottom: 12px;
  list-style: disc;
}

.single-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--yellow-50);
  border-left: 4px solid var(--yellow);
  font-style: italic;
  color: var(--gray-700);
}

/* =================================================================
   Book Single Page
================================================================== */
.book-hero {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: linear-gradient(180deg, var(--yellow-50) 0%, var(--white) 100%);
}

.book-hero-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: start;
}

.book-cover-main {
  position: sticky;
  top: 120px;
}

.book-cover-main img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

.book-info h1 {
  margin-bottom: 16px;
}

.book-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--yellow-dark);
  margin-bottom: 24px;
}

.book-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  color: var(--gray-500);
}

.book-description {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.book-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.book-details {
  background: var(--gray-50);
  padding: 24px;
  border-radius: 12px;
}

.book-details h4 {
  margin-bottom: 16px;
}

.book-details-list {
  display: grid;
  gap: 12px;
}

.book-details-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.book-details-list li span:first-child {
  color: var(--gray-500);
}

.book-details-list li span:last-child {
  font-weight: 600;
  color: var(--gray-800);
}

@media (max-width: 900px) {
  .book-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .book-cover-main {
    position: static;
    max-width: 280px;
    margin: 0 auto 40px;
  }
  
  .book-buttons {
    justify-content: center;
  }
  
  .book-meta {
    justify-content: center;
  }
}

/* =================================================================
   Pagination
================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.page-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.page-link:hover,
.page-link.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--gray-900);
}

/* =================================================================
   Tags
================================================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50px;
  transition: var(--transition);
}

.tag:hover {
  background: var(--yellow);
  color: var(--gray-900);
}

/* =================================================================
   Forms
================================================================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-700);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* =================================================================
   404 Page
================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  margin-bottom: 16px;
}

.error-page p {
  color: var(--gray-500);
  margin-bottom: 32px;
}


/* =================================================================
   Prose / Content Typography
================================================================== */
.prose {
  max-width: 75ch;
  margin: 0 auto;
  font-size: 1.125rem; /* 18px */
  line-height: 1.8;
  color: var(--gray-700);
}

.prose p {
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 2rem;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}

.prose h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.prose ul, .prose ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid var(--yellow);
  padding-left: 2rem;
  margin: 2.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gray-800);
  background: var(--yellow-50);
  padding: 2rem;
  border-radius: 0 12px 12px 0;
}

.prose img {
  border-radius: 12px;
  margin: 3rem auto;
  box-shadow: var(--shadow-lg);
}

.prose strong {
  color: var(--black);
  font-weight: 600;
}

.prose a {
  color: var(--yellow-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.prose a:hover {
  background: var(--yellow-100);
  color: var(--black);
}

/* =================================================================
   Cookie Consent Banner
================================================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 3px solid var(--yellow);
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
  max-width: 600px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-settings {
  display: none;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  margin-top: 24px;
}

.cookie-settings.active {
  display: block;
}

.cookie-settings h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cookie-option-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.cookie-option-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--yellow);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle.disabled .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .cookie-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

/* =================================================================
   Utility Classes from Templates
================================================================== */
.container-narrow {
  max-width: 800px;
}

.mb-lg { margin-bottom: 2rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }
.mt-3xl { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-3xl { margin-bottom: 5rem; }
.pt-3xl { padding-top: 5rem; }
.pb-0 { padding-bottom: 0; }

.bg-pattern {
  background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-yellow-50 {
  background-color: var(--yellow-50);
}

.grid {
  display: grid;
}

.reveal, .reveal-left, .reveal-right {
  opacity: 1;
}
