/* Palette
   --space:       #1a1a2a
   --near-black:  #1c1c1c
   --dark-grey:   #3a3a3a
   --mid-grey:    #6b6b6b
   --light-grey:  #e0e0e0
   --off-white:   #f5f5f5
   --white:       #ffffff
   --sage:        #4a7a5a
*/

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

html {
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #1a1a2a;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.65) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.45) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 350px 280px, 230px 200px, 170px 160px, 110px 130px;
  background-position: 47px 23px, 130px 80px, 60px 140px, 200px 15px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1c1c1c;
  line-height: 1.7;
}

/* ── HEADER & HERO ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero {
  background-color: #1c1c1c;
  text-align: center;
  padding: 24px 20px 16px;
}

h1 {
  font-size: 1.9rem;
  letter-spacing: 2px;
  color: #e8e8e8;
  margin-bottom: 4px;
}

.tagline {
  font-size: 0.9rem;
  color: #a0a0a0;
  font-style: italic;
}

/* ── NAV ── */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 0 0 8px 8px;
}

nav a {
  text-decoration: none;
  color: #1c1c1c;
  background-color: #f0f0f0;
  border: 1px solid #aaaaaa;
  border-radius: 6px;
  padding: 7px 14px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  display: inline-block;
  transition: background-color 0.2s;
}

nav a:hover { background-color: #e0e0e0; }

nav a.active {
  background-color: #1c1c1c;
  color: #ffffff;
  border-color: #1c1c1c;
  font-weight: bold;
  text-decoration: underline;
}

nav a.active:hover { background-color: #3a3a3a; }

/* ── DROPDOWN ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #aaaaaa;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  z-index: 200;
  min-width: 180px;
  overflow: hidden;
  padding-top: 4px;
}

@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-content { display: block; }
}

.nav-dropdown.open .nav-dropdown-content { display: block; }

.nav-dropdown-content a {
  display: block;
  padding: 10px 18px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  color: #1c1c1c;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.15s;
}

.nav-dropdown-content a:last-child { border-bottom: none; }
.nav-dropdown-content a:hover { background: #f0f0f0; }
.nav-dropdown-content a.active { background: #1c1c1c; color: #ffffff; font-weight: bold; }

/* ── QUOTE BANNER ── */
.quote-banner {
  background-color: #111120;
  border-bottom: 1px solid #2a2a3a;
  padding: 16px 40px;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-banner blockquote {
  font-style: italic;
  color: #b8b8cc;
  font-size: 0.92rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
  transition: opacity 0.6s ease;
}

.quote-banner cite {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-style: normal;
  color: #707088;
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
}

/* ── MAIN ── */
main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  background-color: #ffffff;
  padding: 40px;
  margin-bottom: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 12px 24px rgba(0,0,0,0.1);
  scroll-margin-top: 120px;
}

h2 {
  font-size: 1.9rem;
  color: #1c1c1c;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c0c0c0;
}

h3 {
  font-size: 1.4rem;
  color: #1c1c1c;
  margin-bottom: 8px;
}

/* ── STATUS BADGES ── */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 8px;
}
.badge-available { background: #e8f5e9; color: #2e7d32; border: 1px solid #81c784; }
.badge-querying  { background: #e3f2fd; color: #1565c0; border: 1px solid #64b5f6; }
.badge-drafting  { background: #fff8e1; color: #e65100; border: 1px solid #ffb74d; }
.badge-outlining { background: #f3e5f5; color: #6a1b9a; border: 1px solid #ba68c8; }

/* ── ABOUT ── */
.about-grid {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.author-photo img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #c0c0c0;
  display: block;
}

.photo-placeholder {
  width: 200px;
  height: 260px;
  background-color: #e0e0e0;
  border-radius: 8px;
  border: 4px solid #c0c0c0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b6b6b;
  font-style: italic;
  font-family: Arial, sans-serif;
}

.about-text p {
  font-size: 1.05rem;
  color: #2c2c2c;
  margin-bottom: 14px;
}

.about-text p:last-child { margin-bottom: 0; }

.author-landscape {
  width: 200px;
  display: block;
  margin-top: 14px;
  border-radius: 8px;
  border: 4px solid #c0c0c0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── BOOK PREVIEWS (home page) ── */
.book-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.book-preview-card {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.book-preview-card img {
  width: 100px;
  border-radius: 4px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 12px;
}

.preview-cover-placeholder {
  width: 100px;
  height: 138px;
  background-color: #3a3a3a;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #e0e0e0;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

.book-preview-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.book-preview-card .genre {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.book-preview-card p.blurb {
  font-size: 0.85rem;
  color: #4a4a4a;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.card-link {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: bold;
  color: #4a7a5a;
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.see-all-link {
  display: block;
  text-align: right;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: #4a7a5a;
  text-decoration: none;
  font-weight: bold;
}
.see-all-link:hover { text-decoration: underline; }

/* ── RECYCLA-BULL ASSETS ── */
.book-title-img {
  max-width: 260px;
  display: block;
  margin-bottom: 14px;
}

.recycla-circle {
  text-align: center;
  margin: 8px 0 28px;
}

.recycla-circle img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* ── BOOKS PAGE ── */
.book-section-label {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6b6b6b;
  margin-bottom: 24px;
}

.book-card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.book-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.book-cover { flex-shrink: 0; }

.book-cover img {
  width: 160px;
  border-radius: 6px;
  box-shadow: 4px 6px 16px rgba(0,0,0,0.2);
  display: block;
}

.cover-placeholder {
  width: 160px;
  height: 220px;
  background-color: #3a3a3a;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5f5f5;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 16px;
  box-shadow: 4px 6px 16px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
}

.genre {
  color: #6b6b6b;
  font-style: italic;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.book-info p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.book-meta {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-bottom: 10px;
}

.buy-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.buy-btn {
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid transparent;
  display: inline-block;
  transition: opacity 0.2s;
}

.buy-btn:hover { opacity: 0.85; }
.amazon { background-color: #f0921a; color: #fff; border-color: #d4800f; }
.bn     { background-color: #1c1c1c; color: #f5f5f5; border-color: #1c1c1c; }

/* ── QUOTES (inspiration page) ── */
.quote-card {
  background: #f9f9f9;
  border-left: 5px solid #4a7a5a;
  border-radius: 0 10px 10px 0;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.quote-card:last-child { margin-bottom: 0; }
.quote-card blockquote { font-size: 1.1rem; font-style: italic; color: #2c2c2c; line-height: 1.8; }
.quote-card cite { display: block; margin-top: 14px; font-size: 0.85rem; font-style: normal; color: #6b6b6b; font-family: Arial, sans-serif; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── GEOMORPHOLOGY ── */
.video-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.video-list li {
  padding: 14px 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-list li:last-child { border-bottom: none; }
.video-list li::before { content: '▶'; color: #4a7a5a; font-size: 0.8rem; flex-shrink: 0; }

.disclaimer-box {
  background: #f5f5f5;
  border-left: 4px solid #aaaaaa;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  font-style: italic;
  color: #6b6b6b;
  font-family: Arial, sans-serif;
}

/* ── CONTACT ── */
#contact p { margin-bottom: 24px; font-size: 1.05rem; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 28px 20px;
  background-color: #1c1c1c;
  color: #a0a0a0;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}

.footer-links {
  margin-top: 10px;
  font-size: 0.82rem;
}

.footer-links a {
  color: #808090;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #c0c0d0; }

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  h1 { font-size: 1.4rem; letter-spacing: 1px; }
  .tagline { font-size: 0.8rem; }
  .hero { padding: 14px 16px 10px; }
  nav { gap: 8px; padding: 6px 10px; }
  nav a { padding: 6px 10px; font-size: 0.78rem; }
  .quote-banner { padding: 12px 20px; }
  .about-grid { flex-direction: column; align-items: center; }
  .book-card { flex-direction: column; align-items: center; text-align: center; }
  .buy-links { justify-content: center; }
  .book-preview-grid { grid-template-columns: 1fr; }
  section { padding: 24px 20px; }
  .quote-card { padding: 20px; }
  .nav-dropdown-content { left: 0; transform: none; }
}
