/* --- ARTICLE BLUEPRINT ANCHOR --- */

.article-wrapper {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 5% 6rem;
}

/* Custom layout rules for the headers */
.article-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.book-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #8B263E; /* High-contrast crimson */
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: #F8F6F3;
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.article-subject {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  color: #8B263E;
  letter-spacing: 1px;
  line-height: 1.5;
  max-width: 550px;
  margin: 0 auto;
}

/* Base Body Elements */
.article-body p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #D1D5DB;
  margin-bottom: 1.8rem;
}

/* Textbook Definition Box */
.matrix-block {
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  background-color: #090D11;
  border-left: 2px solid #8B263E;
  padding: 1.5rem;
  margin: 2.5rem 0;
  color: #A9A9A9;
  line-height: 1.6;
  text-align: left;
}

.matrix-label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  color: #F8F6F3;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

/* Historical Literary Quote Vault */
.quote-vault {
  background-color: rgba(63, 21, 33, 0.15); /* Tinted vintage-wine container */
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  margin-top: 3.5rem;
  border-radius: 2px;
  text-align: left;
}

.quote-vault p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: #A9A9A9;
  margin-bottom: 1.5rem;
}

.quote-vault p:last-of-type {
  margin-bottom: 0;
}

.quote-citation {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  font-style: normal;
  margin-top: 1.2rem;
  color: #8B263E;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Bottom Nav Adjustments */
.back-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #A9A9A9;
  transition: color 0.2s ease;
  display: inline-block;
  margin-top: 2rem;
}

.back-btn:hover {
  color: #F8F6F3;
}

/* --- NEW MEDIA & SUBHEADING ADDITIONS --- */

/* Subheading Quote Style */
.header-subheading-quote {
  margin: 0.5rem auto 1.5rem;
  max-width: 500px;
}

.subheading-quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #A9A9A9;
  line-height: 1.5;
  margin-bottom: 0.3rem !important;
}

.subheading-quote-author {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  color: #8B263E;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Image Containment */
.article-image-container {
  margin: 2.5rem 0;
  padding: 0;
  width: 100%;
}

.article-image-container img {
  max-width: 100%;    /* Prevents the image from bursting out of the 750px wrapper */
  height: auto;       /* Maintains the aspect ratio so it doesn't distort */
  display: block;
  margin: 0 auto;     /* Centers it if it's smaller than the wrapper */
  border-radius: 2px; /* Subtle crisp edge matching the quote vault */
  opacity: 0.85;      /* Optional vintage/muted tone blend */
}

.image-caption {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  color: #8B263E;
  margin-top: 0.8rem;
  text-align: center;
  letter-spacing: 1px;
}

/* Audio Player Alignment */
.audio-container {
  margin: 2.5rem 0;
  background-color: #090D11;
  border-right: 2px solid #8B263E; /* Inverted symmetry with the matrix block */
  padding: 1.2rem;
}

.audio-label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  color: #F8F6F3;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

.audio-container audio {
  width: 100%; /* Makes the player fill the width cleanly */
}

.article-header .audio-container {
  max-width: 500px;  /* Matches your quote width */
  margin: 1.5rem auto; /* Centers the block and adds breathing room */
}

/* --- LEAN & SLEEK AUDIO CONTAINER --- */
.audio-container {
  margin: 1.8rem auto;
  max-width: 420px;          /* Thinned down from 500px for a sleeker profile */
  background-color: rgba(9, 13, 17, 0.5); /* Lighter, more translucent tint */
  border-left: 2px solid #8B263E;
  padding: 0.8rem 1.2rem;    /* Shaved off vertical and horizontal padding */
  border-radius: 6px;        /* Clean, refined corner smooth */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Tightening the label inside the thinner container */
.audio-label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.7rem;         /* Slightly smaller to match the compact frame */
  color: #F8F6F3;
  margin-bottom: 0.4rem;     /* Pulled the audio player closer to its label */
  letter-spacing: 1px;
  text-align: left;
}

.audio-container audio {
  width: 100%;
  height: 32px;              /* Forces the native browser player to look a bit lower-profile */
}


/* --- MAGAZINE STYLE DROP CAP --- */
/* This targets the very first paragraph inside your main article body */
.article-body > p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 4.5rem;          /* Massive editorial size */
  float: left;                /* Allows body text to wrap cleanly around it */
  line-height: 0.85;          /* Pulls the letter down to align with lines of text */
  margin-top: 0.15rem;
  margin-right: 0.75rem;      /* Breathing room between the letter and text */
  color: #8B263E;             /* Matches your crimson/pink accents */
  text-transform: uppercase;
}

.article-body p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #B2B7BD; /* Replaced #D1D5DB with a softer, slightly desaturated muted silver */
  margin-bottom: 1.8rem;
}

.audio-container {
  margin: 1.8rem auto;
  max-width: 420px;          /* Thinned down down for a low-profile look */
  background-color: rgba(9, 13, 17, 0.5); /* Semi-translucent dark tint */
  border-left: 2px solid #8B263E;          /* Crimson marker on the left */
  padding: 0.8rem 1.2rem;    /* Shaved vertical padding makes it thinner */
  border-radius: 6px;        /* Softened corners */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* --- FIXED AUDIO CONTAINER (BRINGS BACK THE TIMELINE) --- */
.audio-container {
  margin: 1.8rem auto;
  max-width: 550px;          /* Expanded from 420px to 550px to make room for the timeline */
  width: 100%;               /* Ensures it scales perfectly on mobile screens */
  background-color: rgba(9, 13, 17, 0.5); 
  border-left: 2px solid #8B263E;
  padding: 1rem 1.2rem;      
  border-radius: 6px;        
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;    /* Prevents padding from breaking the width layout */
}

.audio-label {
  display: block;
  font-family: 'Special Elite', monospace;
  font-size: 0.7rem;         
  color: #F8F6F3;
  margin-bottom: 0.5rem;     
  letter-spacing: 1px;
  text-align: left;
}

.audio-container audio {
  width: 100%;               /* Spreads the player out completely to reveal the progress bar */
  display: block;
}

/* --- ARTICLE SIGN-OFF STYLING --- */
.article-signature {
  margin-top: 3.5rem;         /* Pushes it down below the content */
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(139, 38, 62, 0.3); /* Optional: a very faint divider line */
  text-align: right;          /* Right-aligns it like a traditional signature */
}

.signature-line {
  display: block;             /* Puts the name and date on separate lines */
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  color: #8B263E;             /* Matches your crimson/pink subtitles */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.6;
}
