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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f2744;
  --navy-mid: #1a3a5c;
  --navy-light: #2a5080;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5eacc;
  --white: #ffffff;
  --off-white: #f8f6f1;
  --text: #1a1a2e;
  --text-muted: #5a6478;
  --border: #e2ddd4;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 39, 68, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* PAGE WRAPPER */
.page { display: none; }
.page.active { display: block; }

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-left,
.hero-bg-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-left { left: 0; }
.hero-bg-right { right: 0; }

.hero-bg-left img,
.hero-bg-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.35;
  filter: saturate(0.7);
}

.hero-bg-left::after,
.hero-bg-right::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-bg-left::after {
  background: linear-gradient(to right, rgba(15,39,68,0.6) 0%, rgba(15,39,68,0.95) 100%);
}

.hero-bg-right::after {
  background: linear-gradient(to left, rgba(15,39,68,0.6) 0%, rgba(15,39,68,0.95) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* SECTIONS */
section { padding: 5rem 2rem; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--navy-mid); }

.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

/* FEATURED BOOKS (home) */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,39,68,0.1); }

.book-genre {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.book-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.book-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--gold-light);
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-amazon:hover { background: var(--navy-light); }

/* COMING SOON STRIP */
.coming-soon-strip {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
}

.coming-soon-strip .section-title { color: var(--white); }
.coming-soon-strip p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto 2rem; }

.genre-tags { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.genre-tag {
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.about-photo-placeholder {
  aspect-ratio: 3/4;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 1rem;
  border: 1px solid var(--border);
}

.about-photo-placeholder svg { opacity: 0.3; }

.about-text p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.85; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.fact { }
.fact-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }
.fact-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }

/* BOOKS PAGE */
.books-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.book-page-card {
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s;
}

.book-page-card:hover { transform: translateY(-3px); }

.book-cover-placeholder {
  height: 220px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-light);
  padding: 1.5rem;
  text-align: center;
  line-height: 1.4;
  font-style: italic;
}

.book-page-info { padding: 1.5rem; background: var(--off-white); }

.book-coming-section {
  background: var(--navy);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.book-coming-section h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}

.book-coming-section p { color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto; }

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-item:hover { color: var(--navy); }

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 16px; height: 16px; fill: var(--gold-light); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }

/* NEWSLETTER */
.newsletter {
  background: var(--gold-pale);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.newsletter .section-title { color: var(--navy); }
.newsletter p { color: var(--text-muted); margin-bottom: 2rem; }

.newsletter-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-right: none;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

/* FOOTER */
footer {
  background: var(--navy);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-social { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 2rem; }

.footer-social a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--gold-light); }

.footer-copy { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1.5rem 2rem; gap: 1.25rem; border-bottom: 1px solid rgba(201,168,76,0.3); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid var(--border); border-bottom: none; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
