/* =========================================
   RIOT STORIES INDEPENDENT THEME
   ========================================= */

/* Core Layout Shared Backgrounds */
.riot-landing-container,
.riot-reader-container {
  background-color: #0b0b0c; /* Deep obsidian backdrop */
  color: #e4e4e7;
  padding: 60px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Localized Header Typography Alignment */
.story-reader-header {
  text-align: center;
  margin-bottom: 50px;
}

.reader-author-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

/* Green highlight directly matching the Initiative 78 logo color */
.curator-tag {
  color: #2ee473;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================
   STORIES INDEX GRID LAYOUT
   ========================================= */

.stories-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.story-text-card {
  background-color: #121214; /* Lighter card layer matching fragments */
  border-left: 3px solid #27272a;
  padding: 24px;
  border-radius: 0 6px 6px 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.story-text-card:hover {
  border-left-color: #2ee473; /* Glows neon green on focus */
  background-color: #161619;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.author-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.read-link {
  color: #2ee473;
  font-size: 1.2rem;
  font-weight: bold;
}

.card-excerpt-preview {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #a1a1aa;
  margin: 0;
  text-align: left;
}

/* =========================================
   INDIVIDUAL STORY FRAGMENTS FEED
   ========================================= */

/* Centralized content block for natural screen reading */
.fragments-feed {
  max-width: 620px;
  margin: 0 auto;
}

/* Each fragment styled as a clean entry block */
.fragment-entry {
  background-color: #121214; /* Slightly lighter card layer */
  border-left: 3px solid #27272a;
  padding: 24px 28px;
  margin-bottom: 24px;
  border-radius: 0 6px 6px 0;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.fragment-entry:hover {
  border-left-color: #2ee473; /* Glows neon green on focus */
  background-color: #161619;
}

.story-paragraph {
  font-size: 1rem;
  line-height: 1.65;
  color: #f4f4f5; /* High contrast reading text */
  margin: 0;
  text-align: left;
}

/* =========================================
   TOP GLOBAL NAVIGATION CONTROLS
   ========================================= */

.ui-controls {
  background-color: #0b0b0c;
  padding: 16px 24px;
  display: flex;
}

.ui-controls button,
.ui-controls a {
  color: #a1a1aa !important;
  text-decoration: none;
}

.ui-controls button:hover,
.ui-controls a:hover {
  color: #2ee473 !important;
}
