/* ═══════════════════════════════════════════════
   VELVET GHOST PUBLISHING — Main Stylesheet
   Velvet Ghost Staff · All Rights Reserved
═══════════════════════════════════════════════ */

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

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

:root {
  --obsidian:    #1A1F1C;
  --vellum:      #F9F7F2;
  --copper:      #B87333;
  --copper-light:#d4956a;
  --copper-dark: #8a5520;
  --ghost-grey:  #E0E0E0;
  --mid-tone:    #2e342f;
  --deep-mid:    #252b26;
  --text-muted:  #8a9089;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--obsidian);
  color: var(--vellum);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(26,31,28,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(184,115,51,0.25);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--copper); text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: 0.68rem;
  font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ghost-grey);
  text-decoration: none; transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--copper); }

/* ─── TYPOGRAPHY UTILITIES ─── */
.section-label {
  font-family: var(--sans); font-size: 0.6rem;
  font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--copper);
  margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title em { color: var(--copper); font-style: italic; }
.copper-rule { width: 50px; height: 1px; background: var(--copper); margin: 0 auto 3rem; }
.copper-rule.left { margin-left: 0; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; font-family: var(--sans);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--obsidian); background: var(--copper);
  padding: 1rem 2.5rem; text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--copper-light); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; font-family: var(--sans);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--copper); background: transparent;
  padding: 1rem 2.5rem; text-decoration: none;
  border: 0.5px solid rgba(184,115,51,0.5);
  transition: border-color 0.25s, color 0.25s; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-light); }

/* ─── BOOK CARDS ─── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}
.book-card { cursor: pointer; transition: transform 0.25s; }
.book-card:hover { transform: translateY(-5px); }
.book-cover {
  width: 100%; aspect-ratio: 2/3;
  display: flex; align-items: flex-end;
  padding: 1rem; position: relative;
  overflow: hidden; margin-bottom: 0.75rem;
  border: 0.5px solid rgba(184,115,51,0.2);
}
.book-spine { position: absolute; top: 0; left: 0; bottom: 0; width: 3px; }
.book-cover-inner { position: relative; z-index: 1; }
.book-cover-title { font-family: var(--serif); font-size: 0.9rem; font-weight: 400; color: var(--vellum); line-height: 1.2; }
.book-cover-author { font-family: var(--sans); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--copper); margin-top: 0.3rem; }
.book-genre-tag { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

/* ─── MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(10,13,11,0.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--deep-mid);
  border: 0.5px solid rgba(184,115,51,0.3);
  max-width: 740px; width: 100%; max-height: 88vh;
  overflow-y: auto; position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34,1.3,0.64,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  transition: color 0.2s; z-index: 10;
}
.modal-close:hover { color: var(--copper); }
.modal-inner { display: grid; grid-template-columns: 180px 1fr; min-height: 340px; }
.modal-cover {
  aspect-ratio: 2/3; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.25rem;
}
.modal-cover-spine { position: absolute; top: 0; left: 0; bottom: 0; width: 4px; }
.modal-cover-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--vellum); position: relative; z-index: 1; line-height: 1.2; }
.modal-body { padding: 2rem 2rem 2rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-genre-tag {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--copper);
  background: rgba(184,115,51,0.1);
  border: 0.5px solid rgba(184,115,51,0.3);
  padding: 0.3rem 0.75rem; display: inline-block; width: fit-content;
}
.modal-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 300; line-height: 1.15; }
.modal-author { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.modal-blurb { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--ghost-grey); line-height: 1.8; }
.modal-meta { display: flex; gap: 2rem; padding-top: 0.75rem; border-top: 0.5px solid rgba(224,224,224,0.1); }
.modal-meta-item label { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 0.2rem; }
.modal-meta-item span { font-family: var(--serif); font-size: 1rem; color: var(--vellum); }
.modal-actions { display: flex; gap: 1rem; margin-top: auto; flex-wrap: wrap; }
.modal-coming-soon {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0.85rem 1.5rem;
  border: 0.5px solid rgba(224,224,224,0.15);
  display: inline-block;
}

/* ─── NEWSLETTER ─── */
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input[type="email"] {
  flex: 1; background: var(--deep-mid);
  border: 0.5px solid rgba(184,115,51,0.3);
  border-right: none; color: var(--vellum);
  font-family: var(--sans); font-size: 0.8rem;
  padding: 1rem 1.25rem; outline: none; transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--copper); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button {
  background: var(--copper); color: var(--obsidian);
  border: none; font-family: var(--sans); font-size: 0.6rem;
  font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1rem 1.5rem; cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--copper-light); }

/* ─── FOOTER ─── */
footer {
  background: #111512; padding: 3rem 4rem;
  border-top: 0.5px solid rgba(184,115,51,0.2);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-family: var(--serif); font-size: 0.9rem; font-weight: 300; letter-spacing: 0.3em; text-transform: uppercase; color: var(--copper); }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--copper); }
.footer-copy { font-size: 0.62rem; color: var(--text-muted); }

/* ─── BOTANICAL SVG ─── */
.botanical-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.07; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 0.5px solid rgba(184,115,51,0.3); border-bottom: none; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-cover { aspect-ratio: 16/9; min-height: 200px; }
}
