/* As Above ... Library book-study shared stylesheet
   Extracted 2026-08-19 from the maps-of-meaning exemplar so every book study
   shares one visual system. Accent color is overridden per page via :root. */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #161620;
  --text: #e8e8ed;
  --text-dim: #8888a0;
  --accent: #a78bfa;
  --accent-dim: #7c5cbf;
  --accent-bg: rgba(167, 139, 250, 0.08);
  --accent-border: rgba(167, 139, 250, 0.3);
  --border: #2a2a3a;
  --gold: #d4af37;
  --gold-bg: rgba(212, 175, 55, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }


/* ===== NAVIGATION ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5,6,10,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215,178,74,.22);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text, #e8e8ed);
}

.nav-brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav-brand-text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-link {
  padding: 8px 14px;
  color: var(--text-dim, #9898a8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover { color: var(--text, #e8e8ed); background: rgba(255,255,255,0.05); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-dim, #9898a8);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown-btn:hover { color: var(--text, #e8e8ed); background: rgba(255,255,255,0.05); }
.nav-dropdown-btn svg { width: 12px; height: 12px; fill: currentColor; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-btn svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: rgba(12,12,18,.98);
  border: 1px solid rgba(215,178,74,.22);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-dim, #9898a8);
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-dropdown-item:hover { color: var(--text, #e8e8ed); background: rgba(255,255,255,0.05); }
.nav-dropdown-item span { font-size: 1.1rem; }

/* Mobile Nav */
.nav-mobile-btn {
  display: none;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim, #9898a8);
}
.nav-mobile-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* Mobile Menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 6, 10, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: #d7b24a; padding: 16px 16px 8px; }
.nav-mobile-link { display: block; padding: 14px 16px; color: var(--text-dim, #9898a8); text-decoration: none; font-size: 1rem; font-weight: 500; border-radius: 8px; transition: all 0.2s; }
.nav-mobile-link:hover { color: var(--text, #e8e8ed); background: rgba(215,178,74,0.1); }
.nav-mobile-divider { height: 1px; background: rgba(215,178,74,.22); margin: 12px 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
}


/* Breadcrumb */
.breadcrumb {
  padding: 24px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Hero Image */
.hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 32px;
}

/* Book Header */
.book-header {
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border);
}

.book-header-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.book-cover {
  background: linear-gradient(135deg, var(--accent-bg), rgba(167,139,250,0.02));
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.cover-icon {
  font-size: 5rem;
  margin-bottom: 16px;
}

.cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.cover-author {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.book-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.2;
}

.book-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 20px;
}

.book-meta {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 24px;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.book-tag {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.book-tag.category {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
}

.book-stats {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Article Content */
.article {
  padding: 60px 0;
}

.article h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: 48px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin: 32px 0 16px;
  color: var(--accent);
}

.article p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.article p strong {
  color: var(--text);
}

.article ul, .article ol {
  margin: 20px 0 20px 24px;
  color: var(--text-dim);
}

.article li {
  margin-bottom: 12px;
}

/* Quote Block */
.quote-block {
  background: var(--accent-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  margin: 32px 0;
}

.quote-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.quote-block .attribution {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: normal;
}

/* Concept Card */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.concept-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.concept-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Framework Box */
.framework-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.framework-box h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--gold);
}

.framework-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.framework-item:last-child {
  border-bottom: none;
}

.framework-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.framework-content h5 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.framework-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Implementation Section */
.implementation {
  background: linear-gradient(135deg, var(--gold-bg), rgba(212,175,55,0.02));
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 16px;
  padding: 40px;
  margin: 48px 0;
}

.implementation h3 {
  color: var(--gold);
  margin-top: 0;
}

.implementation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.implementation-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
}

.implementation-item h5 {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.implementation-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Related Books */
.related-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.related-card h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.related-card .author {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.related-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { margin: 0; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.social-links a {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .book-header-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .book-cover { max-width: 200px; margin: 0 auto; }
  .nav-links { display: none; }
  .book-stats { flex-wrap: wrap; gap: 20px; }
}
