/* J. Lee Murphy — Paranormal Thriller site styles */

:root {
  --bg: #0a1118;
  --bg-elev: #111a24;
  --bg-deep: #060a10;
  --ink: #ecead8;
  --ink-dim: #a8b0bd;
  --accent: #d99a3a;        /* amber from the cover */
  --accent-soft: #e8b96a;
  --accent-cool: #4a7d8c;   /* smoky teal from the sky */
  --accent-cool-soft: #6fa0b0;
  --danger: #8a2a2a;
  --border: #1f2a36;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.75rem; }

p { margin: 0 0 1rem; }
em { color: var(--accent-soft); font-style: italic; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10,17,24,0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand:hover { color: var(--accent-soft); }
.site-header nav a {
  margin-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--accent-soft); }

/* Hero — cover-focused */
.hero {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(74,125,140,0.18), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(217,154,58,0.10), transparent 60%),
    linear-gradient(180deg, #060a10 0%, #0a1118 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.85),
    0 0 0 1px rgba(217,154,58,0.15);
}
.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-dim);
  margin-top: 0.5rem;
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #1a1408;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-soft); color: #1a1408; }
.btn-ghost {
  background: transparent;
  border-color: var(--accent-cool-soft);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.btn-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-soft);
  letter-spacing: 0.05em;
}

/* Author strip */
.author-strip {
  padding: 4rem 0;
  background: var(--bg-elev);
}
.author-strip-inner { max-width: 760px; }

/* Page head */
.page-head {
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74,125,140,0.15), transparent 70%),
    var(--bg);
}

/* Book detail page */
.book-detail { padding: 4rem 0; }
.book-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.book-detail-grid > * { min-width: 0; }
.book-detail-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(217,154,58,0.12);
}
.buy-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Placeholder note */
.placeholder-note {
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-style: italic;
  opacity: 0.7;
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 3rem;
  padding: 4rem 0;
  align-items: start;
}
.about-grid > * { min-width: 0; }
.author-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1a242f 0%, #060a10 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-style: italic;
}

/* Contact */
.contact-wrap { padding: 4rem 0; max-width: 640px; }
.form-row { margin-bottom: 1.2rem; display: flex; flex-direction: column; }
label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}
input[type="text"],
input[type="email"],
textarea {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 2px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 160px; resize: vertical; }
.flash {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.flash.success { background: rgba(120, 160, 90, 0.12); border: 1px solid rgba(120,160,90,0.4); color: #c8d8a8; }
.flash.error { background: rgba(138, 42, 42, 0.15); border: 1px solid rgba(138,42,42,0.5); color: #e7b6b6; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--ink-dim);
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive — stack at narrower widths */
@media (max-width: 900px) {
  .hero-grid,
  .book-detail-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-cover,
  .book-detail-grid > div:first-child,
  .about-grid > div:first-child {
    max-width: 420px;
    margin: 0 auto;
  }
  .site-header nav a { margin-left: 0.9rem; font-size: 0.8rem; }
  .nav { flex-wrap: wrap; gap: 0.5rem; }
  .hero { padding: 3rem 0 3rem; }
}


/* Author photo (real image, replaces placeholder) */
.author-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(217, 153, 58, 0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  background: var(--bg-elev);
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Release date badge (homepage hero) */
.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  margin: 0 0 1rem 0;
  background: rgba(217, 153, 58, 0.10);
  border: 1px solid rgba(217, 153, 58, 0.45);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.release-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 153, 58, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  margin-top: 4rem;
  background: var(--bg-deep);
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer .footer-brand {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.site-footer .footer-nav a {
  color: var(--ink-dim);
  margin-left: 1.25rem;
}
.site-footer .footer-nav a:hover { color: var(--accent); }
.site-footer .footer-meta {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-dim);
  opacity: 0.7;
}

/* Release page */
.release-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.release-hero .eyebrow {
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.release-date-big {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.release-date-big .month { color: var(--accent); }
.release-subtitle {
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 1rem auto 2rem;
}
.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 3rem;
}
.countdown .unit {
  min-width: 110px;
  padding: 1.25rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.countdown .num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.countdown .label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.release-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
}


/* Release page hero promotional image */
.release-hero-img {
  margin: 0 auto 2.5rem;
  max-width: 720px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.85), 0 0 0 1px var(--border);
  position: relative;
}
.release-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
.release-hero-img::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(10,17,24,0) 0%, rgba(10,17,24,0.55) 100%);
  pointer-events: none;
}
@media (max-width: 640px) {
  .release-hero-img { max-width: 100%; margin-bottom: 1.75rem; border-radius: 8px; }
}


/* Contact page — visible email line */
.contact-email {
  margin-top: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: .01em;
}
.contact-email a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,154,58,.35);
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.contact-email a:hover,
.contact-email a:focus {
  color: #f0b75a;
  border-bottom-color: var(--accent);
}


/* Homepage pull-quote band */
.pullquote {
  position: relative;
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74,125,140,.12), transparent 60%),
    linear-gradient(180deg, #070d14 0%, #0a1118 100%);
  border-top: 1px solid rgba(217,154,58,.18);
  border-bottom: 1px solid rgba(217,154,58,.18);
  text-align: center;
  overflow: hidden;
}
.pullquote .container {
  max-width: 880px;
  position: relative;
}
.pullquote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.35;
  margin: 0 0 -1.25rem;
  user-select: none;
}
.pullquote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 32ch;
  letter-spacing: .005em;
  text-wrap: balance;
}
.pullquote-attr {
  margin-top: 2.25rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.pullquote-attr cite {
  font-style: italic;
  color: var(--ink);
  opacity: .85;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  margin-left: .15em;
}
.pullquote-attr::before,
.pullquote-attr::after {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  background: rgba(217,154,58,.5);
  vertical-align: middle;
  margin: 0 .9rem;
}
@media (max-width: 600px) {
  .pullquote { padding: 3.5rem 0 4rem; }
  .pullquote-attr::before,
  .pullquote-attr::after { width: 1.25rem; margin: 0 .5rem; }
}

/* ============================================
   VIP NOTICE BAND
   ============================================ */
.vip-notice {
  background: #0b0b0d;
  color: #e8e3d8;
  padding: 6rem 1.5rem;
  border-top: 1px solid rgba(232, 227, 216, 0.08);
  border-bottom: 1px solid rgba(232, 227, 216, 0.08);
  position: relative;
}

.vip-notice::before,
.vip-notice::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(232, 227, 216, 0.25);
}
.vip-notice::before { top: 2.25rem; }
.vip-notice::after  { bottom: 2.25rem; }

.vip-grid {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.vip-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #a89f8a;
  margin: 0 0 1.5rem;
}

.vip-headline {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 1.25rem;
  color: #f1ece0;
}
.vip-headline em { font-style: italic; }

.vip-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #b9b2a3;
  margin: 0 auto 2.5rem;
  max-width: 540px;
}
.vip-sub em {
  font-style: italic;
  color: #d6cfbf;
}

.vip-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.vip-label {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.vip-input {
  width: 100%;
  max-width: 420px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232, 227, 216, 0.35);
  color: #f1ece0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.85rem 0.25rem;
  text-align: center;
  transition: border-color 0.2s ease;
}
.vip-input::placeholder { color: #6e6759; }
.vip-input:focus {
  outline: none;
  border-bottom-color: #e8e3d8;
}

.vip-btn {
  margin-top: 0.5rem;
  background: transparent;
  color: #f1ece0;
  border: 1px solid #e8e3d8;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.vip-btn:hover,
.vip-btn:focus {
  background: #e8e3d8;
  color: #0b0b0d;
  outline: none;
}

.vip-fineprint {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #6e6759;
  margin-top: 1.25rem;
}

/* Honeypot — hidden from humans */
.vip-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .vip-notice { padding: 4.5rem 1.25rem; }
}
