/* Beautiful World of Books – Modern crisp design */
:root {
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E5E7EB;
  --accent: #0EA5E9;
  --accent-hover: #0284C7;
  --shadow: 0 1px 3px rgba(30, 41, 59, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 41, 59, 0.1);
  --shadow-lg: 0 10px 40px rgba(30, 41, 59, 0.12);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; margin: 0; padding: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}
.logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--white) url("https://images.unsplash.com/photo-1512820790803-83ca734da794?w=1920&q=85") center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.hero-quote-overlay {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 1.5rem;
  max-width: 720px;
  text-align: center;
  border: none;
}
.hero-quote-overlay .hero-quote-text {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0 0 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}
.hero-quote-overlay .hero-quote-cite {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #FFFFFF;
  font-style: normal;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--text);
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: -0.02em;
}

/* Featured carousel */
.featured { background: #F8FAFC; }
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.carousel-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.carousel-track-container {
  flex: 1;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
  will-change: transform;
}
.carousel-track li {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}
.book-card-cover {
  aspect-ratio: 2/3;
  background: #F1F5F9;
  object-fit: cover;
}
.book-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.book-card-genre {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.book-card-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.book-card-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.book-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.carousel-dots button:hover { background: #94A3B8; }
.carousel-dots button[aria-selected="true"] {
  background: var(--accent);
  transform: scale(1.15);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}
.review-quote {
  font-size: 1.0625rem;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.review-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Signup */
.signup {
  background: var(--text);
  color: var(--white);
}
.signup .section-title { color: var(--white); }
.signup-container {
  max-width: 560px;
  text-align: center;
}
.signup-desc {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.5rem;
}
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}
.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.signup-form input::placeholder { color: var(--text-muted); }
.signup-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.signup-form .btn-primary {
  background: var(--accent);
  color: var(--white);
}
.signup-form .btn-primary:hover { background: var(--accent-hover); }
.signup-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}

/* Footer */
.site-footer {
  padding: 1.5rem;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.footer-text { margin: 0; font-size: 0.9rem; }
.footer-domain {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.footer-domain a { color: rgba(255, 255, 255, 0.95); }
.footer-domain a:hover { color: var(--accent); }
.footer-links {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}
.footer-links a { color: rgba(255, 255, 255, 0.9); }
.footer-links a:hover { color: var(--accent); }

/* Nav current page */
.nav-links a.nav-current { color: var(--accent); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.95) 100%);
  z-index: 1;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.page-hero-inner--center {
  justify-content: center;
  text-align: center;
}
.page-hero-cover {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.page-hero-cover img {
  display: block;
  width: 200px;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.page-hero-content { flex: 1; min-width: 260px; }
.page-hero-title {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}
.page-hero-meta {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.page-hero-tagline {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 1rem;
}
.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

/* Review article */
.container-narrow { max-width: 720px; margin: 0 auto; }
.review-article .section { padding-top: 2rem; }
.review-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.review-block:last-of-type { border-bottom: 0; }
.review-heading {
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.review-block p { margin: 0 0 0.75rem; }
.review-block p:last-child { margin-bottom: 0; }
.takeaways-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.takeaways-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}
.takeaways-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.review-rating-block .review-stars-large {
  font-size: 2rem;
  margin: 0 0 0.25rem;
  letter-spacing: 0.1em;
}
.review-rating-caption { font-size: 0.95rem; color: var(--text-muted); }
.thoughts-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.thoughts-form input,
.thoughts-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.thoughts-form textarea { resize: vertical; min-height: 100px; }
.thoughts-form input:focus,
.thoughts-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.form-note { margin-top: 0.5rem; font-size: 0.9rem; min-height: 1.5em; }

/* About page */
.about-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.about-photo-placeholder {
  aspect-ratio: 1;
  background: #F1F5F9;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.about-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.4;
}
.about-bio p { margin: 0 0 1rem; }
.about-newsletter {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-newsletter .signup-form { justify-content: center; }
.about-social { padding-top: 1rem; text-align: center; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.social-links a {
  font-weight: 500;
  color: var(--accent);
}
.social-links a:hover { color: var(--accent-hover); }

/* Contact page */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.contact-form label {
  font-weight: 500;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.contact-note { margin-top: 1rem; text-align: center; font-size: 0.95rem; min-height: 1.5em; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(280px, 85vw);
    background: var(--white);
    flex-direction: column;
    padding: 5rem 1.5rem 1.5rem;
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .nav-toggle span { transition: transform var(--transition), opacity var(--transition); }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-track li { flex: 0 0 min(260px, 78vw); }
  .signup-form { flex-direction: column; }
  .signup-form input { min-width: 100%; }
  .page-hero-inner { flex-direction: column; text-align: center; }
  .page-hero-content { min-width: 0; }
  .about-intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 1rem; }
  .hero { padding: 5rem 1rem 3rem; }
  .hero-content { padding: 1.5rem; }
  .page-hero { padding: 5rem 1rem 3rem; }
  .page-hero-cover img { width: 160px; }
}
