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

:root {
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --text: #20201e;
  --muted: #6e6a62;
  --accent: #7a2e2e;
  --accent-dark: #5c2020;
  --border: #ded8cc;
  --shadow: 0 16px 40px rgba(44, 36, 24, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.hero {
  min-height: 620px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(28, 23, 19, .94), rgba(92, 32, 32, .82)),
    radial-gradient(circle at 80% 20%, #9b6b54, #251d19 65%);
}

.nav {
  max-width: 1180px;
  margin: auto;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  opacity: .88;
}

.nav-links a:hover { opacity: 1; }

.hero-content {
  max-width: 1080px;
  margin: 95px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 55px;
  align-items: center;
}

.author-photo {
  width: 240px;
  height: 300px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  opacity: .72;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.intro {
  max-width: 620px;
  margin: 22px 0 30px;
  font-size: 1.12rem;
  opacity: .86;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.button:hover { background: var(--accent-dark); }

.section {
  max-width: 1180px;
  margin: auto;
  padding: 90px 28px;
}

.section-heading {
  margin-bottom: 42px;
  max-width: 700px;
}

.section-heading .eyebrow,
.about .eyebrow { color: var(--accent); opacity: 1; }

.section-heading p:last-child {
  color: var(--muted);
  margin: 0;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(44, 36, 24, .15);
}

.cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #e5dfd2;
}

.book-info { padding: 22px; }

.book-info h3 {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.book-year {
  color: var(--accent);
  font-size: .88rem;
  font-weight: 600;
}

.book-description {
  color: var(--muted);
  font-size: .93rem;
  margin: 12px 0 20px;
}

.book-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.book-actions a {
  padding: 9px 13px;
  border-radius: 6px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.book-actions .read {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.book-actions a:hover { opacity: .85; }

.empty-library {
  padding: 45px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 55px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.about-image {
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about p:not(.eyebrow) {
  color: var(--muted);
  max-width: 700px;
}

footer {
  padding: 35px 28px;
  text-align: center;
  color: #8b857a;
  border-top: 1px solid var(--border);
  font-size: .9rem;
}

@media (max-width: 700px) {
  .nav-links { gap: 14px; font-size: .9rem; }
  .hero-content {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }
  .author-photo {
    width: 160px;
    height: 200px;
  }
  .hero { min-height: 680px; }
  .about { grid-template-columns: 1fr; }
}
