/* --- GLOBAL VARIABLES --- */
:root {
  --ink-midnight: #0D1117;   
  --vintage-wine: #3F1521;   
  --off-white: #F8F6F3;      
  --soft-gray: #A9A9A9;      
}

/* --- RESET & FOUNDATION --- */
body {
  margin: 0;
  padding: 0;
  background-color: var(--ink-midnight);
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* KILLS DEFAULT LINK COLORING */
a {
  color: inherit;
  text-decoration: none;
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: #090D11; 
  border-bottom: 1px solid rgba(63, 21, 33, 0.2); 
}

.logo {
  font-family: 'Special Elite', monospace;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--vintage-wine);
  text-transform: uppercase;
  filter: brightness(1.4);
}

.nav-links a {
  color: var(--soft-gray);
  margin-left: 12px;
  font-size: 0.7rem;
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--off-white);
}

/* --- INTRODUCTORY ARCHIVE HEADER --- */
.archive-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 5% 2rem;
  text-align: center;
}

.archive-title {
  font-family: 'Special Elite', monospace;
  font-size: 2.2rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}

.archive-subtitle {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--vintage-wine);
  filter: brightness(1.7);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 2rem;
}

.archive-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--soft-gray);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}

/* --- LINEAR LINES GRID INDEX --- */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5% 5rem;
}

.book-index {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4rem;
}

.book-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.book-row:hover {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.book-meta {
  flex: 1;
  min-width: 280px;
}

.book-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--vintage-wine);
  filter: brightness(1.8);
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.book-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
  color: var(--off-white);
}

.book-title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.book-excerpt {
  flex: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-excerpt p {
  color: var(--soft-gray);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.line-read-more {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--vintage-wine) !important;
  filter: brightness(1.8); 
  white-space: nowrap;
  align-self: flex-start;
  transition: transform 0.2s ease;
  margin-top: 0.2rem;
}

.book-row:hover .line-read-more {
  transform: translateX(5px);
}

/* --- BACK BUTTON --- */
.back-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--soft-gray);
  display: inline-block;
  margin-top: 1rem;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: var(--off-white);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 850px) {
  .book-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem 0;
  }
  .book-meta, .book-excerpt {
    flex: none;
    width: 100%;
  }
}
