/* --- GLOBAL VARIABLES --- */
:root {
  --ink-midnight: #0D1117;
  --vintage-wine: #3F1521;
  --off-white: #F8F6F3;
  --soft-gray: #A9A9A9;
}

/* --- RESET & BODY --- */
body {
  background-color: var(--ink-midnight);
  color: var(--off-white);
  font-family: 'Inter', sans-serif; /* Clean body text base */
  margin: 0;
  line-height: 1.6;
}

/* KILLS DEFAULT LINK COLORING */
a {
  color: inherit;
  text-decoration: none;
}

/* --- NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 5%;
  align-items: center;
}

.logo {
  font-family: 'Special Elite', monospace;
  color: var(--vintage-wine);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.2rem;
  filter: brightness(1.4); /* Makes the burgundy pop */
}

.nav-links a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  margin-left: 12px;
  text-transform: uppercase;
  color: var(--soft-gray);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--off-white);
}

/* --- HEADER TEXT --- */
.content {
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto; /* Keeps layout centered on huge screens */
}

h1 {
  font-family: 'Special Elite', monospace;
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--soft-gray);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 400;
}

.intro-text {
  color: var(--soft-gray);
  font-size: 1rem;
  max-width: 700px;
  margin-bottom: 3rem;
}

/* --- MINIMALIST THEORY INDEX --- */
.theory-index {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}

.theory-row {
  display: flex;
  align-items: flex-start; /* Aligns items nicely from the top */
  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;
}

.theory-row:hover {
  border-bottom-color: rgba(255, 255, 255, 0.3); /* Line brightens on hover */
}

.theory-meta {
  flex: 1;
  min-width: 280px; /* Prevents text compression */
}

.theory-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--vintage-wine);
  filter: brightness(1.5);
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.theory-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin: 0;
  font-weight: 400;
  line-height: 1.3;
  color: var(--off-white);
}

.theory-excerpt {
  flex: 1.8;
  color: var(--soft-gray);
  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.4);
  white-space: nowrap; /* Forces "Read →" to stay on one line */
  align-self: center; /* Centers arrow relative to the text row */
  transition: transform 0.2s ease;
}

.theory-row:hover .line-read-more {
  transform: translateX(5px); /* Elegant micro-slide forward on hover */
}

/* --- 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 FIX FOR MOBILE --- */
@media (max-width: 850px) {
  .theory-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem 0;
  }
  
  .theory-meta, .theory-excerpt {
    flex: none;
    width: 100%;
  }
  
  .line-read-more {
    align-self: flex-start;
    margin-top: 0.5rem;
  }
}

.theory-tag {
  /* ... your other styles ... */
  filter: brightness(1.8); /* Bumped up slightly from 1.5 for mobile screen readability */
}

.line-read-more {
  /* ... your other styles ... */
  filter: brightness(1.8); /* Bumped up slightly from 1.4 */
}
