*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: #fdf8f3; color: #3a2e28; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --cream: #fdf8f3;
  --warm-white: #fff9f4;
  --blush: #e8c9bb;
  --rose: #c4836a;
  --deep-rose: #9e5a43;
  --sage: #7a9e87;
  --gold: #c8a96e;
  --dark: #3a2e28;
  --mid: #6b534a;
  --light-mid: #9c8579;
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(253,248,243,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blush);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--deep-rose); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid); transition: color 0.2s; }
.nav-links a:hover { color: var(--rose); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--mid); cursor: pointer; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 2rem 60px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, #f5e0d3 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, #d9e8df 0%, transparent 50%),
    linear-gradient(160deg, #fdf3ec 0%, #fdf8f3 60%, #f0f5f2 100%);
}
.hero-deco {
  position: absolute; pointer-events: none; opacity: 0.07;
  font-size: 28rem; font-family: 'Playfair Display', serif;
  color: var(--rose); top: -60px; right: -40px; line-height: 1;
  user-select: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1.2rem;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: '—'; margin: 0 0.5em; color: var(--blush); }
h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 700; color: var(--dark); line-height: 1.1; margin-bottom: 0.4rem;
}
h1 span { color: var(--rose); }
.hero-tagline {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--mid); margin: 1rem 0 0.6rem;
  border-left: 3px solid var(--gold); padding-left: 1rem; text-align: left;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-sub {
  font-size: 1rem; color: var(--light-mid); margin-bottom: 2rem;
}
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.8rem 2.2rem;
  border-radius: 50px; font-weight: 700;
  font-size: 0.88rem; letter-spacing: 0.06em;
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.13); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-outline { background: transparent; color: var(--rose); border: 2px solid var(--rose); }
.scroll-hint {
  margin-top: 3rem; font-size: 0.78rem; color: var(--light-mid);
  letter-spacing: 0.1em; text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-hint span { display: block; font-size: 1.3rem; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* SECTIONS */
section { padding: 90px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 0.5rem;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark); margin-bottom: 1.2rem; line-height: 1.2;
}
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 2px; margin-bottom: 2rem;
}

/* ABOUT */
#about { background: var(--warm-white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-frame {
  width: 100%; aspect-ratio: 3/4; border-radius: 16px;
  background: linear-gradient(135deg, #e8d5c9 0%, #c5d9cc 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.1);
}
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.placeholder-text { font-size: 5rem; opacity: 0.4; }
.about-badge {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--rose); color: #fff;
  border-radius: 50%; width: 115px; height: 115px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18); text-align: center; padding: 0.5rem;
}
.badge-num { font-size: 2.1rem; font-weight: 700; line-height: 1; }
.badge-label { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.about-text p { color: var(--mid); margin-bottom: 1rem; font-size: 1.05rem; }
.about-facts { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.fact-item { text-align: center; }
.fact-num { font-family: 'Playfair Display', serif; font-size: 2.1rem; color: var(--rose); font-weight: 700; }
.fact-lbl { font-size: 0.72rem; color: var(--light-mid); text-transform: uppercase; letter-spacing: 0.1em; }

/* QUOTE BANNER */
.quote-banner {
  background: linear-gradient(135deg, var(--rose) 0%, var(--deep-rose) 100%);
  padding: 70px 2rem; text-align: center; color: #fff;
}
.quote-banner blockquote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  max-width: 720px; margin: 0 auto; line-height: 1.5;
}
.quote-banner cite {
  display: block; margin-top: 1.2rem;
  font-family: 'Lato', sans-serif; font-style: normal;
  font-size: 0.82rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.75;
}
/* BOOKS */
#books { background: var(--cream); }
.books-intro { max-width: 620px; margin-bottom: 3.5rem; }
.books-intro p { color: var(--mid); }

.book-category { margin-bottom: 5rem; }
.category-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.category-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--dark);
}
.category-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--blush), transparent);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 2rem;
}
.book-card {
  background: var(--warm-white); border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.13); }
.book-cover {
  width: 100%; aspect-ratio: 2/3;
  background: linear-gradient(135deg, #eeddd5 0%, #d5e5dc 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1rem; text-align: center;
  background: linear-gradient(135deg, #e8d0c5 0%, #cddfd5 100%);
}
.cover-fallback-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem; font-weight: 700;
  color: var(--dark); line-height: 1.3;
}
.cover-fallback-icon { font-size: 2rem; margin-bottom: 0.4rem; opacity: 0.5; }
.book-info { padding: 0.9rem 1rem 1.1rem; }
.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--dark); margin-bottom: 0.25rem; line-height: 1.3;
}
.book-meta { font-size: 0.72rem; color: var(--light-mid); margin-bottom: 0.7rem; }
.book-link {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: var(--rose); letter-spacing: 0.06em;
  text-transform: uppercase; transition: color 0.2s;
}
.book-link:hover { color: var(--deep-rose); }
.book-link::after { content: ' →'; }

/* CONTACT */
#contact { background: var(--warm-white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-intro p { color: var(--mid); margin-bottom: 1.5rem; font-size: 1.05rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.contact-link-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.2rem; border-radius: 10px;
  background: var(--cream); border: 1px solid var(--blush);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-link-item:hover { border-color: var(--rose); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.contact-icon { font-size: 1.3rem; }
.contact-link-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--light-mid); }
.contact-link-value { font-size: 0.95rem; font-weight: 700; color: var(--dark); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); }
.form-group input,
.form-group textarea {
  padding: 0.85rem 1.1rem; border-radius: 8px;
  border: 1.5px solid var(--blush); background: var(--cream);
  font-family: 'Lato', sans-serif; font-size: 0.95rem;
  color: var(--dark); transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196,131,106,0.15);
}
.form-status { font-size: 0.85rem; color: var(--sage); font-weight: 700; min-height: 1.2em; }

/* FOOTER */
footer {
  background: var(--dark); color: rgba(255,255,255,0.65);
  text-align: center; padding: 3rem 2rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem;
}
.footer-tagline { font-style: italic; font-size: 0.88rem; margin-bottom: 1.5rem; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; justify-content: center; gap: 2rem; list-style: none; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--rose); }
.footer-copy { font-size: 0.75rem; opacity: 0.4; }

/* SCROLL ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--cream); padding: 1.5rem 2rem; border-bottom: 1px solid var(--blush); gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { width: 90px; height: 90px; bottom: -12px; right: -12px; }
  .badge-num { font-size: 1.6rem; }
  .hero-deco { font-size: 14rem; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.2rem; }
  section { padding: 65px 1.5rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.8rem; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .about-facts { gap: 1.5rem; }
  .btn { padding: 0.7rem 1.6rem; font-size: 0.82rem; }
}
