
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-ink: #1a1a1a;
  --color-paper: #faf9f7;
  --color-cream: #f5f3ef;
  --color-warm: #e8e4dc;
  --color-accent: #8b4513;
  --color-accent-light: #a0522d;
  --color-muted: #6b6b6b;
  --color-border: #d4d0c8;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); font-weight: 400; line-height: 1.7; color: var(--color-ink); background: var(--color-paper); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 249, 247, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.navbar-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--color-ink); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--color-muted); padding: 0.5rem 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--color-ink); }

/* Hero */
.hero {
  min-height: 80vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-paper) 100%);
  padding-top: 70px;
}
.hero-content { max-width: 700px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; color: var(--color-muted); margin-bottom: 2rem; max-width: 600px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.9rem 2rem; border-radius: 4px;
  font-weight: 500; font-size: 0.95rem; transition: all var(--transition);
}
.btn-primary { background: var(--color-accent); color: white; }
.btn-primary:hover { background: var(--color-accent-light); color: white; }
.btn-secondary { border: 2px solid var(--color-border); color: var(--color-ink); }
.btn-secondary:hover { border-color: var(--color-accent); }

/* Sections */
section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--color-muted); max-width: 600px; margin: 0 auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature {
  padding: 2rem; background: white; border-radius: 8px;
  border: 1px solid var(--color-border); transition: all var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.feature h3 { margin-bottom: 0.75rem; }
.feature p { color: var(--color-muted); font-size: 0.95rem; }

/* Books Grid */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.book-card {
  background: white; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--color-border); transition: all var(--transition);
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.book-cover {
  height: 200px; background: var(--color-cream); display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.book-cover img { max-height: 100%; max-width: 100%; object-fit: contain; }
.book-info { padding: 1.5rem; }
.book-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.3; }
.book-info .author { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.book-info .meta { font-size: 0.85rem; color: var(--color-muted); }
.book-info .description { font-size: 0.9rem; color: var(--color-muted); margin-top: 0.75rem; line-height: 1.5; }
.book-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.book-links a { font-size: 0.85rem; font-weight: 500; }

/* Search */
.search-box { max-width: 500px; margin: 0 auto 3rem; position: relative; }
.search-box input {
  width: 100%; padding: 1rem 1.5rem; border: 2px solid var(--color-border);
  border-radius: 50px; font-size: 1rem; background: white;
  transition: border-color var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--color-accent); }

/* Contact */
.contact-info {
  background: white; padding: 3rem; border-radius: 8px;
  border: 1px solid var(--color-border); max-width: 600px; margin: 0 auto;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 0.75rem; color: var(--color-muted); }

/* Footer */
footer {
  background: var(--color-ink); color: rgba(255,255,255,0.7);
  padding: 3rem 0; text-align: center; font-size: 0.9rem;
}
footer a { color: rgba(255,255,255,0.9); }

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  section { padding: 3rem 0; }
}
