:root {
  --bg-soft: #f9f5f0;
  --bg-soft-2: #f5ede3;
  --text: #2d2419;
  --muted: #5a4a3a;
  --accent: #c07a5c;
  --accent-dark: #9b5a43;
  --border: #e8dfd0;
  --white: #ffffff;
  --footer: #2d2419;
  --shadow: 0 20px 50px rgba(45, 36, 25, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap, .nav-actions, .nav-links, .brand, .hero-buttons, .stats, .search-box, .popular-searches, .quiz-top, .between, .subhead, .review-top, .footer-bottom { display: flex; align-items: center; }
.nav-wrap { justify-content: space-between; min-height: 80px; gap: 24px; }
.brand { gap: 10px; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; }
.brand-icon, .feature-icon, .big-icon, .badge-icon, .floating-icon {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.brand-icon { width: 46px; height: 46px; border-radius: 18px; font-size: 1.25rem; }
.nav-links { gap: 24px; color: var(--muted); }
.nav-actions { gap: 12px; }
.icon-btn, .ghost-btn, .primary-btn, .outline-btn, .link-btn, .quiz-option, .popular-searches button { border: none; background: none; cursor: pointer; }
.icon-btn, .ghost-btn { color: var(--muted); }
.primary-btn, .outline-btn, .ghost-btn {
  padding: 12px 22px; border-radius: 999px; transition: .2s ease;
}
.primary-btn { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: var(--shadow); }
.primary-btn:hover { transform: translateY(-1px); opacity: .95; }
.outline-btn { border: 2px solid var(--accent); color: var(--accent); background: #fff; }
.outline-btn:hover, .ghost-btn:hover { background: var(--bg-soft); }
.large { padding: 16px 28px; }
.full { width: 100%; }
.section-soft { background: linear-gradient(135deg, var(--bg-soft), #fff 45%, var(--bg-soft-2)); }
.section-soft-alt { background: linear-gradient(135deg, var(--bg-soft), var(--bg-soft-2)); }
.section-white, .section-soft, .section-soft-alt { padding: 96px 0; }
.hero { padding-top: 48px; }
.hero-grid, .two-col, .community-grid, .about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(45,36,25,.06);
  border-radius: 999px; padding: 10px 16px; color: var(--muted); font-size: .92rem;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.1; margin: 0 0 16px; }
h1 { font-size: clamp(3rem, 6vw, 5.4rem); margin-top: 22px; }
h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
h3 { font-size: 1.65rem; }
h1 span, h2 span { color: var(--accent); font-style: italic; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 700px; }
.lead.small { font-size: 1.05rem; }
.stats { gap: 32px; margin-top: 28px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats strong { font-size: 2rem; font-family: 'Cormorant Garamond', serif; }
.stats span, .meta, .eyebrow, small { color: var(--muted); }
.hero-visual { position: relative; }
.hero-visual img, .about-visual img { width: 100%; height: 600px; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.floating-card, .floating-badge, .quote-card {
  position: absolute; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); border-radius: 24px; padding: 18px 20px;
}
.floating-card { left: -20px; bottom: -20px; display: flex; align-items: center; gap: 14px; }
.floating-icon, .badge-icon { width: 48px; height: 48px; border-radius: 50%; }
.search-shell { margin-top: 48px; }
.search-box {
  background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 12px;
  box-shadow: var(--shadow); gap: 14px;
}
.search-box input, .newsletter-box input {
  flex: 1; min-width: 0; border: none; outline: none; padding: 16px 6px; background: transparent; color: var(--text);
}
.popular-searches { flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.popular-searches button { color: var(--accent); }
.feature-list { display: grid; gap: 18px; margin: 28px 0 32px; }
.feature-list article, .person-card, .review-card, .simple-card {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
}
.feature-list article { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 44px; }
.quiz-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 32px; padding: 30px; box-shadow: var(--shadow);
}
.quiz-top { justify-content: space-between; margin-bottom: 12px; }
.quiz-top strong { color: var(--accent); }
.progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.bar { width: 30%; height: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.quiz-options { display: grid; gap: 12px; margin: 18px 0 20px; }
.quiz-option {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 16px 18px; border: 2px solid var(--border); border-radius: 18px; background: #fff;
}
.quiz-option.active { border-color: var(--accent); background: rgba(192,122,92,.06); }
.floating-badge { right: -16px; bottom: -20px; display: flex; gap: 12px; align-items: center; }
.section-head { margin-bottom: 34px; }
.section-head.between, .subhead.between, .between { justify-content: space-between; }
.section-head.center, .center-copy { text-align: center; }
.section-head.center > * { margin-left: auto; margin-right: auto; }
.eyebrow { margin: 0 0 8px; }
.link-btn { color: var(--accent); }
.card-grid, .mood-grid, .personality-grid, .famous-grid { display: grid; gap: 24px; }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.mood-grid, .personality-grid { grid-template-columns: repeat(4, 1fr); }
.genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.book-card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 30px; overflow: hidden; transition: .25s ease;
}
.book-card:hover, .simple-card:hover, .genre-card:hover, .person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-cover-wrap { position: relative; height: 320px; }
.book-cover { width: 100%; height: 100%; object-fit: cover; }
.match-badge, .bookmark-btn {
  position: absolute; top: 16px; background: rgba(255,255,255,.95); border-radius: 999px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
}
.match-badge { right: 16px; padding: 8px 12px; color: var(--accent); font-family: 'Cormorant Garamond', serif; font-weight: 700; }
.bookmark-btn { left: 16px; width: 40px; height: 40px; }
.book-body { padding: 22px; }
.author, .reviews { color: var(--muted); }
.rating-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.star { color: #d8cfbf; }
.star.full { color: var(--accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-row span, .simple-card p { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 10px; font-size: .82rem; }
.section-block + .section-block { margin-top: 76px; }
.simple-card { padding: 28px; }
.big-icon { width: 58px; height: 58px; border-radius: 18px; font-size: 1.5rem; margin-bottom: 18px; }
.genre-card { position: relative; min-height: 330px; overflow: hidden; border-radius: 28px; border: 1px solid var(--border); }
.genre-card img { width: 100%; height: 100%; object-fit: cover; }
.genre-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.75));
}
.stack { display: grid; gap: 16px; }
.person-card, .review-card { padding: 20px; }
.person-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.person-card img, .review-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.review-top { gap: 14px; margin-bottom: 12px; }
.review-stars { color: var(--accent); margin-bottom: 8px; }
.famous-grid { grid-template-columns: repeat(3, 1fr); }
.famous-card { border: 1px solid var(--border); border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(45,36,25,.05); }
.famous-card img { width: 100%; height: 260px; object-fit: cover; }
.famous-body { padding: 22px; }
.about-visual { position: relative; }
.quote-card { right: -20px; bottom: -24px; max-width: 320px; }
.about-copy { display: grid; gap: 14px; color: var(--muted); margin-bottom: 26px; }
.feature-list.compact article { background: transparent; border: none; padding: 0; }
.site-footer { background: linear-gradient(135deg, var(--footer), #3a2f24); color: #fff; }
.footer-newsletter { border-bottom: 1px solid rgba(255,255,255,.1); }
.center-copy { padding: 74px 0; }
.center-copy p { color: rgba(255,255,255,.72); }
.newsletter-box {
  width: min(560px, 100%); margin: 26px auto 0; display: flex; gap: 12px;
}
.newsletter-box input {
  background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); padding-left: 18px;
}
.footer-main { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding: 72px 0 40px; }
.footer-brand p, .footer-links a, .footer-bottom { color: rgba(255,255,255,.72); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-links h4 { color: #fff; margin-bottom: 10px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 1100px) {
  .card-grid, .mood-grid, .personality-grid, .genre-grid, .famous-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .two-col, .community-grid, .about-grid, .footer-main { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1200px); }
  .nav-actions .ghost-btn { display: none; }
  .hero-visual img, .about-visual img { height: 420px; }
  .search-box, .newsletter-box, .hero-buttons, .stats, .footer-bottom { flex-direction: column; align-items: stretch; }
  .popular-searches { justify-content: flex-start; }
  .card-grid, .mood-grid, .personality-grid, .genre-grid, .famous-grid, .footer-links { grid-template-columns: 1fr; }
  .floating-card, .floating-badge, .quote-card { position: static; margin-top: 16px; }
}
