/* ============================================
   Rebecca Saltzer – Mystery Author Site
   Modern Redesign – Shared Stylesheet
   ============================================ */

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

/* ── Variables ─────────────────────────────── */
:root {
  --ink:        #0f1c2e;
  --paper:      #f4f1ec;
  --cream:      #e8ede6;
  --gold:       #4a7c59;
  --gold-light: #7aaa8a;
  --crimson:    #2d5a3d;
  --muted:      #4a6657;
  --nav-bg:     #0f1c2e;
  --max-w:      900px;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 21px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ── Ornamental divider ────────────────────── */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: .4em;
  margin: 2rem 0;
  opacity: .7;
}
.rule {
  border: none;
  border-top: 1px solid var(--gold-light);
  opacity: .35;
  margin: 2rem 0;
}

/* ── Navigation ────────────────────────────── */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-family: 'Cormorant SC', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: .08em;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--gold-light); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: .12em;
  color: #c8dece;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

/* Hamburger */
.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: 2px;
  background: var(--gold-light);
  transition: all .3s;
}

/* ── Page Header ───────────────────────────── */
.page-header {
  background: var(--nav-bg);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,124,89,.15) 0%, transparent 70%);
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  font-weight: 400;
  letter-spacing: .02em;
  position: relative;
}
.page-header .subtitle {
  font-family: 'Cormorant SC', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: .25em;
  margin-top: .5rem;
  position: relative;
}

/* ── Home Hero ─────────────────────────────── */
.hero {
  background: var(--nav-bg);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(74,124,89,.3) 0%, transparent 65%);
}
.hero-content { position: relative; max-width: var(--max-w); margin: 0 auto; }
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  color: var(--cream);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.15;
}
.hero .tagline {
  font-family: 'Cormorant SC', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  letter-spacing: .3em;
  margin-top: .8rem;
}
.hero .dagger {
  display: block;
  color: var(--crimson);
  font-size: 1.8rem;
  margin: 1.5rem auto .5rem;
  opacity: .7;
}

/* ── Container ─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── Book Cards (Home) ─────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}
.book-card {
  text-align: center;
}
.book-card .label {
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--crimson);
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.book-card img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 1.25rem;
  box-shadow: 6px 8px 30px rgba(0,0,0,.25);
  transition: transform .3s, box-shadow .3s;
}
.book-card img:hover {
  transform: translateY(-4px);
  box-shadow: 8px 14px 40px rgba(0,0,0,.32);
}
.book-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: .5rem;
}
.btn {
  display: inline-block;
  margin-top: .75rem;
  padding: .55rem 1.5rem;
  border: 1px solid var(--gold);
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: .15em;
  color: var(--gold);
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover {
  background: var(--gold);
  color: var(--paper);
}
.btn-buy {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
  padding: .6rem 1.8rem;
  font-size: 1.05rem;
}
.btn-buy:hover {
  background: #3a6647;
  border-color: #3a6647;
  color: #fff;
}

/* ── Praise / Quotes ───────────────────────── */
.praise-section {
  background: var(--cream);
  border-top: 1px solid rgba(74,124,89,.2);
  border-bottom: 1px solid rgba(74,124,89,.2);
}
.praise-section .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-title {
  font-family: 'Cormorant SC', serif;
  font-size: 1.05rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 2rem;
}
.quote-block {
  border-left: 2px solid var(--gold-light);
  padding: .75rem 1.25rem;
  margin-bottom: 1.75rem;
}
.quote-block p {
  font-style: italic;
  font-size: 1.2rem;
  color: #1e2e20;
  line-height: 1.7;
}
.quote-block cite {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ── Book Detail Page ──────────────────────── */
.book-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
}
.book-detail .cover img {
  box-shadow: 6px 8px 30px rgba(0,0,0,.22);
  width: 100%;
}
.book-detail .cover .buy-links {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.book-detail .info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.book-detail .info .blurb {
  font-size: 1.2rem;
  line-height: 1.8;
}
.book-detail .info .blurb p + p { margin-top: 1em; }
.book-detail .info .hook {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--crimson);
  margin-top: 1.5rem;
}

/* ── About Page ────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-grid .photo img {
  box-shadow: 5px 6px 24px rgba(0,0,0,.2);
  width: 100%;
}
.about-grid .bio h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.about-grid .bio p + p { margin-top: 1em; }
.dogs-section { margin-top: 3rem; text-align: center; }
.dogs-section img {
  max-width: 340px;
  margin: .75rem auto 0;
  box-shadow: 4px 5px 20px rgba(0,0,0,.15);
}
.dogs-section .caption {
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: .6rem;
}

/* ── Contact Page ──────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.contact-form label {
  display: block;
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
  margin-top: 1.2rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid rgba(74,124,89,.35);
  background: #f7f4ef;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form button {
  margin-top: 1.25rem;
  padding: .65rem 2rem;
  background: var(--crimson);
  border: none;
  font-family: 'Cormorant SC', serif;
  font-size: 1.05rem;
  letter-spacing: .15em;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s;
}
.contact-form button:hover { background: #3a6647; }

/* ── Footer ────────────────────────────────── */
.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--gold);
  padding: 2rem 1.5rem;
  text-align: center;
}
.site-footer p {
  font-family: 'Cormorant SC', serif;
  font-size: 1rem;
  letter-spacing: .1em;
  color: #5a7a62;
}
.site-footer a { color: var(--gold-light); }

/* ── Buy Links row ─────────────────────────── */
.buy-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 2px solid var(--gold);
    padding: .5rem 0;
  }
  .nav-links.open li a {
    display: block;
    padding: .75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .site-nav { position: relative; }
  .nav-toggle { display: flex; }

  .books-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail .cover { max-width: 220px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .photo { max-width: 200px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; }
}
